.theme-toggle{position:fixed;right:20px;bottom:18px;z-index:80;display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #cddfd6;border-radius:24px;background:#fff;color:#2b6658;box-shadow:0 4px 20px #0b332414;font-size:11px;font-weight:600;cursor:pointer}
.theme-toggle:hover{border-color:#16836f}.main-footer{padding-bottom:65px}#toast{bottom:75px}
:root[data-theme="dark"]{color-scheme:dark;background:#101b20;color:#e2eeeb;--line:#2b3b40;--muted:#a2b7b4;--dark:#e2eeeb}
:root[data-theme="dark"] :is(.sidebar,.topbar,.panel,.stat-card,.quick-link,.search-box,.status-chip,.toolbar select,.auth-layout,.setup-card,dialog){background:#18272d;border-color:var(--line);color:#e2eeeb}
:root[data-theme="dark"] :is(.layout,.main-wrap,.content,.auth-form-wrap,.setup-page){background:#101b20}
:root[data-theme="dark"] :is(h1,h2,h3,.brand,td strong,.person-summary h3,.breadcrumb strong){color:#e2eeeb}
:root[data-theme="dark"] :is(p,.muted,.small,.eyebrow,label,dt,td,.breadcrumb,.nav-item,.meta,time,.main-footer,.local-pill,.brand-sub,.nav-label,.stat-card div>span,.stat-card small,.quick-link small,.mini-course small,.course-body p,.content-card p,.profile-card dd,.user-block small,.backup-list li,.auth-form-wrap footer,.auth-switch,.auth-note p,.storage-visual small,.prose){color:#a8bdb8}
:root[data-theme="dark"] :is(.workspace-label,.support-card,.dialog-footer,th,.feed-icon,.quick-icon,input:disabled){background:#1d3035;color:#afc7bf;border-color:var(--line)}
:root[data-theme="dark"] :is(input,textarea,select){background:#112126;color:#e2eeeb;border-color:#3a5054}
:root[data-theme="dark"] :is(input,textarea)::placeholder{color:#8ca59e}
:root[data-theme="dark"] .search-box input{background:transparent}
:root[data-theme="dark"] :is(.btn.secondary,.theme-toggle){background:#20353b;color:#b3e0d1;border-color:#3a5557}
:root[data-theme="dark"] :is(.text-button,.mini-course div>span,.nav-item.selected){color:#80d4b9}
:root[data-theme="dark"] :is(.nav-item.selected,.nav-item:hover,.icon-button:hover){background:#24413f}
:root[data-theme="dark"] :is(.badge,.tag,.info-bar,.card-icon,.teal,.feed-icon.teal,.avatar,.secret){background:#23403b;color:#9bdac2;border-color:#35594d}
:root[data-theme="dark"] .badge.success{background:#21443a;color:#98dfb6}
:root[data-theme="dark"] :is(.badge.warning,.amber,.amber-bar){background:#433a27;color:#edce8a;border-color:#615239}
:root[data-theme="dark"] :is(.badge.danger,.btn.subtle-danger){background:#472f2b;color:#f0b5a4}
:root[data-theme="dark"] .blue{background:#263e50;color:#afd0ed}
:root[data-theme="dark"] .team-note{background:#263b2e;border-color:#38503b}
:root[data-theme="dark"] .team-note :is(h3,.eyebrow,.text-button){color:#b5d5a6}
:root[data-theme="dark"] .team-note p{color:#b0c4a5}
:root[data-theme="dark"] :is(.announcement-row,.announcement-panel>.section-title,.mini-course,.card-footer,td,th,.profile-card dl>div,.form-separator,.admin-card form label,.backup-list li,.auth-note,.user-block){border-color:var(--line)}
:root[data-theme="dark"] .course-cover{background:#29443a}
:root[data-theme="dark"] .course-cover>span{color:#426857}
:root[data-theme="dark"] .course-cover :is(b,small){color:#b6d7c2}
:root[data-theme="dark"] .cover-1{background:#3a412d}
:root[data-theme="dark"] .cover-1>span{color:#5c6746}
:root[data-theme="dark"] .cover-2{background:#2c3f4e}
:root[data-theme="dark"] .cover-2>span{color:#486479}
:root[data-theme="dark"] .profile-banner{background:#26483d}
:root[data-theme="dark"] .profile-avatar{border-color:#18272d}
:root[data-theme="dark"] :is(.hero,.auth-story){background:#0c3035}
:root[data-theme="dark"] :is(.hero,.auth-story) :is(h1,h2,.brand){color:#f1f8f5}
:root[data-theme="dark"] .hero .btn.white{background:#d9eee2;color:#1e5850}
:root[data-theme="dark"] .form-error,:root[data-theme="dark"] #dialog-error{color:#f2ad98}
:root[data-theme="dark"] dialog::backdrop{background:#0009}
@media(max-width:700px){.theme-toggle{right:12px;bottom:12px;font-size:10px;padding:9px 12px}}
