:root{color-scheme:light}
.fit-status{font-size:11px;color:var(--ui-muted);line-height:1.4}
#ui-theme-toggle{flex-shrink:0;font-size:22px}
.connection-status{font-size:10px;color:var(--ui-muted);white-space:nowrap}
.connection-status[data-state="online"]{color:#71a88b}
.sync-alert{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:29;background:var(--ui-paper);color:var(--ui-ink);border:1px solid var(--ui-line);box-shadow:0 8px 35px #0003;border-radius:10px;padding:16px;max-width:92vw;width:480px;font-size:12px;line-height:1.6}
.sync-alert button{margin:10px 6px 0 0}
.sync-login{width:400px;max-width:90vw;padding:28px;background:var(--ui-paper);color:var(--ui-ink)}
.sync-login h2{margin-top:0;font:26px Georgia,serif}
.sync-login p{color:var(--ui-muted);font-size:12px;line-height:1.7}
html[data-ui-theme="dark"]{color-scheme:dark;--ui-bg:#19191f;--ui-paper:#23232c;--ui-ink:#e8e5ef;--ui-muted:#aaa4b8;--ui-line:#383640;--ui-accent:#ab95f1;--ui-accent-soft:#383046}
html[data-ui-theme="dark"] :is(.app-header,.inspector-panel,.dropdown,.layout-dialog){background:var(--ui-paper)}
html[data-ui-theme="dark"] :is(.slides-panel,.slide-actions){background:#202027;box-shadow:none}
html[data-ui-theme="dark"] .canvas-panel{background:radial-gradient(ellipse at 50% 42%,#28272f,#19191f)}
html[data-ui-theme="dark"] #deck-title{color:var(--ui-ink)}
html[data-ui-theme="dark"] :is(.button,.small-button,.add-mini,.palette,.layout-option,.color-control input){background:#2b2934;border-color:#47404f;color:#e0d8ed}
html[data-ui-theme="dark"] .button.primary{background:#8970d8;border-color:#8970d8;color:white}
html[data-ui-theme="dark"] :is(.button,.small-button,.add-mini,.layout-option):hover{background:#40364e}
html[data-ui-theme="dark"] :is(.button.subtle,.icon-button){background:transparent;color:#bdb1d0}
html[data-ui-theme="dark"] .icon-button:hover{background:#3b314a;color:#e3d4ff}
.slide-actions .slide-delete{display:inline-flex;align-items:center;justify-content:center}
.slide-actions .slide-delete:hover{color:#c34455;background:#fbecef}
html[data-ui-theme="dark"] .slide-actions .slide-delete:hover{color:#ff9aaa;background:#492d39}
html[data-ui-theme="dark"] .slide-card{border-color:#4a4355;background:#302a39}
html[data-ui-theme="dark"] .slide-item.selected .slide-card{border-color:#ac90ef;box-shadow:0 0 0 3px #3a304b}
html[data-ui-theme="dark"] :is(.field input,.field textarea,.field select,.table-editor input){background:#1e1c25;color:#e6dfef;border-color:#494150}
html[data-ui-theme="dark"] :is(.field>span,.repeat-heading,.layout-select strong,.layout-option strong,.palette-name,.color-field,.inspector-tabs button,.theme-description,.chart-help,.details summary){color:#bab0ca}
html[data-ui-theme="dark"] :is(.field small,.theme-footnote,.color-control code,.chart-editor th>span,.dialog-heading p,.layout-option small,.layout-select small){color:#a096b0}
html[data-ui-theme="dark"] :is(.layout-select,.upload-area,.chart-notice,.chart-type){background:#2e273b;border-color:#50405e;color:#c7b6dc}
html[data-ui-theme="dark"] .chart-type[aria-pressed="true"]{background:#443457;border-color:#ac90ef;color:#f0e6ff}
html[data-ui-theme="dark"] :is(.chart-type span,.inspector-tabs button[aria-selected="true"]){color:#c4a9f5}
html[data-ui-theme="dark"] .dropdown button{color:#e1d9ee}
html[data-ui-theme="dark"] .dropdown button:hover{background:#3c314b}
html[data-ui-theme="dark"] :is(.section-divider,.repeat-block,.details,.custom-colors){border-color:#413747}
html[data-ui-theme="dark"] .section-divider{background:#413747}
html[data-ui-theme="dark"] .aspect{background:#29252f;color:#bdb0cf;border-color:#51465d}
html[data-ui-theme="dark"] .uploaded-image{background:#19171f}
html[data-ui-theme="dark"] .table-editor th input{background:#332b40}
html[data-ui-theme="dark"] .chart-editor input[aria-invalid="true"]{background:#452632;border-color:#d18199}
html[data-ui-theme="dark"] .chart-input-error{color:#e6a0b7}
html[data-ui-theme="dark"] :is(.slide-item-label,#position-label,.canvas-toolbar,.canvas-hint,.local-note,#save-status){color:#a59ab5}
html[data-ui-theme="dark"] .palette[aria-pressed="true"]{border-color:#ae92ee;box-shadow:0 0 0 2px #41314f}
html[data-ui-theme="dark"] .toast{background:#c3b1e1;color:#241a31}
html[data-ui-theme="dark"] .toast.error{background:#b5677d;color:white}
html[data-ui-theme="dark"] .panel-heading h2 span{background:#3a3048;color:#c5b1dc}
@media(max-width:670px){#ui-theme-toggle{width:24px}.header-actions{gap:4px}}
