:root{color-scheme:light}.theme-settings{display:grid;gap:12px}.theme-settings label{font-size:13px;font-weight:600}.theme-settings select{width:min(100%,300px);min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--cream)}.theme-settings select:focus-visible{outline:2px solid var(--violet);outline-offset:3px}:root[data-theme=dark]{color-scheme:dark;--ink: #f1ecf6;--muted: #b4aabc;--cream: #17141d;--line: #42394c;--violet: #bba3ff;--violet-deep: #d2bfff;--peach: #44312e;--surface: #211c29;--surface-raised: #2c2536;--surface-accent: #372b4a;--danger: #ff9daf;background:var(--cream);color:var(--ink)}:root[data-theme=dark] :is(.app-page,.editor-page,.viewer-page,.profile-page,.account-page,.auth-page){background:var(--cream);color:var(--ink)}:root[data-theme=dark] :is(.import-panel,.clip-card,.empty-state,.editor-card,.profile-card,.comment-form,.comments-empty,.metadata-editor,.shortcut-help>div,.artist-directory button,.offer-card,.install-card,.offer-confirm,.account-summary,.library-section,.library-overview>div,.continue-practice,.viewer-player-card,.adaptive-player:not(.immersive-player)>.viewer-settings){background:var(--surface);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){background-color:var(--surface-raised);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}:root[data-theme=dark] input:disabled{color:var(--muted);background:var(--surface)}:root[data-theme=dark] :is(.button-primary,.button-small){background:#7650d5;color:#fff}:root[data-theme=dark] :is(.button-primary,.button-small):hover{background:#8259de}:root[data-theme=dark] :is(.button:not(.button-primary):not(.button-small),.import-drawer-toggle,.favorites-filter,.view-switch,.tag-filters button,.library-random,.metadata-edit-button,.metadata-editor-heading>button,.trim-presets button,.tool-toggle,.practice-range button,.frame-controls button,.practice-counter button,.snapshot-carousel-actions button,.trim-trigger,.adaptive-player .speed-options button,.viewer-global-controls .mirror-toggle){background:var(--surface-raised);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] :is(.style-filters button.selected,.tag-filters button.selected,.view-switch button.selected,.tool-toggle.active,.adaptive-player .speed-options button.selected,.viewer-global-controls .mirror-toggle[aria-pressed=true],.trim-trigger[aria-pressed=true],.artist-directory button.selected,.artist-directory button:hover){background:var(--surface-accent);color:var(--violet-deep);border-color:#9b7bd1}:root[data-theme=dark] :is(.clip-tags span,.clip-artists span,.avatar,.artist-avatar,.comment-avatar,.search kbd,.search button,.shortcut-help kbd,.sync-indicator,.artist-directory summary span,.identified-dancers button,.inline-style-badge,.install-symbol,.install-steps li:before){background:var(--surface-accent);color:var(--violet-deep);border-color:var(--line)}:root[data-theme=dark] :is(.viewer-notebook-tabs,.viewer-page .adaptive-player .viewer-global-controls,.practice-toolbar,.practice-session,.cue-editor,.inline-trim,.volume-track,.clip-preparation,.demo-notice,.install-note,.account-next,.viewer-processing-notice){background:var(--surface-raised);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] :is(.viewer-notebook-tabs button[aria-selected=true],.clip-preparation-heading,.snapshot-drag-ghost span){color:var(--violet)}:root[data-theme=dark] .viewer-page .frame-controls .frame-step-button{background:var(--surface-raised);color:var(--violet-deep)}:root[data-theme=dark] .viewer-page .frame-controls .frame-step-button:hover{background:var(--surface-accent)}:root[data-theme=dark] .library-section .library-toolbar{background:var(--surface);border-color:var(--line)}:root[data-theme=dark] .library-section .library-notebook button{background:var(--surface-raised);color:var(--muted);border-color:var(--line)}:root[data-theme=dark] .library-section .library-notebook button.selected{background:var(--surface-accent);color:var(--ink);border-color:#9b7bd1}:root[data-theme=dark] .library-notebook button span{background:#ffffff12}:root[data-theme=dark] :is(.party-shelf,.library-toolbar .notebook-party){background:#30212d;color:#f1a7c7;border-color:#614154}:root[data-theme=dark] .party-shelf h2{color:#f1a7c7}:root[data-theme=dark] .party-shelf.is-drop-over{background:#4a2a3e}:root[data-theme=dark] :is(.party-shelf header>span,.party-shelf>p){color:#c1a6b5}:root[data-theme=dark] :is(.clip-date,.results-summary,.tag-filters>span,.library-overview small,.artist-directory small,.artist-options label,.artist-picker small,.optional,.legal-note,.viewer-hint,.comment-form-footer,.comment-content>div span,.metadata-editor label>span,.trim-presets>span,.clip-preparation-detail,.cue-empty,.account-heading p,.account-summary,.offer-usage span,.offer-label,.offer-price span,.install-card>p,.download-action>span,.install-steps p){color:var(--muted)}:root[data-theme=dark] :is(.account-summary strong,.account-summary a){color:var(--ink)}:root[data-theme=dark] :is(.practice-counter,.install-account,.form-success){background:#1f352d;border-color:#3b6251;color:#a6e5c8}:root[data-theme=dark] :is(.practice-counter strong,.practice-counter button,.install-account a){color:#a6e5c8}:root[data-theme=dark] :is(.form-error,.import-message.error,.library-menu-error,.clip-preparation.has-failed,.account-summary.quota-full){background:#40232f;color:var(--danger);border-color:#794355}:root[data-theme=dark] :is(.clip-error,.danger-zone>span,.danger-zone .delete-trigger,.clip-failure-details,.has-failed .clip-preparation-heading){color:var(--danger)}:root[data-theme=dark] .viewer-playback-error{background:#3b3020;color:#f0d49f}:root[data-theme=dark] .clip-preparation .clip-retry{background:var(--surface-raised);color:var(--danger)}:root[data-theme=dark] .drop-zone{background:var(--surface);border-color:var(--line)}:root[data-theme=dark] .drop-zone.is-dragging{background:var(--surface-accent)}:root[data-theme=dark] :is(.cue-context-menu,.library-context-menu,.snapshot-context-menu,.snapshot-drag-ghost){background:var(--surface-raised);color:var(--ink);border-color:var(--line);box-shadow:0 12px 48px #0008}:root[data-theme=dark] :is(.cue-context-heading button,.cue-timing-controls button,.library-menu-confirm button,.library-thumbnail-grid button){background:var(--surface-accent);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] :is(.cue-context-menu label>span,.cue-save-status,.library-menu-heading span,.library-thumbnail-choices>p,.library-menu-styles>p){color:var(--muted)}:root[data-theme=dark] :is(.library-context-menu>button,.snapshot-context-menu button){color:var(--ink)}:root[data-theme=dark] :is(.library-context-menu>button:hover:not(:disabled),.library-context-menu>button:focus-visible,.snapshot-context-menu button:hover,.snapshot-context-menu button:focus-visible,.cue-thumbnail-action){background:var(--surface-accent);color:var(--violet-deep)}:root[data-theme=dark] :is(.cue-context-delete,.library-context-menu .library-menu-delete,.snapshot-context-menu .snapshot-delete,.cue-thumbnail-error){color:var(--danger)}:root[data-theme=dark] :is(.cue-context-actions,.library-menu-heading,.library-menu-confirm,.library-thumbnail-choices,.library-menu-styles){border-color:var(--line)}:root[data-theme=dark] .library-menu-divider{background:var(--line)}:root[data-theme=dark] .library-menu-styles button{background:var(--surface);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] .library-menu-styles button[aria-checked=true]{background:var(--surface-accent);border-color:var(--violet)}:root[data-theme=dark] .library-menu-confirm .library-menu-confirm-delete{background:#ab3653;color:#fff}:root[data-theme=dark] .thumbnail-loading{background:linear-gradient(120deg,#302738,#44374f,#302738)}:root[data-theme=dark] :is(.thumbnail-editor,.artist-identification-panel,.artist-identification-compact,.artist-identification-list>button,.import-preview,.import-preview-caption){background:var(--surface);color:var(--ink);border-color:var(--line)}:root[data-theme=dark] :is(.identify-artists-button,.artist-picker-close,.import-followup a,.import-preview-caption button,.import-preview-placeholder>span){background:var(--surface-raised);color:var(--violet-deep);border-color:var(--line)}:root[data-theme=dark] :is(.artist-identification-list>button.selected,.identification-avatar,.identification-check,.clip-artist-avatar,.import-active-status,.import-cue-summary,.import-preview-media,.import-form .import-style-options label.selected){background:var(--surface-accent);color:var(--violet-deep);border-color:var(--line)}:root[data-theme=dark] .selected .identification-check{background:#7650d5;color:#fff}:root[data-theme=dark] .import-preview-drop{background:#372b4aeb}:root[data-theme=dark] :is(.clip-source-quality,.frame-controls){border-color:var(--line)}:root[data-theme=dark] :is(.clip-source-link,.clip-quality-retry,.import-cue-summary button){color:var(--violet)}:root[data-theme=dark] :is(.clip-source-link>small,.clip-quality-unknown,.clip-quality-details){color:var(--muted)}:root[data-theme=dark] .clip-quality-badge.available{background:#1f352d;color:#a6e5c8;border-color:#3b6251}:root[data-theme=dark] :is(.clip-quality-badge.unavailable,.import-active-status.has-failed){background:#40232f;color:var(--danger);border-color:#794355}:root[data-theme=dark] .clip-quality-badge.pending{background:var(--surface-accent);color:var(--violet-deep);border-color:var(--line)}
