/* One visual system for localized product pages and the creative application. */
html:not([data-theme=dark]){--bg:#faf9f6;--ink:#202b29;--muted:#727975;--line:#e2e4de;--green:#265e50;--lime:#dce7d4;--paper:#faf9f6;--brand:#265e50;--soft:#f0f2eb;--field-surface:#fff;--field-line:#d4dad2;--field-ink:#202b29;--field-muted:#727975}
html:not([data-theme=dark]) body{background:#faf9f6!important;background-image:none!important}
html:not([data-theme=dark]) :is(#site-header,#site-footer,.global-header){background:#faf9f6f5!important;border-color:#e2e4de!important}
html:not([data-theme=dark]) :is(.global-site main,#studio,#voices,#pricing,#page-voice-cloning){background:transparent!important}
html:not([data-theme=dark]) #studio[data-mode=script]{--studio-workspace-surface:#fff;--studio-workspace-outline:#dde1d9;--theater-field-border:#d4dad2;--theater-label:#727975}
html:not([data-theme=dark]) #studio[data-mode=video] #studio-video-panel{--video-workspace-surface:#fff;--video-workspace-outline:#dde1d9}
html:not([data-theme=dark]) :is(.studio-intro,.library-hero,.feature-page-header){background:transparent!important}
html:not([data-theme=dark]) #studio :is(#project-name,#script-input,.editrow>textarea,.dub-director-content textarea,.ui-select-trigger){background:#fafbf8;border-color:#d4dad2;color:#34403a}
html:not([data-theme=dark]) #studio :is(#project-name,#script-input,.editrow>textarea,.dub-director-content textarea):focus{background:#fff;border-color:#6f9682;outline-color:#265e501f}
html:not([data-theme=dark]) #studio :is(.studio-edit-toolbar,.studio-player){border-color:#e2e4de}
.global-header{backdrop-filter:blur(16px)}.global-header nav a{font-weight:500}.global-theme-toggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:transparent;color:var(--muted);font:inherit;font-size:11px;border-radius:8px;padding:7px 9px;min-height:34px;cursor:pointer;white-space:nowrap}
.global-hero{padding-top:82px;padding-bottom:68px}.global-site main{background:none}.global-scene{transform:none;box-shadow:0 16px 50px #29352b08;border-color:var(--line);background:#fff}.global-scene-bar{background:#f1f3ed;color:#7b827c}.global-scene-line{border-color:#eceee8}.global-scene-line p{color:#5f6962}.global-live-dot{background:#6b927b}.global-scene-line .global-wave{color:#aebd9f}.global-scene-footer{background:#fdfdfb}.global-solution{background:#fff;border-color:var(--line)}.global-solution:hover{border-color:#a1b4a4;background:#fff;box-shadow:0 8px 24px #29352b06}.global-final{background:#ecefe6}.global-guide pre{background:#f1f3ed}.global-header-actions{gap:12px}
html[data-theme=dark]{--paper:#171d1c;--ink:#e6eae6;--muted:#a4afa7;--line:#343f39;--brand:#abd0b8;--soft:#252e28}
html[data-theme=dark] body{background:#171d1c!important;background-image:none!important}
html[data-theme=dark] :is(#site-header,#site-footer,.global-header){background:#171d1cf5!important;border-color:#343f39!important}
html[data-theme=dark] .global-site main{background:none}html[data-theme=dark] .global-scene,html[data-theme=dark] .global-solution{background:#202724;border-color:#343f39}html[data-theme=dark] :is(.global-scene-bar,.global-scene-footer,.global-final,.global-guide pre){background:#242d27}html[data-theme=dark] .global-scene-line{border-color:#343f39}html[data-theme=dark] .global-scene-line p{color:#b5bfb7}html[data-theme=dark] .global-button.primary{background:#9BCEA9;border-color:#9BCEA9;color:#1b3024}html[data-theme=dark] .global-solution:hover{background:#26312b}html[data-theme=dark] .global-button.secondary:hover{background:#26312b}
html[data-theme=dark] #studio[data-mode=script]{--studio-workspace-surface:#202724;--studio-workspace-outline:#3b4740}html[data-theme=dark] #studio[data-mode=video] #studio-video-panel{--video-workspace-surface:#202724;--video-workspace-outline:#3b4740}
@media(max-width:900px){.global-hero{padding-top:48px;padding-bottom:48px}}@media(max-width:600px){.global-header{padding-inline:16px}.global-header-actions{gap:9px}.global-header .global-button{padding:7px 10px;font-size:10px}.global-language{font-size:11px}.global-brand{font-size:20px;gap:7px}.global-brand>img{width:30px;height:30px}.global-theme-toggle{padding:5px 7px;font-size:10px;min-height:30px}.global-hero{padding-top:38px}}

html[data-theme=dark]{--night-surface:var(--ui-workspace);--night-field:var(--ui-field);--night-soft:var(--ui-subtle);--field-surface:var(--ui-field);--field-ink:var(--ui-text);--field-line:var(--ui-field-border);--field-muted:var(--ui-secondary);--ui-surface:var(--ui-workspace);--ui-ink:var(--ui-text);--ui-muted:var(--ui-secondary);--ui-line:var(--ui-border)}

/* Creation is entered from page content or the primary navigation. */
#site-header .navright>[data-open],.global-header-actions>.global-button{display:none!important}

/* Daylight roles alias the shared palette rather than defining page-specific colors. */
html:not([data-theme=dark]){--bg:var(--ui-canvas);--paper:var(--ui-canvas);--green:var(--ui-accent);--brand:var(--ui-accent);--lime:var(--ui-selected);--soft:var(--ui-subtle);--line:var(--ui-border);--ink:var(--ui-text);--muted:var(--ui-secondary);--field-surface:var(--ui-field);--field-line:var(--ui-field-border);--field-ink:var(--ui-text);--field-muted:var(--ui-secondary);--field-accent:var(--ui-accent);--ui-accent-text:#fff}
html:not([data-theme=dark]) body{background:var(--ui-canvas)!important;background-image:none!important}
html:not([data-theme=dark]) :is(#site-header,.global-header){background:var(--ui-workspace)!important;border-color:var(--ui-border)!important}
html:not([data-theme=dark]) :is(button.primary,a.primary,.global-button.primary,#generate,#dub-start,#save){background:var(--ui-accent)!important;border-color:var(--ui-accent)!important;color:#fff!important}
html:not([data-theme=dark]) #site-header nav a[aria-current=page]{color:var(--ui-accent)!important;border-color:var(--ui-accent)!important}
html:not([data-theme=dark]) .site-theme-toggle{color:var(--ui-secondary);border-color:var(--ui-border)}
html:not([data-theme=dark]) .site-theme-toggle:hover{background:var(--ui-subtle);border-color:var(--ui-field-border)}
html:not([data-theme=dark]) #studio :is(#project-name,#script-input,.editrow>textarea,.dub-director-content textarea,.ui-select-trigger){background:var(--ui-field);border-color:var(--ui-field-border);color:var(--ui-text)}
