/* Interface-only appearance; PDF canvases and export artwork retain their original colours. */
@media screen {
html[data-theme="dark"]{color-scheme:dark;background:#101a24;color:#e0e9f0;--ink:#e0e9f0;--muted:#a5b7c6;--line:#34495b;--surface:#1b2b39;--accent:#63ccd3}
html[data-theme="dark"] :is(.builder-a4,.builder-piece){color:#111;color-scheme:light}
html[data-theme="dark"] body{background:#101a24;color:#e0e9f0}
html[data-theme="dark"] :is(.card,.cohort-picker,.viewer-toolbar,.filter-panel,.account-panel,.board-inspector,.library-list-row,.builder-panel,.builder-popover,.builder-source,.builder-assessment,.builder-more-panel,.source-options-panel,.exam-card,dialog,table){background:#1b2b39;color:#e0e9f0;border-color:#34495b}
html[data-theme="dark"] :is(input,select,textarea){background:#142330;color:#e0e9f0;border-color:#587185}
html[data-theme="dark"] .teaching-settings summary{color:#79d6df}
html[data-theme="dark"] a{color:#79d6df}
html[data-theme="dark"] .paper-tile{color:#173248}
html[data-theme="dark"] #builder-error{color:#8a2020}
html[data-theme="dark"] :is(.muted,.helptext,small,.board-subtitle,.live-indicator){color:#a5b7c6}
html[data-theme="dark"] :is(.notice,.selection-toolbar,.active-filters>span,.teaching-context-label){background:#173d48;color:#d8f2f4}
html[data-theme="dark"] :is(.secondary,.button-link.secondary){background:#263d4f;color:#e0e9f0;border-color:#587185}
html[data-theme="dark"] :is(th,.import-table th){background:#233748;color:#c2d3df}
html[data-theme="dark"] :is(.builder-pdf-scroll,#preview-pages){background:#263543}
html[data-theme="dark"] .pdf-viewer{background:#263543}
html[data-theme="dark"] :is(.workspace-nav,.teaching-settings){border-color:#34495b}
}
