:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4f7fb;color:#1f2933;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f4f7fb}a{color:inherit}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}h1,h2,h3,p{margin-top:0}h1{margin-bottom:.5rem;font-size:2.25rem;line-height:1.08}h2{margin-bottom:.65rem;font-size:1.2rem;line-height:1.25}h3{margin-bottom:.45rem;font-size:1rem}p,li,dd,textarea,input,select{line-height:1.55}code{border:1px solid #d5dde8;border-radius:6px;padding:.08rem .32rem;background:#f8fafc;color:#172033;font-size:.9em;overflow-wrap:anywhere}pre{max-width:100%;overflow:auto;margin:.75rem 0;padding:.85rem;border-radius:8px;background:#111827;color:#f8fafc;white-space:pre}pre code{border:0;padding:0;background:transparent;color:inherit}.app-shell{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:1rem;border-right:1px solid #d7dee8;background:#fff}.brand{display:flex;align-items:center;gap:.75rem;min-width:0;margin-bottom:1rem}.brand-mark{display:grid;flex:0 0 auto;place-items:center;width:42px;height:42px;border-radius:8px;background:#1f5a7a;color:#fff;font-weight:800}.brand strong,.brand small{display:block;min-width:0}.unit-row small,.list-item small,.path-title small,.item-head small,.list-item strong,.list-item span{display:block}.brand small,.muted,.source-line,.metric span,.metric small,.unit-row small,.list-item small,.path-step small,.study-card small{color:#64748b}.nav{display:grid;gap:.25rem}.nav a{min-width:0;padding:.62rem .7rem;border-radius:8px;color:#334155;text-decoration:none;overflow-wrap:anywhere}.nav a.active,.nav a:hover{background:#e7f2f7;color:#17465f}.main{min-width:0;padding:1.5rem}.page{width:min(1180px,100%);margin:0 auto}.center-screen{display:grid;place-items:center;min-height:100vh;padding:1rem}.narrow{max-width:520px}.dashboard-head,.page-header,.section-head,.item-head,.path-title{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;min-width:0}.dashboard-head,.page-header{margin-bottom:1rem}.section-head{align-items:center;margin-bottom:.75rem}.section-head a,.text-button,.link-row a{color:#1f5a7a;font-weight:700;text-decoration:none}.eyebrow{margin-bottom:.35rem;color:#9a4d16;font-size:.78rem;font-weight:800;text-transform:uppercase}.primary-action,.secondary-button,.rating-row button,.option-button,.tabbar button,.card-face{border:1px solid transparent;border-radius:8px;text-decoration:none}.primary-action{display:inline-flex;align-items:center;justify-content:center;min-height:42px;max-width:100%;padding:.65rem .9rem;background:#1f5a7a;color:#fff;font-weight:800;overflow-wrap:anywhere}.secondary-button{min-height:38px;padding:.55rem .8rem;border-color:#b9c6d4;background:#fff;color:#1f5a7a;font-weight:700}.secondary-button.danger{border-color:#cfb4b1;color:#9f2d20}.metric-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;margin-bottom:1.25rem}.metric,.study-card,.unit-row,.list-item,.empty-state,.search-result,.path-step{border:1px solid #d7dee8;border-radius:8px;background:#fff}.metric{min-width:0;padding:1rem}.metric strong{display:block;margin-top:.3rem;color:#1f5a7a;font-size:1.55rem;overflow-wrap:anywhere}.metric small{display:block;margin-top:.25rem}.section-band{margin:1.4rem 0;padding-top:1.1rem;border-top:1px solid #d7dee8}.stack,.list,.search-results{display:grid;gap:.85rem}.study-card,.list-item,.empty-state,.search-result{min-width:0;padding:1rem}.empty-state strong{display:block;margin-bottom:.3rem}.empty-state p,.list-item p,.list-item span,.search-result p{margin-bottom:0}.unit-table{display:grid;gap:.55rem}.unit-row{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(220px,1fr) minmax(160px,.7fr) auto;align-items:center;gap:.75rem;min-width:0;padding:.85rem}.unit-row a{text-decoration:none}.unit-row strong,.search-result strong,.study-card h2,.path-step strong{overflow-wrap:anywhere}.unit-row-progress{min-width:150px}.progress-wrap{position:relative;height:24px;overflow:hidden;border:1px solid #cbd5e1;border-radius:999px;background:#edf2f7}.progress-bar{height:100%;border-radius:inherit;background:#2e7d64}.progress-wrap span{position:absolute;inset:0;display:grid;place-items:center;color:#172033;font-size:.78rem;font-weight:800}.pill-row,.row-pills,.chip-row,.toolbar,.action-row,.rating-row,.link-row{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem}.pill{display:inline-flex;align-items:center;min-height:28px;max-width:100%;border:1px solid #cbd5e1;border-radius:999px;padding:.22rem .58rem;background:#f8fafc;color:#334155;font-size:.82rem;font-weight:700;overflow-wrap:anywhere}.pill-good{border-color:#a8d4bf;background:#e8f6ef;color:#166043}.pill-warn{border-color:#efd49d;background:#fff6df;color:#8a4b0e}.pill-info{border-color:#b7d4e6;background:#e7f2f7;color:#17465f}.tabbar{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0}.tabbar button{min-height:36px;padding:.5rem .72rem;border-color:#cbd5e1;background:#fff;color:#334155;font-weight:700}.tabbar button.active{border-color:#1f5a7a;background:#e7f2f7;color:#17465f}.field{display:grid;gap:.35rem;min-width:0;color:#334155;font-weight:700}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:.58rem .7rem;background:#fff;color:#172033}.field textarea{resize:vertical}.compact-field{min-width:210px}.search-field{margin-bottom:1rem}.rich-text p:last-child,.study-card>:last-child,.solution-block>:last-child,.result-box>:last-child{margin-bottom:0}.given-block{margin:.85rem 0}.given-block>span{display:block;color:#64748b;font-size:.82rem;font-weight:800;text-transform:uppercase}.details-box,.step-box{margin:.7rem 0;border:1px solid #d7dee8;border-radius:8px;background:#f8fafc}.details-box summary,.step-box summary{padding:.7rem .85rem;color:#17465f;font-weight:800}.details-box ul,.step-box p,.step-box .rich-text{padding:0 .85rem .75rem}.solution-block{margin-top:.9rem;padding-top:.9rem;border-top:1px solid #d7dee8}.result-box,.feedback,.check-list{margin-top:.8rem;border-radius:8px;padding:.85rem;background:#f8fafc}.result-box{border-left:4px solid #2e7d64}.feedback.good{border-left:4px solid #2e7d64;background:#e8f6ef}.feedback.warn{border-left:4px solid #b7791f;background:#fff6df}.rating-row button{min-height:34px;padding:.45rem .65rem;border-color:#b9c6d4;background:#fff;color:#17465f;font-weight:700}.rating-row button.active-rating,.rating-row button:hover{border-color:#1f5a7a;background:#e7f2f7}.option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.option-button{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.55rem;align-items:start;min-height:52px;padding:.7rem;border-color:#cbd5e1;background:#fff;color:#1f2933;text-align:left}.option-button span:first-child{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#edf2f7;color:#334155;font-weight:800}.option-button.selected{border-color:#1f5a7a;background:#e7f2f7}.option-button.correct{border-color:#2e7d64;background:#e8f6ef}.card-grid,.example-grid,.trap-grid,.term-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.card-face{display:grid;place-items:center;width:100%;min-height:150px;margin:.5rem 0 .8rem;padding:1rem;border-color:#cbd5e1;background:#f8fafc;color:#172033;text-align:left}.learning-path{display:grid;gap:.75rem;padding:0;list-style:none}.path-step{display:grid;grid-template-columns:44px minmax(0,1fr);gap:.85rem;padding:.85rem}.path-index{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:#1f5a7a;color:#fff;font-weight:800}.path-main{min-width:0}.path-actions{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.4rem;margin-top:.65rem}.path-actions a{min-width:0;border:1px solid #d7dee8;border-radius:8px;padding:.45rem .55rem;color:#17465f;font-size:.9rem;font-weight:700;text-align:center;text-decoration:none;overflow-wrap:anywhere}.unit-checks{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:1rem}.unit-checks label{display:inline-flex;align-items:center;gap:.25rem;border:1px solid #cbd5e1;border-radius:999px;padding:.25rem .48rem;background:#fff;font-weight:700}.source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.source-item,.anchor-item{min-width:0;border-left:3px solid #b7d4e6;padding:.5rem .75rem;background:#f8fafc}.source-item strong,.source-item span,.source-item small{display:block}.anchor-list{display:grid;gap:.65rem}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem 1rem}.search-result{display:grid;gap:.35rem;color:inherit;text-decoration:none}.search-result>div{display:flex;align-items:center;gap:.45rem}.kv{display:grid;grid-template-columns:140px minmax(0,1fr);gap:.5rem 1rem}.kv dt{color:#64748b}.kv dd{min-width:0;margin:0;overflow-wrap:anywhere}.error-text{color:#9f2d20;font-weight:800}@media (max-width: 1040px){.metric-row{grid-template-columns:repeat(2,minmax(0,1fr))}.unit-row{grid-template-columns:minmax(0,1fr)}.unit-row-progress{min-width:0}}@media (max-width: 820px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:.85rem}.brand{margin-bottom:.75rem}.nav{display:flex;gap:.35rem;overflow-x:auto;padding-bottom:.15rem}.nav a{flex:0 0 auto;white-space:nowrap}.main{padding:1rem}.dashboard-head,.page-header,.section-head,.item-head,.path-title{display:grid}.toolbar{width:100%}.compact-field{width:100%;min-width:0}.option-grid,.card-grid,.example-grid,.trap-grid,.term-grid,.source-grid,.check-grid,.path-actions,.metric-row{grid-template-columns:1fr}.path-step{grid-template-columns:36px minmax(0,1fr)}h1{font-size:1.85rem}}
