:root{color-scheme:light}
.theme-toggle{gap:8px;padding:8px 11px;min-height:36px;font-size:11px;white-space:nowrap}
.theme-toggle>span:first-child{font-size:18px;line-height:1}
.login-theme-toggle{position:absolute;right:24px;top:22px;z-index:2}
.playback-meta{margin:12px 0;font-size:12px;color:var(--muted)}
.playback-error{padding:18px;border:1px solid var(--line);border-radius:12px;margin:12px 0;background:var(--paper)}
.playback-error p{font-size:13px;margin-bottom:12px}
:root[data-theme=dark]{color-scheme:dark;--bg:#17212b;--paper:#212d3b;--ink:#f1f5f9;--muted:#a3b4c5;--green:#64b5ef;--lime:#5288c1;--line:#304050;--orange:#e8b571}
:root[data-theme=dark] body{background:var(--bg)}
:root[data-theme=dark] .sidebar{background:#1e2a38}
:root[data-theme=dark] :is(nav a,.tab,label,.icon-button,.pronunciation,.section-head a,.mobile-settings,.deck-mini>a){color:#b7c9d9}
:root[data-theme=dark] :is(.workspace-label,.sidebar-note p,.profile small,.topbar>span,.streak,.word-table th,footer){color:#93a8bc}
:root[data-theme=dark] :is(nav a:hover,.button:hover){background:#2a3b4e}
:root[data-theme=dark] nav a.active{background:#2b5278;color:#ffffff}
:root[data-theme=dark] .nav-badge{background:#5288c1;color:#ffffff}
:root[data-theme=dark] .button{background:var(--paper);color:var(--ink);border-color:#3b5065}
:root[data-theme=dark] .button.primary{background:#5288c1;border-color:#5288c1;color:#ffffff}
:root[data-theme=dark] .button.primary:hover{background:#609bd5}
:root[data-theme=dark] .button.lime{background:var(--lime);color:#ffffff;border-color:var(--lime)}
:root[data-theme=dark] .button.danger{background:#8e4940;border-color:#b8695c;color:#fff2ec}
:root[data-theme=dark] .hero{background:#22374b;border:1px solid #344e68}
:root[data-theme=dark] .login-art{background:#1b2e40}
:root[data-theme=dark] :is(.art-card,.word-orbit>span){background:#5288c1;color:#ffffff}
:root[data-theme=dark] .art-card span{color:#d7eaff}
:root[data-theme=dark] :is(.art-caption,.word-orbit>span:nth-child(2)){background:#344c65;color:#f1f5f9}
:root[data-theme=dark] .art-caption b{background:#5288c1}
:root[data-theme=dark] :is(.stat-icon,.empty-illustration,.deck-icon,.badge,.avatar){background:#2b4057;color:#8cc7f0}
:root[data-theme=dark] :is(.stat:nth-child(2) .stat-icon,.deck-mini:nth-child(2) .deck-icon,.badge.warm){background:#3e3840;color:#e8bf87}
:root[data-theme=dark] .stat:nth-child(3) .stat-icon{background:#29454b;color:#8cd5cd}
:root[data-theme=dark] :is(.tabs,.track-panel,.study-notes){background:#192633}
:root[data-theme=dark] :is(.video-progress,.bar){background:#344558}
:root[data-theme=dark] .cue.active{background:#2b5278}
:root[data-theme=dark] .cue button{color:#8cc7f0}
:root[data-theme=dark] .cue-text .sub-word:hover{background:#5288c1;color:#ffffff}
:root[data-theme=dark] :is(.notice,blockquote){background:#233b50;color:#c3dbef}
:root[data-theme=dark] blockquote{border-color:#64b5ef}
:root[data-theme=dark] :is(input,select,textarea){background:#17212b;border-color:#3a5065;color:var(--ink)}
:root[data-theme=dark] :is(input,textarea)::placeholder{color:#8ea2b5}
:root[data-theme=dark] .file-drop{background:#1b2c3d;border-color:#46627e}
:root[data-theme=dark] .file-drop input{background:transparent}
:root[data-theme=dark] .form-error{color:#f0aa96}
:root[data-theme=dark] .error-panel{background:#452d28;color:#f0b7a3}
:root[data-theme=dark] .rating:nth-child(1){color:#f0a58f}
:root[data-theme=dark] .rating:nth-child(2){color:#dfc58e}
:root[data-theme=dark] .rating:nth-child(3){color:#b6d59b}
:root[data-theme=dark] .rating:nth-child(4){color:#99d0c2}
:root[data-theme=dark] dialog::backdrop{background:#080f18b3}
:root[data-theme=dark] .video-thumb{background:linear-gradient(145deg,#314b65,#1e3248)}
:root[data-theme=dark] ::selection{background:#386d9e;color:#ffffff}
@media(max-width:600px){.theme-toggle .theme-label{display:none}.theme-toggle{padding:7px 10px}.login-theme-toggle{right:17px;top:15px}}
