:root{color-scheme:light}.theme-setting{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0}.theme-setting label{font-size:.9rem;margin:0}.theme-setting select{border:1px solid var(--line);border-radius:8px;min-height:44px;padding:8px 12px;background:var(--white);color:inherit}
html[data-theme=dark]{color-scheme:dark;color:#e3ece5;background:#121e19;--muted:#a4b8aa;--line:#3a5042;--white:#1b2b22;--paper:#1b2b22;--green:#193c36;--lime:#dceba8}
html[data-theme=dark] :is(a,.site-header nav button.active,.sidebar-note strong,.word-card .word-title,.word-card .word-example,.typing-metrics b,.language-trigger,.choice-audio,.activity-icon,.question-editor){color:#dceba8}
html[data-theme=dark] :is(.site-header nav button,.eyebrow,.skills,.level-number,footer,.skill-label,.activity-availability){color:#abc5af}
html[data-theme=dark] .site-header nav button.active{box-shadow:0 2px #dceba8}
html[data-theme=dark] :is(input,select,textarea,.question-editor textarea,.dashboard-filters input,.dashboard-filters select,.dashboard-student-settings input,.dashboard-student-settings select){background:#17261f;color:#e3ece5;border-color:#526854}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9bb2a2}
html[data-theme=dark] :is(.primary,.placement-card .primary,.question-grid button.current,.choice.selected .choice-letter,.skill-tabs button[aria-pressed=true],.typing-modes [aria-pressed=true],.choice-audio[aria-pressed=true],.dashboard-tabs button[aria-pressed=true]){background:#dceba8;color:#193326;border-color:#dceba8}
html[data-theme=dark] .primary:hover{background:#c7dd94}
html[data-theme=dark] :is(.secondary,.choice-letter){border-color:#526854}
html[data-theme=dark] :is(.secondary:hover,.choice:hover,.choice-audio:hover,.language-trigger:hover,.language-trigger[aria-expanded=true],.language-menu button:hover,.language-menu button:focus-visible){background:#2a3f30}
html[data-theme=dark] :is(.passage,.audio-panel,.export-panel,.teacher-feedback,.typing-home-callout,.typing-listen,.typing-target,.activity-icon,.simulation-clock,.section-confirm,.content-update,.mock-option.selected){background:#24382b;color:#dbe8dd;border-color:#53704e}
html[data-theme=dark] .choice.selected{background:#2b4430;border-color:#acc78a}
html[data-theme=dark] .question-grid button.done{background:#324b30;border-color:#6d8d5e}
html[data-theme=dark] :is(.bars i,.progress-track){background:#354735}
html[data-theme=dark] :is(.bars i.on,.progress-track>div){background:#9fbd7e}
html[data-theme=dark] .score-ring{border-color:#60804b}
html[data-theme=dark] :is(.yes,.status-pill,.typing-feedback.is-correct,.typing-target .correct){background:#2b492b;color:#c3e0ac}
html[data-theme=dark] :is(.no,.typing-target .wrong){background:#542d29;color:#ffd2c7}
html[data-theme=dark] .neutral{background:#344138;color:#c1d0bf}
html[data-theme=dark] :is(.error,.audio-status,.simulation-clock .time-low,#account-error){color:#ffafa3}
html[data-theme=dark] :is(.assisted,.ai-draft,.typing-feedback){background:#453d25;color:#efdcac}
html[data-theme=dark] .typing-keyboard{background:#15261d;border-color:#3a5042}
html[data-theme=dark] .typing-keyboard span{background:#243a2b;border-color:#4f6650;color:#dce6d8}
html[data-theme=dark] .typing-keyboard span.next-key{background:#dceba8;color:#193326}
html[data-theme=dark] .skip{background:#1b2b22;color:#dceba8}
html[data-theme=dark] :is(.account-panel,.dashboard-metrics>div,.dashboard-metrics>button,.dashboard-student-settings article,.dashboard-skills article,.dashboard-review-list article){background:#1b2b22;color:#e3ece5;border-color:#3a5042}
html[data-theme=dark] .dashboard-metrics>button{background:#2a3f2b}
html[data-theme=dark] :is(.dashboard-metrics span,.dashboard-table small,.dashboard-review-list small,.diagnostic-note,.student-facts dt,.dashboard-skills p,.dashboard-skills small,.dashboard-empty p,.dashboard-pagination,.account-privacy,.cloud-sync){color:#a4b8aa}
html[data-theme=dark] .dashboard-table th{background:#23362a;color:#b8ccba}
html[data-theme=dark] :is(.dashboard-table-wrap,.dashboard-table th,.dashboard-table td,.dashboard-review-list,.dashboard-review-list article,.dashboard-empty,.diagnostic-note,.diagnostic-evidence span,.student-facts div,.account-privacy){border-color:#3a5042}
html[data-theme=dark] .dashboard-tabs button{color:#e3ece5;border-color:#526854}
html[data-theme=dark] .dashboard-tabs button[aria-pressed=true]{color:#193326}
html[data-theme=dark] .dashboard-badge{background:#314735;color:#c9d7c8}
html[data-theme=dark] .dashboard-badge.active{background:#304a2c;color:#d0e8b7}
html[data-theme=dark] .dashboard-badge.pending{background:#403e2b;color:#e1d8ae}
html[data-theme=dark] .dashboard-badge.expired{background:#4d362c;color:#f4cfad}
html[data-theme=dark] :is(button,a,input,select,textarea,summary):focus-visible{outline-color:#b7d3a0}
@media(prefers-reduced-motion:reduce){button,.primary,.secondary{transition:none}}

html[data-theme=dark] .typing-target .cursor{border-bottom-color:#dceba8}
