/* Shared opt-in interface surfaces for the Animation Editor theme.
   animation-editor-theme.css supplies the alternate palette. Original CSS stays intact.
   No model materials, artwork, SVG geometry colors or canvas pixels are recolored. */
.theme-comparison-switch {
    position: fixed; z-index: 60; right: 12px; bottom: 12px;
    padding: 7px 11px; border: 1px solid var(--ui-border, #25323c); border-radius: 7px;
    color: var(--ui-text, #e9f1f3); background: var(--ui-sidebar, #0a0f13); box-shadow: 0 3px 14px #0004;
    font: 11px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer;
}
.theme-comparison-switch[aria-pressed="true"] { border-color: #35d6d0; }
.theme-comparison-switch:focus-visible { outline: 2px solid #d9ff60; outline-offset: 3px; }
html[data-surfcad-theme="animation-editor"] {
    --site-bg: var(--ui-bg, #090e13); --site-surface: var(--ui-sidebar, #0a0f13); --site-surface-raised: var(--ui-card, #141d25);
    --site-surface-active: var(--ui-card, #141d25); --site-border: var(--ui-border, #25323c); --site-border-strong: var(--ui-border, #25323c);
    --site-text: var(--ui-text, #e9f1f3); --site-muted: var(--ui-muted, #a2b2bc); --site-teal: #35d6d0; --site-lime: #d9ff60;
    --bg: var(--ui-bg, #090e13); --surface: var(--ui-sidebar, #0a0f13); --soft: var(--ui-card, #141d25); --line: var(--ui-border, #25323c);
    --text: var(--ui-text, #e9f1f3); --muted: var(--ui-muted, #a2b2bc); --accent: #35d6d0;
    color: var(--ui-text, #e9f1f3); background: var(--ui-bg, #090e13);
}
html[data-surfcad-theme="animation-editor"] body {
    color: var(--ui-text, #e9f1f3); background: var(--ui-bg, #090e13);
    background-image: radial-gradient(ellipse at 78% 0, var(--ui-sidebar, #0a0f13) 0, transparent 65%);
    background-attachment: fixed;
}
html[data-surfcad-theme="animation-editor"] :is(.dashboard, .dashboard-main, .site-shell.picker-page, .picker-main, .app-shell, .workspace) {
    color: var(--ui-text, #e9f1f3); background-color: var(--ui-bg, #090e13);
}
html[data-surfcad-theme="animation-editor"] :is(.dashboard-nav, .site-shell.picker-page .picker-nav, .sidebar, .hollow-parts-panel, .cad-header, .topbar, .site-header, .public-footer) {
    color: var(--ui-text, #e9f1f3); background: var(--ui-sidebar, #0a0f13); border-color: var(--ui-border, #25323c);
}
html[data-surfcad-theme="animation-editor"] :is(.admin-overview-card, .admin-template-card, .admin-project-card, .project-card, .warehouse-card, .feature-grid article, .showcase-grid article, .auth-card, .empty, .admin-user-summary>span, .appearance-settings section, .design-scene-lighting, .production-access-dialog, .dialog, .panel-header) {
    color: var(--ui-text, #e9f1f3); background: var(--ui-card, #141d25); border-color: var(--ui-border, #25323c);
}
html[data-surfcad-theme="animation-editor"] :is(.admin-users-table, .admin-mail-table, .admin-error-table, .admin-referrals, .admin-visitor-table, .admin-users-row, .admin-mail-row, .admin-error-row) {
    color: var(--ui-text, #e9f1f3); background-color: var(--ui-sidebar, #0a0f13); border-color: var(--ui-border, #25323c);
}
html[data-surfcad-theme="animation-editor"] :is(thead, .admin-users-head),
html[data-surfcad-theme="animation-editor"] .admin-visitor-table th[scope="col"] {
    color: #35d6d0; background: var(--ui-card, #141d25); border-color: var(--ui-border, #25323c);
}
html[data-surfcad-theme="animation-editor"] :is(.admin-visitor-table td, .admin-visitor-table th, .admin-users-row, .dashboard-main>header, .viewport, .panel, .view-tabs, .three-visual-modes) {
    border-color: var(--ui-border, #25323c);
}
html[data-surfcad-theme="animation-editor"] :is(.admin-lead, .dashboard-nav nav a, .dashboard-nav .user span, .site-shell.picker-page .picker-nav nav button, .site-shell.picker-page .picker-user span, .picker-lead, .appearance-note, .hollow-parts-panel p) {
    color: var(--ui-muted, #a2b2bc);
}
html[data-surfcad-theme="animation-editor"] :is(.viewport, .diagram, .three-viewport, .view-tabs, .three-visual-modes, .viewport-show-control summary, .viewport-show-control>div, .design-rail-transition) {
    background-color: var(--ui-bg, #090e13); border-color: var(--ui-border, #25323c);
}
html[data-surfcad-theme="animation-editor"] :is(.sidebar input:not([type="range"]):not([type="checkbox"]):not([type="color"]), .sidebar select, .template-form input, .template-form select, .admin-user-filters input, .admin-user-filters select, .appearance-color-field .appearance-hex, .auth-card input) {
    color: var(--ui-text, #e9f1f3); background-color: var(--ui-bg, #090e13); border-color: var(--ui-border, #25323c);
}
html[data-surfcad-theme="animation-editor"] :is(.view-tabs button.active, .three-visual-modes button.active) {
    color: #35d6d0; background: var(--ui-card, #141d25);
}
html[data-surfcad-theme="animation-editor"] :is(.dashboard-nav nav a.active, .site-shell.picker-page .picker-nav nav button.active, .button.primary) {
    color: var(--ui-bg, #090e13); background: #d9ff60; border-color: #d9ff60;
}
html[data-surfcad-theme="animation-editor"] :is(.brand-domain-suffix, .kicker, .site-kicker, .dashboard-main a:not(.button):not(.project-card), .sidebar-mode-heading small) { color: #35d6d0; }
@media print { .theme-comparison-switch { display: none; } }
