/* Shared appearance controls; loaded after each collection's own components. */
:root{color-scheme:light}
.header-controls{display:flex;align-items:center;gap:10px;flex:none}
.site-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;min-height:44px;flex:none;padding:10px;border:1px solid var(--control);background:var(--paper);color:var(--ink);border-radius:0;cursor:pointer}
.site-theme-toggle:hover{background:var(--mint)}
.site-theme-toggle svg{width:20px;height:20px;flex:none}
.site-theme-toggle .theme-sun{display:none}
.site-theme-toggle [data-site-theme-label]{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.site-theme-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
:root .skip-link{background:var(--ink);color:var(--paper)}
:root[data-theme=dark] .site-theme-toggle .theme-moon{display:none}
:root[data-theme=dark] .site-theme-toggle .theme-sun{display:block}
:root[data-theme=dark]{color-scheme:dark;background:#182227;--paper:#182227;--white:#243136;--mint:#304238;--ink:#e8eee8;--muted:#b0beb8;--line:#465958;--control:#7e9691;--orange:#efb08e;--terracotta:#efb08e;--focus:#cbe886;--lime:#cbe886;--hub-image-paper:#22332c;--hub-image-ink:#e8eee8;--hub-audio-paper:#202d4e;--hub-audio-ink:#edf0ff;--hub-everyday-paper:#2d251f;--hub-everyday-ink:#f7efe2;--hub-everyday-art:#382e21;--hub-everyday-muted:#d4c2ab;--hub-everyday-accent:#f3a281;--hub-display:#d6b9e3}
:root[data-theme=dark] :is(.video-page,.media-page,.video-studio-page,.v-embedded){--v-paper:#211d2b;--v-surface:#2a2535;--v-soft:#3a3046;--v-ink:#f4edf7;--v-line:#84728f;--v-muted:#c1b3cb;--v-stage:#15121c;--v-accent:#efad91;--v-butter:#f1ddab;--paper:var(--v-paper);--white:var(--v-surface);--mint:var(--v-soft);--ink:var(--v-ink);--line:var(--v-line);--muted:var(--v-muted);--control:#a28db2;--lime:var(--v-butter);--terracotta:var(--v-accent);--orange:#efad91;--focus:#f1ddab}
:root[data-theme=dark] :is(.audio-page,.audio-studio-page){--paper:#141b31;--white:#1b2540;--mint:#263354;--ink:#edf0ff;--muted:#b1bdd9;--line:#6478a0;--control:#8e9dc4;--lime:#b4c2ff;--terracotta:#bdc8ff;--orange:#bdc8ff;--focus:#b4c2ff}
:root[data-theme=dark] .a-editor{--a-paper:#141b31;--a-surface:#1b2540;--a-soft:#263354;--a-ink:#edf0ff;--a-muted:#b1bdd9;--a-border:#6478a0;--a-wave:#a6b7ff;--a-grid:#2d3c60;--a-accent:#b4c2ff;--control:#8e9dc4;--focus:#b4c2ff;color-scheme:dark}
:root[data-theme=dark] .everyday-page{--white:var(--u-surface);--mint:#40372b;--lime:var(--u-accent);--orange:var(--u-rust);--terracotta:var(--u-rust);--control:var(--u-control);--focus:var(--u-accent)}
:root[data-theme=dark] ::selection{background:var(--lime);color:#182227}
:root[data-theme=dark] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
:root[data-theme=dark] .nav .nav-cta{background:var(--lime);color:#182227}
:root[data-theme=dark] .button:hover{color:#182227}
:root[data-theme=dark] .button.secondary:hover{background:var(--mint);color:var(--ink)}
:root[data-theme=dark] .quality-label output{background:var(--lime);color:#182227;border-color:var(--lime)}
:root[data-theme=dark] .workspace-steps button[aria-current=step]{color:#182227}
:root[data-theme=dark] .workspace-steps button[aria-current=step] span{color:inherit;opacity:1}
:root[data-theme=dark] :is(.catalog-filters button[aria-pressed=true],.preview-mode button[aria-pressed=true],.result-view-controls button[aria-pressed=true],.studio-preview-controls [aria-pressed=true]){color:var(--paper)}
:root[data-theme=dark] .catalog-filters button[aria-pressed=true] span:last-child,:root[data-theme=dark] .select-option[aria-selected=true] .select-check{color:inherit}
:root[data-theme=dark] .hero-canvas{background:var(--mint)}
:root[data-theme=dark] .hero-art-stage{background-image:linear-gradient(#e8eee80a 1px,transparent 1px),linear-gradient(90deg,#e8eee80a 1px,transparent 1px)}
:root[data-theme=dark] :is(.has-image .dropzone,.result-preview,.example-image.is-transparent,.studio-result-card img){background-color:#253338;background-image:repeating-conic-gradient(#253338 0% 25%,#334247 0% 50%);background-size:20px 20px;background-position:50%}
:root[data-theme=dark] .canvas-caption{border-color:var(--line)}
:root[data-theme=dark] :is(.audio-page,.video-page,.media-page) .brand-dot{color:var(--orange)}
:root[data-theme=dark] .audio-page :is(.hero-canvas,.a-feature){background:var(--mint)}
:root[data-theme=dark] .audio-page .hero-canvas .canvas-tag{background:var(--paper);color:var(--ink)}
:root[data-theme=dark] .learning-card:hover,:root[data-theme=dark] .learning-card:focus-visible{background:var(--mint)}
:root[data-theme=dark] .learning-image{background:var(--white)}
:root[data-theme=dark] .creative-arrivals{background:var(--mint)}
:root[data-theme=dark] .creative-arrivals a{background:var(--paper);color:var(--ink);border-color:var(--control)}
:root[data-theme=dark] .creative-arrivals a:hover{background:var(--white)}
:root[data-theme=dark] .settings-section,:root[data-theme=dark] .settings-section[open] summary{border-color:var(--line)}
:root[data-theme=dark] .sample-strip{background:#111a1f;color:#e8eee8;border-color:var(--line)}
:root[data-theme=dark] .sample-strip h2{color:#e8eee8}
:root[data-theme=dark] .sample-strip p{color:#c2d0c8}
:root[data-theme=dark] .sample-strip .button{background:#cbe886;color:#182227;border-color:#cbe886}
:root[data-theme=dark] :is(.status.is-error,.v-app-status [data-v-status].is-error,.v-dialog [role=alert],.a-status-row .is-error){color:#ffb9a4}
:root[data-theme=dark] .studio-result-card.is-failed{background:#452d2a}
:root[data-theme=dark] .v-button:hover:not(:disabled){background:var(--v-soft);color:var(--v-ink);border-color:var(--v-ink)}
:root[data-theme=dark] .choice-cta{border-color:var(--line)}
:root[data-theme=dark] .footer-wordmark{color:var(--muted)}
@media(max-width:1023px){.site-header{gap:12px}.header-controls{margin-left:auto;gap:8px}}
@media(forced-colors:active){.site-theme-toggle{border:1px solid ButtonText}}

/* One scrollbar treatment for pages, panels, menus, tables and text fields. */
*{scrollbar-width:thin;scrollbar-color:var(--ui-muted,var(--u-control,var(--control))) transparent}
::-webkit-scrollbar{width:3px;height:3px}
::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:transparent}
::-webkit-scrollbar-thumb{background:var(--ui-muted,var(--u-control,var(--control)));border:0;border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:var(--ui-ink,var(--u-ink,var(--ink)))}
::-webkit-scrollbar-thumb:active{background:var(--ui-ink,var(--ink))}
::-webkit-scrollbar-button{display:none;width:0;height:0}
/* Chromium/Safari need auto here, otherwise the standard thin width overrides 3px. */
@supports selector(::-webkit-scrollbar){*{scrollbar-width:auto;scrollbar-color:auto}}
@media(forced-colors:active){
 *{scrollbar-width:auto;scrollbar-color:auto}
 ::-webkit-scrollbar{width:revert;height:revert}
 ::-webkit-scrollbar-thumb{background:CanvasText}
 ::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background:Canvas}
}
