/* Light retains LUXWORLD's original palette. Dark uses explicit surfaces, not image inversion. */
:root{color-scheme:light;--surface:#fff;--surface-soft:#fafbf8}
.appearance-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--surface-soft);flex-shrink:0}
.appearance-switch button{border:0;border-radius:6px;min-height:32px;padding:6px 10px;font-size:11px;font-weight:500;line-height:1.2;background:transparent;color:var(--muted);gap:5px;white-space:nowrap}
.appearance-switch button[aria-pressed=true]{background:#e4ecdf;color:#214c32;box-shadow:0 1px 3px #20392e12}
.studio-login-appearance{position:absolute;top:50px;right:22px;z-index:3}
:root[data-theme=dark]{color-scheme:dark;--ink:#e4ebe3;--muted:#a7b4a5;--blue:#b7d3b6;--line:#38473e;--bg:#141c18;--gold:#d6bb83;--green:#263e30;--surface:#1c2821;--surface-soft:#233028;background:var(--bg);color:var(--ink)}
[data-theme=dark] body,[data-theme=dark] .studio-login-shell{background:var(--bg);color:var(--ink)}
[data-theme=dark] .sidebar,[data-theme=dark] .studio-shell .topbar,[data-theme=dark] .panel,[data-theme=dark] .studio-content .panel,[data-theme=dark] .studio-metric,[data-theme=dark] dialog,[data-theme=dark] .login,[data-theme=dark] .studio-login-shell .login,[data-theme=dark] .card{background:var(--surface);border-color:var(--line);color:var(--ink)}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea,[data-theme=dark] .studio-search-label #search,[data-theme=dark] .studio-login-shell .login input{background:#152019;color:var(--ink);border-color:#506050}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#91a08f;opacity:1}
[data-theme=dark] input:disabled,[data-theme=dark] select:disabled,[data-theme=dark] textarea:disabled{color:#a5b2a2;background:#263128;opacity:1}
[data-theme=dark] input[type=checkbox]{accent-color:#b7d3b6}
[data-theme=dark] button,[data-theme=dark] .button{color:#142319;background:#b7d3b6;border-color:#b7d3b6}
[data-theme=dark] .secondary,[data-theme=dark] .studio-content .secondary{color:#d5e3cf;background:var(--surface-soft);border-color:#50614e}
[data-theme=dark] .nav,[data-theme=dark] .studio-shell .nav{background:transparent;color:#b8c6b1;border-color:transparent}
[data-theme=dark] .nav.active,[data-theme=dark] .studio-shell .nav.active{background:#314833;color:#e5efdc}
[data-theme=dark] .row-link,[data-theme=dark] .studio-content .row-link{background:transparent;color:#bddbb9;border-color:transparent}
[data-theme=dark] .studio-brand .studio-brand-name strong{color:#e7ede0}
[data-theme=dark] .studio-brand .studio-brand-name span,[data-theme=dark] .eyebrow,[data-theme=dark] .studio-content .eyebrow{color:#cfb986}
[data-theme=dark] .studio-nav-label,[data-theme=dark] .studio-breadcrumb,[data-theme=dark] .studio-top-right,[data-theme=dark] .studio-footer,[data-theme=dark] .studio-user small,[data-theme=dark] .studio-login-note,[data-theme=dark] .studio-metric>small,[data-theme=dark] .studio-task small,[data-theme=dark] .studio-upcoming small,[data-theme=dark] .studio-jobs td small,[data-theme=dark] .studio-jobs td .row-link span,[data-theme=dark] .production-specs dt{color:#a5b59d}
[data-theme=dark] .studio-avatar{background:#344536;color:#d5e4ca}
[data-theme=dark] th,[data-theme=dark] .studio-content th{background:#25342a;color:#c3d0b9}
[data-theme=dark] td,[data-theme=dark] .studio-content td,[data-theme=dark] .studio-task,[data-theme=dark] .studio-upcoming,[data-theme=dark] .studio-history{border-color:var(--line)}
[data-theme=dark] .studio-content .tabs button{background:transparent;color:#adbea5;border-color:transparent}
[data-theme=dark] .studio-content .tabs button.active{color:#d0e7c7;border-bottom-color:#b7d3b6}
[data-theme=dark] .stepbar button.secondary{background:var(--surface-soft);color:#c8d7bd}
[data-theme=dark] .studio-hero,[data-theme=dark] .studio-login-story{background:#173d2e;color:#dbead3}
[data-theme=dark] .studio-hero .eyebrow{color:#dfc58a}
[data-theme=dark] .studio-content .next-action,[data-theme=dark] .production-window-card{background:#223127;color:var(--ink)}
[data-theme=dark] .studio-content .journey-number{background:#2c3a2e;border-color:#52644f;color:#c0cfb5}
[data-theme=dark] .studio-content .journey-list .current .journey-number{background:#b7d3b6;border-color:#b7d3b6;color:#142319}
[data-theme=dark] .journey-list .done .journey-number{background:#2b4935;color:#c1e2b6}
[data-theme=dark] .badge,[data-theme=dark] .studio-content .badge{background:#344633;color:#d0e0c3}
[data-theme=dark] .badge.green,[data-theme=dark] .studio-content .badge.green{background:#294b35;color:#c5e5b9}
[data-theme=dark] .badge.amber,[data-theme=dark] .studio-content .badge.amber,[data-theme=dark] .notice,[data-theme=dark] .production-missing{background:#423924;color:#f0d598;border-color:#d0b16e}
[data-theme=dark] .notice.error{background:#482b2a;color:#f0b9b3;border-color:#c67f76}
[data-theme=dark] .save-error{color:#f0b7aa}[data-theme=dark] .saved{color:#afd3a1}[data-theme=dark] .warning-count{color:#efd192}
[data-theme=dark] .sticky-actions{background:#1c2821f5;border-color:var(--line)}
[data-theme=dark] .stock-thumb{background:#e8ecdf}
[data-theme=dark] .studio-task-icon{background:#3e3928;color:#e6cc8d}
[data-theme=dark] .studio-queues .selected,[data-theme=dark] .studio-filters .selected{background:#b7d3b6;color:#142319;border-color:#b7d3b6}
[data-theme=dark] #environment-banner:not(:empty){background:#383222;color:#e6d29b}
[data-theme=dark] #toast{background:#dfe9d7;color:#17251b}
[data-theme=dark] dialog::backdrop{background:#040b08ad}
[data-theme=dark] .appearance-switch{background:#152019;border-color:#50614e}
[data-theme=dark] .appearance-switch button{background:transparent;color:#a7b9a0;border:0}
[data-theme=dark] .appearance-switch button[aria-pressed=true]{background:#354d37;color:#edf3e4;box-shadow:none}
@media(max-width:750px){.studio-top-right{gap:8px}.studio-top-right>.studio-avatar{display:none}.appearance-switch button{padding:6px 8px;min-height:34px}.studio-breadcrumb>span{max-width:125px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.studio-login-appearance{top:48px;right:14px}.studio-login-story{padding-top:82px}}
@media print{.appearance-switch,.studio-login-appearance{display:none!important}:root[data-theme=dark]{--ink:#111;--muted:#444;--blue:#173d2e;--line:#bbb;--bg:#fff;color-scheme:light}[data-theme=dark] body,[data-theme=dark] .panel,[data-theme=dark] .production-window-card,[data-theme=dark] th,[data-theme=dark] td{background:#fff!important;color:#111!important}}
@media(max-width:850px){.studio-top-right>span:not(.studio-avatar){display:none}}
@media(max-width:380px){.studio-breadcrumb>span{max-width:75px}.studio-shell .topbar{gap:8px}}
@media print{[data-theme=dark] *{color:#111!important;background:transparent!important;box-shadow:none!important;text-shadow:none!important}[data-theme=dark] body{background:#fff!important}}
