:is(#theme-toggle,#sound-toggle){border:1px solid #c9d7ca;background:#eef3e8;color:#355a4d;border-radius:22px;padding:10px 13px;min-height:44px;font:700 12px 'DM Sans',sans-serif;white-space:nowrap;flex-shrink:0}
html[data-theme=dark]{--ink:#e1eee5;--muted:#b4c6ba;--green:#83ceb0;--mint:#283f33;--cream:#131e19;--pink:#513b46;--gold:#efd07e;color-scheme:dark}
html[data-theme=dark] body{background:#131e19;background-image:radial-gradient(#56706144 .7px,transparent .7px);background-size:18px 18px}
html[data-theme=dark] header{background:#17241ff5;border-color:#3a5144}
html[data-theme=dark] :is(.card,.course-row,.level-card,.geo-level,.house-detail,.collection,.tempo-settings){background:#1e2f26;border-color:#425749;color:var(--ink);box-shadow:0 8px 28px #0002}
html[data-theme=dark] :is(p,small,.label,.eyebrow,.brand small,footer,.map-credit,.book-author,.tempo-info,.resting-message,.optional-round){color:var(--muted)}
html[data-theme=dark] :is(h1,h2,h3,strong,.brand,.location-info){color:var(--ink)}
html[data-theme=dark] :is(h1 em,.brand-icon){color:#8ed5b7}
html[data-theme=dark] .primary{background:#82cdb0;border-color:#a1e0c4;color:#102e22;box-shadow:0 4px 0 #416e57}
html[data-theme=dark] :is(.secondary,.text-button,nav button,.file-label){color:#d8e9de}
html[data-theme=dark] :is(.secondary,.file-label,:is(#theme-toggle,#sound-toggle)){background:#293e32;border-color:#56735e}
html[data-theme=dark] :is(nav button.active,.pill,.scene-tag,.review-note,.assisted-note){background:#304b3a;color:#bce9ce}
html[data-theme=dark] :is(input,textarea,select,.keypad button){background:#14221b;color:#e4f1e8;border-color:#607865}
html[data-theme=dark] input:disabled{color:#cee9d7}
html[data-theme=dark] :is(.wallet,.reward-coins,.price,.earned-coin){background:#3a3421;border-color:#8c7950;color:#f2d98f}
html[data-theme=dark] :is(.wallet strong,.wallet>span:last-child){color:#f2d98f}
html[data-theme=dark] :is(.progress-track,.unlock-track,.unlock-progress,.auto-next-track,.fact-grid b){background:#304737;color:#d1e7d7}
html[data-theme=dark] :is(.rating-message,.long-term-progress,.round-proof-gain,.proof-stages,.import-preview,.daily-summary,.day-summary,.day-stats,.book-quote,.house-delete,.travel-request,.journey-request,.location-info .destination-found){background:#293e30;border-color:#526e59;color:#deece1}
html[data-theme=dark] .feedback.correct{color:#a0e2b8}
html[data-theme=dark] .feedback.retry{color:#ffbfb1}
html[data-theme=dark] .exercise.success{background:#203b2b;border-color:#7bb88d}
html[data-theme=dark] .exercise.mistake{background:#422c2a;border-color:#c99187}
html[data-theme=dark] :is(.fact.level-0,.level-0){background:#304035;color:#c1d2c4}
html[data-theme=dark] :is(.fact.level-1,.level-1){background:#665633;color:#fff0c4}
html[data-theme=dark] :is(.fact.level-2,.level-2){background:#376749;color:#e8ffef}
html[data-theme=dark] .fact.review-due{background:#65444f;color:#ffe4ef}
html[data-theme=dark] :is(.world-map,.kingdom-map,.house-room){background:linear-gradient(#243a2d,#344b35);border-color:#4e6957}
html[data-theme=dark] .world-landscape{filter:brightness(.62) saturate(.8)}
html[data-theme=dark] :is(.world-place,.kingdom-place.built){background:#243a2def;color:#e3f0e6;border-color:#526c59}
html[data-theme=dark] .world-place small{color:#bed1c2}
html[data-theme=dark] .house-room.house-stage-1{background:linear-gradient(#344131,#29372a 80%,#685a3d 80%)}
html[data-theme=dark] .house-room.house-stage-2{background:linear-gradient(#2e4441,#283c36 80%,#4b6659 80%)}
html[data-theme=dark] .house-room.house-stage-3{background:linear-gradient(#40384a,#342f3b 80%,#756444 80%)}
html[data-theme=dark] :is(.book-quote blockquote,.house-detail label){color:#d8eadc}
html[data-theme=dark] .germany-svg{background:linear-gradient(#203a36,#293a29)}
html[data-theme=dark] .map-context path{fill:#35453b;stroke:#56665a}
html[data-theme=dark] .map-region path{fill:#6f9480;stroke:#b5cbb8}
html[data-theme=dark] .map-region.selected path{fill:#a8d5b2;stroke:#f5e9af;stroke-width:3}
html[data-theme=dark] .map-region.map-right path{fill:#91d4a1;stroke:#d9f6df}
html[data-theme=dark] .map-region.map-wrong path{fill:#cb8d84;stroke:#ffe2d9}
html[data-theme=dark] .map-state-label{fill:#132a1e;stroke:#cce1ca;paint-order:stroke;stroke-width:2px}
html[data-theme=dark] .map-inset rect{fill:#304938;stroke:#b3cbb6}
html[data-theme=dark] :is(.map-inset text,.map-compass,.map-credit a){fill:#e3edcf;color:#c4dfce}
html[data-theme=dark] .map-inset.selected rect,html[data-theme=dark] .map-inset.map-right rect{fill:#4e7857}
html[data-theme=dark] .map-inset.map-wrong rect{fill:#784c46}
html[data-theme=dark] :is(th,td){border-color:#4a6252}
html[data-theme=dark] #toast{background:#d4e9d8;color:#183124}
html[data-theme=dark] :is(.art-0,.art-1,.art-2){background:#2c4333}
@media(max-width:700px){:is(#theme-toggle,#sound-toggle){padding:8px 11px;font-size:11px}}

@media(min-width:701px) and (max-width:1250px){header{height:auto;min-height:100px;flex-wrap:wrap;padding-top:16px;padding-bottom:14px;gap:12px}header nav{order:4;width:100%;justify-content:center}header .brand{margin-right:auto}}

html[data-theme=dark] .row-confirmations>div>span{background:#2c4435;color:#e2f1e4}html[data-theme=dark] .row-practice-progress,html[data-theme=dark] .row-practice-progress::-webkit-progress-bar{background:#354c3d}html[data-theme=dark] .row-practice-progress::-webkit-progress-value{background:#88d6b0}html[data-theme=dark] .row-practice-progress::-moz-progress-bar{background:#88d6b0}html[data-theme=dark] .course-row button.secondary{background:#304d3c;color:#edf8ef;border-color:#779883}html[data-theme=dark] .course-row button:disabled{opacity:.8;color:#c4d2c8}html[data-theme=dark] .course-row.locked{opacity:.85}

html[data-theme=dark] :is(.memo-editor input,.memo-editor select,.memo-toolbar select){background:#14221b;color:#e4f1e8;border-color:#607865}html[data-theme=dark] .memo-entry{background:#1e2f26}

#focus-sound-toggle{white-space:nowrap;font-size:12px;min-height:36px;padding:6px 9px}
