#theme-toggle{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;border:0;padding:5px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:12px;white-space:nowrap}
.theme-track{display:inline-flex;align-items:center;width:34px;height:20px;padding:3px;background:#7e7f83;border-radius:12px}.theme-track>span{width:14px;height:14px;background:#f3f3f4;border-radius:50%;transition:transform .15s}
#theme-toggle[aria-checked=true] .theme-track{background:#d9c5b2}#theme-toggle[aria-checked=true] .theme-track>span{background:#34312d;transform:translateX(14px)}
#theme-tools{display:flex;justify-content:flex-end;padding:8px 20px}
@media(prefers-reduced-motion:reduce){.theme-track>span{transition:none}}
:root[data-theme=dark]{color-scheme:dark;background:#34312d;color:#f3f3f4;--ink:#f3f3f4;--dark:#d9c5b2;--muted:#d9c5b2;--sand:#d9c5b2;--paper:#34312d;--line:#7e7f83}
[data-theme=dark] body{background:#34312d;color:#f3f3f4}
[data-theme=dark] :is(.topbar,.panel,.table-wrap,.section-fold,dialog,.btn,input,select,textarea,.ide-code-pane,.ide-io-pane,.lecture-autocomplete-list,.le-drag-ghost){background:#34312d;color:#f3f3f4;border-color:#7e7f83}
[data-theme=dark] :is(th,.example,.note,.section-editor,.upload-zone,#tc-drop-zone,.backend-page dl,.image-preview,.le-columns th,.ide-workspace .cm-gutters){background:#14110f;color:#f3f3f4;border-color:#7e7f83}
[data-theme=dark] :is(.nav a,small,.muted,.count,.list-meta,.link-muted,.file-info,.warning-inline){color:#d9c5b2}
[data-theme=dark] :is(.list-row:hover,tbody tr:hover,.btn:hover,.le-options button:hover,.lecture-autocomplete-list [role=option]:hover){background:#14110f}
[data-theme=dark] :is(td,.list-row,.comment){border-color:#7e7f83}
[data-theme=dark] :is(.btn.primary,.btn.sand,.pagination .current,.badge,.lecture-grid .le-section td,.lecture-grid .le-chapter td,.content-mini-tabs [aria-selected=true]){background:#d9c5b2;color:#14110f}
[data-theme=dark] .hero{background-color:#34312d;color:#f3f3f4}
[data-theme=dark] .hero h1{color:#f3f3f4}
[data-theme=dark] :is(.avatar,.type-icon){color:#14110f}
[data-theme=dark] .cm-content{caret-color:#f3f3f4;color:#f3f3f4}
[data-theme=dark] .cm-activeLine,[data-theme=dark] .cm-activeLineGutter{background:#7e7f8333}
[data-theme=dark] .cm-selectionBackground{background:#7e7f8366!important}
[data-theme=dark] .streak-cell{background:#34312d}
[data-theme=dark] .streak-cell:before{background:#d9c5b2}
[data-theme=dark] .btn.danger{color:#ffb8ca}

[data-theme=dark] .service-logo{background:transparent;border-radius:0;padding:0}
[data-theme=dark] .streak-cell{background:#14110f}
[data-theme=dark] .cm-content span{color:#d9c5b2}
[data-theme=dark] :is(.cm-tooltip,.cm-panels){background:#34312d;color:#f3f3f4}

[data-theme=dark] :is(.btn.primary,.btn.sand,.pagination .current,.content-mini-tabs [aria-selected=true]):is(:hover,:focus-visible){background:#14110f;color:#d9c5b2}

/* Opaque sticky title cells must match the adjacent student area. */
[data-theme=dark] .assignment th:first-child{background:#14110f}
[data-theme=dark] .assignment td:first-child{background:#34312d}
[data-theme=dark] .assignment tbody tr:hover td:first-child{background:#14110f}

[data-theme=dark] .assignment-scroll-top::-webkit-scrollbar-track{background:#14110f}
[data-theme=dark] .assignment-scroll-top::-webkit-scrollbar-thumb{background:#d9c5b2;border-color:#14110f}
[data-theme=dark] .concept-filter [role=listbox]{background:#34312d;color:#f4eee8}[data-theme=dark] .concept-filter [role=option]:hover,[data-theme=dark] .concept-filter [aria-selected=true]{background:#51463c}
[data-theme=dark] .achievement-table th,[data-theme=dark] .achievement-table td,[data-theme=dark] .achievement-detail-table th,[data-theme=dark] .achievement-detail-table td,[data-theme=dark] .assignment th,[data-theme=dark] .assignment td{border-right-color:#766658}[data-theme=dark] .table-scroll-top{scrollbar-color:#d9c5b2 #14110f}[data-theme=dark] .table-scroll-top::-webkit-scrollbar-track{background:#14110f}[data-theme=dark] .table-scroll-top::-webkit-scrollbar-thumb{background:#d9c5b2}
