/* Generated by tools/build_dark_theme.py from app.css. Do not edit by hand. */
html[data-theme="dark"]{--bg:#1c2521;--paper:#171e1b;--ink:#d1e2dd;--muted:#acb3af;--line:#40554b;--orange:#d79b61;--danger:#d09992;--blue:#90acd2;--rose:#c798aa;--violet:#a899c3}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] a{color:inherit}
html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] input:focus-visible,html[data-theme="dark"] select:focus-visible,html[data-theme="dark"] textarea:focus-visible{outline:3px solid #97774a;outline-offset:3px}
html[data-theme="dark"] #sidebar{background:var(--green);color:#edf2e7}
html[data-theme="dark"] .brand{text-decoration:none}
html[data-theme="dark"] .brand small{color:#adbbaf}
html[data-theme="dark"] .brandmark{background:var(--lime);color:var(--green);border-radius:12px}
html[data-theme="dark"] .nav-label{color:#a6b9aa}
html[data-theme="dark"] nav a{border-radius:8px;text-decoration:none;color:#cad6ca}
html[data-theme="dark"] nav a.active{background:#335448;color:var(--lime)}
html[data-theme="dark"] nav a:hover{background:#2b5043}
html[data-theme="dark"] .sidebar-bottom{color:#b7c5b7}
html[data-theme="dark"] .sidebar-bottom p{border-top:1px solid #456256}
html[data-theme="dark"] #identity{color:#fff}
html[data-theme="dark"] .link{border:0;background:none;color:inherit;text-decoration:underline}
html[data-theme="dark"] .topbar{border-bottom:1px solid var(--line);color:var(--muted)}
html[data-theme="dark"] footer{color:var(--muted);border-top:1px solid var(--line)}
html[data-theme="dark"] .eyebrow{color:#a9b4a9}
html[data-theme="dark"] .muted,html[data-theme="dark"] .subtext{color:var(--muted)}
html[data-theme="dark"] .lead{color:#b2bbb4}
html[data-theme="dark"] .badge,html[data-theme="dark"] .tag{border-radius:5px;background:#212c27}
html[data-theme="dark"] .tag{background:#1f2823}
html[data-theme="dark"] .hero h1 em{color:#b2c4ab}
html[data-theme="dark"] .hero-note{color:var(--muted)}
html[data-theme="dark"] .hero-note:before{color:#b6c69c}
html[data-theme="dark"] .day-card{background:#212c26;border:1px solid #525a42;border-radius:18px}
html[data-theme="dark"] .day-card small{color:#acb5a5}
html[data-theme="dark"] .progress-track{background:#32382a;border-radius:8px}
html[data-theme="dark"] .button{border:1px solid var(--green);background:var(--green);color:white;border-radius:7px;text-decoration:none}
html[data-theme="dark"] .button.secondary{background:transparent;color:var(--green);border-color:#496155}
html[data-theme="dark"] .button.light{background:var(--lime);color:var(--green);border-color:var(--lime)}
html[data-theme="dark"] .button.danger{background:var(--danger);border-color:var(--danger)}
html[data-theme="dark"] .metric{background:var(--paper);border:1px solid var(--line);border-radius:10px}
html[data-theme="dark"] .metric small{color:var(--muted)}
html[data-theme="dark"] .panel,html[data-theme="dark"] .module-card{border:1px solid var(--line);border-radius:12px;background:var(--paper)}
html[data-theme="dark"] .module-card:first-child{border-color:#616d50}
html[data-theme="dark"] .module-card p{color:var(--muted)}
html[data-theme="dark"] .note{background:#202a25;border-left:3px solid #757d61;border-radius:4px}
html[data-theme="dark"] .notice{background:#222d27;border-radius:8px}
html[data-theme="dark"] .notice.bad{background:#2b231f;color:#daa9a2}
html[data-theme="dark"] .filters{background:#202a25;border-radius:10px}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#161d1a;border:1px solid #475e52;border-radius:6px;color:var(--ink)}
html[data-theme="dark"] .error{color:var(--danger)}
html[data-theme="dark"] table{border-collapse:collapse}
html[data-theme="dark"] th{color:var(--muted);border-bottom:1px solid var(--line)}
html[data-theme="dark"] td{border-bottom:1px solid var(--line)}
html[data-theme="dark"] td small{color:var(--muted)}
html[data-theme="dark"] .table-wrap{background:var(--paper);border:1px solid var(--line);border-radius:10px}
html[data-theme="dark"] .der{color:var(--blue)}
html[data-theme="dark"] .die{color:var(--rose)}
html[data-theme="dark"] .das{color:var(--violet)}
html[data-theme="dark"] .rule-card{border:1px solid var(--line);background:var(--paper);border-radius:10px}
html[data-theme="dark"] .rule-card details{color:var(--muted)}
html[data-theme="dark"] .exercise{background:var(--paper);border:1px solid var(--line);border-radius:18px}
html[data-theme="dark"] .exercise .translation{color:var(--muted)}
html[data-theme="dark"] .answer-buttons button{border-radius:9px;background:#1b2420;border:1px solid #485f53}
html[data-theme="dark"] .answer-buttons button:hover{background:var(--lime)}
html[data-theme="dark"] .answer-buttons small{color:#939c8e}
html[data-theme="dark"] .hint{border-left:3px solid #798360;background:#1e2823}
html[data-theme="dark"] .result-correct{background:#202b26;border:1px solid #5e6a4f}
html[data-theme="dark"] .result-wrong{background:#28221f;border:1px solid #694f41}
html[data-theme="dark"] .session-top{color:var(--muted)}
html[data-theme="dark"] .empty{color:var(--muted)}
html[data-theme="dark"] .auth{background:var(--paper);border:1px solid var(--line);border-radius:16px}
html[data-theme="dark"] #toast{background:#2d4a3e;color:#fff;border-radius:9px;box-shadow:0 10px 30px #0002}
html[data-theme="dark"] dialog{border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink)}
html[data-theme="dark"] dialog::backdrop{background:#142b2266}
html[data-theme="dark"] .coverage>div{background:#1f2924;border-radius:8px}
html[data-theme="dark"] .list-row{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .list-row small{color:var(--muted)}
@media(max-width:850px){html[data-theme="dark"] #menu-toggle{border:1px solid #6b7870;border-radius:8px;background:#2b5043;color:#fff}}
@media(max-width:850px){html[data-theme="dark"] .menu-toggle[aria-expanded="true"]{background:#335448;color:var(--lime)}}
@media(max-width:850px){html[data-theme="dark"] #nav{border-top:1px solid #456256}}
html[data-theme="dark"] #nav>.settings-link{border-top:1px solid #527263;border-radius:0;color:#fff;background:#264c3e}
html[data-theme="dark"] .grammar-example-grid article{border:1px solid var(--line);border-radius:8px}
html[data-theme="dark"] .grammar-gloss{color:#b2b9b6}
html[data-theme="dark"] .grammar-ending{background:#444e23;color:#cfe7e1;border-radius:3px}
html[data-theme="dark"] .word-choices button{border:1px solid #485f53;background:#1b2420;border-radius:9px}
html[data-theme="dark"] .word-choices button:hover{background:var(--lime)}
html[data-theme="dark"] .word-choices small{color:#788b78}
html[data-theme="dark"] .linked-words{background:#1e2823;border:1px solid #42574d;border-radius:9px}
html[data-theme="dark"] .linked-words small{color:var(--muted)}
html[data-theme="dark"] .choice-pair fieldset{border:0}
html[data-theme="dark"] .choice-article-grid label,html[data-theme="dark"] .choice-words label{border:1px solid #485f53;border-radius:9px;background:#1b2420}
html[data-theme="dark"] .choice-article-grid label:has(input:checked),html[data-theme="dark"] .choice-words label:has(input:checked){background:var(--lime);border-color:var(--green)}
html[data-theme="dark"] .level-picker{border:0}
html[data-theme="dark"] .level-picker label{border:1px solid var(--line);background:var(--paper);border-radius:7px}
html[data-theme="dark"] .level-picker label:has(input:checked){border-color:var(--green);background:var(--lime)}
html[data-theme="dark"] .rule-feedback{border:1px solid var(--line);border-radius:9px;background:#1a221e}
html[data-theme="dark"] .rule-feedback-item{border-top:1px solid var(--line)}
html[data-theme="dark"] .rule-feedback h3 small{color:var(--muted)}
html[data-theme="dark"]{--article-der:#94b3e2;--article-die:#d88f95;--article-das:#b3e2c4}
html[data-theme="dark"] .der{color:var(--article-der)}
html[data-theme="dark"] .die{color:var(--article-die)}
html[data-theme="dark"] .das{color:var(--article-das)}
html[data-theme="dark"] .article-token{border-radius:4px}
html[data-theme="dark"] .article-token.der{color:var(--article-der);background:#1b1d23}
html[data-theme="dark"] .article-token.die{color:var(--article-die);background:#19211d}
html[data-theme="dark"] .article-token.das{color:var(--article-das);background:#1d2622}
html[data-theme="dark"] .answer-buttons button.der,html[data-theme="dark"] .choice-article-grid label:has(input[value=der]:checked){color:var(--article-der);border-color:#3f5577;background:#1b1d23}
html[data-theme="dark"] .answer-buttons button.die,html[data-theme="dark"] .choice-article-grid label:has(input[value=die]:checked){color:var(--article-die);border-color:#6e3c3e;background:#19211d}
html[data-theme="dark"] .answer-buttons button.das,html[data-theme="dark"] .choice-article-grid label:has(input[value=das]:checked){color:var(--article-das);border-color:#496a52;background:#1d2622}
html[data-theme="dark"] .hint-cue{background:#433717;color:#f1e3bf;border-radius:3px}
html[data-theme="dark"] .word-rule-part{border-bottom:.12em solid currentColor;border-radius:.12em}
html[data-theme="dark"] .word-rule-part.der{color:var(--article-der);background:#1c222a}
html[data-theme="dark"] .word-rule-part.die{color:var(--article-die);background:#291d1e}
html[data-theme="dark"] .word-rule-part.das{color:var(--article-das);background:#212c26}
html[data-theme="dark"] .exercise .word-choices button{color:var(--ink);-webkit-text-fill-color:var(--ink)}
html[data-theme="dark"] .exercise .choice-words .word-choices label{color:var(--ink)}
html[data-theme="dark"] .exercise .choice-words .word-choices label span{color:var(--ink);-webkit-text-fill-color:var(--ink)}
html[data-theme="dark"] .course-unit,html[data-theme="dark"] .reference-index>a,html[data-theme="dark"] .reference-index>span{border:1px solid var(--line);border-radius:10px;background:var(--paper);text-decoration:none}
html[data-theme="dark"] .course-unit.is-planned,html[data-theme="dark"] .reference-index .is-planned{background:#202a25;color:#b6bcb8}
html[data-theme="dark"] .course-unit.is-planned .badge{background:#27332d}
html[data-theme="dark"] .reference-index small{color:var(--muted)}
html[data-theme="dark"] .pronoun-form fieldset{border:1px solid var(--line);border-radius:8px}
html[data-theme="dark"] .pronoun-group{background:var(--paper);border:1px solid var(--line);border-radius:10px}
html[data-theme="dark"] .pronoun-group th[scope=row]{color:var(--ink)}
html[data-theme="dark"] .pronoun-group td small{color:var(--muted)}
html[data-theme="dark"] .foundation-index{background:var(--paper);border:1px solid var(--line);border-radius:12px}
html[data-theme="dark"] .course-step{color:var(--muted)}
html[data-theme="dark"] .pronoun-gloss{color:#b6beba}
html[data-theme="dark"] .foundation-start fieldset{border:1px solid var(--line);border-radius:8px}
html[data-theme="dark"] .foundation-sentence strong{background:#292e21;border-radius:4px}
html[data-theme="dark"] .foundation-table th[scope=row]{color:var(--ink)}
html[data-theme="dark"] .system-update{border-color:#596450}
html[data-theme="dark"] .update-state{border:1px solid var(--line);border-radius:8px;background:#1d2622}
html[data-theme="dark"] .update-state.is-good{background:#212c26;border-color:#5b6b4e}
html[data-theme="dark"] .update-state.is-bad{background:#29221f;border-color:#6a4b40}
html[data-theme="dark"] .update-state small{color:var(--muted)}
html[data-theme="dark"] .update-preview{border-top:1px solid var(--line)}
html[data-theme="dark"] .alphabet-grid article{border:1px solid var(--line);border-radius:10px;background:var(--paper)}
html[data-theme="dark"] .alphabet-grid b{color:var(--green)}
html[data-theme="dark"] .alphabet-grid small{color:var(--muted)}
html[data-theme="dark"] .alphabet-grid button{border:0;border-radius:50%;background:var(--green);color:#fff}
html[data-theme="dark"] .reading-rule{border:1px solid var(--line);border-radius:12px;background:var(--paper)}
html[data-theme="dark"] .reading-rule small{color:var(--muted)}
html[data-theme="dark"] .reading-word,html[data-theme="dark"] .reading-question{color:var(--ink)}
html[data-theme="dark"] .reading-word mark,html[data-theme="dark"] .reading-question mark{background:#556123;color:var(--ink);border-radius:3px}
html[data-theme="dark"] .listen-main{border:0;border-radius:12px;background:var(--green);color:#fff}
html[data-theme="dark"] .verb-table th small{color:var(--muted)}
html[data-theme="dark"] .sentence-patterns article{background:var(--paper);border:1px solid var(--line);border-radius:10px}
html[data-theme="dark"] .question-words span{border:1px solid var(--line);border-radius:7px;background:var(--paper)}
html[data-theme="dark"] .sentence-cue{background:var(--paper);border:1px dashed var(--line);border-radius:10px}
html[data-theme="dark"] .sentence-translation{color:var(--muted)}
html[data-theme="dark"] .sentence-choices button{border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);-webkit-text-fill-color:var(--ink)}
html[data-theme="dark"] .sentence-choices button:hover,html[data-theme="dark"] .sentence-choices button:focus-visible{border-color:var(--accent);background:#1e2823}
html[data-theme="dark"] .error-kind{border-left:3px solid var(--danger);background:#19221e}
html[data-theme="dark"] .reading-passage{border-left:3px solid #527b6e;background:#1a231f;color:#cfe7e1}
html[data-theme="dark"] .pronoun-group>summary{color:#cfe7e1}
html[data-theme="dark"] .pronoun-group>summary::before{color:#adc6be}
html[data-theme="dark"] .pronoun-group[open]>summary{border-bottom:1px solid #43594e}
html[data-theme="dark"] .pronoun-group>summary:focus-visible{outline:3px solid #547966;outline-offset:5px;border-radius:4px}
html[data-theme="dark"] .lesson-rule{border-left:4px solid #527b6e}
html[data-theme="dark"] .lesson-principle{background:#1e2722;border:1px solid #43584e;border-radius:9px}
html[data-theme="dark"] .lesson-formula{background:#19211d;border-radius:5px;color:#c9d6ca}
html[data-theme="dark"] .lesson-example{background:#171f1b}
html[data-theme="dark"] .case-badge{border:1px solid currentColor;border-radius:5px}
html[data-theme="dark"] .case-nom{color:#c0cbd5;background:#1c2521}
html[data-theme="dark"] .case-akk{color:#f4c2a0;background:#28221b}
html[data-theme="dark"] .case-dat{color:#bea2d7;background:#1c2420}
html[data-theme="dark"] .case-gen{color:#b0eff4;background:#1e2823}
html[data-theme="dark"] .case-legend{border:1px dashed #4c6458;border-radius:8px;background:#19211d}
html[data-theme="dark"] .no-case-colors .case-badge{color:#ccd6d2;background:#1c2420;border-color:#6a8c7b}
@media(forced-colors:active){html[data-theme="dark"] .case-badge{border:1px solid CanvasText;color:CanvasText;background:Canvas}}
html[data-theme="dark"] .article-token.plural-form{color:#c3ccc9;background:#1d2722}
html[data-theme="dark"] .rule-card{border-top:3px solid #718379}
html[data-theme="dark"] .production-task{border:1px solid #465c51;border-radius:10px;background:#171f1b;color:#cfe7e1}
html[data-theme="dark"] .production-task small{color:#b7c2bd}
html[data-theme="dark"] .production-task[aria-pressed=true]{border:2px solid #527b6e;background:#1d2722}
html[data-theme="dark"] .production-task:focus-visible{outline:3px solid #527b6e;outline-offset:3px}
html[data-theme="dark"] .writing-phrase,html[data-theme="dark"] .ai-review-card{border-top:1px solid var(--line,#43584d)}
html[data-theme="dark"] .answer-singular{color:var(--muted)}
html[data-theme="dark"] .text-size button{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:6px}
html[data-theme="dark"] .nav-today{background:#2b5043;color:#fff!important}
html[data-theme="dark"] .nav-today.active{background:var(--lime);color:var(--green)!important}
html[data-theme="dark"] .nav-group>summary{color:#a6b9aa;border-radius:6px}
html[data-theme="dark"] .nav-group>summary:hover{color:#fff}
html[data-theme="dark"] .today-hero h1 em{color:#b2c4ab}
html[data-theme="dark"] .today-goal{background:#212c26;border:1px solid #525a42;border-radius:18px}
html[data-theme="dark"] .today-goal strong small{color:var(--muted)}
html[data-theme="dark"] .today-step{background:var(--paper);border:1px solid var(--line);border-left:4px solid #757d61;border-radius:12px}
html[data-theme="dark"] .today-icon{border-radius:50%;background:#1f2823}
html[data-theme="dark"] .today-step.kind-mistakes{border-left-color:var(--danger)}
html[data-theme="dark"] .kind-mistakes .today-icon{background:#2b231f;color:var(--danger)}
html[data-theme="dark"] .today-step.kind-review{border-left-color:var(--blue)}
html[data-theme="dark"] .kind-review .today-icon{background:#1b1d23;color:var(--blue)}
html[data-theme="dark"] .today-step.kind-new{border-left-color:#628056}
html[data-theme="dark"] .kind-new .today-icon{background:var(--lime);color:var(--green)}
html[data-theme="dark"] .today-step.kind-writing,html[data-theme="dark"] .today-step.kind-ai{border-left-color:var(--orange)}
html[data-theme="dark"] .topic-groups>span{color:var(--muted)}
html[data-theme="dark"] .topic-groups .tag{text-decoration:none}
html[data-theme="dark"] .topic-groups .tag.is-current{background:var(--green);color:#fff}
html[data-theme="dark"] .preset-target{box-shadow:0 0 0 3px #444e23}
html[data-theme="dark"] .foundation-index li a{text-decoration:none;border-radius:8px}
html[data-theme="dark"] .foundation-index li a:hover{background:#1f2823}
html[data-theme="dark"] .foundation-index li small{color:var(--muted)}
html[data-theme="dark"] .theme-toggle{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:6px}
html[data-theme="dark"] .context-gap{border-bottom:3px solid var(--orange);color:transparent}
html[data-theme="dark"] .context-result mark{background:#292e21;color:inherit;border-radius:4px}
html[data-theme="dark"] .it-topics .tag{text-decoration:none}
html[data-theme="dark"] .it-topics small{color:var(--muted)}
html[data-theme="dark"] .it-lesson .formula{background:#1e2823;border-radius:8px}
html[data-theme="dark"] .it-pairs td small{color:var(--muted)}
html[data-theme="dark"] .it-phrase{background:var(--paper);border:1px solid var(--line);border-radius:12px}
html[data-theme="dark"] .it-ru{color:var(--muted)}
html[data-theme="dark"] .it-note{color:var(--muted)}
html[data-theme="dark"] .it-mnemonic{background:#28241b;border-radius:8px}
html[data-theme="dark"] .it-word{border:1px solid var(--line);background:#1a231f;border-radius:8px;color:var(--ink)}
html[data-theme="dark"] .it-word small{color:var(--muted)}
html[data-theme="dark"] .it-word:hover{border-color:#757d61}
html[data-theme="dark"] .build-line{border:2px dashed var(--line);border-radius:12px}
html[data-theme="dark"] .build-line.is-empty:before,html[data-theme="dark"] .build-line:empty:before{color:var(--muted)}
html[data-theme="dark"] .build-tile{border:1px solid #485f53;background:#1b2420;color:var(--ink);border-radius:10px}
html[data-theme="dark"] .build-tile:hover{background:var(--lime)}
html[data-theme="dark"] .build-line .build-tile{background:#292e21;border-color:#757d61}
html[data-theme="dark"] .it-why{color:var(--muted)}
html[data-theme="dark"] .it-dialogue{background:var(--paper);border:1px solid var(--line);border-radius:12px}
html[data-theme="dark"] .it-line{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .it-line:last-child{border-bottom:0}
html[data-theme="dark"] .it-who{color:var(--muted)}
html[data-theme="dark"] .it-line.me .it-who{color:var(--green)}
html[data-theme="dark"] .weight{color:#e7c482}
html[data-theme="dark"] .weight-dot{color:#e7c482}
html[data-theme="dark"] .node-chip{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:999px;text-decoration:none}
html[data-theme="dark"] .node-chip:hover{border-color:#757d61;background:#1c2521}
html[data-theme="dark"] .node-chip.is-current{background:var(--green);color:#fff;border-color:var(--green)}
html[data-theme="dark"] .node-chip small{color:var(--muted)}
html[data-theme="dark"] .node-mastery small{color:var(--muted)}
html[data-theme="dark"] .node-main .formula{background:#1e2823;border-radius:8px}
@media(max-width:600px){html[data-theme="dark"] .frames tr{border-bottom:1px solid var(--line)}}
@media(max-width:600px){html[data-theme="dark"] .frames td{border:0}}
html[data-theme="dark"]{--muted:#b6bebb;--ink-2:#c1cac6;--ok:#b4e0c6;--ok-bg:#1d2622;--retry:#f2ca98;--retry-bg:#26221b}
html[data-theme="dark"] .eyebrow{color:var(--muted)}
html[data-theme="dark"] .lead{color:var(--ink-2)}
html[data-theme="dark"] .muted,html[data-theme="dark"] .subtext{color:var(--muted)}
html[data-theme="dark"] .note{color:var(--ink-2)}
html[data-theme="dark"] .hint{color:var(--ink)}
html[data-theme="dark"] .panel,html[data-theme="dark"] .module-card,html[data-theme="dark"] .metric,html[data-theme="dark"] .rule-card,html[data-theme="dark"] .today-step,html[data-theme="dark"] .it-phrase,html[data-theme="dark"] .it-dialogue{border-radius:var(--radius)}
html[data-theme="dark"] .panel{box-shadow:0 1px 2px #1d2b250d}
html[data-theme="dark"] .exercise{border-radius:var(--radius-lg);box-shadow:var(--shadow);border-color:#3d5147}
html[data-theme="dark"] .task-prompt{color:var(--ink-2)}
html[data-theme="dark"] .result-correct,html[data-theme="dark"] .result-wrong{background:var(--paper)}
html[data-theme="dark"] .result-correct{border:1px solid #41564b;border-top:5px solid var(--ok)}
html[data-theme="dark"] .result-wrong{border:1px solid #625237;border-top:5px solid var(--retry)}
html[data-theme="dark"] .result-badge{border-radius:999px}
html[data-theme="dark"] .result-badge.is-ok{color:var(--ok);background:var(--ok-bg)}
html[data-theme="dark"] .result-badge.is-retry{color:var(--retry);background:var(--retry-bg)}
html[data-theme="dark"] .your-answer{color:var(--ink-2)}
html[data-theme="dark"] .your-answer s{text-decoration-color:var(--retry);text-decoration-thickness:2px}
html[data-theme="dark"] .error-kind{border-left-color:var(--retry);background:var(--retry-bg)}
html[data-theme="dark"] .sentence-choices button,html[data-theme="dark"] .word-choices button{border-radius:10px}
html[data-theme="dark"] .button{border-radius:10px}
html[data-theme="dark"] .today-step.kind-mistakes{border-left-color:var(--retry)}
html[data-theme="dark"] .kind-mistakes .today-icon{background:var(--retry-bg);color:var(--retry)}
@media(max-width:500px){html[data-theme="dark"] .exercise{box-shadow:none}}
html[data-theme="dark"] .how-details summary{color:var(--ink-2)}
html[data-theme="dark"] .slot-card{background:var(--paper);border:1px solid var(--line);border-top:4px solid #5b7267;border-radius:var(--radius)}
html[data-theme="dark"] .slot-card.slot-pos1{border-top-color:#4f8a72}
html[data-theme="dark"] .slot-card.slot-end{border-top-color:#1f5a46}
html[data-theme="dark"] .slot-diagram span{border:1px solid var(--line);border-radius:6px}
html[data-theme="dark"] .slot-diagram .is-verb{background:#444e23;color:#cfe7e1;border-color:#75824b}
html[data-theme="dark"] .slot-badge{border-radius:999px;background:#1f2823;color:var(--ink)}
html[data-theme="dark"] .modal-forms th{color:var(--ink-2)}
html[data-theme="dark"] .it-clause{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .it-trio{border:1px solid var(--line);border-left:4px solid #4f8a72;border-radius:10px;background:var(--paper)}
html[data-theme="dark"] .it-trio .it-clause:last-child{border-bottom:0}
html[data-theme="dark"] .modal-forms th{color:var(--ink-2)}
html[data-theme="dark"] .slot-card.prefix-sep{border-top-color:#4f8a72}
html[data-theme="dark"] .slot-card.prefix-insep{border-top-color:#1f5a46}
html[data-theme="dark"] .slot-card.prefix-both{border-top-color:#5b7267}
html[data-theme="dark"] .slot-badge.prefix-sep,html[data-theme="dark"] .slot-badge.prefix-insep,html[data-theme="dark"] .slot-badge.prefix-both{background:#1f2823}
@media(max-width:600px){html[data-theme="dark"] .prefix-verbs tr,html[data-theme="dark"] .verb-pairs tr{border-bottom:1px solid var(--line)}}
@media(max-width:600px){html[data-theme="dark"] .prefix-verbs td,html[data-theme="dark"] .verb-pairs td{border:0}}
html[data-theme="dark"] .prefix-verbs .meaning-row th{background:#1e2823;color:var(--ink)}
html[data-theme="dark"] .link-kind{color:var(--ink-2)}
html[data-theme="dark"] .term-link{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:1px}
html[data-theme="dark"] .term-link:hover{text-decoration-style:solid}
html[data-theme="dark"] .fn-code{background:#1e2823;color:var(--ink);border-radius:10px}
html[data-theme="dark"] .fn-kw{color:#bde5d7}
html[data-theme="dark"] .fn-comment{color:var(--muted)}
html[data-theme="dark"] .fn-mark{color:var(--muted)}
html[data-theme="dark"] .node-chip.is-here{border-color:var(--green)}
html[data-theme="dark"] .route-state{border-radius:999px;color:var(--muted);border:1px solid var(--line)}
html[data-theme="dark"] .route-state.state-fix{color:var(--retry);background:var(--retry-bg);border-color:transparent}
html[data-theme="dark"] .route-state.state-done{color:var(--ok);background:var(--ok-bg);border-color:transparent}
html[data-theme="dark"] .route-state.state-progress{color:var(--ink-2)}
html[data-theme="dark"] .route-item{border-radius:10px}
html[data-theme="dark"] .route-item.is-here{background:#1e2823;outline:2px solid var(--green)}
html[data-theme="dark"] .route-item.is-next{background:#1a231f}
html[data-theme="dark"] .today-step.kind-weak{border-left-color:var(--retry)}
html[data-theme="dark"] .kind-weak .today-icon{background:var(--retry-bg);color:var(--retry)}
html[data-theme="dark"] .text-ru{color:var(--muted)}
html[data-theme="dark"] .text-mark{color:inherit;text-decoration:none;background:#2a2e1f;border-bottom:2px solid #819259;border-radius:3px}
html[data-theme="dark"] .text-mark:hover,html[data-theme="dark"] .text-mark:focus-visible{background:#3d4522}
html[data-theme="dark"] .reading-text.marks-off .text-mark{background:none;border-bottom-color:transparent}
html[data-theme="dark"] .register-triad{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper)}
html[data-theme="dark"] .register-triad dt{color:var(--muted)}
html[data-theme="dark"] .ai-topics{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper)}
html[data-theme="dark"] .button.is-loading::after{border:2px solid var(--green);border-radius:inherit}
html[data-theme="dark"] .tts-stats{color:var(--ink-2)}
html[data-theme="dark"] .tts-status .tts-ok{color:var(--ok)}
html[data-theme="dark"] .tts-status .tts-bad{color:var(--retry)}
html[data-theme="dark"] .reply-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);text-decoration:none;color:var(--ink)}
html[data-theme="dark"] .reply-card:hover{border-color:var(--green)}
html[data-theme="dark"] .reply-chip{border-radius:999px;border:1px solid var(--line);color:var(--ink-2);background:var(--paper)}
html[data-theme="dark"] .reply-chip.is-ok{border-color:var(--ok);color:var(--ok);background:var(--ok-bg)}
html[data-theme="dark"] .reply-chip.is-part,html[data-theme="dark"] .reply-chip.is-no{border-color:var(--retry);color:var(--retry);background:var(--retry-bg)}
html[data-theme="dark"] .reply-text{border-left:3px solid var(--line)}
html[data-theme="dark"] .reply-timer{color:var(--retry)}
html[data-theme="dark"] .reply-verdict{border-radius:var(--radius);border:1px solid var(--line)}
html[data-theme="dark"] .reply-verdict.is-ok{border-color:var(--ok);background:var(--ok-bg);color:var(--ok)}
html[data-theme="dark"] .reply-verdict.is-part,html[data-theme="dark"] .reply-verdict.is-no{border-color:var(--retry);background:var(--retry-bg);color:var(--retry)}
html[data-theme="dark"] .reply-err{background:var(--retry-bg);color:inherit;border-bottom:2px solid var(--retry)}
html[data-theme="dark"] .reply-points li,html[data-theme="dark"] .reply-errors li,html[data-theme="dark"] .reply-attempts li{border-top:1px solid var(--line)}
html[data-theme="dark"] .reply-points li.is-ok>span{color:var(--ok)}
html[data-theme="dark"] .reply-points li.is-part>span,html[data-theme="dark"] .reply-points li.is-no>span{color:var(--retry)}
html[data-theme="dark"] .reply-wrong{text-decoration:line-through;text-decoration-color:var(--retry)}
html[data-theme="dark"] .prevoice-list{border:0}
html[data-theme="dark"] .prevoice-row{border-top:1px solid var(--line)}
html[data-theme="dark"] .prevoice-count{color:var(--ink-2)}
html[data-theme="dark"] .prevoice-job{border:1px solid var(--line);border-radius:10px;background:#1d2622}
html[data-theme="dark"] .prevoice-job.is-running{border-color:#5b6b4e;background:#202a25}
html[data-theme="dark"] .prevoice-job .tts-ok{color:var(--ok)}
html[data-theme="dark"] .prevoice-job .tts-bad{color:var(--retry)}
html[data-theme="dark"] .listen-turn{border-bottom:1px solid var(--line);border-left:3px solid transparent}
html[data-theme="dark"] .listen-turn:last-child{border-bottom:0}
html[data-theme="dark"] .listen-turn.speaking{border-left-color:var(--green);background:var(--ok-bg)}
html[data-theme="dark"] .listen-who{color:var(--ink-2)}
html[data-theme="dark"] .dd-wrong,html[data-theme="dark"] .dd-case,html[data-theme="dark"] .dd-missing{color:var(--retry);background:var(--retry-bg);border-radius:4px}
html[data-theme="dark"] .dd-wrong s,html[data-theme="dark"] .dd-case s{color:var(--muted);text-decoration-color:var(--retry)}
html[data-theme="dark"] .dd-case{border-bottom:2px dotted var(--retry)}
html[data-theme="dark"] .dd-missing{border-bottom:2px dashed var(--retry)}
html[data-theme="dark"] .dd-extra{color:var(--muted);text-decoration-color:var(--retry);text-decoration-thickness:2px}
html[data-theme="dark"] .dd-translit{border-bottom:1px dotted var(--ok)}
html[data-theme="dark"] .dictation-legend{color:var(--ink-2)}
html[data-theme="dark"] .speak-now{border:1px solid var(--line);border-left:4px solid var(--green);border-radius:10px;background:var(--ok-bg);box-shadow:0 8px 24px #0003}
html[data-theme="dark"] .speak-pause{border-radius:8px;background:var(--line)}
html[data-theme="dark"] .speak-pause-bar{background:var(--green)}
html[data-theme="dark"] .speak-turn{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .speak-turn:last-child{border-bottom:0}
html[data-theme="dark"] .speak-who{color:var(--ink-2)}
html[data-theme="dark"] .speak-who small{color:var(--muted)}
html[data-theme="dark"] .speak-line{border-left:3px solid transparent}
html[data-theme="dark"] .speak-line.is-now{border-left-color:var(--green);background:var(--ok-bg);border-radius:0 8px 8px 0}
html[data-theme="dark"] .speak-ru{color:var(--ink-2)}
html[data-theme="dark"] .speak-marks [aria-pressed="true"][data-rating="ok"]{background:var(--ok-bg);border-color:var(--ok);color:var(--ok)}
html[data-theme="dark"] .speak-marks [aria-pressed="true"][data-rating="again"]{background:var(--retry-bg);border-color:var(--retry);color:var(--retry)}
html[data-theme="dark"] .speak-rec.is-recording{border-color:var(--danger);color:var(--danger)}
html[data-theme="dark"] .speak-wave{color:var(--ink-2)}
html[data-theme="dark"] .speak-wave.is-model svg{fill:var(--muted)}
html[data-theme="dark"] .speak-wave.is-mine svg{fill:var(--green)}
html[data-theme="dark"] .speak-turn.is-mine,html[data-theme="dark"] .listen-turn.is-mine,html[data-theme="dark"] .it-line.me{background:#1d2622;border-left:4px solid #83915a;border-radius:10px}
html[data-theme="dark"] .speak-turn.is-mine .speak-who,html[data-theme="dark"] .listen-turn.is-mine .listen-who,html[data-theme="dark"] .it-line.me .it-who{background:#444e23;color:#daebc7;border-radius:999px}
html[data-theme="dark"] .listen-turn.is-mine.speaking{background:var(--ok-bg);border-left-color:var(--green)}
html[data-theme="dark"] .speak-line.is-now{background:var(--paper);box-shadow:0 0 0 2px var(--green);border-radius:8px}
html[data-theme="dark"] .speak-review{border:1px solid var(--line);border-radius:10px;background:var(--paper)}
html[data-theme="dark"] .speak-review.is-clean{border-color:var(--ok);background:var(--ok-bg)}
html[data-theme="dark"] .sr-ok{color:var(--ok)}
html[data-theme="dark"] .sr-wrong{color:var(--retry);background:var(--retry-bg);border-radius:4px;border-bottom:2px solid var(--retry)}
html[data-theme="dark"] .sr-missing{color:var(--retry);border-bottom:2px dashed var(--retry)}
html[data-theme="dark"] .speak-tip{color:var(--ink-2)}
html[data-theme="dark"] .speak-attempts{color:var(--ink-2)}
html[data-theme="dark"] .speak-marks .is-suggested{box-shadow:0 0 0 2px var(--ok)}
html[data-theme="dark"] .snd-focus{background:none;color:inherit;text-decoration:underline;text-decoration-thickness:3px;text-decoration-color:#c4d495}
html[data-theme="dark"] .sound-trap{border-left:4px solid var(--retry);background:var(--retry-bg);border-radius:8px}
html[data-theme="dark"] .sound-check{border-left:4px solid var(--green);background:var(--ok-bg);border-radius:8px}
html[data-theme="dark"] .sound-pair{border:1px solid var(--line);border-radius:10px;background:var(--paper)}
html[data-theme="dark"] .sound-word small{color:var(--ink-2)}
html[data-theme="dark"] .sound-vs{color:var(--muted)}
html[data-theme="dark"] .my-sound{border:1px solid var(--line);border-left:4px solid var(--retry);border-radius:10px;background:var(--paper);text-decoration:none}
html[data-theme="dark"] .my-sound span,html[data-theme="dark"] .my-sound small{color:var(--ink-2)}
html[data-theme="dark"] .my-sound small{color:var(--muted)}
html[data-theme="dark"] .speak-chip{border-radius:999px;background:var(--paper);border:1px solid var(--line);color:var(--ink-2)}
html[data-theme="dark"] .speak-chip.is-trouble,html[data-theme="dark"] .speak-chip.is-due{border-color:var(--retry);color:var(--retry);background:var(--retry-bg)}
html[data-theme="dark"] .speak-chip.is-stable{border-color:var(--ok);color:var(--ok);background:var(--ok-bg)}
html[data-theme="dark"] .speak-saved{color:var(--ink-2)}
html[data-theme="dark"] .path-profile>div{background:var(--paper);border:1px solid var(--line);border-radius:12px}
html[data-theme="dark"] .path-profile small{color:var(--muted)}
html[data-theme="dark"] .path-rank{background:#173e35!important;color:#fff;border-color:#173e35!important}
html[data-theme="dark"] .path-rank .eyebrow{color:#cfe39a}
html[data-theme="dark"] .path-rank small{color:#d7e2d4!important}
html[data-theme="dark"] .path-floor{background:var(--paper);border:1px solid var(--line);border-left:6px solid #68745c;border-radius:14px}
html[data-theme="dark"] .path-floor.is-current{border-left-color:#7fa33a;box-shadow:0 0 0 2px #444e23}
html[data-theme="dark"] .path-floor.is-closed{background:#1d2722;border-left-color:#486054}
html[data-theme="dark"] .path-floor.is-closed h2{color:#b6bebb}
html[data-theme="dark"] .path-host{color:var(--muted)}
html[data-theme="dark"] .path-floor-stars strong{color:#f9dc8f}
html[data-theme="dark"] .path-floor-stars small{color:var(--muted)}
html[data-theme="dark"] .path-level{border:1px solid var(--line);border-radius:11px;text-decoration:none;color:var(--ink);background:#19211d}
html[data-theme="dark"] .path-level:hover{border-color:#68745c}
html[data-theme="dark"] .path-level-text small{color:var(--muted)}
html[data-theme="dark"] .path-num{border-radius:50%;background:#212c27;color:#d1e2dd}
html[data-theme="dark"] .path-level.is-done{background:#1e2722;border-color:#5e6a4f}
html[data-theme="dark"] .path-level.is-done .path-num{background:#276b43;color:#fff}
html[data-theme="dark"] .path-level.is-current{background:#26291d;border:2px solid #7fa33a;box-shadow:0 4px 14px #7fa33a33}
html[data-theme="dark"] .path-level.is-current .path-num{background:#173e35;color:#d7ec96}
html[data-theme="dark"] .path-level.is-rust{background:var(--retry-bg);border-color:#8a6e41}
html[data-theme="dark"] .path-level.is-rust .path-num{background:#9a5b0b;color:#fff}
html[data-theme="dark"] .path-level.is-locked{background:#1c2520}
html[data-theme="dark"] .path-level.is-locked .path-num{background:#1f2924;color:#b6bebb}
html[data-theme="dark"] .path-stars{color:#c9ccc2}
html[data-theme="dark"] .path-stars .on{color:#f2d388}
html[data-theme="dark"] .path-level-card.is-current{border-color:#7fa33a}
html[data-theme="dark"] .path-star-rules li{color:var(--muted)}
html[data-theme="dark"] .path-star-rules li span{color:#c9ccc2}
html[data-theme="dark"] .path-star-rules li.on{color:var(--ink)}
html[data-theme="dark"] .path-star-rules li.on span{color:#f2d388}
html[data-theme="dark"] .path-about{border-top:1px solid var(--line)}
html[data-theme="dark"] .path-history li{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .path-history li.is-pass b{color:#b4e0c6}
html[data-theme="dark"] .path-history li.is-fail b{color:#f2ca98}
html[data-theme="dark"] .path-result{border-radius:14px;border:1px solid var(--line)}
html[data-theme="dark"] .path-result.is-pass{background:#1e2722;border-color:#687b55}
html[data-theme="dark"] .path-result.is-fail{background:var(--retry-bg);border-color:#8a6e41}
html[data-theme="dark"] }
.path-today{background:var(--paper);border:1px solid var(--line);border-left:6px solid #7fa33a;border-radius:14px}
html[data-theme="dark"] .path-quest.is-complete{border-color:#687b55;background:#1e2722}
html[data-theme="dark"] .path-goals li{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .path-goals li:last-child{border-bottom:0}
html[data-theme="dark"] .path-goals a{color:var(--ink);text-decoration:none}
html[data-theme="dark"] .path-goals a:hover{text-decoration:underline}
html[data-theme="dark"] .path-goals small{color:var(--muted)}
html[data-theme="dark"] .path-goals li.done a{color:#b4e0c6}
html[data-theme="dark"] .path-check{border-radius:50%;border:2px solid #496155;color:#fff}
html[data-theme="dark"] .path-goals li.done .path-check{background:#276b43;border-color:#276b43}
html[data-theme="dark"] .path-streak strong{color:#b6bebb}
html[data-theme="dark"] .path-streak.is-on strong{color:#f2d388}
html[data-theme="dark"] .path-week .up{color:#b4e0c6}
html[data-theme="dark"] .path-week .down{color:#f2ca98}
html[data-theme="dark"] .path-day i{background:#29362f;border-radius:6px 6px 2px 2px}
html[data-theme="dark"] .path-day.active i{background:#7fa33a}
html[data-theme="dark"] .path-day small{color:var(--muted)}
html[data-theme="dark"] .badge{border:1px dashed #486054;border-radius:11px}
html[data-theme="dark"] .badge small{color:var(--muted)}
html[data-theme="dark"] .badge-mark{color:#c9ccc2}
html[data-theme="dark"] .badge.earned{border-style:solid;border-color:#817245;background:#25231c}
html[data-theme="dark"] .badge.earned .badge-mark{color:#f2d388}
html[data-theme="dark"] .badge.is-new{box-shadow:0 0 0 2px #6c5c30}
html[data-theme="dark"] .path-story{border-radius:11px;background:#1c2521;border-left:4px solid #68745c}
html[data-theme="dark"] .path-story figcaption{color:var(--muted)}
html[data-theme="dark"] .path-story summary{color:var(--muted)}
html[data-theme="dark"] .combo{border-radius:999px;background:#173e35;color:#d7ec96}
html[data-theme="dark"] .quest-dot{border-radius:50%;border:2px solid #496155;color:#fff}
html[data-theme="dark"] .quest-dot.done{background:#276b43;border-color:#276b43}
html[data-theme="dark"] .streak-pill,html[data-theme="dark"] .badge-pill{border-radius:999px;background:#212c27;color:#d1e2dd;text-decoration:none}
html[data-theme="dark"] .streak-pill.on{background:#312b1b;color:#fae2a7}
html[data-theme="dark"] .badge-pill{background:#25231c;border:1px solid #817245}
html[data-theme="dark"] .path-exam-call{border-radius:11px;background:#25231c;border:1px solid #817245}
html[data-theme="dark"] .path-diploma span{color:#f2d388}
html[data-theme="dark"] .path-exam-parts li{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .path-exam-parts li span b::before{color:var(--muted)}
html[data-theme="dark"] .path-exam-parts small{color:var(--muted)}
html[data-theme="dark"] .path-exam-parts li.done .path-exam-score{color:#b4e0c6}
html[data-theme="dark"] .today-answers,html[data-theme="dark"] .today-path{color:var(--ink-2)}
html[data-theme="dark"] .today-step.kind-path{border-left-color:var(--green)}
html[data-theme="dark"] .today-step.kind-weak{border-left-color:var(--danger)}
html[data-theme="dark"] .today-step.kind-speak,html[data-theme="dark"] .today-step.kind-sound,html[data-theme="dark"] .today-step.kind-reply{border-left-color:var(--violet)}
html[data-theme="dark"] .today-step.is-done .today-icon{color:var(--ok)}
@media(max-width:850px){html[data-theme="dark"] .actions:has(>button:is([data-action="next"],html[data-theme="dark"] [data-action^="next-"],html[data-theme="dark"] [data-action="today-next"]:not(.today-main))){background:var(--paper);border-radius:12px;box-shadow:0 -6px 18px rgba(0,0,0,.14)}}
@media(max-width:850px){html[data-theme="dark"] :is(article,html[data-theme="dark"] section,html[data-theme="dark"] form)>button:is([data-action="next"],html[data-theme="dark"] [data-action^="next-"]){box-shadow:0 6px 18px rgba(0,0,0,.22)}}
html[data-theme="dark"] .result-badge.is-near{border-color:var(--orange);color:#e7c9a2;background:#27221c}
html[data-theme="dark"] .typo-note{border-left:3px solid var(--orange);background:#27221c;color:var(--ink)}
html[data-theme="dark"] .mywords-found li{border-top:1px solid var(--line)}
html[data-theme="dark"] .mywords-card{border-top:1px solid var(--line)}
html[data-theme="dark"] .mywords-list li{border-top:1px solid var(--line)}
html[data-theme="dark"] .growth-item{border-top:1px solid var(--line)}
html[data-theme="dark"] .c1-tile{border:1px solid var(--line);border-radius:12px;background:var(--paper)}
html[data-theme="dark"] .c1-trend.is-up{color:var(--ok)}
html[data-theme="dark"] .c1-trend.is-down{color:var(--retry)}
html[data-theme="dark"] .c1-passage,html[data-theme="dark"] .c1-text,html[data-theme="dark"] .c1-heard{border-left:3px solid var(--line)}
html[data-theme="dark"] .c1-criteria li{border-top:1px solid var(--line)}
html[data-theme="dark"] .c1-review li{border-top:1px solid var(--line);border-left:3px solid var(--ok)}
html[data-theme="dark"] .c1-review li.is-retry{border-left-color:var(--retry)}
html[data-theme="dark"] .live-n{border-radius:50%;background:var(--green);color:var(--paper)}
html[data-theme="dark"] .live-test{border-top:1px solid var(--line)}
html[data-theme="dark"] .live-answers .button[aria-pressed="true"]{background:var(--green);color:var(--paper);border-color:var(--green)}
html[data-theme="dark"] .live-phrase{border-left:3px solid var(--lime)}
html[data-theme="dark"] .live-interim{color:var(--muted)}
html[data-theme="dark"] .live-table th{color:var(--ink-2)}
html[data-theme="dark"] .live-conclusions li{border-left:3px solid var(--line)}
html[data-theme="dark"] .live-conclusions li.is-ok{border-left-color:var(--ok)}
html[data-theme="dark"] .live-conclusions li.is-bad{border-left-color:var(--retry)}
html[data-theme="dark"] .talk-start fieldset{border:1px solid var(--line);border-radius:var(--radius)}
html[data-theme="dark"] .talk-bar{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
html[data-theme="dark"] .talk-say{text-decoration:none}
html[data-theme="dark"] .talk-dot{border-radius:50%;background:var(--danger)}
html[data-theme="dark"] .talk-phrase{border:1px solid var(--line);border-radius:var(--radius);background:var(--paper)}
html[data-theme="dark"] .talk-phrase.is-playing{border-color:var(--green);box-shadow:0 0 0 2px var(--lime)}
html[data-theme="dark"] .talk-time{color:var(--muted)}
html[data-theme="dark"] .talk-phrase.is-draft{border-style:dashed}
html[data-theme="dark"] .talk-follow{box-shadow:var(--shadow)}
html[data-theme="dark"] .talk-draft{color:var(--muted);border:1px dashed var(--line);border-radius:999px}
html[data-theme="dark"] .talk-play .link{text-decoration:none}
html[data-theme="dark"] .talk-play .link[aria-pressed=true]{background:var(--lime);border-radius:6px}
html[data-theme="dark"] .talk-w{background:none;border:0;color:inherit;border-radius:4px}
html[data-theme="dark"] .talk-w:hover{background:var(--bg)}
html[data-theme="dark"] .talk-w.is-marked{background:var(--lime);color:var(--green)}
html[data-theme="dark"] .talk-ru{color:var(--ink-2)}
html[data-theme="dark"] .talk-interim{color:var(--muted)}
html[data-theme="dark"] .talk-marks .tag{border:0}
html[data-theme="dark"] .talk-word{background:var(--bg);border-radius:8px}
html[data-theme="dark"] .talk-list li{border-bottom:1px solid var(--line)}
/* ---- manual semantic layer (edit in tools/build_dark_theme.py) ---- */
html[data-theme="dark"]{color-scheme:dark;--bg:#121815;--paper:#19211d;--line:#2e3a34;--ink:#dfe7e2;--muted:#9eaba4;--green:#2e6b54;--green-text:#a8d5bd;--lime:#3a5a2c;--lime-text:#d7ec96}
html[data-theme="dark"] #sidebar{background:#0f1915}
html[data-theme="dark"] nav a.active,html[data-theme="dark"] .menu-toggle[aria-expanded="true"]{color:var(--lime-text)}
html[data-theme="dark"] .button.secondary,html[data-theme="dark"] .alphabet-grid b{color:var(--green-text)}
html[data-theme="dark"] .button.light,html[data-theme="dark"] .brandmark,html[data-theme="dark"] .kind-new .today-icon,html[data-theme="dark"] .nav-today.active{color:var(--lime-text)!important}
html[data-theme="dark"] .hero h1 em,html[data-theme="dark"] .today-hero h1 em{color:#9cc48a}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#17201c;color:var(--ink);border-color:#3a4a42}
html[data-theme="dark"] .preset-target{box-shadow:0 0 0 3px #5d7f3a}
html[data-theme="dark"] dialog::backdrop{background:#000a}
html[data-theme="dark"] #toast{background:#2e6b54}
html[data-theme="dark"] img{opacity:.92}
html[data-theme="dark"]{--shadow:0 1px 2px #0006,0 8px 24px #0005;--ink-2:#c3cec8;--muted:#9eaba4;--ok:#7cc796;--ok-bg:#1d3326;--retry:#e6b45c;--retry-bg:#352a14}
html[data-theme="dark"] .exercise{border-color:#2e3a34}
html[data-theme="dark"] progress{appearance:none;-webkit-appearance:none;border:0;border-radius:8px;background:#26302b}
html[data-theme="dark"] progress::-webkit-progress-bar{background:#26302b;border-radius:8px}
html[data-theme="dark"] progress::-webkit-progress-value{background:#5fae8a;border-radius:8px}
html[data-theme="dark"] progress::-moz-progress-bar{background:#5fae8a;border-radius:8px}
html[data-theme="dark"] .today-goal,html[data-theme="dark"] .day-card{background:#1d2a22;border-color:#33463a}
html[data-theme="dark"] .path-stars,html[data-theme="dark"] .path-star-rules li span{color:#4a5751}html[data-theme="dark"] .path-stars .on,html[data-theme="dark"] .path-star-rules li.on span,html[data-theme="dark"] .path-floor-stars strong{color:#f0c040}
html[data-theme="dark"] .path-streak.is-on strong,html[data-theme="dark"] .badge.earned .badge-mark{color:#f0c040}html[data-theme="dark"] .badge.earned{background:#2b2715;border-color:#6b5a22}html[data-theme="dark"] .streak-pill.on{background:#3a3214;color:#f0d27a}html[data-theme="dark"] .badge-pill{background:#2b2715;border-color:#6b5a22;color:#f0d27a}html[data-theme="dark"] .path-day.active i{background:#8fae4c}html[data-theme="dark"] .path-day i{background:#3a443e}html[data-theme="dark"] .combo{background:var(--lime);color:var(--lime-text)}
html[data-theme="dark"] .path-exam-call{background:#2b2715;border-color:#6b5a22}html[data-theme="dark"] .path-diploma span{color:#f0c040}
html[data-theme="dark"] .path-level.is-current{background:#26311c;border-color:#8fae4c}html[data-theme="dark"] .path-level.is-current .path-num{background:var(--lime);color:var(--lime-text)}html[data-theme="dark"] .path-floor.is-current{box-shadow:0 0 0 2px #4f6a2a}
html[data-theme="dark"] .speak-turn.is-mine,html[data-theme="dark"] .listen-turn.is-mine,html[data-theme="dark"] .it-line.me{background:#232d1d;border-left-color:#8fae4c}
html[data-theme="dark"] .speak-turn.is-mine .speak-who,html[data-theme="dark"] .listen-turn.is-mine .listen-who,html[data-theme="dark"] .it-line.me .it-who{background:var(--lime);color:var(--lime-text)}
html[data-theme="dark"] .talk-w.is-marked,html[data-theme="dark"] .talk-play .link[aria-pressed=true]{background:var(--lime);color:var(--lime-text)}
html[data-theme="dark"] .talk-phrase.is-playing{border-color:#8fae4c;box-shadow:0 0 0 2px #4f6a2a}
