/* Theme control is visible in the header at every viewport. */
.theme-switch{display:inline-flex;align-items:center;gap:2px;white-space:nowrap;flex-shrink:0;border:1px solid #42434d;background:#17171b;border-radius:11px;padding:2px}
.theme-switch button{min-height:34px;padding:5px 9px;border:1px solid transparent;border-radius:8px;color:#c5c6cf;background:transparent;font-size:.76rem;font-weight:800;line-height:1.15}
.theme-switch button:hover{background:#292a30;color:#fff}
.theme-switch button[aria-pressed=true]{color:#eff1e8;background:#31352a;border-color:#516039}
@media(max-width:890px){.top-actions{gap:5px}}
@media(max-width:480px){.theme-switch button{padding-inline:6px;min-height:34px;font-size:.71rem}}
@media(max-width:355px){.theme-switch button{padding-inline:5px}}
@media(max-width:305px){
 .top-inner:has(.theme-switch:not([hidden])){grid-template-columns:auto minmax(0,1fr) auto}
 .top-inner .brand{gap:4px}
 .theme-switch button{font-size:.66rem}
}

/* Warm paper and bright studio surfaces; type and states use darker brand tones. */
:root[data-theme=light]{
 color-scheme:light;
 --bg:#fbf9f4;--bg2:#f6f3eb;--card:#fff;--elev:#f7f5ef;--field:#fff;
 --line:#dedbd1;--line2:#c6c3b6;--text:#24251e;--sub:#4b4d40;--muted:#5e6053;
 --purple:#4b5c24;--violet:#6639a1;--lemon:#d9f57b;--reel-ink:#202a10;
 --lt-hover:#eeefd9;--lt-hover-border:#87965d;--lt-outline:#526b17;--lt-lime-text:#43571d;
 --lt-hero:#f8f6e8;
}
[data-theme=light] :focus-visible{outline-color:var(--lt-outline)}
[data-theme=light] ::selection{background:#e2edaf;color:#232815}
[data-theme=light] .top{background:var(--bg);border-color:var(--line)}
[data-theme=light] .brand-dot{color:var(--lt-lime-text)}
[data-theme=light] .top nav a,[data-theme=light] .nav-more>summary{color:var(--sub)}
[data-theme=light] .top nav a:hover,[data-theme=light] .top nav a.active,[data-theme=light] .nav-more>summary:hover,[data-theme=light] .nav-more[open]>summary,[data-theme=light] .nav-more:has(.active)>summary{background:#eef1df;border-color:#d7debd;color:#2c351a}
[data-theme=light] .more-links{background:var(--card);border-color:var(--line2);box-shadow:0 12px 24px #292b211a}
[data-theme=light] .more-links button:hover{background:var(--lt-hover)}
[data-theme=light] .theme-switch{background:#f1eee5;border-color:#d2cfc0}
[data-theme=light] .theme-switch button{color:#454b38}
[data-theme=light] .theme-switch button:hover{background:#e7e9d4;color:#242b14}
[data-theme=light] .theme-switch button[aria-pressed=true]{color:#2e4012;background:#e4edc8;border-color:#aab87e}
[data-theme=light] .top-actions .btn,[data-theme=light] .btn,[data-theme=light] .icon-only,[data-theme=light] .mini,[data-theme=light] .motion-button,[data-theme=light] .quiet-action{background:var(--card);border-color:var(--line2);color:var(--text)}
[data-theme=light] .btn:hover,[data-theme=light] .icon-only:hover,[data-theme=light] .mini:hover,[data-theme=light] .motion-button:hover,[data-theme=light] .quiet-action:hover{background:var(--lt-hover);border-color:var(--lt-hover-border);color:var(--text)}
[data-theme=light] .btn.primary{background:var(--lemon);border-color:#9bb14e;color:var(--reel-ink)}
[data-theme=light] .btn.primary:hover{background:#e4f99b;border-color:#8ba242}
[data-theme=light] .btn.danger{color:#8f2739;background:#fff0f2;border-color:#c9808a}
[data-theme=light] .btn.danger:hover{background:#fce1e6;border-color:#a45162}
[data-theme=light] .text-btn:hover{color:var(--text)}
[data-theme=light] .reel-hero{background:var(--lt-hero);border-color:#dbd8cb;color:var(--text)}
[data-theme=light] .reel-cover{background:var(--lt-hero)}
[data-theme=light] .reel-cover img,[data-theme=light] .reel-hero:not([data-frame=main]) .reel-cover img{width:63%;margin-left:auto;object-position:68% center}
[data-theme=light] .reel-cover:after,[data-theme=light] .reel-hero:not([data-frame=main]) .reel-cover:after{
 background:linear-gradient(90deg,#f8f6e8 0%,#f8f6e8 42%,#f8f6e8f7 54%,#f8f6e8cb 60%,#f8f6e829 77%,#f8f6e807 100%),linear-gradient(0deg,#f8f6e8bb,transparent 28%);
}
[data-theme=light] .reel-hero .eyebrow{background:#fffef3;border-color:#aeb98e;color:#39451e}
[data-theme=light] .reel-hero h1 em{color:var(--lt-lime-text)}
[data-theme=light] .reel-hero .hero-copy>p{color:#343b27}
[data-theme=light] .reel-hero .reel-outline{background:#fffef6;border-color:#a6a88f;color:#32391e;backdrop-filter:none}
[data-theme=light] .reel-dot,[data-theme=light] .reel-caption .motion-button,[data-theme=light] .reel-caption>span{background:#fffcf1;color:#37401f;border:1px solid #aeb391}
[data-theme=light] .reel-dot:hover{background:#eef0dc;color:#283411}
[data-theme=light] .reel-dot.active{background:var(--lemon);border-color:#91a34c;color:#283411}
[data-theme=light] .reel-live{background:#658329;box-shadow:none}
[data-theme=light] .reel-heading .eyebrow,[data-theme=light] .section-top .eyebrow{color:var(--lt-lime-text)}
[data-theme=light] .quick-tools h2{color:var(--text)}
[data-theme=light] .quick-tool,[data-theme=light] .access-note{background:var(--card);border-color:var(--line2);color:var(--text)}
[data-theme=light] .quick-tool .icon{color:var(--lt-lime-text)}
[data-theme=light] .quick-tool small,[data-theme=light] .access-note p,[data-theme=light] .ref-guidance{color:var(--sub)}
[data-theme=light] .access-note strong{color:var(--text)}
[data-theme=light] .quick-tool:hover,[data-theme=light] .quick-tool:focus-visible{background:var(--lt-hover);border-color:var(--lt-hover-border)}
[data-theme=light] .feature-card{background:#efebde;border-color:var(--line2)}
[data-theme=light] .feature-overlay{background:linear-gradient(0deg,#fffcf4 0%,#fffcf4 39%,#fffcf4ed 59%,#fffcf45e 77%,#fffcf400 100%)}
[data-theme=light] .feature-content h3{color:var(--text)}
[data-theme=light] .feature-content p{color:#383d2b}
[data-theme=light] .reel-tag{background:#f4f4e4;border-color:#b0b78c;color:#3d4a20}
[data-theme=light] .wait-tag{background:#efece4;border-color:#bfbaaa;color:#494536}
[data-theme=light] .live-tag,[data-theme=light] .engine{background:#e9f1d5;border-color:#a4b276;color:#324617}
[data-theme=light] .engine i{background:#5c7828}
[data-theme=light] .feature-action,[data-theme=light] .watch-film{background:#fffdf6;border-color:#a6aa90;color:#354123}
[data-theme=light] .feature-action:hover,[data-theme=light] .watch-film:hover{background:#eaf0d4;border-color:#8e9b65}
[data-theme=light] .panel,[data-theme=light] .modal,[data-theme=light] .example,[data-theme=light] .job-card,[data-theme=light] .ref-card,[data-theme=light] .arena-choice{background:var(--card);border-color:var(--line2);color:var(--text)}
[data-theme=light] .preview .job-card{background:transparent}
[data-theme=light] .arena-choice small,[data-theme=light] .scope,[data-theme=light] .quiet-text,[data-theme=light] .ref-guidance{color:var(--muted)}
[data-theme=light] .modes{background:#f3f1e9;border-color:var(--line)}
[data-theme=light] .mode:hover,[data-theme=light] .mode.active,[data-theme=light] .filter.active{background:#e7eed3;border-color:#a3b279;color:#304417}
[data-theme=light] :is(textarea,input:not([type=file]),select){background:var(--field);border-color:#a8a696;color:#25271d}
[data-theme=light] :is(textarea,input)::placeholder{color:#646453}
[data-theme=light] .upload{background:#f7f9ed;border-color:#8f9976;color:#24291b}
[data-theme=light] #photo-details{border-color:var(--line2)}
[data-theme=light] #photo-details summary{color:#394226}
[data-theme=light] #reference-group:has(#reference:focus-visible) .upload,[data-theme=light] #result-heading:focus-visible{outline-color:var(--lt-outline)}
[data-theme=light] .preview-icon{background:#edf1d8;border-color:#a9b980;color:#41561a}
[data-theme=light] .empty-result,[data-theme=light] .result-loaded{background:radial-gradient(at 50% 20%,#f2f5e1,#f8f7ed 75%);border-color:var(--line2)}
[data-theme=light] .preview-orbit{border-color:#aeb88d;color:#49601b}
[data-theme=light] .filter{background:var(--card);border-color:var(--line2);color:#454a37}
[data-theme=light] .filter:hover{background:#f2f4e7;border-color:#929e70;color:#29331c}
[data-theme=light] .catalog-card{--tint:#475e26;background:var(--card);border-color:var(--line2);color:var(--text)}
[data-theme=light] .catalog-card:hover,[data-theme=light] .catalog-card:focus-visible{background:#f4f7ea;border-color:#869961}
[data-theme=light] .catalog-card.kind-image{--tint:#603996}
[data-theme=light] .catalog-card.kind-audio{--tint:#8c4028}
[data-theme=light] .catalog-card:is(.kind-three,.kind-platform){--tint:#28588a}
[data-theme=light] .catalog-card.kind-effect{--tint:#825122}
[data-theme=light] .catalog-symbol{background:#f2f0e8;border-color:#cdc7b7}
[data-theme=light] .catalog-maker,[data-theme=light] .catalog-summary,[data-theme=light] .job-meta{color:var(--sub)}
[data-theme=light] .catalog-state{background:#efede6;border-color:#c4c0af;color:#55513f}
[data-theme=light] .catalog-details{color:var(--lt-lime-text)}
[data-theme=light] .empty-list{background:#f7f5ee;border-color:#a7a48f;color:var(--sub)}
[data-theme=light] .notice{background:#ecf0dd;border-color:#a3af7d;color:#34451f}
[data-theme=light] .notice.error{background:#fff0f2;border-color:#cf7e8d;color:#82273b}
[data-theme=light] .status{background:#ede8f8;color:#543876}
[data-theme=light] .status.done{background:#e5efdc;color:#345221}
[data-theme=light] .status:is(.failed,.cancelled){background:#f7e4ea;color:#7a2c43}
[data-theme=light] .result-media{background:#efeee5}
[data-theme=light] .docs-card pre{background:#f5f2e9;border:1px solid var(--line)}
[data-theme=light] .docs-card dt,[data-theme=light] code{color:#523d73}
[data-theme=light] .noscript{color:#82273b}
[data-theme=light] .modal::backdrop{background:#20231b76}
@media(max-width:620px){
 [data-theme=light] .reel-cover{inset:43% 0 0;mask-image:none}
 [data-theme=light] .reel-cover img,[data-theme=light] .reel-hero:not([data-frame=main]) .reel-cover img{width:100%;margin-inline:0;object-position:65% 58%}
 [data-theme=light] .reel-cover:after,[data-theme=light] .reel-hero:not([data-frame=main]) .reel-cover:after{background:linear-gradient(180deg,#f8f6e8 0%,#f8f6e8fa 17%,#f8f6e865 48%,transparent 73%),linear-gradient(0deg,#f8f6e8b3,transparent 31%)}
 [data-theme=light] .feature-overlay{background:linear-gradient(0deg,#fffcf4 0%,#fffcf4 50%,#fffcf4ed 67%,#fffcf400 100%)}
}
