:root{--bg:#f5f2eb;--card:#fffdf9;--ink:#18252b;--muted:#647277;--line:#d9d7cf;--accent:#0f4c5c;--accent2:#e7f0ef;--accent-warm:#c97b3a;--good:#236b4d;--bad:#a84a45;--gold:#c4a35a;--navy:#17343b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{overscroll-behavior-y:contain;margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.55}header{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 6vw;position:sticky;top:0;z-index:20}.brand{font-weight:800;letter-spacing:.12em}.sub{font-size:12px;color:var(--muted)}main{max-width:1180px;margin:0 auto;padding:34px 22px 80px}.hero{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:30px;margin-bottom:22px}.hero-home{padding:34px}.eyebrow,.stage-kicker{font-size:11px;text-transform:uppercase;letter-spacing:.13em;color:var(--muted);font-weight:800}.hero h1{font-size:36px;line-height:1.1;margin:8px 0 12px;max-width:900px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.btn{background:var(--accent);color:#fff;border:0;border-radius:10px;padding:11px 16px;font-weight:750;cursor:pointer}.ghost{background:#fff;border:1px solid var(--line);border-radius:9px;padding:9px 13px;cursor:pointer}.tag{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef1f5;font-size:11px;font-weight:800}.small{font-size:13px;color:var(--muted)}.roadmap-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}.roadmap-summary div{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fafbfc}.roadmap-summary strong{display:block;font-size:20px}.roadmap-summary span{font-size:12px;color:var(--muted)}.path-rule{display:flex;align-items:center;gap:10px;margin-top:22px;font-size:10px;letter-spacing:.12em;font-weight:800;color:var(--muted)}.path-rule i{height:2px;background:var(--line);flex:1}.roadmap-title{display:flex;align-items:end;justify-content:space-between;margin:26px 2px 12px}.roadmap-title h2{margin:3px 0 0;font-size:24px}.roadmap-title p{color:var(--muted);font-size:13px;margin:0}.roadmap{display:flex;flex-direction:column;gap:14px}.stage{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.stage-current{border-color:#aeb9c6;box-shadow:0 4px 18px rgba(30,45,60,.06)}.stage-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.stage-head h2{margin:2px 0 0;font-size:19px}.stage-head p{margin:2px 0 0;color:var(--muted);font-size:12px}.stage-count{font-size:11px;font-weight:800;color:var(--muted)}.lesson-list{padding:6px}.lesson-row{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto 18px;gap:12px;align-items:center;text-align:left;border:0;background:transparent;border-radius:11px;padding:13px 12px;cursor:pointer;color:inherit}.lesson-row:hover{background:#f7f9fb}.lesson-row.current{background:#eef2f6}.lesson-num{width:30px;height:30px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;background:#fff}.lesson-main{min-width:0}.lesson-main strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-main small{display:block;color:var(--muted);font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-status{font-size:9px;letter-spacing:.09em;font-weight:900;color:var(--muted)}.lesson-row.current .lesson-status{color:var(--accent)}.chev{font-size:20px;color:#9aa5b0}.practice-launch{margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:24px}.practice-launch h2{margin:6px 0 4px}.practice-launch p{margin:0;color:var(--muted);font-size:13px}.launch-actions{display:flex;gap:10px;flex-shrink:0}
/* Lesson reader */
.lesson-shell{max-width:1180px}.lesson-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px}.breadcrumb{font-size:11px;font-weight:800;letter-spacing:.09em;color:var(--muted);margin-bottom:8px}.breadcrumb span{padding:0 5px;color:#a2acb6}.progress-track{width:min(620px,60vw);height:6px;background:#e3e7eb;border-radius:99px;overflow:hidden}.progress-track span{display:block;height:100%;background:var(--accent);border-radius:99px}.progress-label{font-size:11px;color:var(--muted);font-weight:700}.lesson-hero{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;display:flex;gap:18px;align-items:flex-start;margin-bottom:16px}.lesson-number{font-size:42px;line-height:1;font-weight:900;color:#c5cdd5;min-width:62px}.lesson-hero h1{font-size:30px;line-height:1.15;margin:5px 0 10px}.lesson-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:12px}.lesson-content-wrap{display:grid;grid-template-columns:255px minmax(0,1fr);gap:18px;align-items:start}.lesson-rail{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;position:sticky;top:92px;max-height:calc(100vh - 115px);overflow:auto}.rail-title{font-size:10px;letter-spacing:.12em;font-weight:900;color:var(--muted);padding:8px 9px}.rail-item{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;width:100%;border:0;background:transparent;border-radius:9px;text-align:left;padding:9px;cursor:pointer;color:inherit}.rail-item span{font-size:10px;font-weight:900;color:#a0aab4;padding-top:2px}.rail-item b{font-size:11px;line-height:1.35;font-weight:650}.rail-item:hover{background:#f5f7f9}.rail-item.active{background:#e9eef4}.rail-item.active span{color:var(--accent)}.lesson-body{min-width:0}.lesson-content{margin:0 0 14px}.lesson-content h2{font-size:19px;margin-bottom:8px}.lesson-content p{margin:0}.formula{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f0f2f5;border:1px solid var(--line);border-radius:12px;padding:15px;margin:14px 0;max-width:100%;overflow:hidden}.formula pre{margin:.7rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:inherit;line-height:1.55}.callout{border-left:4px solid var(--accent);background:#f4f6f8;padding:14px 16px;border-radius:8px;margin:16px 0}.diagram{margin:16px 0;padding:12px;overflow:hidden;max-width:100%}.diagram-frame{width:100%;min-height:150px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:10px;overflow:hidden}.diagram img{display:block;width:100%;max-width:100%;height:auto;max-height:390px;object-fit:contain}.diagram figcaption{padding:10px 4px 2px;font-size:.88rem;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}.lesson-nav{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin:20px 0}.lesson-nav #nextLesson{justify-self:end}.lesson-footer-actions{display:flex;gap:10px;border-top:1px solid var(--line);padding-top:14px}.nav{display:flex;gap:10px;justify-content:space-between;margin:22px 0}.q{margin-top:20px}.option{display:block;border:1px solid var(--line);border-radius:10px;padding:12px;margin:9px 0;cursor:pointer}.option input{margin-right:9px}.input{width:100%;max-width:320px;padding:11px;border:1px solid #c8ced6;border-radius:9px;font-size:16px}.result{padding:16px;border-radius:12px;margin-top:18px;border:1px solid var(--line)}textarea{width:100%;min-height:130px;padding:12px;border:1px solid #c8ced6;border-radius:9px;font:inherit}.part{border-top:1px solid var(--line);padding:14px 0;max-width:100%;overflow-wrap:anywhere}.review button{margin-top:8px}.manual-box{margin-top:18px;padding:18px;border:1px solid #d8dee8;border-radius:14px;background:#f7f9fc}.manual-box label{display:block;margin:12px 0;font-weight:600}.manual-box .markInput{width:100px;margin-left:8px}.manual-box textarea{display:block;width:100%;min-height:80px;margin-top:8px}.notice{margin:14px 0;padding:12px;border:1px solid #d99;border-radius:10px;background:#fff4f4;font-weight:600}.solution{margin-top:18px;padding:18px;border-left:4px solid #4d6480;background:#f5f7fa;border-radius:10px;max-width:100%;overflow:hidden}.solution .part{padding:8px 0;border-bottom:1px solid #dde3ea}.solution .part:last-child{border-bottom:0}.manual-parts{border-top:1px solid #dfe5ea;margin:12px 0;padding-top:12px}.manual-part{margin:9px 0}
@media(max-width:900px){.lesson-content-wrap{grid-template-columns:1fr}.lesson-rail{position:static;max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px}.rail-title{grid-column:1/-1}.practice-launch{align-items:flex-start;flex-direction:column}.launch-actions{width:100%}.launch-actions button{flex:1}.lesson-top{align-items:flex-start}.progress-track{width:45vw}}
@media(max-width:760px){main{padding:22px 14px 60px}.hero{padding:22px}.hero-home{padding:24px 18px}.hero h1{font-size:28px}.grid{grid-template-columns:1fr}.roadmap-summary{grid-template-columns:1fr}.path-rule{font-size:8px}.roadmap-title{display:block}.roadmap-title p{margin-top:6px}.lesson-row{grid-template-columns:34px minmax(0,1fr) 18px}.lesson-status{display:none}.lesson-hero{padding:18px}.lesson-number{font-size:32px;min-width:46px}.lesson-hero h1{font-size:24px}.lesson-nav{grid-template-columns:1fr 1fr}.lesson-nav #pathway{grid-column:1/-1;grid-row:1}.lesson-nav #prevLesson{grid-column:1;grid-row:2}.lesson-nav #nextLesson{grid-column:2;grid-row:2}.progress-label{display:none}.progress-track{width:70vw}.lesson-rail{grid-template-columns:1fr}.rail-title{grid-column:auto}.diagram img{max-height:300px}}
/* v6 learning-depth and sequence UI */
.sequence-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#182535;color:#fff;border-radius:14px;padding:13px 17px;margin:0 0 14px;box-shadow:0 8px 24px rgba(20,32,45,.08)}
.sequence-banner>div{display:flex;align-items:center;gap:10px;min-width:0}.sequence-kicker{font-size:9px;letter-spacing:.13em;font-weight:900;opacity:.68}.sequence-banner strong{font-size:13px}.sequence-banner>div>span:last-child{font-size:12px;opacity:.82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sequence-arrow{opacity:.45}.sequence-step{font-size:10px;letter-spacing:.1em;font-weight:900;white-space:nowrap;opacity:.72}
.lesson-hero-main{min-width:0}.lesson-overview{max-width:850px;color:var(--muted);margin:0 0 12px;font-size:14px}.preflight-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px}.preflight-card p{margin:9px 0 0;color:var(--muted);font-size:12px}.preflight-label{display:block;font-size:9px;letter-spacing:.13em;font-weight:900;color:var(--muted);margin-bottom:8px}.preflight-card ul{margin:0;padding-left:18px}.preflight-card li{margin:4px 0;font-size:13px}.prereq-row{display:flex;flex-wrap:wrap;gap:7px}.prereq{display:inline-block;border:1px solid var(--line);background:#f7f9fb;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:750}.prereq.muted{color:var(--muted);font-weight:600}.learn-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:4px 0 12px}.learn-heading h2{font-size:22px;margin:3px 0 0}.learn-heading p{font-size:12px;color:var(--muted);margin:0;text-align:right}.lesson-content{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;align-items:start}.lesson-content .content-kicker{font-size:10px;font-weight:900;color:#a2acb6;border-right:1px solid var(--line);padding-top:3px}.lesson-content p{max-width:820px}.next-preview{border:1px solid var(--line);border-radius:14px;background:#f8fafc;padding:17px;margin-top:16px}.next-preview strong{display:block;font-size:16px;margin-bottom:3px}.next-preview p{margin:0;color:var(--muted);font-size:12px}.rail-item small{grid-column:2;color:#a0aab4;font-size:8px;letter-spacing:.08em;font-weight:900;margin-top:1px}.rail-item.visited small{color:var(--good)}
@media(max-width:900px){.sequence-banner{align-items:flex-start}.sequence-banner>div{flex-wrap:wrap}.sequence-step{margin-left:auto}.learn-heading{align-items:flex-start;flex-direction:column}.learn-heading p{text-align:left}.lesson-content{grid-template-columns:32px minmax(0,1fr)}}
@media(max-width:600px){.sequence-banner{padding:12px}.sequence-kicker{display:block}.sequence-arrow{display:none}.sequence-banner>div>span:last-child{width:100%;padding-left:0}.sequence-step{font-size:9px}.lesson-overview{font-size:13px}.preflight-card{padding:14px}.lesson-content{grid-template-columns:1fr;gap:4px}.lesson-content .content-kicker{border-right:0;border-bottom:1px solid var(--line);padding-bottom:4px}.formula{font-size:13px;padding:12px}.formula pre{line-height:1.45;overflow-x:auto;max-width:100%}.diagram-frame{min-height:100px}.diagram img{max-height:260px}}

/* v7 palette: deep teal + warm sand, designed for engineering study */
body{background:var(--bg)}
header{background:rgba(255,253,249,.96);backdrop-filter:blur(10px);border-bottom-color:var(--line)}
.brand{color:var(--navy)}
.btn{background:var(--accent);box-shadow:0 4px 12px rgba(15,76,92,.16)}
.btn:hover{filter:brightness(.96)}
.ghost:hover{border-color:#aebbb9;background:#f7faf9}
.tag{background:var(--accent2);color:var(--accent)}
.hero,.card,.stage,.lesson-rail,.lesson-hero{background:var(--card);border-color:var(--line)}
.stage-current{border-color:#7ea3a5;box-shadow:0 8px 24px rgba(23,52,59,.08)}
.stage-head{background:linear-gradient(90deg,#eef5f4 0%,#fffdf9 72%)}
.lesson-row.current{background:#e7f0ef}.lesson-row.current .lesson-status{color:var(--accent)}
.lesson-num{color:var(--accent);border-color:#b8cfcc}.lesson-row.visited .lesson-num{background:#eef5f4}
.sequence-banner{background:linear-gradient(90deg,#17343b,#0f4c5c);color:#fff}
.sequence-kicker,.sequence-step{color:#dbeceb}
.learn-heading{border-left-color:var(--accent)}
.formula{background:#eef3f1;border-color:#cddbd8}
.callout{border-left-color:var(--accent-warm);background:#fbf2e8}
.diagram{background:#fffdf9;border-color:var(--line)}
.next-preview{background:#f0f5f3;border-color:#cbdad7}
.preflight-card{background:#fffdf9;border-color:var(--line)}
.solution{border-left-color:var(--accent);background:#f0f5f3}
.manual-box{background:#fbf4eb;border-color:#e1cbb8}
.notice{background:#fff4f2;border-color:#ddb4ad}

.phase4-preview{margin:18px 0;border:1px solid #cbdad7;background:linear-gradient(135deg,#eef5f4,#fbf4eb);}.phase4-preview h2{margin:6px 0}.phase4-preview p{max-width:820px;color:var(--muted)}.phase4-track{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.phase4-track span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fffdf9;font-size:11px;font-weight:750}.phase4-preview .tag{background:#e7f0ef;color:var(--accent)}

/* v11 four-module Phase 4 architecture */
.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.module-card{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:14px;text-align:left;align-items:start;width:100%;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card);cursor:pointer;color:inherit;box-shadow:0 6px 18px rgba(20,32,45,.04)}.module-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(20,32,45,.08)}.module-card.active{border-color:#7ea3a5;box-shadow:0 10px 28px rgba(23,52,59,.10)}.module-card.module-now{background:linear-gradient(135deg,#eef5f4,#fffdf9)}.module-num{font-size:28px;font-weight:900;color:var(--accent);line-height:1}.module-status{font-size:9px;letter-spacing:.13em;font-weight:900;color:var(--accent);display:block}.module-copy h2{margin:3px 0 2px;font-size:18px}.module-copy p{margin:0 0 7px;font-weight:800;color:var(--navy)}.module-copy small{display:block;color:var(--muted);line-height:1.45}.module-progress{font-size:10px;font-weight:850;color:var(--muted);white-space:nowrap}.module-progress span{font-size:18px;margin-left:6px}.module-strip{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.module-strip span{border:1px solid var(--line);background:#fffdf9;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:800;color:var(--muted)}.module-strip span.selected{border-color:#8eb1ae;background:#e7f0ef;color:var(--accent)}.module-hero{margin-top:8px}.phase4-callout{margin:18px 0;border:1px solid #cbdad7;background:linear-gradient(135deg,#eef5f4,#fbf4eb)}.phase4-callout h2{margin:6px 0}.phase4-callout p{max-width:850px;color:var(--muted)}.phase4-track{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.phase4-track span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;background:#fffdf9;font-size:11px;font-weight:750}
@media(max-width:900px){.module-grid{grid-template-columns:1fr}.module-card{grid-template-columns:50px minmax(0,1fr)}.module-progress{grid-column:2}.module-num{font-size:24px}}
@media(max-width:600px){.module-card{padding:14px;gap:10px}.module-copy h2{font-size:16px}.module-copy small{font-size:11px}.module-progress{font-size:9px}}

/* v13 exam calibration */
.exam-btn{background:var(--accent-warm);color:#fff;border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(201,123,58,.18)}
.exam-btn:hover{filter:brightness(.97)}.exam-intro{border-top:5px solid var(--accent-warm)}.exam-badge{display:inline-block;margin:6px 0 8px;padding:7px 10px;border-radius:999px;background:#fbf2e8;color:#8b5528;font-size:10px;font-weight:900;letter-spacing:.1em}.exam-rules{margin:20px 0}.exam-rules .card{background:#fff}.exam-rules strong{display:block;margin-bottom:5px}.exam-rules p{margin:0;color:var(--muted);font-size:13px}.exam-route{display:flex;align-items:center;gap:10px;margin:20px 0;font-size:10px;font-weight:900;letter-spacing:.1em;color:var(--muted)}.exam-route i{height:2px;background:var(--line);flex:1}.exam-shell{max-width:1000px;margin:0 auto}.exam-bar{position:sticky;top:72px;z-index:10;background:rgba(255,253,249,.97);backdrop-filter:blur(10px);border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:16px}.exam-bar strong{display:block;font-size:13px;margin-top:3px}.exam-clock{font-variant-numeric:tabular-nums;font-size:22px;font-weight:900;color:var(--accent);border:1px solid #b8cfcc;border-radius:10px;padding:7px 12px;background:#eef5f4}.exam-question{margin-bottom:12px}.exam-question h1{font-size:24px;max-width:900px}.exam-progress{display:flex;justify-content:center;gap:8px;margin:12px 0}.exam-progress span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);font-size:11px;font-weight:900;background:#fff}.exam-progress span.done{background:#e7f0ef;color:var(--accent);border-color:#9dbbb7}.exam-progress span.current{background:var(--accent);color:#fff;border-color:var(--accent)}.exam-score{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin:18px 0;padding:18px;border:1px solid #cbdad7;border-radius:14px;background:#eef5f4}.exam-score strong{font-size:38px;color:var(--accent)}.exam-score span{font-size:12px;color:var(--muted)}.exam-score em{font-style:normal;font-size:11px;font-weight:900;color:#8b5528;background:#fbf2e8;padding:6px 9px;border-radius:999px}.exam-results{display:flex;flex-direction:column;gap:8px;margin:18px 0}.exam-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}.exam-result-row strong{display:block;margin-top:4px;font-size:12px}.exam-result-row>div:nth-child(2){font-size:12px;font-weight:800;white-space:nowrap}.exam-result-row button{font-size:11px}@media(max-width:700px){.exam-route{flex-wrap:wrap}.exam-route i{display:none}.exam-bar{top:72px}.exam-result-row{grid-template-columns:1fr}.exam-result-row>div:nth-child(2){white-space:normal}.exam-result-row button{width:100%}.exam-clock{font-size:18px}}

.formula-math{font-family:Georgia,'Times New Roman',serif;font-size:1.35rem;line-height:1.7;overflow-x:auto;max-width:100%;padding:.35rem 0}.formula-math sub{font-size:.7em;vertical-align:sub}.formula-math sup{font-size:.7em;vertical-align:super}
.diagram-frame{max-width:100%;overflow:hidden}.diagram-frame img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}.diagram figcaption{max-width:100%;line-height:1.45}

/* v17 timed-exam usability fixes */
.exam-intro-v2{max-width:1100px;margin:0 auto;border-top:5px solid var(--accent-warm)}
.exam-intro-head{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:28px;align-items:start}
.exam-intro-head h1{max-width:760px;margin-bottom:8px}
.exam-lead{max-width:780px;font-size:15px;line-height:1.65}
.exam-stat-card{border:1px solid var(--line);background:#eef5f4;border-radius:16px;padding:18px;display:grid;gap:3px;text-align:center}
.exam-stat-card strong{font-size:34px;color:var(--accent)}.exam-stat-card b{font-size:18px;margin-top:7px}.exam-stat-card span{font-size:11px;color:var(--muted);font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.exam-start-strip{margin:22px 0;padding:16px 18px;border:1px solid #d7c5b2;border-radius:14px;background:#fffaf4;display:flex;justify-content:space-between;gap:20px;align-items:center}
.exam-start-strip strong{display:block;margin-top:6px}.exam-route.compact{margin:0;min-width:430px}.exam-rules-v2{margin:16px 0;grid-template-columns:repeat(4,minmax(0,1fr))}.exam-rules-v2 .card{position:relative;padding-top:38px}.rule-no{position:absolute;top:12px;left:14px;font-size:10px;font-weight:900;color:var(--accent-warm);letter-spacing:.1em}
.exam-checklist{margin-top:16px;background:#fff}.exam-checklist label{display:flex;gap:10px;align-items:flex-start;margin-top:10px;font-size:13px;line-height:1.5}.exam-checklist input{margin-top:3px;accent-color:var(--accent)}.exam-intro-nav{margin-top:18px}
.exam-save-state{display:block;font-size:10px;color:var(--muted);margin-top:5px}.exam-question-meta{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.exam-question-meta span{font-size:10px;font-weight:900;letter-spacing:.08em;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted)}
.exam-nav{align-items:center}.exam-nav-right{display:flex;align-items:center;gap:12px}.exam-nav-hint{font-size:11px;color:var(--muted)}
.exam-progress-v2 button{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);font-size:11px;font-weight:900;background:#fff;cursor:pointer}.exam-progress-v2 button.done{background:#e7f0ef;color:var(--accent);border-color:#9dbbb7}.exam-progress-v2 button.current{background:var(--accent);color:#fff;border-color:var(--accent)}.exam-progress-v2 button:disabled{cursor:not-allowed;opacity:1}
@media(max-width:850px){.exam-intro-head{grid-template-columns:1fr}.exam-stat-card{grid-template-columns:auto auto;justify-content:start;gap:4px 10px;text-align:left}.exam-start-strip{flex-direction:column;align-items:stretch}.exam-route.compact{min-width:0}.exam-rules-v2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.exam-rules-v2{grid-template-columns:1fr}.exam-nav{align-items:stretch;flex-direction:column}.exam-nav-right{flex-direction:column;align-items:stretch}.exam-nav-hint{text-align:center}.exam-nav-right .btn{width:100%}.exam-clock{font-size:18px}.exam-bar{gap:8px;padding:10px}.exam-bar strong{font-size:12px}.exam-start-strip{padding:14px}.exam-route.compact{font-size:9px}}

/* v21 lesson depth + robust diagram containment */
.lesson-content p{line-height:1.72}
.lesson-content{background:var(--card)}
.diagram-frame{min-height:0;aspect-ratio:16/9;padding:0}
.diagram img{width:100%;height:auto;max-height:none;object-fit:contain}
.diagram figcaption{font-weight:550}
@media(max-width:600px){.diagram-frame{aspect-ratio:16/10}.lesson-content p{line-height:1.65}}

/* Milestone 2 integration layer */
.integration-launch{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-top:18px;padding:28px}.integration-launch h2{margin:6px 0 8px}.integration-launch p{max-width:760px}.integration-hero{padding-bottom:26px}.overall-readiness{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin:24px 0 18px}.overall-readiness strong{font-size:56px;line-height:1}.overall-readiness span{font-size:14px;text-transform:uppercase;letter-spacing:.08em;opacity:.7}.overall-readiness em{font-style:normal;padding:8px 12px;border-radius:999px;background:rgba(18,64,75,.08);font-weight:700}.next-best{padding:24px;margin-top:10px}.next-best h2{margin:8px 0;font-size:24px}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}.readiness-card{padding:22px;border:1px solid rgba(18,64,75,.12);border-radius:18px;background:#fff}.readiness-top{display:flex;gap:14px;align-items:center}.readiness-top .module-num{font-size:28px;font-weight:800}.readiness-top h3{margin:5px 0 0}.readiness-top>strong{margin-left:auto;font-size:30px}.readiness-bar{height:8px;background:rgba(18,64,75,.09);border-radius:99px;overflow:hidden;margin:18px 0 14px}.readiness-bar span{display:block;height:100%;border-radius:99px;background:currentColor}.readiness-stats{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;opacity:.8}.readiness-stats b{font-size:17px}.readiness-card>p{margin-bottom:0;font-weight:700}.integration-principles{padding:28px;margin-top:18px}.integration-principles h2{margin:7px 0 20px}.integration-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.integration-steps>div{padding:18px;border-radius:16px;background:rgba(18,64,75,.045)}.integration-steps b{display:block;font-size:12px;letter-spacing:.1em;opacity:.65}.integration-steps strong{display:block;margin:8px 0}.integration-steps p{font-size:14px;line-height:1.5;margin:0}@media(max-width:850px){.integration-grid{grid-template-columns:1fr}.integration-steps{grid-template-columns:1fr 1fr}.integration-launch{flex-direction:column;align-items:flex-start}}@media(max-width:560px){.integration-steps{grid-template-columns:1fr}.overall-readiness strong{font-size:46px}}
/* v24 diagnostic engine */
.diagnostic-panel{margin-top:18px;padding:26px}.diag-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.diag-head h2{margin:7px 0}.diag-head p{margin:0;color:var(--muted);font-size:13px}.diag-target{font-size:11px;font-weight:850;white-space:nowrap;padding:8px 10px;border:1px solid #d7c5b2;border-radius:999px;background:#fffaf4;color:#8b5528}.diag-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.diag-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}.diag-row strong{display:block;font-size:13px}.diag-row small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.diag-row>b{font-size:20px;color:var(--accent);white-space:nowrap}.diag-repeat{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.diag-repeat>strong{display:block;font-size:12px;margin-bottom:9px}.diag-chip{display:inline-block;padding:7px 10px;border-radius:999px;background:#f8ece7;border:1px solid #e7d1c6;font-size:11px;font-weight:750;margin:4px 5px 0 0;color:#7d4c37}
.next-best .btn{margin-top:12px}.readiness-card{min-width:0}.readiness-card>p{font-size:13px}
@media(max-width:700px){.diag-head{flex-direction:column}.diag-target{white-space:normal}.diag-list{grid-template-columns:1fr}}
/* Milestone 2 · targeted remediation */
.remediation-intro{max-width:1180px;margin:0 auto}
.target-plan{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:18px}
.target-plan strong{font-size:2rem}
.target-plan p{flex:1;min-width:260px;margin:0}
.target-shell{max-width:1180px;margin:0 auto}
.target-bar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0;padding:16px 20px;border:1px solid var(--line,#ddd);border-radius:18px;background:var(--surface,#fff)}
.target-bar strong{display:block;margin-top:4px}
.target-counter{font-weight:800;font-size:1.1rem}
.target-question{max-width:none}
.target-progress{display:flex;justify-content:center;gap:10px;margin:18px 0 40px}
.target-progress span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line,#ddd);font-weight:800;background:var(--surface,#fff)}
.target-progress span.current{outline:3px solid rgba(30,60,90,.12);transform:scale(1.08)}
.target-progress span.done{opacity:.55}
@media(max-width:700px){.target-bar{align-items:flex-start}.target-plan{align-items:flex-start}.target-question .nav{flex-direction:column}.target-question .nav button{width:100%}}
.adaptive-plan,.adaptive-summary{border:1px solid rgba(25,45,70,.14);background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(245,248,250,.96))}.adaptive-plan strong{display:block;font-size:1.35rem;margin:.35rem 0}.target-adaptive{font-size:.72rem;letter-spacing:.08em;padding:.35rem .55rem;border-radius:999px;background:rgba(25,45,70,.08);margin-left:.5rem}.adaptive-summary{margin:1rem 0}.adaptive-summary p{margin:.35rem 0 0}.target-bar{flex-wrap:wrap;gap:.6rem}

/* v29 mixed high-first-class examination selector */
.exam-choice{display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1rem}
.exam-choice button{border:1px solid var(--line,#d7dbe2);background:var(--surface,#fff);padding:.75rem 1rem;border-radius:12px;font:inherit;font-weight:700;cursor:pointer}
.exam-choice button:hover{transform:translateY(-1px)}
.exam-choice button.selected{outline:2px solid currentColor;outline-offset:2px}
@media(max-width:640px){.exam-choice{display:grid;grid-template-columns:1fr}.exam-choice button{width:100%}}

/* Milestone 2 · Exam Performance Analytics */
.nav-actions{display:flex;gap:10px;flex-wrap:wrap}
.analytics-hero{max-width:1180px;margin:0 auto}
.analytics-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}
.analytics-kpis .card{padding:20px}.analytics-kpis span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-weight:850}.analytics-kpis strong{display:block;font-size:32px;margin:7px 0}.analytics-kpis small{color:var(--muted)}
.analytics-action{padding:24px;margin:18px 0;background:#fffaf4;border:1px solid #d7c5b2}.analytics-action h2{margin:8px 0;font-size:21px}.analytics-action p{margin:0;color:var(--muted)}
.analytics-breakdown,.analytics-history,.analytics-modules{padding:24px;margin:18px 0}.analytics-breakdown h2,.analytics-history h2,.analytics-modules h2{margin:7px 0 18px}
.analytics-q{display:grid;grid-template-columns:minmax(0,1fr) 110px 120px;gap:15px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.analytics-q strong{display:block;margin-top:5px}.analytics-q-score{display:flex;flex-direction:column;align-items:flex-end}.analytics-q-score b{font-size:17px}.analytics-q-score span,.analytics-q-time{font-size:11px;color:var(--muted)}.analytics-q-time{text-align:right}
.analytics-history-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 120px;gap:14px;align-items:center;padding:13px 0;border-top:1px solid var(--line)}.analytics-history-row strong,.analytics-history-row small{display:block}.analytics-history-row small{color:var(--muted);font-size:11px;margin-top:3px}.analytics-history-row>b{text-align:right}.analytics-history-row>span{text-align:right;font-size:11px;color:var(--muted)}
.analytics-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.analytics-module-grid>div{border:1px solid var(--line);border-radius:14px;padding:15px;display:grid;grid-template-columns:1fr auto;gap:4px 10px}.analytics-module-grid strong{font-size:13px}.analytics-module-grid b{text-align:right;font-size:20px}.analytics-module-grid small{color:var(--muted)}.analytics-mini-bar{grid-column:1/-1;height:7px;border-radius:99px;background:rgba(18,64,75,.08);overflow:hidden;margin-top:6px}.analytics-mini-bar i{display:block;height:100%;background:currentColor;border-radius:99px}.analytics-empty{padding:24px;margin-top:20px}
@media(max-width:850px){.analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-q{grid-template-columns:1fr 100px}.analytics-q-time{grid-column:1/-1;text-align:left}.analytics-history-row{grid-template-columns:1fr auto}.analytics-history-row>span{grid-column:1/-1;text-align:left}.analytics-module-grid{grid-template-columns:1fr}}
@media(max-width:560px){.analytics-kpis{grid-template-columns:1fr}.analytics-q{grid-template-columns:1fr}.analytics-q-score{align-items:flex-start}.nav-actions{width:100%}.nav-actions button{width:100%}}

/* v32 production hardening */
.header-actions{display:flex;gap:8px;align-items:center}.import-label{display:inline-flex;align-items:center;cursor:pointer}.import-label input{display:none}.header-actions .ghost{white-space:nowrap}@media(max-width:760px){header{height:auto;min-height:72px;padding:10px 14px;gap:10px}.header-actions{flex-wrap:wrap;justify-content:flex-end}.header-actions .ghost{font-size:11px;padding:7px 9px}}

/* v33 dashboard rebuild — clean command-centre UI inspired by the approved visual direction */
:root{--dash-bg:#f4f6f7;--dash-surface:#ffffff;--dash-ink:#17262d;--dash-muted:#5f6e74;--dash-line:#dfe5e7;--dash-teal:#0e5968;--dash-teal-dark:#083d49;--dash-mint:#dff2ee;--dash-sand:#f5ead8;--dash-blue:#e5f0ff;--dash-violet:#eee8fa}
body{background:var(--dash-bg);color:var(--dash-ink)}
.site-header{height:76px;padding:0 28px;gap:22px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--dash-line);box-shadow:0 1px 0 rgba(14,52,59,.03);backdrop-filter:blur(14px)}
.brand-lockup{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;min-width:250px}.brand-lockup>b,.brand-lockup span b{display:block}.brand-lockup span:last-child b{font-size:19px;letter-spacing:.08em}.brand-lockup small{display:block;font-size:10px;color:var(--dash-muted);margin-top:1px;white-space:nowrap}.brand-mark{position:relative;width:35px;height:35px;display:block;transform:skewY(-6deg)}.brand-mark i{position:absolute;display:block;width:21px;height:9px;border:5px solid #55bcae;border-radius:3px;transform:rotate(31deg);left:2px}.brand-mark i:nth-child(1){top:2px}.brand-mark i:nth-child(2){top:12px;left:8px}.brand-mark i:nth-child(3){top:22px;left:2px}
.main-nav{display:flex;align-items:center;gap:3px;flex:1;justify-content:center}.nav-link{border:0;background:transparent;border-radius:9px;padding:10px 12px;color:#34464d;font:600 12px inherit;cursor:pointer;white-space:nowrap;transition:.16s ease}.nav-link span{font-size:15px;margin-right:6px;opacity:.85}.nav-link:hover{background:#f2f7f6;color:var(--dash-teal)}.nav-link.active{background:#e6f4f1;color:var(--dash-teal-dark);box-shadow:inset 0 0 0 1px rgba(14,89,104,.04)}.header-right{position:relative;display:flex;align-items:center}.menu-toggle{font-size:12px}.header-tools{display:none;position:absolute;right:0;top:48px;background:#fff;border:1px solid var(--dash-line);border-radius:12px;padding:8px;box-shadow:0 14px 35px rgba(15,38,45,.13);z-index:50;min-width:175px}.header-tools.open{display:flex;flex-direction:column;gap:6px}.header-tools .ghost{width:100%;text-align:left}
main{max-width:1240px;padding:22px 22px 72px}.dashboard-home{max-width:1180px;margin:0 auto}.dashboard-hero{position:relative;min-height:310px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);overflow:hidden;border-radius:17px;background:linear-gradient(100deg,#073c47 0%,#0d5663 62%,#145f6a 100%);box-shadow:0 12px 30px rgba(14,52,59,.13);color:#fff;margin-bottom:18px}.dashboard-hero-copy{position:relative;z-index:2;padding:42px 32px 34px}.dashboard-hero .eyebrow{color:#cbe2df}.dashboard-hero h1{font-size:39px;line-height:1.08;margin:10px 0 14px;letter-spacing:-.025em;max-width:650px}.dashboard-hero .lead{font-size:14px;line-height:1.65;max-width:720px;color:#e7f1f0;margin:0 0 22px}.dashboard-visual{position:absolute;inset:0 0 0 49%;display:flex;align-items:stretch;justify-content:flex-end;overflow:hidden}.dashboard-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b4b58 0%,rgba(11,75,88,.32) 35%,rgba(11,75,88,.04) 75%);z-index:1}.dashboard-visual img{height:100%;width:100%;object-fit:cover;object-position:center right;opacity:.93}.dashboard-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.hero-primary{background:#19b7a7;border:1px solid #5bd7cb;color:#062f38;box-shadow:0 7px 18px rgba(0,0,0,.15)}.hero-primary:hover{background:#27c7b7;filter:none}.hero-ghost{background:rgba(255,255,255,.02);color:#fff;border:1px solid rgba(255,255,255,.62);border-radius:9px;padding:11px 14px;font-weight:750;cursor:pointer}.hero-ghost:hover{background:rgba(255,255,255,.10)}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.dashboard-next,.dashboard-progress{min-height:245px;padding:24px 22px;border-radius:15px;box-shadow:0 5px 20px rgba(26,43,50,.045);border-color:#e2e6e7}.card-kicker,.section-label{font-size:10px;font-weight:850;letter-spacing:.09em;color:#52636a;text-transform:uppercase}.kicker-icon{font-size:16px;color:var(--dash-teal);vertical-align:-1px;margin-right:5px}.dashboard-next h2{font-size:24px;line-height:1.18;margin:16px 0 10px;max-width:520px}.dashboard-next p{font-size:13px;line-height:1.6;color:#45565d;max-width:540px;min-height:43px}.target-callout{display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #d8ebe6;background:#f1faf7;border-radius:10px;margin:16px 0}.target-callout span{font-size:20px;color:#15917f}.target-callout strong{font-size:12px;color:#12695e}.dark-action{border-radius:8px;background:#102f39;padding:10px 14px;box-shadow:none}.dark-action:hover{filter:brightness(1.08)}.time-note{display:block;color:#7a888d;font-size:10px;margin-top:8px}.dashboard-progress-row{display:grid;grid-template-columns:170px 1fr;gap:20px;align-items:center;margin-top:16px}.ring{width:160px;height:160px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#66bda9 0deg, #66bda9 calc(var(--progress, 0) * 3.6deg), #e5eaeb calc(var(--progress, 0) * 3.6deg), #e5eaeb 360deg);position:relative}.ring:before{content:"";position:absolute;inset:12px;background:#fff;border-radius:50%}.ring>div{position:relative;text-align:center}.ring strong{display:block;font-size:28px}.ring span{display:block;font-size:10px;color:#69787d}.progress-metrics{display:grid;gap:8px}.progress-metrics>div{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;border:1px solid #e3e7e8;border-radius:8px;padding:8px 10px;background:#fff}.progress-metrics span{color:#11806f}.progress-metrics b{font-size:10px;color:#6b797e;font-weight:700}.progress-metrics strong{font-size:11px}.progress-note{display:block;text-align:center;color:#758287;font-size:10px;margin-top:12px}
.dashboard-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:20px 4px 10px}.dashboard-section-head h2{font-size:21px;margin:4px 0}.dashboard-section-head p{margin:0;color:#68777c;font-size:12px;max-width:720px}.text-link{border:0;background:transparent;color:var(--dash-teal);font-weight:800;font-size:11px;cursor:pointer;padding:8px 2px;white-space:nowrap}.text-link:hover{text-decoration:underline}.dashboard-modules{grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 22px}.dashboard-modules .module-card{display:flex;flex-direction:column;position:relative;min-height:300px;padding:0;overflow:hidden;background:#fff;border-color:#e2e6e7;border-radius:13px;box-shadow:0 5px 18px rgba(26,43,50,.045);transition:transform .16s ease,box-shadow .16s ease}.dashboard-modules .module-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(26,43,50,.09)}.module-art{height:84px;width:100%;display:grid;place-items:center;font-size:58px;line-height:1;color:#4d8eb0;background:#edf5fc;font-family:Georgia,serif}.module-card.teal .module-art{background:#edf7f5;color:#327b78}.module-card.sand .module-art{background:#fbf2e3;color:#b07a37}.module-card.violet .module-art{background:#f1ecf9;color:#7751a9}.module-copy{padding:12px 14px 8px;display:flex;flex-direction:column;flex:1}.module-card-top{display:flex;align-items:center;gap:7px}.module-number{font-size:10px;font-weight:900;color:#78878c}.module-status{font-size:8px;letter-spacing:.08em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.module-copy h3{font-size:16px;line-height:1.22;margin:8px 0 5px}.module-copy p{font-size:11px;font-weight:800;color:#42545a;margin:0 0 6px}.module-copy small{font-size:10px;line-height:1.45;color:#68777c;min-height:43px}.module-card-progress{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:auto;padding-top:11px;font-size:9px}.module-card-progress b{font-size:10px}.module-card-progress span{color:#7b878c}.module-card-track{height:5px;border-radius:99px;background:#e8edef;overflow:hidden;margin-top:7px}.module-card-track i{display:block;height:100%;border-radius:99px;background:#5eb1a0}.module-card.blue .module-card-track i{background:#4e91bd}.module-card.sand .module-card-track i{background:#c89a59}.module-card.violet .module-card-track i{background:#8b6abb}.module-open{display:flex;align-items:center;justify-content:space-between;margin:8px 12px 12px;padding:9px 11px;border-radius:7px;background:#edf5ff;color:#1762a1;font-size:10px;font-weight:850}.module-card.teal .module-open{background:#e9f5f2;color:#177268}.module-card.sand .module-open{background:#fcf1df;color:#9c641c}.module-card.violet .module-open{background:#f1eafa;color:#7b4db1}.module-open b{font-size:14px}.dashboard-tools{padding:2px 0 18px}.dashboard-section-head.compact{margin-bottom:10px}.dashboard-section-head.compact h2{font-size:19px}.tool-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.tool-card{border:1px solid #e0e5e7;background:#fff;border-radius:12px;min-height:112px;padding:14px 13px;display:grid;grid-template-columns:34px 1fr 16px;gap:10px;text-align:left;align-items:start;cursor:pointer;color:inherit;box-shadow:0 4px 14px rgba(26,43,50,.035);transition:.16s ease}.tool-card:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(26,43,50,.07)}.tool-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:18px}.tool-card b{display:block;font-size:11px;margin:1px 0 5px}.tool-card small{display:block;font-size:9px;line-height:1.45;color:#68777c}.tool-card>strong{font-size:15px;align-self:end;color:#6b797e}.tool-blue .tool-icon{background:#e7f0ff;color:#3177bb}.tool-green .tool-icon{background:#e2f4ef;color:#278b7d}.tool-sand .tool-icon{background:#fff0d9;color:#c08332}.tool-purple .tool-icon{background:#eee7fb;color:#815bb4}.dashboard-foundation-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.foundation-panel,.current-module-panel{background:#fff;border:1px solid #e0e5e7;border-radius:13px;padding:20px;min-height:190px}.foundation-panel h2,.current-module-panel h2{font-size:19px;margin:8px 0}.foundation-panel p,.current-module-panel p{font-size:12px;color:#68777c;line-height:1.6;margin:0 0 14px;max-width:610px}.tag-row{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.tag-row span{font-size:9px;font-weight:800;border:1px solid #dce5e5;border-radius:999px;background:#f6faf9;padding:5px 8px;color:#47615f}.current-module-panel .dashboard-current-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:1100px){.main-nav{gap:0}.nav-link{padding:9px 8px}.brand-lockup{min-width:220px}.dashboard-modules{grid-template-columns:repeat(2,1fr)}.tool-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.site-header{padding:8px 14px;height:auto;min-height:70px;align-items:center}.brand-lockup{min-width:0}.brand-lockup small{display:none}.main-nav{order:3;width:100%;justify-content:flex-start;overflow-x:auto;flex:none;padding-bottom:2px}.site-header{flex-wrap:wrap}.header-right{margin-left:auto}.dashboard-hero{grid-template-columns:1fr;min-height:340px}.dashboard-visual{left:38%;opacity:.65}.dashboard-grid{grid-template-columns:1fr}.dashboard-progress-row{grid-template-columns:150px 1fr}.tool-grid{grid-template-columns:repeat(2,1fr)}.dashboard-foundation-row{grid-template-columns:1fr}}
@media(max-width:620px){main{padding:12px 12px 55px}.site-header{padding:8px 10px}.brand-lockup span:last-child b{font-size:16px}.brand-mark{width:31px;height:31px;transform:scale(.9) skewY(-6deg)}.menu-toggle{font-size:10px;padding:7px 8px}.nav-link{font-size:10px;padding:8px 9px}.nav-link span{font-size:13px;margin-right:3px}.dashboard-hero{min-height:470px}.dashboard-hero-copy{padding:28px 20px}.dashboard-hero h1{font-size:31px}.dashboard-hero .lead{font-size:12px}.dashboard-visual{left:0;top:230px;height:240px;opacity:.45}.hero-ghost,.hero-primary{width:100%;justify-content:center}.dashboard-actions{display:grid;grid-template-columns:1fr;width:100%}.dashboard-next,.dashboard-progress{padding:19px 17px}.dashboard-next h2{font-size:21px}.dashboard-progress-row{grid-template-columns:1fr}.ring{margin:0 auto}.progress-metrics{width:100%}.dashboard-section-head{align-items:flex-start;flex-direction:column;margin-top:16px}.dashboard-section-head .text-link{padding-left:0}.dashboard-modules{grid-template-columns:1fr}.dashboard-modules .module-card{min-height:275px}.tool-grid{grid-template-columns:1fr}.dashboard-foundation-row{grid-template-columns:1fr}.current-module-panel .dashboard-current-actions{display:grid;grid-template-columns:1fr}.current-module-panel .dashboard-current-actions button{width:100%}.header-tools{right:-2px;top:42px}}

/* v39: minimal navigation/refresh layer added on top of the stable v34 build. */
.app-back-bar{max-width:1180px;margin:0 auto 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.app-back-bar[hidden]{display:none}.app-back-bar .ghost{font-weight:750}.refresh-button{margin-left:auto}.pull-refresh-indicator{position:fixed;top:0;left:50%;transform:translate(-50%,-110%);z-index:1000;background:#fff;border:1px solid var(--line);border-radius:0 0 12px 12px;padding:8px 14px;box-shadow:0 8px 20px rgba(15,38,45,.12);font-size:12px;font-weight:800;color:var(--accent);transition:transform .18s ease;pointer-events:none}.pull-refresh-indicator.show{transform:translate(-50%,0)}@media(max-width:620px){.app-back-bar{margin-bottom:8px}.app-back-bar .ghost{padding:8px 10px;font-size:12px}}

/* v40 — AdvStructs identity + account UI */
.brand-mark{width:35px;height:35px;transform:none;background:url('logo.svg') center/contain no-repeat;border-radius:9px}
.brand-lockup span:last-child b{letter-spacing:.01em;font-size:19px}
.account-button{display:flex!important;align-items:center;justify-content:space-between;gap:8px}
.account-button #accountStatus{font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;padding:4px 6px;border-radius:999px;background:#eef3f2;color:#5f7075}
.account-button #accountStatus[data-kind="synced"]{background:#e4f4f0;color:#08746f}
.account-button #accountStatus[data-kind="syncing"]{background:#fff5df;color:#916b25}
.account-button #accountStatus[data-kind="warning"],.account-button #accountStatus[data-kind="offline"]{background:#f8ece7;color:#8b5541}
.auth-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px}.auth-modal[hidden]{display:none}.auth-backdrop{position:absolute;inset:0;background:rgba(7,30,37,.48);backdrop-filter:blur(5px)}
.auth-card{position:relative;width:min(470px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;background:#fffdfa;border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:0 30px 80px rgba(8,31,38,.22);z-index:1}.auth-close{position:absolute;right:14px;top:14px;width:34px;height:34px;border-radius:50%;font-size:20px;line-height:1}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.auth-brand img{width:46px;height:46px;border-radius:12px}.auth-brand strong{display:block;font-size:18px}.auth-brand small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.auth-card h2{font-size:28px;line-height:1.08;margin:7px 0 10px}.auth-copy{color:var(--muted);font-size:13px;line-height:1.65}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);margin:22px 0 18px}.auth-tab{border:0;background:transparent;padding:11px 8px;font-weight:800;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent}.auth-tab.active{color:var(--accent);border-bottom-color:var(--accent)}#authForm{display:grid;gap:13px}.auth-card label{display:grid;gap:6px;font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:#56676d}.auth-card input{width:100%;box-sizing:border-box;border:1px solid #ccd8d7;border-radius:10px;padding:12px 13px;font:inherit;font-size:14px;background:#fff;color:var(--ink);outline:none}.auth-card input:focus{border-color:#77aaa6;box-shadow:0 0 0 3px rgba(20,113,113,.08)}.auth-reset{margin-top:13px;padding:0;border:0;background:transparent;color:var(--accent);font-size:11px;font-weight:800;cursor:pointer}.auth-notice{min-height:20px;margin-top:13px;font-size:12px;line-height:1.45;color:var(--muted)}.auth-notice.success{color:#13736d}.auth-notice.error{color:#9a503b}.auth-notice.warning{color:#876622}.sync-checklist{display:grid;gap:8px;padding:16px;margin:18px 0;border-radius:14px;background:#f1f6f5;border:1px solid #dbe8e6;font-size:12px;color:#3e555b}.auth-actions{display:flex;gap:10px;flex-wrap:wrap}.auth-actions .btn,.auth-actions .ghost{flex:1}.pull-refresh-indicator{z-index:900}
@media(max-width:620px){.auth-card{padding:22px;border-radius:20px}.auth-card h2{font-size:24px}.auth-brand img{width:42px;height:42px}.brand-mark{width:31px;height:31px}.brand-lockup span:last-child b{font-size:16px}}
