.theme-toggle,.theme-panel button{min-height:40px;border:1px solid #afc4b6;border-radius:12px;background:#fffaf0;color:#214f42;padding:8px 12px;font:inherit;cursor:pointer}
.theme-toggle{font-size:12px}.theme-panel{border:1px solid #cbd8cb;border-radius:16px;padding:12px;display:flex;gap:10px;margin:10px 0 14px}.theme-panel legend{font-size:13px;padding:0 6px}.theme-panel button{flex:1}.theme-panel button[aria-pressed=true]{background:#214f42;color:white;border-color:#214f42}
html[data-theme=dark]{--green:#8cd5bd;--muted:#b3c3bc;--line:#40564c;--sage:#263d33;background:#15241e;color:#edf3e9}
html[data-theme=dark] body{background:#15241e;color:#edf3e9}
html[data-theme=dark] .shell,html[data-theme=dark] .shell[data-hub=true],html[data-theme=dark] .shell[data-stage=home],html[data-theme=dark] .shell main{background:#182923;color:#edf3e9}
html[data-theme=dark] .shell[data-stage=catalog]{background:radial-gradient(ellipse at top right,#26483d,transparent 70%),#182923}
html[data-theme=dark] .shell .brand,html[data-theme=dark] .shell h2,html[data-theme=dark] .shell h3,html[data-theme=dark] .shell .russian,html[data-theme=dark] .shell .text-button,html[data-theme=dark] .shell .author-link{color:#eef4e9}
html[data-theme=dark] .shell .home-intro em{color:#8edbc6}
html[data-theme=dark] .shell .home-intro p,html[data-theme=dark] .shell .home-kicker,html[data-theme=dark] .shell .subtitle,html[data-theme=dark] .shell .translation,html[data-theme=dark] .shell small,html[data-theme=dark] .shell .small,html[data-theme=dark] .shell .hub-note{color:#b8c9c0}
html[data-theme=dark] .shell .featured-lesson,html[data-theme=dark] .shell .card,html[data-theme=dark] .shell .saved-card,html[data-theme=dark] .shell .profile-card,html[data-theme=dark] .shell .chapter-list button,html[data-theme=dark] .shell .utterance,html[data-theme=dark] .shell .native-account-panel,html[data-theme=dark] .shell .paid-pack-summary{background:#263b32;color:#edf3e9;border-color:#4c6557;box-shadow:none}
html[data-theme=dark] .shell .utterance.staff,html[data-theme=dark] .shell .card.sage{background:#30483a;border-color:#4c6557}
html[data-theme=dark] .shell .role,html[data-theme=dark] .shell .pill,html[data-theme=dark] .shell .chapter-number{background:#3b5747;color:#eff6dc;border-color:#526a4e}
html[data-theme=dark] .shell .feature-info p,html[data-theme=dark] .shell .feature-heading>span{color:#bdcec4}
html[data-theme=dark] .shell #hubNav,html[data-theme=dark] .shell .complete-controls{background:#1c3027;border-color:#43594d}
html[data-theme=dark] .shell #hubNav button{color:#bfd0c4}html[data-theme=dark] .shell #hubNav button[aria-current]{color:#a3e5d1}html[data-theme=dark] .shell #hubNav button[aria-current]>span{background:#315444}
html[data-theme=dark] .shell .btn,html[data-theme=dark] .shell .play{background:#32785f;color:#fff}
html[data-theme=dark] .shell .btn.secondary,html[data-theme=dark] .shell .bookmark{background:#31493d;color:#d6efe3;border-color:#577564}
html[data-theme=dark] .shell .voice-strip{background:#3d3857;color:#f2edf9}html[data-theme=dark] .shell .voice-strip b,html[data-theme=dark] .shell .voice-strip .author-link{color:#f2edf9}
html[data-theme=dark] .shell .future-grid article{background:#4a402a}html[data-theme=dark] .shell .future-grid article+article{background:#513b36}html[data-theme=dark] .shell .future-grid article>button>span{color:#f6ead4}
html[data-theme=dark] select,html[data-theme=dark] input,html[data-theme=dark] .native-dialog,html[data-theme=dark] .theme-toggle,html[data-theme=dark] .theme-panel button{background:#263b32;color:#edf3e9;border-color:#5d7767}
html[data-theme=dark] .theme-panel{border-color:#5d7767}html[data-theme=dark] .theme-panel button[aria-pressed=true]{background:#32785f}
html[data-theme=dark] body.nr-city::before{filter:brightness(.26) saturate(.8)}
html[data-theme=dark] body.nr-city::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse var(--lamp-core-w,14px) var(--lamp-core-h,22px) at var(--lamp-x) var(--lamp-y),#fff0a8d9,transparent 90%),radial-gradient(circle var(--lamp-halo,85px) at var(--lamp-x) var(--lamp-y),#ffc76e66,transparent 75%);animation:lamp-breathe 5.6s linear infinite}
html[data-theme=dark] body.nr-city header,html[data-theme=dark] body.nr-city .hero-copy,html[data-theme=dark] body.nr-city .how,html[data-theme=dark] body.nr-city .pack,html[data-theme=dark] body.nr-city .author,html[data-theme=dark] body.nr-city .account,html[data-theme=dark] body.nr-city .faq,html[data-theme=dark] body.nr-city footer{background:#1c3027ed;color:#edf3e9;box-shadow:none}
html[data-theme=dark] body.nr-city .free-section,html[data-theme=dark] body.nr-city .account-box,html[data-theme=dark] body.nr-city dialog,html[data-theme=dark] body.nr-city .floating-note{background:#2a4034;color:#edf3e9;border-color:#506a59}
html[data-theme=dark] body.nr-city h1,html[data-theme=dark] body.nr-city h2,html[data-theme=dark] body.nr-city h3,html[data-theme=dark] body.nr-city a,html[data-theme=dark] body.nr-city .brand{color:#edf3e9}
html[data-theme=dark] body.nr-city p,html[data-theme=dark] body.nr-city .fine,html[data-theme=dark] body.nr-city .hero-copy>p,html[data-theme=dark] body.nr-city .price span{color:#c1d0c6}
html[data-theme=dark] body.nr-city h1 em,html[data-theme=dark] body.nr-city .signature{color:#a1dfca}
html[data-theme=dark] body.nr-city .button{background:#32785f;color:white}
@keyframes lamp-breathe{0%{opacity:.9}22%{opacity:.3}43%{opacity:1}66%{opacity:.48}83%{opacity:.95}100%{opacity:.75}}
@media(prefers-reduced-motion:reduce){html[data-theme=dark] body.nr-city::after{animation:none}}
html[data-theme=dark] .shell[data-hub=true] #language,html[data-theme=dark] .shell #language,html[data-theme=dark] .shell #speech-speed{background:#263b32;color:#edf3e9;border-color:#617c6b}
html[data-theme=dark] .shell .passport-stamp,html[data-theme=dark] .shell .reward-achievements,html[data-theme=dark] .shell .reward-settings{background:#263b32;color:#edf3e9;border-color:#526d5c}
html[data-theme=dark] .shell .stamp-icon{background:#344d3e;color:#bbd3bf;border-color:#7c9784}
html[data-theme=dark] .shell .passport-heading p,html[data-theme=dark] .shell .reward-settings p,html[data-theme=dark] .shell .reward-achievement{color:#bdcec3}
html[data-theme=dark] .shell .reward-settings>button:first-child{color:#d5e9dc}
html[data-theme=dark] .shell #native-account-button{background:#314e3e;color:#eff5ed;border-color:#6d8c78}
html[data-theme=dark] .shell[data-chapter][data-hub=false][data-stage] aside,html[data-theme=dark] .shell .lesson-artwork{background-color:#263b32}
html[data-theme=dark] .shell #lesson-home,html[data-theme=dark] .shell[data-hub=false] aside .brand{background:#263b32e6;color:#f0f4ea;border-color:#60765f;text-shadow:none}

.shell .brand{ text-shadow:none!important; filter:none; }

html[data-theme=dark] body.nr-city::before{background-size:cover,var(--city-w) var(--city-h);background-position:center,var(--city-left) var(--city-top)}
html[data-theme=dark] .shell[data-stage=listen] .utterance.current{background:#375747;border-color:#8edbc3;color:#f4f8ed;box-shadow:inset 3px 0 #8edbc3}
html[data-theme=dark] .shell[data-stage=listen] .utterance.current p{color:#f4f8ed}
html[data-theme=dark] .shell[data-stage=listen] .utterance.current small{color:#d2e2d6}
html[data-theme=dark] .shell #steps button.active{color:#c0f0df;border-top-color:#8edbc3}

html[data-theme=dark] #native-boot{background:#182923;color:#edf3e9}
html[data-theme=dark] .shell #catalog-topic{background:#263b32;color:#edf3e9;border-color:#617c6b}
html[data-theme=dark] .shell .topic-access-card,html[data-theme=dark] .shell .topic-access-note,html[data-theme=dark] .shell .topic-access-note.paid,html[data-theme=dark] .shell .about-page,html[data-theme=dark] .shell .author-audio-card,html[data-theme=dark] .shell .empty-state{background:#263b32;color:#edf3e9;border-color:#526d5c}
html[data-theme=dark] .shell .chapter-list button>span:last-child{background:#385b47;color:#dcf0e3}
html[data-theme=dark] .shell .chapter-list button[aria-current=true]{background:#2b6653;border-color:#83c8ad}
html[data-theme=dark] .shell .topic-access-icon{background:#385b47;color:#bce6cc}
html[data-theme=dark] .shell .topic-access-card.paid .topic-access-icon{background:#4b4162;color:#dfcef6}
html[data-theme=dark] .shell .author-audio-heading b,html[data-theme=dark] .shell .about-page p,html[data-theme=dark] .shell .about-page h3{color:#dce9df}

/* Recording instructions must remain readable in dark lessons and phrase practice. */
html[data-theme=dark] .shell .recorder{background:#263b32;color:#edf3e9;border-color:#6f8d7a}
html[data-theme=dark] .shell .recorder p,html[data-theme=dark] .shell .recorder .small{color:#c7d9cd}
html[data-theme=dark] .shell .hint{background:#30483a;color:#edf3e9;border-color:#617c6b}
