/* Theme only the application chrome; slide canvases retain their authored colours. */
.header-appearance-controls { display:none; }
body.editor-shell > header .header-appearance-controls { display:flex; align-items:center; gap:8px; grid-column:3; grid-row:1; justify-self:end; margin-left:auto; }
body.editor-shell > header .header-appearance-controls .account-menu { margin:0; }
#theme-toggle { display:grid; place-items:center; width:34px; height:34px; padding:6px; flex:none; background:var(--cx-surface-raised); color:var(--cx-text); border:1px solid var(--cx-line-strong); border-radius:8px; }
#theme-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#theme-toggle:focus-visible { outline:2px solid var(--cx-optic); outline-offset:2px; }
html[data-theme=light]:has(body.editor-shell) { background:#edf2f5; color-scheme:light; }
html[data-theme=light] body.editor-shell {
 --cx-bg:#edf2f5; --cx-surface:#fff; --cx-surface-raised:#e7eef3; --cx-surface-soft:#f5f8fa;
 --cx-line:#bdccd6; --cx-line-strong:#8ca2b0; --cx-text:#203440; --cx-muted:#4d6472;
 --cx-copper:#785315; --cx-copper-soft:#785315; --cx-optic:#176777; --cx-optic-soft:#176777; --cx-control-bg:#fff;
 background:#edf2f5; color:#203440; color-scheme:light;
}
html[data-theme=light] body.editor-shell > header { background:#fff; border-color:#bdccd6; color:#203440; }
html[data-theme=light] body.editor-shell > header b { color:#203440; }
html[data-theme=light] body.editor-shell :is(.account-menu>summary,.account-menu-card,.lecture-summary-card,.available-lecture-card,.lecture-profile,.workspace-library-drawer,.workspace-ribbon,.workspace-navigator,.workspace-inspector,.workspace-tab-group,.workspace-tab-panel,.lecture-media-dialog,.media-manager-card,.workspace-insert-dialog) { background:#f5f8fa; color:#203440; border-color:#bdccd6; }
html[data-theme=light] body.editor-shell .presentation-workspace { --workspace-border:#bdccd6; background:#edf2f5; }
html[data-theme=light] body.editor-shell .workspace-stage { background:#e5ecf1; }
html[data-theme=light] body.editor-shell .workspace-tab-group .workspace-inspector-heading { background:#dbe6ee; border-color:#9bb0be; }
html[data-theme=light] body.editor-shell .workspace-tab-group .workspace-context-tabs button { color:#334f60; border-bottom-color:#9bb0be; }
html[data-theme=light] body.editor-shell .workspace-tab-group .workspace-context-tabs button[aria-selected=true] { background:#f5f8fa; border-color:#9bb0be; border-bottom-color:#f5f8fa; color:#674e00; }
html[data-theme=light] body.editor-shell .workspace-slide-actions { background:#d3e1eb; border-color:#9bb0be; }
html[data-theme=light] body.editor-shell .workspace-slide-actions .workspace-command-icon { color:#725500; }
html[data-theme=light] body.editor-shell .workspace-slide-actions .workspace-command:hover:not(:disabled) { background:#b9cfdd; }
html[data-theme=light] body.editor-shell .workspace-thumbnail[aria-current=true] { background:#fff0b7; border-color:#a67b00; box-shadow:0 0 0 1px #a67b00; }
html[data-theme=light] body.editor-shell .workspace-thumbnail:hover { background:#dbe6ee; }
html[data-theme=light] body.editor-shell :is(input,select,textarea,.rich-text-editor,.rich-text-toolbar):not(.slide-canvas *) { background:#fff; color:#203440; border-color:#9bb0be; }
html[data-theme=light] body.editor-shell :is(p,label,legend,summary,h2,h3,small,.workspace-thumbnail-caption,.workspace-thumbnail-title,.workspace-stage-heading,.workspace-navigation-heading,.lecture-summary-text,.central-content-status,.content-width-status,.overlay-status,.overlay-opacity-status,.workspace-section-inspect):not(.slide-canvas,.slide-canvas *) { color:#334f60; }
html[data-theme=light] body.editor-shell :is(.workspace-command,.workspace-section-toggles button,.workspace-navigator-toggle,.manage-slide-images,.rich-text-toolbar button,.workspace-properties button):not(.primary) { background:#e3ebf1; color:#203440; border-color:#9bb0be; }
html[data-theme=light] body.editor-shell .workspace-slide-save .slide-save-button { color:#203440; }
html[data-theme=light] body.editor-shell :is(input,textarea)::placeholder { color:#657b88; }
/* Authored slide previews always use their own dark canvas defaults. */
html[data-theme=light] body.editor-shell .slide-canvas { color-scheme:dark; }
html[data-theme=light] body.editor-shell,
html[data-theme=light] body.editor-shell #app { background:#edf2f5!important; }
html[data-theme=light] body.editor-shell :is(.lecture-browser-sidebar,.lecture-sidebar,.available-lectures,.lecture-library,.lecture-browser-left > section) { background:#f5f8fa!important; border-color:#bdccd6; }
html[data-theme=light] body.editor-shell :is(.available-lecture-card,.lecture-profile,.lecture-browser-sidebar) :is(strong,span,small,a,h2,h3):not(.slide-canvas *) { color:#334f60; }
html[data-theme=light] body.editor-shell :is(input,select,textarea,.rich-text-editor):not(.slide-canvas *) { color:#203440!important; }
html[data-theme=light] body.editor-shell #theme-toggle { background:#e7eef3; color:#203440; border-color:#8ca2b0; }
html[data-theme=light] body.editor-shell :is(.lecture-tool-button,.profile-switch,.lecture-create-button) { background:#e7eef3; color:#203440; border-color:#8ca2b0; }
html[data-theme=light] body.editor-shell .approval-badge { background:#e1f2e9; border-color:#89b29b; color:#285b40; }
html[data-theme=light] body.editor-shell .slide-canvas { --cx-text:#f2f0e9; --cx-muted:#93a4ad; --cx-optic:#75c8d2; --cx-optic-soft:#b6e7ea; --cx-copper:#d6a05b; --cx-copper-soft:#f0c98f; }
/* Light home screen and interactive card states. */
html[data-theme=light] body.editor-shell .introduction-copy { background:linear-gradient(135deg,#fff,#eaf1f6); border-color:#bdccd6; box-shadow:0 12px 28px #20344014; }
html[data-theme=light] body.editor-shell .introduction-copy :is(h1,strong) { color:#203440; }
html[data-theme=light] body.editor-shell .introduction-copy .page-eyebrow { color:#785315; }
html[data-theme=light] body.editor-shell .available-lecture-card:is(:hover,:focus-within,.active) { background:#e7eff5; border-color:#8ca2b0; }
html[data-theme=light] body.editor-shell .available-lecture-select { background:transparent; color:#203440; }
html[data-theme=light] body.editor-shell .available-lecture-select:is(:hover,:focus-visible) { background:#dbe8f1; color:#203440; }
html[data-theme=light] body.editor-shell :is(.lecture-create-button,.lecture-tool-button,.profile-switch,.lecture-manage-button,.workspace-section-inspect,.workspace-section-toggles button,.workspace-navigator-toggle):is(:hover,:focus-visible):not(:disabled) { background:#dbe8f1; color:#203440; border-color:#8ca2b0; }
html[data-theme=light] body.editor-shell .available-lecture-select:focus-visible { outline:2px solid #176777; outline-offset:-2px; }

/* Template controls share the light editor palette; previews keep slide colours. */
html[data-theme=light] body.editor-shell .workspace-close-template { background:#e7eef3; color:#203440; border-color:#8ca2b0; }
