/* Light remains the default; the small blocking head script restores an explicit choice before paint. */
:root{color-scheme:light}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink)}
.theme-toggle:hover{background:var(--mint)}
.theme-toggle svg{width:22px;height:22px;flex-shrink:0}
.theme-toggle .theme-sun{display:none}
html[data-theme=dark]{color-scheme:dark;--ink:#e0eee7;--muted:#a6bcb1;--cream:#101b18;--line:#33473e;--green:#78dabb;--mint:#183b30}
[data-theme=dark] .theme-toggle .theme-moon{display:none}
[data-theme=dark] .theme-toggle .theme-sun{display:block}
[data-theme=dark] .language-menu nav,[data-theme=dark] .word-lab{background:#182921;box-shadow:0 10px 32px #0003}
[data-theme=dark] .hero-orbit{border-color:#395344;background:radial-gradient(circle,#25433299,transparent 70%)}
[data-theme=dark] .star{color:#78a98e}
[data-theme=dark] .ribbon{background:#18271f}
[data-theme=dark] .inside{background:#14271f}
[data-theme=dark] .features{border-color:var(--line)}
[data-theme=dark] .blue{background:#183346;color:#9ccff2}
[data-theme=dark] .green{background:#1b3d2f;color:#9de2bd}
[data-theme=dark] .get-section{background:#20392b}
[data-theme=dark] .button,[data-theme=dark] .skip{background:#a7e4c5;color:#10271e}
[data-theme=dark] .button:hover{background:#c2f2d8}
[data-theme=dark] .screen-zoom img{box-shadow:0 20px 55px #0005}
[data-theme=dark] dialog::backdrop{background:#071510b3}
[data-theme=dark] .guide-card,[data-theme=dark] .example-card{background:#182921;border-color:var(--line);color:var(--ink)}
[data-theme=dark] .guide-card:hover{border-color:var(--green)}
[data-theme=dark] .guide-card p,[data-theme=dark] .breadcrumbs,[data-theme=dark] .guide-toc a,[data-theme=dark] .guide-note,[data-theme=dark] .example-card .example-sentence{color:var(--muted)}
[data-theme=dark] .guide-tag,[data-theme=dark] .guide-read,[data-theme=dark] .example-card h3,[data-theme=dark] .guide-home-link,[data-theme=dark] .practice-box summary,[data-theme=dark] .guide-toc a:hover{color:var(--green)}
[data-theme=dark] .guide-body p,[data-theme=dark] .editorial-note p{color:#c2d6ca}
[data-theme=dark] .word-part,[data-theme=dark] .practice-box{background:#1b3d2f;color:#a7e4c5}
[data-theme=dark] .word-part.prefix{background:#183346;color:#9ccff2}
[data-theme=dark] .word-part.suffix{background:#452f28;color:#f3bca7}
[data-theme=dark] .example-card .example-sentence,[data-theme=dark] .guide-toc nav{border-color:var(--line)}
[data-theme=dark] .guide-download{background:linear-gradient(180deg,#224331,#16281e)}
[data-theme=dark] .family-diagram rect[fill="#e6f5ec"]{fill:#1b3d2f}
[data-theme=dark] .family-diagram text[fill="#173a33"]{fill:#d6eadf}
[data-theme=dark] #rootory-privacy-controls button{background:#182921!important;color:var(--ink)!important;border-color:var(--line)!important}
@media(max-width:720px){.header-actions{gap:8px}.theme-toggle{flex-basis:40px;width:40px;height:40px;padding:9px}.header-actions .small-link{display:none}.header{gap:10px}}
