.theme-toggle{position:fixed;z-index:1000;right:18px;bottom:18px;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line,#d8dce6);border-radius:14px;background:var(--panel,#fff);color:var(--text,#182033);box-shadow:0 10px 32px #0002;cursor:pointer}.theme-toggle span{grid-area:1/1;font-size:1.05rem}.theme-sun{display:none}.theme-moon{display:block}html[data-theme="light"] .theme-sun{display:block}html[data-theme="light"] .theme-moon{display:none}
.batch-downloads{display:grid;gap:8px;margin:13px 28px 0}.batch-download-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.batch-download-row>span{display:grid;gap:3px}.batch-download-row strong{font-size:.75rem}.batch-download-row small{color:var(--muted);font-size:.65rem}.batch-download-row button{padding:8px 12px;border:1px solid #713b28;border-radius:8px;background:#221916;color:#ff9568;font-size:.68rem;cursor:pointer}.batch-download-row button:disabled{border-color:var(--line);background:var(--panel-2);color:var(--muted);cursor:not-allowed}
html[data-theme="light"]{color-scheme:light;--bg:#f5f7fb;--panel:#fff;--panel-2:#f7f8fb;--line:#dfe4ec;--muted:#697386;--text:#172033;--orange-soft:#fff0e9}
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] .studio-page,html[data-theme="light"] .chat-pane{background:#f4f6fa;color:#172033}
html[data-theme="light"] .studio-topbar,html[data-theme="light"] .production-flow,html[data-theme="light"] .sessions-pane,html[data-theme="light"] .handoff-pane,html[data-theme="light"] .asset-sidebar,html[data-theme="light"] .rail,html[data-theme="light"] .admin-sidebar{background:#fff;border-color:#dfe4ec}
html[data-theme="light"] .studio-logo,html[data-theme="light"] .production-flow>a.active,html[data-theme="light"] .flow-step.current,html[data-theme="light"] .brand{color:#172033}
html[data-theme="light"] .production-flow>a.active{background:#fff2ec;border-color:#ffc9b5}
html[data-theme="light"] .session-row.active,html[data-theme="light"] .asset-nav.active,html[data-theme="light"] .rail-link:hover,html[data-theme="light"] .rail-link.active,html[data-theme="light"] .admin-sidebar nav a:hover,html[data-theme="light"] .admin-sidebar nav a.active{background:#f2f4f8;color:#172033}
html[data-theme="light"] .composer-box,html[data-theme="light"] .message.user>div,html[data-theme="light"] .session-tip,html[data-theme="light"] .handoff-note,html[data-theme="light"] .asset-card,html[data-theme="light"] .pipeline-card,html[data-theme="light"] .panel,html[data-theme="light"] .admin-card,html[data-theme="light"] .metric-card{background:#fff;border-color:#dfe4ec}
html[data-theme="light"] .composer textarea,html[data-theme="light"] .script-block p,html[data-theme="light"] .dialogue-row p,html[data-theme="light"] .message p{color:#39445a}
html[data-theme="light"] .ghost-button,html[data-theme="light"] .prompt-group button,html[data-theme="light"] .secondary-button,html[data-theme="light"] .icon-button,html[data-theme="light"] .mini-button{background:#fff;color:#475166;border-color:#d8dee8}
html[data-theme="light"] .account-page{background:#f5f7fb;color:#172033}
html[data-theme="light"] .account-brand{background:linear-gradient(145deg,#fff7f2,#f3f5fa);color:#172033}
html[data-theme="light"] .account-brand p{color:#657087}html[data-theme="light"] .account-logo{color:#172033}
html[data-theme="dark"] .account-page{background:#0b0d12;color:#f4f6fa}html[data-theme="dark"] .account-card input{background:#151920;border-color:#343b48;color:#f4f6fa}html[data-theme="dark"] .account-switch{color:#9ba4b5}
html[data-theme="light"] .product-phase{background:#fff;border-color:#dfe4ec;color:#475166;box-shadow:0 7px 22px rgba(32,45,66,.05)}
html[data-theme="light"] .product-phase b,html[data-theme="light"] .production-flow>a>b,html[data-theme="light"] .flow-step b,html[data-theme="light"] .check-card>span,html[data-theme="light"] .asset-preview>span{background:#edf1f6;border-color:#d6dde8;color:#526078}
html[data-theme="light"] .product-phase strong{color:#172033}html[data-theme="light"] .product-phase small,html[data-theme="light"] .product-phase em{color:#697386}
html[data-theme="light"] .product-phase.current{border-color:#ffb99d;background:linear-gradient(100deg,#fff3ed,#fff)}html[data-theme="light"] .product-phase.current b,html[data-theme="light"] .production-flow>a.active>b,html[data-theme="light"] .flow-step.current b{background:#ff6a2a;border-color:#ff6a2a;color:#fff}
html[data-theme="light"] .product-phase.done b,html[data-theme="light"] .flow-step.done b,html[data-theme="light"] .check-card.complete>span{background:#e7f8f1;border-color:#a9dfca;color:#17865d}
html[data-theme="light"] .flow-card{background:linear-gradient(100deg,#fff,#f8f9fc);border-color:#dfe4ec}html[data-theme="light"] .flow-step:not(:last-child):after{background:#d9e0e9}
html[data-theme="light"] .new-session{background:#fff2ec;border-color:#ffc0a5;color:#d94b17}html[data-theme="light"] .attach-button{background:#edf1f6;color:#526078}html[data-theme="light"] .session-tip,html[data-theme="light"] .handoff-note{background:#f8f9fc}
html[data-theme="light"] .image-side-title button,html[data-theme="light"] .image-toolbar button{background:#fff;border-color:#d8dee8;color:#475166}html[data-theme="light"] .project-row.active,html[data-theme="light"] .asset-kind-nav button.active{background:#fff0e9;color:#d94b17}html[data-theme="light"] .asset-kind-nav button{color:#586579}
html[data-theme="light"] .visual-preview,html[data-theme="light"] .asset-preview{background:radial-gradient(circle at 50% 35%,#fff,#edf1f6 68%,#e4e9f0)}html[data-theme="light"] .visual-placeholder{color:#8290a4}html[data-theme="light"] .visual-actions button,html[data-theme="light"] .asset-card-body button,html[data-theme="light"] .pipeline-card button{background:#fff;border-color:#d8dee8;color:#475166}
html[data-theme="light"] .price-readonly{background:#fff8f4;border-color:#ffd4c2}html[data-theme="light"] .reference-drop{background:#f7f9fc;border-color:#bdc7d4}html[data-theme="light"] .batch-download-row button:not(:disabled){background:#fff0e9;border-color:#ffc0a5;color:#d94b17}
html[data-theme="light"] .project-row.active>button:first-child{color:#d94b17}html[data-theme="light"] .image-page-empty strong,html[data-theme="light"] .chat-empty strong,html[data-theme="light"] .session-select strong,html[data-theme="light"] .visual-body h3,html[data-theme="light"] .asset-dialog h2,html[data-theme="light"] .image-heading h1,html[data-theme="light"] .project-switcher strong,html[data-theme="light"] .wallet-mini strong{color:#172033}
html[data-theme="light"] .studio-top-actions>a,html[data-theme="light"] .image-toolbar,html[data-theme="light"] .visual-body p,html[data-theme="light"] .visual-meta,html[data-theme="light"] .asset-form-grid label,html[data-theme="light"] .reference-field{color:#586579}html[data-theme="light"] .production-flow>a:not(.active){color:#697386}
html[data-theme="light"] .session-row,html[data-theme="light"] .session-select,html[data-theme="light"] .project-row>button:first-child,html[data-theme="light"] .image-side-title,html[data-theme="light"] .batch-item strong,html[data-theme="light"] .generate-options h3{color:#39465a}html[data-theme="light"] .session-row small,html[data-theme="light"] .image-heading p,html[data-theme="light"] .reference-drop small{color:#697386}
.production-flow{position:relative}@view-transition{navigation:auto}::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}
@media(max-width:760px){.theme-toggle{right:12px;bottom:12px;width:40px;height:40px}}
