.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}
.studio-navigation-status{position:fixed;z-index:3000;top:14px;left:50%;display:flex;align-items:center;gap:9px;padding:9px 14px;border:1px solid #4a4140;border-radius:999px;background:#17191fee;color:#f4f5f7;box-shadow:0 12px 34px #0005;backdrop-filter:blur(12px);transform:translate(-50%,-8px);font-size:.7rem;font-weight:700;letter-spacing:.02em}.studio-navigation-status[hidden]{display:none}.studio-navigation-status i{width:13px;height:13px;border:2px solid #ffffff42;border-top-color:#ff7431;border-radius:50%;animation:studio-navigation-spin .7s linear infinite}.production-flow>a.navigation-pending{border-color:#8b4931;background:#2b1b16;color:#fff}.production-flow>a.navigation-pending>b{background:#ff6a2a;color:#fff}@keyframes studio-navigation-spin{to{transform:rotate(360deg)}}html[data-theme="light"] .studio-navigation-status{border-color:#ffd0bd;background:#fffffff2;color:#263044;box-shadow:0 12px 34px #34415a24}
@media(max-width:760px){.theme-toggle{right:12px;bottom:12px;width:40px;height:40px}}
@media(min-width:761px) and (max-width:1120px){.production-flow{gap:7px;padding:0 12px}.production-flow>a{min-width:0;flex:1 1 0;padding:9px 8px}.production-flow>i{display:none}}

/* The new page takes visual priority while its document and styles are prepared. */
.studio-navigation-curtain{position:fixed;z-index:2900;left:0;right:0;bottom:0;display:grid;place-items:center;background:#0b0e13dc;backdrop-filter:blur(5px)}
.studio-navigation-curtain[hidden]{display:none}
.studio-navigation-card{display:grid;justify-items:center;gap:11px;width:min(340px,calc(100vw - 36px));padding:28px 24px;border:1px solid #46546a;border-radius:16px;background:#1a2230;color:#f2f6fb;box-shadow:0 22px 70px #0008;text-align:center}
.studio-navigation-card i{display:block;width:36px;height:36px;border:3px solid #5d759a;border-top-color:#81b8ff;border-radius:50%;animation:studio-navigation-spin .75s linear infinite}
.studio-navigation-card strong{font-size:15px}
.studio-navigation-card span{color:#a8b8cb;font-size:12px}
html[data-theme="light"] .studio-navigation-curtain{background:#eaf1f6d9}
html[data-theme="light"] .studio-navigation-card{border-color:#b5c8dd;background:#fff;color:#173252;box-shadow:0 20px 60px #29446128}
html[data-theme="light"] .studio-navigation-card span{color:#60758e}