:root{color-scheme:light;--accent:#466633;--tile-hover:#f0f4e5;--selected:#e5efd3;--success-bg:#e9f0dd;--success-text:#355338;--error-bg:#f8ece2;--error-text:#754828}
.topbar-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:24px;padding:7px 12px;font-size:11px;letter-spacing:0;min-height:36px}.theme-toggle[aria-pressed=true]{border-color:var(--accent);background:var(--soft)}.theme-toggle>span:first-child{font-size:16px;line-height:1}.suite-brand .theme-toggle{margin-left:auto}.report-theme{display:flex;justify-content:flex-end;margin-bottom:12px}.sidebar{overflow-y:auto}
@media screen{
html[data-theme=dark]{color-scheme:dark;--paper:#101a17;--white:#182620;--ink:#e4ebdf;--muted:#abb7ac;--line:#35473b;--green:#244f40;--lime:#d0e8a6;--soft:#223228;--orange:#efb187;--peach:#3d2c22;--shadow:0 5px 24px #0002;--accent:#bddc96;--tile-hover:#293c2e;--selected:#344b31;--success-bg:#263d2b;--success-text:#c2e5ab;--error-bg:#422d26;--error-text:#f0bc9a}
html[data-theme=dark] .sidebar{background:#14211b}
html[data-theme=dark] :is(.sidebar nav a,.side-bottom,.course-switch,.text-link,.source-chip,.suite-eyebrow,.exam-card .eyebrow,.exam-card .exam-go,.rationale strong,.match-set>span:last-child,.match-round-label,.match-steps li.current,.report a){color:var(--accent)}
html[data-theme=dark] :is(.nav-label,.side-bottom small,.page-heading .eyebrow,.sheet-card .eyebrow,.answer-box .eyebrow,.match-set .eyebrow,.match-board h3.eyebrow,.match-recall .eyebrow,.match-check .eyebrow,.match-steps,.match-slot-empty,.keyboard,.match-slot-mark,.match-part-num,.priority-num,.mastery){color:var(--muted)}
html[data-theme=dark] .sidebar nav a.active{color:#eaf2e3;background:#2c4b39}
html[data-theme=dark] .sidebar nav a:hover:not(.active){background:var(--soft)}
html[data-theme=dark] :is(.hero,.match-intro,.mock-bar,.exam-card.featured){background:#1a382c;color:#edf4e6;border-color:var(--line)}
html[data-theme=dark] .btn:not(.secondary):not(.ghost){background:var(--lime);border-color:var(--lime);color:#203020}
html[data-theme=dark] .btn.secondary{background:var(--white);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.brand-mark,.recording-list button.active){background:#2d513e;color:var(--lime)}
html[data-theme=dark] :is(.pill,.pill.green,.deck-card .deck-icon){background:#30452d;color:var(--lime)}
html[data-theme=dark] :is(.insight,.answer-box,.scope-note,.match-entry,.match-slot,.match-feedback,.match-answer-comparison>div,.match-answer-comparison>div:first-child,.ids-expanded p,.checklist label,.slide-emphasis,.segment.highlighted){background:var(--soft);border-color:var(--line);color:var(--ink)}
html[data-theme=dark] :is(.insight .eyebrow,.insight p,.cue,.match-placed,.check-bullet,.mock-score,.match-summary-number,.match-summary-number span,.segment button,.search-result button){color:var(--accent)}
html[data-theme=dark] :is(.note.warm,.rating.again){background:var(--error-bg);color:var(--error-text);border-color:#9d7051}
html[data-theme=dark] .rating.almost{background:#3b3924;color:#e3dca3;border-color:#787445}
html[data-theme=dark] :is(.rating.got,.match-feedback.correct,.match-slot.matched:disabled,.match-checklist label:has(input:checked)){background:var(--success-bg);color:var(--success-text);border-color:#64834a}
html[data-theme=dark] :is(.match-feedback.incorrect,.match-missed){background:var(--error-bg);color:var(--error-text)}
html[data-theme=dark] :is(.recall-card textarea,.mock-answer,.match-recall textarea,.ids-label textarea,.ids-label select,.ids-copy-output){background:#122018;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.plan .step,.plan small,.priority-item .arrow){color:var(--accent)}
html[data-theme=dark] .recall-card textarea:read-only{background:var(--soft)}
html[data-theme=dark] :is(.match-tile,.source-chip,.segmented,.plan .step,.cue,.match-steps li>span,.segment,.priority-list>li,.priority-item,.ids-filter select,.ids-label select){border-color:var(--line)}
html[data-theme=dark] :is(.match-tile:hover:not(:disabled),.match-slot:hover:not(:disabled)){background:var(--tile-hover);border-color:var(--accent)}
html[data-theme=dark] :is(.match-slot.selected,.match-tile.selected){background:var(--selected);border-color:var(--accent);box-shadow:0 0 0 3px #bccc9920}
html[data-theme=dark] .match-tile.used:disabled{background:var(--soft);opacity:.4}
html[data-theme=dark] :is(.segmented,.progress-track,.match-progress){background:var(--soft)}
html[data-theme=dark] .segmented button.active{background:#3b5136}
html[data-theme=dark] :is(.focus-clock.running,.search-result mark){background:var(--selected);color:var(--ink)}
html[data-theme=dark] .signal{background:var(--soft);border-color:var(--line)}
html[data-theme=dark] :is(.signal p,.signal blockquote){color:var(--ink)}
html[data-theme=dark] .scope-note .source-chip{background:var(--white)}
html[data-theme=dark] input{accent-color:var(--accent)}
html[data-theme=dark] ::selection{background:#536c3d;color:#fff}
}
@media(max-width:620px){.topbar{height:auto;min-height:60px;flex-wrap:wrap;padding-top:9px;padding-bottom:9px;gap:8px}.topbar>span{max-width:100%}.topbar-actions{margin-left:auto;gap:7px}.theme-toggle{font-size:10px;padding:6px 10px}.suite-brand{flex-wrap:wrap}.suite-brand .theme-toggle{font-size:10px}.focus-clock{min-height:34px}}
@media print{.theme-toggle,.topbar-actions,.report-theme{display:none!important}:root{color-scheme:light}}
