/* Evening Lessync. UI surfaces change; lesson media, PDFs and notebook paper do not. */
html[data-theme=dark]{color-scheme:dark;--bg:#101720!important;--panel:#1b2635!important;--text:#edf3fa!important;--muted:#a9b9cc!important;--accent:#a7c9f5!important;--on-accent:#101720!important;--border:#34485e!important;--ui-border:#34485e!important;--ui-soft:#253448!important;--ui-side:#1b2635!important;--ui-shadow:0 10px 28px #0003!important;--air:#a9bdd4!important;--air-soft:#253448!important;--mint:#253448!important;--peach:#253448!important;--sage:#a9b9cc!important;--hero:#253448!important;--hero-wave:#34485e!important;--tone-ink:#edf3fa!important;--blue:#a7c9f5!important;--highlight:#b7f500!important;--highlight-ink:#101720!important;--v6-paper:#1b2635!important;--v6-violet:#a9bdd4!important;--v6-action:#b7f500!important;--v6-lavender:#253448!important;--v6-ink:#edf3fa!important;--window-bar:#253448!important;--window-ink:#edf3fa!important;--secondary-bar:#253448!important;--frame:#34485e!important;--focus-ring:#a7c9f5!important;--studio-blue:#a7c9f5!important;--studio-line:#34485e!important;--studio-soft:#253448!important}
html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] body:has(.v6-main-nav){background:linear-gradient(115deg,#101720 3%,#182536 45%,#26384d 100%)!important;color:#edf3fa!important}
html[data-theme=dark] :is(.studio-page,.workspace-page){--studio-blue:#a7c9f5;--studio-line:#34485e;--studio-soft:#253448}
html[data-theme=dark] :is(.shell,.main,.content,.studio-page,.workspace-page,.ws-layout,.ws-main,.ws-side,.ws-left,.ls-public){background:transparent!important;color:var(--text)!important}
html[data-theme=dark] :is(.sidebar,.topline,.v6-topbar,.v6-main-nav,.ls-top,.topbar){background:#1b2635f5!important;border-color:#34485e!important;color:var(--text)!important}
html[data-theme=dark] :is(.card,.section,.list-card,.empty,.ws-block,.ws-today,.ws-navigation,.ws-mandatory-plan,.ws-catalog,.ws-learning-section,.ws-learning-summary,.ws-learning-history,.visual-recent-work,.visual-settings-card,.account-settings-content,.account-profile-card,.account-security-card,.account-session,.studio-lesson-rail,.studio-recent,.studio-course-inspector,.studio-material-inspector,.materials-content,.materials-tree,.lesson-item-card,.course-card,.course-section,.ext-board-card,.ext-product-grid>.card,.methodist-library,.methodist-source-list,.ls-auth-card,.ls-demo,.ls-panel,.ls-feature,.ls-role-grid>article,.ls-final,.ls-editor-demo,.ls-schedule-demo,.ls-benefits>div,.billing-card,.bill-summary .card,.analytics-cards .card,.readiness-report,.start-card,.sheet,.page,.editor-panel,.editor-rail,.editor-inspector,.studio-editor-rail,.studio-editor-inspector,.floating,.books,.properties,.text-toolbar,.tool-rail,.tool-rail #tools.tools){background:#1b2635!important;border-color:#34485e!important;color:var(--text)!important;box-shadow:0 6px 24px #0002!important}
html[data-theme=dark] :is(dialog,.v6-nav-dropdown,.studio-menu-popover,.lesson-card-popover,.ws-actions-popover,.ws-pages-popover,.ws-format-popover,.ws-formatting-popover,.ws-widget-settings,.ws-options,.insert-menu,.drawing-menu,.ext-popover){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important;box-shadow:0 14px 40px #0005!important}
html[data-theme=dark] :is(input,textarea,select,button,.button,summary){color:inherit;border-color:#34485e}
html[data-theme=dark] :is(input,textarea,select){background:#172230!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#91a4bb!important}
html[data-theme=dark] :is(.ws-page-title,.ws-block-title,.ws-cell,.ws-heading input,.ws-heading textarea,.ws-block textarea:not(.ws-cell)){background:transparent!important}
html[data-theme=dark] :is(button,.button){background:#253448;border-color:#425b76;color:#edf3fa}
html[data-theme=dark] :is(button,.button):hover{background:#34485e!important;border-color:#6385ab!important;color:#edf3fa!important}
html[data-theme=dark] :is(button.primary,.button.primary,.ls-button,.ls-lime,button[data-interface-mode-choice][aria-pressed=true]){background:#b7f500!important;border-color:#b7f500!important;color:#101720!important}
html[data-theme=dark] :is(button.primary,.button.primary,.ls-button):hover{background:#c9ff42!important;color:#101720!important}
html[data-theme=dark] :is(.v6-top-link,.nav-item,.v6-nav-dropdown button,.studio-menu-popover button,.lesson-card-popover button,.material-folder,.ws-pages-list button,.ws-mini,.visual-calendar-link,.back-link,.lesson-folder-open,.ws-page-tab){background:transparent!important;color:#d8e6f6!important}
html[data-theme=dark] :is(.active,.selected,.is-today):is(.nav-item,.v6-top-link,.material-folder,.lesson-folder-open,.ws-page-tab,.book-heading){background:#34485e!important;color:#fff!important}
html[data-theme=dark] :is(.muted,.small.muted,.subtle,.studio-caption,.studio-eyebrow,.ls-small,.ls-demo-caption,.ls-eyebrow,.ls-lead,.ls-section-lead,.account-profile-card p,.ws-cover-date,.ws-page-subtitle,.studio-storage,.lesson-item-meta,.studio-pupil-next,.studio-pupil-balance,.ws-save-status,.ws-timezone-button,.ws-agenda-day>strong,.airy-month-grid .muted){color:#a9b9cc!important}
html[data-theme=dark] :is(h1,h2,h3,h4,.ws-page-title,.ws-block-title,.lesson-item-card h3,.studio-cover-title,.ls-demo strong,.ls-panel h3,.ls-editor-content){color:#edf3fa!important}
html[data-theme=dark] a:not(.button){color:#a7c9f5}
html[data-theme=dark] :is(.ws-personal-cover,.ws-heading,.ls-demo-bar,.ls-editor-tools,.ls-row,.studio-cover,.studio-cover-paper,.studio-material-thumb,.studio-board-preview,.studio-board-preview-label,.material-folder-card,.studio-page .material-file-card,.ws-catalog-item,.ws-mini-widget,.ws-callout,.ws-note,.ws-task,.ws-table th,.table-wrap th,.ws-week-heading,.ws-day-heading,.ws-agenda-week button,.ws-month-preview,.airy-week-cell,.ls-board-demo,.ls-board-note,.ws-summary-card,.ws-payment-reminder){background:#253448!important;color:#edf3fa!important;border-color:#34485e!important}
html[data-theme=dark] :is(.studio-material-thumb.studio-thumb-ready>img,.material-preview img,.ws-image img,.ls-feature img){background:transparent}
html[data-theme=dark] :is(.ws-table,.table-wrap,.ws-table td,.table-wrap td,.ws-table th,.table-wrap th,.ws-week-column,.ws-calendar-scroll,.visual-time-grid,.visual-day-head,.visual-day-track,.visual-time-axis,.visual-time-ticks,.visual-calendar-scroll,.visual-calendar,.ls-week,.ls-week span){border-color:#34485e!important;color:#edf3fa!important}
html[data-theme=dark] :is(.visual-day-track,.visual-time-ticks){background-color:#172230!important;background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--hour-height) - 1px),#34485e calc(var(--hour-height) - 1px),#34485e var(--hour-height))!important}
html[data-theme=dark] :is(.visual-day-head,.visual-time-axis,.visual-time-grid,.ws-week-column,.ws-week-content,.visual-calendar-content){background-color:#1b2635!important}
html[data-theme=dark] :is(.visual-calendar-event,.ws-event,.ws-week-event,.ws-day-lesson){background:#2b4054!important;color:#edf3fa!important;border-color:#7fa6ce!important}
html[data-theme=dark] :is(.ws-event,.visual-calendar-event) :is(strong,span,small){color:inherit!important}
html[data-theme=dark] :is(.ws-day.outside,.airy-month-grid .outside){opacity:.4}
html[data-theme=dark] :is(.ws-catalog,.studio-lesson-rail,.materials-tree,.studio-students-list){scrollbar-color:#6385ab #1b2635}
html[data-theme=dark] :is(.airy-geometry b,.airy-geometry em){color:#83a6cc!important;opacity:.45}
html[data-theme=dark] .airy-geometry i{border-color:#83a6cc44}
html[data-theme=dark] .ls-editor-demo pre,html[data-theme=dark] :is(.code-block,pre){background:#101720!important;color:#d4e7ff!important}
html[data-theme=dark] :is(.sheet,.lesson-block,.editor-block,.block-card,.question-card,.assignment-card){border-color:#34485e!important}
html[data-theme=dark] :is(.sheet,.lesson-block,.editor-block,.block-card) :is(.text-input,.block-content,.editable){color:#edf3fa!important}
html[data-theme=dark] :is(.ws-formatbar,.ws-format-toolbar,.editor-toolbar,.studio-editor-toolbar){background:#253448!important;border-color:#34485e!important;color:#edf3fa!important}
html[data-theme=dark] .native-board :is(.topbar,.floating,.tool-rail,.tool-rail #tools,.tools){background:#1b2635!important;color:#edf3fa!important}
html[data-theme=dark] .native-board #paper-base{fill:#101720}
html[data-theme=dark] .native-board #studio-outside stop:first-child{stop-color:#101720}
html[data-theme=dark] .native-board #studio-outside stop:last-child{stop-color:#26384d}
html[data-theme=dark] .native-board.main-canvas #background{fill:var(--main-paper,#101720)}
html[data-theme=dark] .native-board.main-canvas #dots circle{fill:#425b76}
html[data-theme=dark] .native-board.main-canvas :is(#grid,#lines) path{stroke:#34485e}
html[data-theme=dark] .native-board.main-canvas #objects [stroke="#243b64"]{stroke:#d4e7ff}
html[data-theme=dark] .native-board.main-canvas #objects [fill="#243b64"]{fill:#d4e7ff}
html[data-theme=dark] .native-board #title{background:transparent!important}
html[data-theme=dark] .native-board .book-cover{filter:none}
html[data-theme=dark] .native-board #text-editor{background:#253448;color:#edf3fa}
.interface-mode-options{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.interface-mode-options button[aria-pressed=true]{outline:2px solid var(--focus-ring);outline-offset:2px}.color-mode-button{min-width:38px;flex-shrink:0}
/* Override historical high-specificity white-only workspace rules. */
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page :is(.ws-widget,.ws-widget.ws-custom-background,.ws-today){--text:#edf3fa;--ws-custom-ink:#edf3fa;--ws-custom-background:#1b2635;color:#edf3fa!important;background:#1b2635!important;border-color:#34485e!important}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page :is(.ws-block-title,.ws-page-title,.ws-widget h3,.ws-today h3,.ws-widget p,.ws-widget strong,.ws-widget li,.ws-widget small:not(.muted)){color:#edf3fa!important}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page :is(.ws-personal-cover,.ws-personal-cover[data-cover],.ws-heading){background:transparent!important;background-image:none!important}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page .ws-page-tools button.ws-edit-toggle{color:#edf3fa!important;background:transparent!important;border-color:#6385ab!important}
html[data-theme=dark] body:has(.v6-main-nav) :is(.v6-top-link,.v6-top-link[aria-current],.topline button,.account-button){color:#edf3fa!important;background:transparent!important;border-color:#425b76!important}
html[data-theme=dark] body:has(.v6-main-nav) :is(.ws-page-tab,.ws-add-widget){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body .airy-month-grid>span:not(.outside){color:#c2d3e6!important}
html[data-theme=dark] body .airy-month-grid .date-today{background:#b7f500!important;color:#101720!important;border-radius:50%}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page .ws-widget .muted{color:#a9b9cc!important}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page [data-widget-type=lessy]{background:transparent!important;border:0!important;box-shadow:none!important}
.ws-date-only .date-today{background:#080a0e;color:#fff!important;border-radius:50%;font-weight:800}.ws-date-only .airy-month-grid>span{display:grid;place-items:center;min-height:26px;font-size:12px}
html[data-theme=dark]{--v:#a7c9f5!important;--action:#b7f500!important;--lav:#253448!important;--ink:#edf3fa!important;--lime:#b7f500!important}
html[data-theme=dark] body.lesson-editor.studio-editor{background:linear-gradient(115deg,#101720,#182536 45%,#26384d) fixed!important;color:#edf3fa!important;--border:#34485e;--ink:#edf3fa;--text:#edf3fa}
html[data-theme=dark] body.lesson-editor.studio-editor>header{background:#1b2635f5!important;border-color:#34485e!important;color:#edf3fa!important}
html[data-theme=dark] body.lesson-editor.studio-editor .layout>:is(.left,.right,.side-catalog){background:#1b2635!important;border-color:#34485e!important;color:#edf3fa!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(.sheet,#titleArea,.block,.block.active,.studio-block-preview,.studio-picker-card,.studio-editor-panel,.settings-panel,.editor-drop-zone,.addbar){background:#1b2635!important;color:#edf3fa!important;border-color:#34485e!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(#titleArea input,#titleArea textarea,.structure-heading h3,.side-catalog-head h3,.panel-head h3,.side-catalog-head,.side-catalog-content,.panel-title,.block-title,.outline,.outline strong,.right label,.block label){color:#edf3fa!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(input,textarea,select,[contenteditable=true]){background:#172230!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(.outline.active,.tabs button,.tabs button.active,.left-tab,.tag,.studio-inspector-tabs,.inspector-tabs,.settings-card,.block-type-label){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(#preview,#saveCloud,.primary){background:#b7f500!important;border-color:#b7f500!important;color:#101720!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(.subtle,.field>label,.studio-block-description,.block-kind,.outline small){color:#a9b9cc!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(.block.active,.outline.active){outline-color:#a7c9f5!important;border-color:#6385ab!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(.drop-zone,.drop-placeholder,.insert-zone,.editor-empty-drop,.editor-drop-slot){background:#253448!important;color:#a9b9cc!important;border-color:#6385ab!important}
html[data-theme=dark] body .ws-conflict{background:#302d20!important;color:#eddbad!important;border-color:#746640!important}
html[data-theme=dark] body .ws-conflict strong{color:#eddbad!important}
html[data-theme=dark] body .ws-widget .ws-block-top{border-color:#34485e!important}
html[data-theme=dark] body .ws-widget .airy-month-grid .date-today{color:#101720!important}
html[data-theme=dark] body.lesson-editor.studio-editor :is(.editor-panel-tabs,.editor-panel-tabs button,.editor-panel-tabs button.active,.library-drop-end,.editor-context-card,.tabs,.tabs button,.tabs button.active){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body.native-board{--text:#edf3fa;--panel:#1b2635;--border:#34485e;--accent:#a7c9f5;--accent-soft:#253448}
html[data-theme=dark] body.native-board #paper-base{fill:#101720!important}
html[data-theme=dark] body.native-board :is(#title,#status){color:#edf3fa!important}
html[data-theme=dark] body.native-board :is(#tool-rail,#tools.tools,#properties,#books,#document-actions,.zoom,.topbar){background:#1b2635!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body.native-board :is(#upload,#export,#tools button.active,#tools button[aria-pressed=true]){background:#b7f500!important;color:#101720!important;border-color:#b7f500!important}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page .ws-widget .ws-block-top{border-color:#34485e!important}
html[data-theme=dark] :is(.ls-demo-panel,.ls-demo-row,.ls-student-demo .ls-demo-panel,.ls-benefits,.work-block,.work-header,.work-foot,.start-card,.material-attachment,.order-row,.match-row,.option){background:#1b2635!important;color:#edf3fa!important;border-color:#34485e!important}
html[data-theme=dark] :is(.ls-demo-row small,.ls-demo-time,.ls-demo-title,.ls-demo-panel p,.ls-demo-panel small){color:#a9b9cc!important}
html[data-theme=dark] :is(.work-block.callout,.work-block .feedback){background:#253448!important;color:#edf3fa!important}
/* Appearance settings: preview and avatar tiles are UI, so they follow the chosen mode. */
html[data-theme=dark] .unified-style-preview{background:linear-gradient(115deg,#182536,#344b65)!important;color:#edf3fa!important;border:1px solid #425b76!important}
html[data-theme=dark] .visual-avatar-choices .visual-avatar-option{background:#253448!important;border-color:#425b76!important;color:#edf3fa!important}
html[data-theme=dark] .visual-avatar-choices .visual-avatar-option[aria-pressed=true]{background:#30465e!important;border-color:#a7c9f5!important;color:#edf3fa!important}
html[data-theme=dark] .visual-avatar-choices .visual-avatar-option>span:not(.account-avatar){color:#edf3fa!important}
/* Editor settings had more specific legacy ID selectors than the general input rules. */
html[data-theme=dark] body.lesson-editor.studio-editor #settings .lesson-pages-settings{background:#253448!important;border-color:#425b76!important;color:#edf3fa!important}
html[data-theme=dark] body.lesson-editor.studio-editor #settings :is(input,select,textarea,option){background:#172230!important;color:#edf3fa!important;border-color:#425b76!important;color-scheme:dark}
html[data-theme=dark] body.lesson-editor.studio-editor #settings :is(.setting-title,h3,h4,.field>label,.python-toggle,.python-toggle>span){color:#edf3fa!important}
html[data-theme=dark] body.lesson-editor.studio-editor #settings .subtle{color:#b5c6db!important}

/* Public authentication has its own opaque underlay and text hierarchy. */
html[data-theme=dark] .ls-auth-card:before{background:#1b2635!important}
html[data-theme=dark] .ls-auth-card .ls-form{color:#edf3fa!important}
html[data-theme=dark] .ls-auth-card :is(label,h1,h2){color:#edf3fa!important}
html[data-theme=dark] .ls-auth-card :is(.ls-form>p,.ls-invite-teacher p){color:#b5c6db!important}
html[data-theme=dark] .ls-auth-card .auth-tabs{background:#111d2c!important;border-color:#425b76!important}
html[data-theme=dark] .ls-auth-card .auth-tabs button{background:transparent!important;color:#b5c6db!important}
html[data-theme=dark] .ls-auth-card .auth-tabs button.active{background:#344b65!important;color:#edf3fa!important}
html[data-theme=dark] .ls-auth-card :is(.password-toggle,.auth-forgot,.back-link){background:transparent!important;color:#a7c9f5!important;border-color:#6385ab!important}
html[data-theme=dark] .ls-auth-card .form-error{color:#ffb3bc!important}

html[data-theme=dark] .ls-auth-card .ls-free{color:#c4e989!important}

/* Current lesson: the lime accent sits on a dark surface with readable text. */
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page :is(.ws-today-event,.ws-upcoming-lesson,.ws-day-lesson).is-current{background:#293c2c!important;color:#edf3fa!important;border-left:3px solid #b7f500!important;border-bottom-color:#34485e!important}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page .is-current :is(.airy-live-label,small){color:#d2ef9a!important}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page .ws-today-event{border-bottom-color:#34485e!important}
html[data-theme=dark] .ws-today-event .airy-day-status{border-color:#a9b9cc}
html[data-theme=dark] .ws-today-event.is-current .airy-day-status{border-color:#b7f500}

/* 6.23: current cabinet surfaces previously missed by the legacy theme rules. */
html[data-theme=dark] body :is(.lesson-folder-card,.lesson-folder-preview,.airy-feed-item,.airy-next-lesson,.progress-count,.airy-center-modes){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important;--folder-color:#253448!important}
html[data-theme=dark] body :is(.lesson-folder-card,.lesson-folder-preview) :is(strong,small,span){color:inherit!important}
html[data-theme=dark] body .ws-widget :is(.ws-editable,.lesson-rich){color:#edf3fa!important;background:transparent!important}
html[data-theme=dark] body :is(.airy-bar-count,.block-drag-handle){color:#b5c6db!important}
html[data-theme=dark] body .ws-plan-icon{background:#b7f500!important;color:#101720!important}
html[data-theme=dark] body :is(.lesson-card-menu,.studio-menu)>summary{background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body.lesson-editor.studio-editor .editor-panel-tabs.lm-segmented>button:is(.active,[aria-selected=true],[aria-pressed=true]){background:transparent!important;color:#101720!important;border-color:transparent!important}
html[data-theme=dark] body.lesson-editor.studio-editor .tabs>button.active{background:#34485e!important;color:#edf3fa!important}
html[data-theme=dark] body.lesson-editor.studio-editor .tabs.lm-segmented>button:is(.active,[aria-selected=true],[aria-pressed=true]){background:transparent!important;color:#101720!important;border-color:transparent!important}
html[data-theme=dark] body .airy-action-icon{background:#34485e!important;color:#a7c9f5!important}
html[data-theme=dark] body .progress-count[data-color=mint]{background:#263f39!important}
html[data-theme=dark] body .progress-count[data-color=air]{background:#283e55!important}
html[data-theme=dark] body .progress-count[data-color=peach]{background:#49392d!important}
html[data-theme=dark] body .airy-next-caption{color:#b5c6db!important}
html[data-theme=dark] body .experience-assembly-tile{background:#253448!important;border-color:#425b76!important;color:#edf3fa!important}
html[data-theme=dark] body .ls-editor-tools span{background:#34485e!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body .ls-role-grid p{color:#b5c6db!important}
html[data-theme=dark] body :is(.ws-actions-popover,.ws-pages-popover) button:not(.primary){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body :is(.ws-actions-popover,.ws-pages-popover) button:not(.primary):hover{background:#34485e!important}
html[data-theme=dark] body .ws-mandatory-plan strong{color:#b5c6db!important}
/* Secondary text and cabinet menus retain contrast against their actual surface. */
html[data-theme=dark] body :is(.lesson-folder-open small,.studio-course-summary,.studio-pupil-head,.studio-pupil-row small,.studio-pupil-work,.ws-plan-required,.ls-feature p,.ls-editor-content small,.ls-footer,.lesson-editor .status,.optional-file-trigger){color:#b5c6db!important}
html[data-theme=dark] body .ws-pages-menu>summary{background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body .workspace-page.ws-focus-page :is(.ws-actions-popover,.ws-pages-popover) button:not(.primary){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body :is(.ws-empty-slot,.ws-week-card){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body .ws-week-day-button.is-today{background:#34485e!important;color:#edf3fa!important;border-color:#b7f500!important}
/* Catalog miniatures are UI previews, never the pupil's authored media. */
html[data-theme=dark] body .ws-catalog :is(.ws-widget-mini,.wm-note,.wm-file-sheet,.wm-clock-face,.wm-table span,.wm-lesson,.wm-button){background:#253448!important;color:#edf3fa!important;border-color:#6385ab!important}
html[data-theme=dark] body .ws-catalog :is(.wm-check.done,.wm-calendar-grid .today){background:#b7f500!important;color:#101720!important;border-color:#b7f500!important}
html[data-theme=dark] body .ws-catalog :is(.wm-clock-hour,.wm-clock-minute,.wm-clock-pin){background:#a7c9f5!important}
html[data-theme=dark] body.lesson-editor.studio-editor #status{color:#b5c6db!important}
html[data-theme=dark] body:has(.v6-main-nav) .workspace-page.ws-focus-page .ws-widget .ws-week-day-button.is-today .ws-week-date{background:#b7f500!important;color:#101720!important}
html[data-theme=dark] body :is(.response-box,.ix-passage,.ix-branch-current,.ix-flashcard,.grouping-card,.grouping-count){background:#253448!important;color:#edf3fa!important;border-color:#425b76!important}
html[data-theme=dark] body .grouping-zone{background:color-mix(in srgb,var(--group-color) 20%,#1b2635)!important;border-color:color-mix(in srgb,var(--group-color) 60%,#6385ab)!important}
html[data-theme=dark] body .ix-branch-choice{color:#b5c6db!important}
html[data-theme=dark] body :is(.response-status.error,.response-recording){color:#ffb3bc!important}
/* The notebook template's more specific light grid used to beat its dark header. */
html[data-theme=dark] .ld-header[data-template=notebook][data-header=template]{background-color:#253448!important}
html[data-theme=dark] .ld-header .ld-badge{background:#34485e!important;color:#edf3fa!important}
html[data-theme=dark] body :is(.form-error,.ld-error){color:#ffb3bc!important}

/* Selected course tabs remain readable before the animated indicator is ready. */
/* The indicator owns motion; WebKit can defer a button background transition
   while already applying its dark selected ink. Keep this pair atomic. */
html[data-theme=dark] body .studio-tabs.lm-segmented>button{transition:none!important}
html[data-theme=dark] body .studio-tabs.lm-segmented>button:is(.active,.primary,[aria-current=page],[aria-pressed=true],[aria-selected=true]){background:#b7f500!important;color:#101720!important;border-color:transparent!important}


/* Adapt pasted rich-text colors as a pair without touching images or formulas. */
html[data-theme=dark] body .lesson-rich{color:#e6edf7}
html[data-theme=dark] body .lesson-rich [data-rich-color=neutral]{color:#e6edf7!important}
html[data-theme=dark] body .lesson-rich [data-rich-color=accent]{color:color-mix(in srgb,var(--rich-authored-ink) 45%,#ffffff)!important}
html[data-theme=dark] body .lesson-rich [data-rich-background=neutral]{background-color:transparent!important}
html[data-theme=dark] body .lesson-rich [data-rich-background=accent]{background-color:color-mix(in srgb,var(--rich-authored-bg) 22%,#172334)!important;color:#f4f7fc!important}
html[data-theme=dark] body .lesson-rich a{color:#a7c9ff!important}
html[data-theme=dark] body .lesson-rich :is(td,th){border-color:#64758d}
.work-header .timer{font-variant-numeric:tabular-nums;min-width:5ch;text-align:center}
