@font-face{font-family:GeistLocal;src:url('./assets/geist.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--bg:#f6f7fb;--ink:#171820;--muted:#7e808b;--line:#e2e3e9;--card:#fff;--primary:#7c5cff;--primary-dark:#6847e2;--accent:#f0edff;--lime:#c7ff5c;--sidebar:#14151a;--danger:#d44b55;--shadow:0 16px 42px rgba(31,25,58,.1)}
*{box-sizing:border-box}
html,body,#app{min-height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font-family:GeistLocal,"PingFang SC","Microsoft YaHei",Arial,sans-serif;font-size:16px}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:inherit;text-decoration:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.office-login-page{min-height:100vh;padding:24px;display:grid;place-items:center;background:radial-gradient(circle at 18% 10%,rgba(123,92,255,.16),transparent 35%),radial-gradient(circle at 88% 88%,rgba(80,220,190,.12),transparent 34%),#f7f7fb}
.office-login-card{width:min(420px,100%);padding:36px;background:rgba(255,255,255,.96);border:1px solid #e4e2ee;border-radius:24px;box-shadow:0 24px 70px rgba(31,25,58,.13)}
.office-login-logo{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#fff;font-weight:800;background:linear-gradient(135deg,#2e194d,#7c5cff);box-shadow:0 10px 24px rgba(124,92,255,.25)}
.office-login-kicker{margin:22px 0 12px;color:var(--primary);font-size:13px;font-weight:750}
.office-login-card h1{margin:0;font-size:28px;letter-spacing:-.04em}
.office-login-description{margin:12px 0 26px;color:#7d7885;font-size:14px;line-height:1.7}
.office-login-card form{display:grid;gap:18px}
.office-login-card label{display:grid;gap:8px;color:#383443;font-size:13px;font-weight:650}
.office-login-card input{width:100%;height:46px;padding:0 14px;border:1px solid #d9d6e4;border-radius:12px;outline:none;background:#fff;font-weight:500}
.office-login-card input:focus{border-color:#7352f4;box-shadow:0 0 0 3px rgba(115,82,244,.12)}
.office-login-card button{min-height:48px;border:0;border-radius:12px;color:#fff;background:#171522;font-size:14px;font-weight:750}
.office-login-help{margin:22px 0 0;text-align:center;color:#9a96a0;font-size:12px}
.office-login-error{margin:-4px 0 0;color:var(--danger);font-size:12px}
.shell{display:grid;grid-template-columns:86px minmax(0,1fr);min-height:100vh}
.app-sidebar{position:sticky;top:0;z-index:50;height:100vh;padding:18px 12px;color:#fff;background:var(--sidebar);display:flex;flex-direction:column;align-items:center;overflow:visible}
.logo-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:16px;color:#fff;background:#7c5cff;box-shadow:0 10px 28px rgba(124,92,255,.36);font-weight:800}
.nav-list{display:grid;gap:7px;margin-top:0}
.nav-icon{position:relative;display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:14px;color:#85878f;background:transparent;transition:.2s}
.nav-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nav-icon:hover{color:#fff;background:#22242a}
.nav-icon.is-active{color:var(--lime);background:#282a30;box-shadow:inset 0 0 0 1px #34363d}
.nav-icon::after{content:attr(aria-label);position:absolute;left:56px;z-index:100;padding:7px 10px;border-radius:8px;color:#fff;background:#24252a;font-size:12px;white-space:nowrap;opacity:0;pointer-events:none;transform:translateX(-5px);transition:.15s}
.nav-icon:hover::after{opacity:1;transform:translateX(0)}
.sidebar-bottom{display:grid;gap:8px;margin-top:auto}
.sidebar-credit{width:72px;padding:8px 4px;border:1px solid #30323a;border-radius:14px;color:#fff;background:#1d1f24;text-align:center;font:inherit}
.currency-symbol{display:grid;place-items:center;width:26px;height:26px;margin:0 auto 4px;border-radius:8px;color:#bdaeff;background:#302b48;font-size:14px}
.sidebar-credit small{display:block;color:#8f929d;font-size:9px}
.sidebar-credit strong{display:block;margin-top:2px;font-size:10px}
.provider-balance-card{padding:7px 3px 8px}
.provider-balance-card .provider-mark{display:grid;width:27px;height:27px;margin:0 auto 5px;place-items:center;border-radius:9px;color:#d8f1ff;background:#253b4a;font-size:10px;font-style:normal;font-weight:800}
.provider-balance-card .provider-mark.seedance{color:#e6f7ff;background:#245f82}
.provider-balance-card strong{color:#d6d9df;font-size:11px}
.provider-balance-card em{display:block;margin-top:3px;color:#7f8790;font-size:8px;font-style:normal;line-height:1.2}
.provider-balance-card em.is-ready{color:#75d6a0}
.provider-balance-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-top:18px}
.provider-balance-form label{display:grid;gap:7px;color:var(--muted);font-size:12px}
.balance-input-wrap{display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
.balance-input-wrap input{width:100%;border:0;outline:0;color:var(--text);background:transparent;font:inherit;font-weight:700}
.settings-note{display:block;margin-top:12px;color:var(--muted);line-height:1.6}
.main-wrap{min-width:0}
.app-header{position:sticky;top:0;z-index:25;display:flex;align-items:center;justify-content:space-between;height:76px;padding:0 32px;border-bottom:1px solid #e7e8ee;background:rgba(255,255,255,.88);backdrop-filter:blur(20px)}
.header-title{display:flex;align-items:center;gap:12px}
.header-title h1{margin:0;font-size:18px;font-weight:700}
.header-title p{margin:2px 0 0;color:#8a8c96;font-size:12px}
.header-actions{display:flex;align-items:center;gap:10px}
.icon-button,.avatar-button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #dedfe5;border-radius:13px;background:#fff;color:#666975}
.avatar-button{border:0;color:#fff;background:linear-gradient(135deg,#28222f,#7c5cff);font-size:12px;font-weight:800}
.icon-button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9}
.page-shell{width:min(1240px,100%);margin:0 auto;padding:40px 40px 64px}
.page-title{margin:0;font-size:34px;font-weight:650;letter-spacing:-.045em;line-height:1.15}
.page-subtitle{margin:9px 0 0;color:#7f818d;font-size:14px;line-height:1.7}
.eyebrow{margin:0 0 7px;color:#7658e8;font-size:12px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.home-grid{display:grid;grid-template-columns:1.42fr .78fr;gap:20px;margin-top:28px}
.model-card{position:relative;min-height:344px;padding:30px;border-radius:26px;color:#fff;overflow:hidden;background:radial-gradient(circle at 78% 28%,#8d6cff 0,#6241dc 28%,transparent 50%),linear-gradient(135deg,#272230,#111218 72%);box-shadow:0 22px 55px rgba(42,29,91,.18)}
.model-card[role="link"]{cursor:pointer;transition:transform .22s ease,box-shadow .22s ease}
.model-card[role="link"]:hover{transform:translateY(-3px);box-shadow:0 28px 64px rgba(37,103,145,.25)}
.model-card[role="link"]:focus-visible{outline:3px solid #9edcff;outline-offset:4px}
.model-card[role="link"]:hover .start-chip{transform:translateX(4px);box-shadow:0 10px 24px rgba(4,21,32,.2)}
.model-card::after{content:"";position:absolute;right:-48px;bottom:-82px;width:260px;height:260px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 28px rgba(255,255,255,.025),0 0 0 56px rgba(255,255,255,.018)}
.model-card .model-mark{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.08);font-size:11px;font-weight:700}
.model-card h2{max-width:480px;margin:50px 0 12px;font-size:36px;line-height:1.08;letter-spacing:-.05em}
.model-card p{max-width:480px;margin:0;color:rgba(255,255,255,.62);font-size:14px;line-height:1.7}
.start-chip{position:absolute;left:30px;bottom:28px;display:inline-flex;align-items:center;gap:12px;padding:12px 15px;border:0;border-radius:14px;background:#fff;color:#19171f;font-size:13px;font-weight:750;transition:.2s}
.start-chip span{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#eeeaff;color:#6c4dd8}
.side-stack{display:grid;gap:14px}
.mini-card{display:flex;justify-content:space-between;align-items:flex-start;min-height:155px;padding:22px;border:1px solid #dfe0e7;border-radius:24px;background:#fff;text-align:left;transition:.2s}
.mini-card:hover{border-color:#bdb1f0;transform:translateY(-2px);box-shadow:0 15px 35px rgba(53,44,90,.08)}
.mini-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#6848d5;background:#f0edff}
.mini-card h3{margin:22px 0 4px;font-size:16px}
.mini-card p{margin:0;color:#81838e;font-size:14px}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin-top:40px}
.section-heading h2{margin:0;font-size:18px;font-weight:650}
.text-button{border:0;background:transparent;color:#777985;font-size:14px}
.model-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.model-quick-card{display:grid;box-sizing:border-box;grid-template-columns:42px minmax(0,1fr) auto 20px;align-items:center;gap:12px;width:100%;height:68px;padding:0 16px;border:1px solid #dedfe8;border-radius:17px;color:inherit;background:#fff;text-align:left;text-decoration:none;cursor:pointer;transition:.18s}
.model-quick-card:hover{border-color:#bcaef4;transform:translateY(-2px);box-shadow:0 12px 28px rgba(61,49,112,.1)}
.model-quick-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#171820;color:#fff;font-size:12px;font-weight:800}
.model-quick-card-h3{grid-column:1/2}
.model-quick-mark-h3{background:linear-gradient(145deg,#193c50,#58a9d7)}
.model-quick-card strong,.model-quick-card small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.model-quick-card strong{font-size:15px}.model-quick-card small{margin-top:3px;color:#858793;font-size:11px}
.badge{padding:4px 8px;border-radius:999px;background:#e9e3ff;color:#6848d5;font-size:10px}
.recent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.recent-card{min-width:0;padding:14px;border:1px solid #e1e2e8;border-radius:18px;background:#fff}
.recent-thumb{aspect-ratio:16/9;border-radius:13px;background:linear-gradient(135deg,#2b2533,#785de0 55%,#d3ff72);position:relative;overflow:hidden}
.recent-thumb::after{content:"▶";position:absolute;inset:0;display:grid;place-items:center;color:#fff;text-shadow:0 2px 12px #000;font-size:18px}
.recent-card h3{margin:12px 0 4px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-card p{margin:0;color:#91939e;font-size:11px}
.create-page{height:calc(100vh - 76px);background:#f6f7fb;overflow:hidden}
.create-layout{display:grid;grid-template-columns:minmax(620px,1fr) 276px;height:100%;min-width:0}
.generator-panel{display:flex;flex-direction:column;padding:28px clamp(28px,5vw,72px);background:#fff;overflow:auto}
.generator-panel-inner{width:min(740px,100%);margin:0 auto}
.generator-head{display:flex;justify-content:space-between;align-items:flex-start}
.generator-head h2{margin:0;font-size:25px;letter-spacing:-.035em}.generator-head p{margin:7px 0 0;color:#858792;font-size:13px}
.field{margin-top:24px}.field-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#44404b;font-size:13px;font-weight:700}.field-label small{color:#9a9ca5;font-weight:500}
.model-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.select-card{padding:15px;border:1px solid #dedfe7;border-radius:15px;background:#fff;text-align:left;transition:.18s}.select-card strong{display:block;font-size:13px}.select-card small{display:block;margin-top:4px;color:#8a8c95;font-size:11px}.select-card.is-selected{border-color:#7c5cff;background:#f5f2ff;box-shadow:0 0 0 2px rgba(124,92,255,.1)}
.reference-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.upload-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;aspect-ratio:1;border:1px dashed #c9cad3;border-radius:15px;color:#747681;background:#f9f9fb;font-size:13px;overflow:hidden;transition:.18s}.upload-slot:hover{color:#6d4fdb;background:#f7f4ff;border-color:#7c5cff;transform:translateY(-1px)}.upload-slot small{color:#a0a2ac;font-size:11px}.upload-slot img,.upload-slot video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.upload-slot .remove-ref{position:absolute;top:6px;right:6px;z-index:3;width:26px;height:26px;border:0;border-radius:9px;color:#fff;background:rgba(14,14,18,.65)}
.aspect-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.aspect-option{display:flex;align-items:center;justify-content:center;gap:8px;height:58px;border:1px solid #dedfe7;border-radius:13px;color:#5f616b;background:#fff;font-size:12px;font-weight:650}.aspect-option.is-selected{color:#6848d7;background:#f1edff;border-color:#7c5cff;box-shadow:0 0 0 2px rgba(124,92,255,.12)}.ratio-icon{display:block;border:1.5px solid currentColor;border-radius:3px}.ratio-wide{width:20px;height:12px}.ratio-tall{width:10px;height:18px}.ratio-square{width:15px;height:15px}
.duration-row{display:grid;grid-template-columns:1fr 76px;align-items:center;gap:14px}.duration-row input{accent-color:#7c5cff}.duration-value{height:40px;display:grid;place-items:center;border:1px solid #dedfe7;border-radius:11px;background:#fff;font-size:13px;font-weight:700}
.prompt-box{position:relative;padding:0;border:1px solid #dedfe7;border-radius:17px;background:#fbfbfd;transition:.2s;overflow:hidden}.prompt-box:focus-within{border-color:#8e75ef;box-shadow:0 0 0 4px rgba(124,92,255,.1)}.prompt-box textarea{display:block;box-sizing:border-box;width:100%;min-height:150px;padding:38px 14px 14px 16px;border:0;border-radius:16px;resize:vertical;outline:none;overflow-y:auto;scrollbar-gutter:stable;background:transparent;color:#24222a;line-height:1.65}.prompt-box span{position:absolute;z-index:2;right:16px;top:12px;color:#a4a5ad;font-size:11px;pointer-events:none}
.generate-button{display:flex;align-items:center;justify-content:center;width:100%;height:50px;margin-top:18px;padding:0 18px;border:0;border-radius:14px;color:#fff;background:#7c5cff;font-size:15px;font-weight:750;box-shadow:0 12px 26px rgba(124,92,255,.24)}.generate-button:hover{background:#6847e2}.generate-button span{margin-left:auto;color:rgba(255,255,255,.68);font-size:12px;font-weight:500}
.history-panel{min-width:0;max-width:276px;padding:18px 10px;border-left:1px solid #e2e3e9;background:#f7f7fa;overflow-x:hidden;overflow-y:auto}.history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:0 2px}.history-head h3{margin:0;font-size:14px}.history-head small{display:block;margin-top:4px;color:#9a9ca6;font-size:10px}.history-head .text-button{padding:2px 0;color:#6d4fdb;font-size:10px;white-space:nowrap}.history-list{display:grid;min-width:0;max-width:100%;gap:10px;margin-top:12px;overflow-x:hidden}
.history-card{position:relative;display:block;box-sizing:border-box;min-width:0;max-width:100%;width:100%;padding:6px 6px 8px;border:1px solid #e3e4ea;border-radius:15px;background:#fff;overflow:hidden;transition:border-color .18s,box-shadow .18s,transform .18s}.history-card:hover{border-color:#cfc5f3;box-shadow:0 9px 22px rgba(61,49,112,.08);transform:translateY(-1px)}.history-preview{position:relative;width:100%;max-height:132px;aspect-ratio:16/9;border-radius:10px;background:linear-gradient(135deg,#15161b,#6649d8);overflow:hidden}.history-preview::after{display:none}.history-preview video{display:block;min-width:0;width:100%;height:100%;object-fit:cover}.history-placeholder-play{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:5px;color:#fff;background:rgba(8,9,14,.38);font-size:9px}.history-placeholder-play svg{width:20px;height:20px;fill:#9d74ff;stroke:#9d74ff}.history-copy{box-sizing:border-box;min-width:0;max-width:100%;padding:7px 2px 1px;overflow:hidden}.history-copy .history-card-title{display:-webkit-box;min-height:31px;color:#24222a;font-size:11px;line-height:1.4;white-space:normal;overflow:hidden;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.history-copy small{box-sizing:border-box;display:block;max-width:100%;margin-top:5px;font-size:9px;line-height:1.4;overflow:hidden}.history-meta-chip{padding:5px 6px;border-radius:6px;color:#728091;background:#f0f4fb;white-space:normal;overflow-wrap:anywhere}.history-card-footer{display:flex;align-items:center;gap:6px;min-width:0;margin-top:5px}.history-card-footer .history-cost-chip{flex:1;width:auto;min-width:0;max-width:none;margin-top:0;padding:4px 7px;border-radius:999px;color:#6d4fdb;background:#f0edff;white-space:nowrap;text-overflow:ellipsis}.history-canvas-button{display:inline-flex;align-items:center;justify-content:center;gap:3px;flex:0 0 auto;height:24px;padding:0 7px;border:1px solid #ded7f7;border-radius:999px;color:#6548ce;background:#faf8ff;font-size:9px;font-weight:700}.history-canvas-button:hover{color:#fff;border-color:#7153dd;background:#7153dd}.history-canvas-button svg{width:12px;height:12px;fill:none;stroke:currentColor}.status{display:inline-flex;margin-top:6px;padding:3px 7px;border-radius:999px;background:#eefbea;color:#3e8c48;font-size:9px}.status.queued{background:#f0edff;color:#6c4fd5}
@media(hover:none){.history-actions{opacity:1;transform:none}}
.empty-state{display:grid;place-items:center;min-height:210px;padding:30px;border:1px dashed #d6d7df;border-radius:18px;background:#fafafd;text-align:center}.empty-state .empty-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto;border-radius:16px;color:#7154dc;background:#f0edff}.empty-state strong{display:block;margin-top:14px;font-size:15px}.empty-state p{margin:7px 0 0;color:#9395a0;font-size:12px;line-height:1.6}
.library-page,.cost-page,.trash-page,.settings-page{width:min(1180px,100%)}
.asset-library-banner{display:flex;align-items:center;gap:13px;width:100%;margin-top:18px;padding:14px 16px;border:1px solid #e0e1e8;border-radius:16px;background:#fff;text-align:left;box-shadow:0 5px 16px rgba(30,31,40,.04)}.asset-library-banner-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;color:#6c4fd5;background:#f0edff}.asset-library-banner>div{flex:1;min-width:0}.asset-library-banner strong{display:block;font-size:14px}.asset-library-banner p{margin:2px 0 0;color:#7f818c;font-size:12px}.primary-button,.secondary-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 15px;border-radius:12px;font-size:13px;font-weight:700}.primary-button{border:0;color:#fff;background:#171522}.secondary-button{border:1px solid #dedfe7;color:#565863;background:#fff}.danger-button{border:1px solid #efc8cb;color:#c6454e;background:#fff6f6}
.managed-library-toolbar{position:sticky;top:75px;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:18px 0 12px;background:var(--bg)}.managed-library-toolbar strong{font-size:15px}.managed-library-toolbar p{margin:3px 0 0;color:#858792;font-size:13px}.toolbar-actions{display:flex;gap:8px}.managed-asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.asset-card{position:relative;padding:10px;border:1px solid #e0e1e8;border-radius:18px;background:#fff;transition:.18s}.asset-card:hover{transform:translateY(-2px);border-color:#bcaef4;box-shadow:0 12px 28px rgba(61,49,112,.08)}.asset-preview{position:relative;aspect-ratio:1;border-radius:13px;background:#eeeef2;overflow:hidden}.asset-preview img,.asset-preview video{width:100%;height:100%;object-fit:cover}.asset-kind{position:absolute;left:8px;top:8px;padding:4px 7px;border-radius:7px;color:#fff;background:rgba(17,17,22,.66);font-size:9px}.asset-card h3{margin:10px 2px 3px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-card p{margin:0 2px;color:#9698a2;font-size:10px}.asset-card-actions{display:flex;gap:5px;margin-top:9px}.asset-card-actions button{flex:1;height:31px;border:1px solid #e2e3e9;border-radius:9px;background:#fff;color:#6b6d77;font-size:10px}
.canvas-page{height:calc(100vh - 76px);background:#fff;overflow:hidden}.canvas-header{display:flex;align-items:center;justify-content:space-between;height:66px;padding:0 20px;border-bottom:1px solid #dedfe5;background:#fff}.canvas-header-left,.canvas-header-actions{display:flex;align-items:center;gap:10px}.canvas-header h2{margin:0;font-size:15px}.canvas-header input{width:210px;height:36px;padding:0 11px;border:1px solid transparent;border-radius:9px;font-weight:650}.canvas-header input:focus{outline:none;border-color:#d7d2ec;background:#faf9ff}.canvas-layout{display:grid;grid-template-columns:228px minmax(0,1fr);height:calc(100% - 66px)}.canvas-tools{display:flex;flex-direction:column;min-width:0;padding:14px 12px;border-right:1px solid #dedfe5;background:#fff;overflow:auto}.canvas-tool-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.canvas-tool{display:grid;place-items:center;gap:6px;min-height:70px;padding:8px;border:1px solid #e1e2e8;border-radius:12px;background:#fff;color:#5f616b;font-size:11px}.canvas-tool:hover{color:#6648d4;border-color:#baaef0;background:#faf9ff}.canvas-tip{margin-top:18px;padding:12px;border-radius:12px;background:#f5f3ff;color:#756b8c;font-size:10px;line-height:1.6}.canvas-surface{position:relative;overflow:hidden;touch-action:none;user-select:none;background-color:#07080c;background-image:radial-gradient(circle,#2a2c34 1px,transparent 1px);background-size:24px 24px}.canvas-world{position:absolute;inset:0;transform-origin:0 0}.canvas-node{position:absolute;z-index:2;width:260px;padding:12px;border:1px solid #d7d8e0;border-radius:17px;background:#fff;cursor:grab;box-shadow:0 10px 25px rgba(30,30,45,.08)}.canvas-node.selected{border-color:#7c5cff;box-shadow:0 0 0 3px rgba(124,92,255,.16),0 14px 32px rgba(58,40,128,.12)}.node-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.node-head strong{font-size:12px}.node-head-actions{display:flex;gap:3px}.node-head-actions button{width:25px;height:25px;border:0;border-radius:7px;color:#82848e;background:#f5f5f8}.node-preview{display:grid;place-items:center;aspect-ratio:16/9;margin-top:10px;border-radius:11px;color:#a9aab1;background:linear-gradient(135deg,#ececf1,#dfe0e7);font-size:11px;overflow:hidden}.node-preview img,.node-preview video{width:100%;height:100%;object-fit:cover}.canvas-node p{margin:8px 0 0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.canvas-node small{color:#92949f;font-size:10px}.zoom-controls{position:absolute;right:18px;bottom:18px;display:flex;align-items:center;padding:5px;border:1px solid #30313a;border-radius:12px;background:rgba(20,21,26,.9);color:#fff}.zoom-controls button{width:34px;height:32px;border:0;border-radius:8px;color:#bbbcc5;background:transparent}.zoom-controls span{width:48px;text-align:center;font-size:10px}
.cost-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:24px}.cost-summary-grid article{display:flex;align-items:center;gap:14px;min-width:0;padding:18px;border:1px solid #e1e2e8;border-radius:18px;background:#fff;box-shadow:0 7px 22px rgba(27,28,35,.04)}.cost-summary-icon{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:14px;color:#694bd4;background:#f0edff}.cost-summary-grid small{display:block;color:#82848f;font-size:12px}.cost-summary-grid strong{display:block;margin-top:3px;font-size:24px;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cost-summary-grid p{margin:2px 0 0;color:#a0a2ab;font-size:11px}.cost-chart-card{margin-top:18px;padding:22px;border:1px solid #e1e2e8;border-radius:20px;background:#fff}.cost-chart-head{display:flex;align-items:flex-start;justify-content:space-between}.cost-chart-head h2{margin:0;font-size:16px}.cost-chart-head p{margin:4px 0 0;color:#8b8d97;font-size:11px}.cost-chart{position:relative;height:280px;margin-top:24px;padding:10px 4px 26px 38px;border-bottom:1px solid #ececf0;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#eeeef3 50px)}.cost-bars{display:flex;align-items:flex-end;justify-content:space-around;height:100%;gap:14px}.cost-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;flex:1;height:100%;gap:8px}.cost-bar{width:min(42px,72%);min-height:3px;border-radius:8px 8px 3px 3px;background:linear-gradient(#8f77ef,#6549d5);box-shadow:0 8px 18px rgba(124,92,255,.16)}.cost-day small{position:absolute;bottom:2px;color:#8d8f99;font-size:10px}
.trash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.trash-card{padding:12px;border:1px solid #e1e2e8;border-radius:18px;background:#fff}.trash-preview{aspect-ratio:16/9;border-radius:13px;background:linear-gradient(135deg,#282a31,#8a8e9c);position:relative}.trash-preview::after{content:"已删除";position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(20,20,25,.35);font-size:12px}.trash-card h3{margin:12px 0 3px;font-size:13px}.trash-card p{margin:0;color:#9799a2;font-size:10px}.trash-card-actions{display:flex;gap:7px;margin-top:12px}.trash-card-actions button{flex:1;height:34px;border-radius:10px;font-size:10px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:24px}.settings-card{padding:22px;border:1px solid #e1e2e8;border-radius:20px;background:#fff}.settings-card.full{grid-column:1/-1}.settings-card h2{margin:0;font-size:16px}.settings-card>p{margin:7px 0 18px;color:#8b8d97;font-size:12px;line-height:1.6}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid #f0f0f3}.setting-copy strong{display:block;font-size:13px}.setting-copy small{display:block;margin-top:3px;color:#92949d;font-size:10px}.switch{position:relative;width:42px;height:24px;border:0;border-radius:999px;background:#d6d7de}.switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.16);transition:.18s}.switch.on{background:#7c5cff}.switch.on::after{left:21px}.office-account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.office-account-card{padding:15px;border:1px solid #e1e2e8;border-radius:16px;background:#fafafd}.office-account-card strong{font-size:13px}.office-account-card p{margin:4px 0 12px;color:#91939d;font-size:10px}.office-account-card button{height:31px;border:1px solid #e1e2e8;border-radius:9px;background:#fff;color:#6e707a;font-size:10px}.add-account-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-bottom:14px}.add-account-form input{height:40px;padding:0 12px;border:1px solid #dedfe7;border-radius:11px;outline:none}
.modal-backdrop{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:20px;background:rgba(15,15,20,.55);backdrop-filter:blur(4px)}.modal{width:min(560px,100%);max-height:min(720px,90vh);padding:22px;border-radius:22px;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.22);overflow:auto}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-head h2{margin:0;font-size:18px}.modal-head button{width:34px;height:34px;border:0;border-radius:10px;background:#f3f3f6}.modal-body{margin-top:18px}.toast-region{position:fixed;right:18px;bottom:18px;z-index:120;display:grid;gap:8px}.app-toast{min-width:240px;padding:12px 14px;border:1px solid #343641;border-radius:12px;color:#fff;background:#1b1c22;box-shadow:0 12px 30px rgba(0,0,0,.18);font-size:12px;animation:toast-in .22s ease}.app-toast.success{border-color:#49714e}.app-toast.error{border-color:#9c4249}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}}
.spin{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1050px){.home-grid{grid-template-columns:1fr}.side-stack{grid-template-columns:repeat(2,1fr)}.create-layout{grid-template-columns:1fr}.history-panel{display:none}.managed-asset-grid{grid-template-columns:repeat(3,1fr)}.cost-summary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.shell{grid-template-columns:1fr;padding-bottom:72px}.app-sidebar{position:fixed;top:auto;right:0;bottom:0;left:0;z-index:60;width:auto;height:72px;padding:8px 12px;flex-direction:row;justify-content:center}.logo-mark,.sidebar-bottom{display:none}.nav-list{display:flex;gap:4px;margin:0;overflow-x:auto}.nav-icon{width:42px;height:42px}.nav-icon::after{display:none}.app-header{height:66px;padding:0 16px}.header-title p{display:none}.page-shell{padding:28px 16px 48px}.page-title{font-size:27px}.model-quick-grid,.recent-grid,.side-stack,.settings-grid{grid-template-columns:1fr}.model-card{min-height:320px}.model-card h2{font-size:31px}.generator-panel{padding:22px 16px}.model-selector{grid-template-columns:1fr}.reference-grid{grid-template-columns:repeat(2,1fr)}.managed-asset-grid{grid-template-columns:repeat(2,1fr)}.managed-library-toolbar{top:65px;align-items:flex-start}.toolbar-actions{flex-wrap:wrap;justify-content:flex-end}.canvas-page{height:calc(100vh - 138px)}.canvas-layout{grid-template-columns:1fr}.canvas-tools{position:absolute;z-index:5;left:12px;top:150px;width:92px;padding:8px;border-radius:14px;border:1px solid #dedfe5;box-shadow:var(--shadow)}.canvas-tool-grid{grid-template-columns:1fr}.canvas-tip{display:none}.canvas-header{padding:0 10px}.canvas-header input{width:130px}.cost-summary-grid{grid-template-columns:1fr}.trash-grid{grid-template-columns:1fr}.office-account-grid{grid-template-columns:1fr}.add-account-form{grid-template-columns:1fr}.office-login-card{padding:28px 22px}}
@media(max-width:440px){.managed-asset-grid{grid-template-columns:1fr}.canvas-tools{display:none}.header-actions .icon-button{display:none}.aspect-options{grid-template-columns:1fr}.model-card{padding:24px}.start-chip{left:24px}}
.canvas-surface{cursor:grab}.canvas-surface.is-panning{cursor:grabbing}

/* Calm blue theme and layout normalization */
:root{--bg:#f3f8fc;--ink:#17222d;--muted:#748391;--line:#dce8f0;--primary:#67afe0;--primary-dark:#438fc4;--accent:#e7f4fc;--lime:#9edcff;--shadow:0 16px 42px rgba(45,96,128,.1)}
svg{display:block;width:20px;height:20px;max-width:100%;max-height:100%;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
button{line-height:1.25}
button svg{pointer-events:none}
.primary-button,.secondary-button,.danger-button,.generate-button,.start-chip,.canvas-tool{white-space:nowrap}
.primary-button>svg,.secondary-button>svg,.danger-button>svg,.generate-button>svg{width:18px;height:18px}
.nav-icon svg{width:20px;height:20px}
.mini-icon svg,.asset-library-banner-icon svg,.cost-summary-icon svg,.empty-icon svg{width:22px;height:22px}
.history-actions svg,.node-head-actions svg{width:15px;height:15px}
.history-actions .regenerate-action,.detailed-history-actions .regenerate-action{color:#7aa72b;background:#eef8dc}
.history-actions .regenerate-action:hover,.detailed-history-actions .regenerate-action:hover{color:#537c0b;background:#e1f3bd}
.upload-slot>svg{width:22px;height:22px}
.canvas-tool svg{width:23px;height:23px}
.office-login-page{background:radial-gradient(circle at 18% 10%,rgba(105,181,229,.2),transparent 36%),radial-gradient(circle at 88% 88%,rgba(125,211,235,.14),transparent 35%),#f4f9fc}
.office-login-logo{background:linear-gradient(135deg,#285a7d,#69b5e5);box-shadow:0 10px 24px rgba(75,157,210,.26)}
.office-login-card button{background:#438fc4}.office-login-card button:hover{background:#347fae}
.office-login-kicker,.eyebrow{color:#438fc4}
.office-login-card input:focus,.office-account-card input:not([type=checkbox]):focus{border-color:#67afe0;box-shadow:0 0 0 3px rgba(103,175,224,.16)}
.logo-mark{background:linear-gradient(145deg,#75c0eb,#4e9ed2);box-shadow:0 10px 28px rgba(79,158,210,.34)}
.avatar-button{background:linear-gradient(145deg,#5aa8d9,#337faf)}
.nav-icon.is-active{color:#a9e1ff;background:#26313a;box-shadow:inset 0 0 0 1px #354651}
.sidebar-credit .currency-symbol,.currency-symbol{color:#bce6ff;background:#253b4a}
.page-shell{width:min(1380px,100%)}
.model-card{background:radial-gradient(circle at 78% 28%,#8fd3fb 0,#4e9ed5 29%,transparent 52%),linear-gradient(135deg,#1f2b35,#101820 72%);box-shadow:0 22px 55px rgba(37,103,145,.18)}
.model-card .model-mark{background:rgba(220,243,255,.1);border-color:rgba(218,241,255,.22)}
.start-chip span{color:#438fc4;background:#e6f4fc}
.side-stack{grid-template-rows:repeat(2,minmax(0,1fr));height:344px}
.mini-card{height:100%;min-height:0;padding:24px}
.mini-card:hover{border-color:#9eccea;box-shadow:0 15px 35px rgba(45,112,154,.1)}
.mini-icon,.asset-library-banner-icon,.empty-state .empty-icon,.cost-summary-icon{color:#438fc4;background:#e6f4fc}
.model-quick-card:hover,.asset-card:hover{border-color:#9eccea;box-shadow:0 12px 28px rgba(48,112,151,.1)}
.model-quick-card [data-slot=badge],.badge{color:#347fae;background:#e4f3fc}
.model-quick-mark{background:#203543}
.recent-thumb{background:linear-gradient(135deg,#203543,#5aa9dc 56%,#bde9ff)}
.create-layout{grid-template-columns:minmax(620px,1fr) 276px}
.select-card.is-selected,.aspect-option.is-selected{border-color:#67afe0;background:#eaf6fd;box-shadow:0 0 0 2px rgba(103,175,224,.13);color:#347fae}
.upload-slot:hover{color:#438fc4;background:#f0f9fe;border-color:#67afe0}
.asset-library-banner:hover,.asset-library-banner.is-open{background:#f4faff;border-color:#a8d2eb}
.prompt-box:focus-within{border-color:#67afe0;box-shadow:0 0 0 4px rgba(103,175,224,.13)}
.duration-row input{accent-color:#67afe0}
.generate-button{gap:9px;background:#67afe0;box-shadow:0 12px 26px rgba(77,158,210,.24)}
.generate-button:hover{background:#438fc4}
.generate-button span{white-space:nowrap}
.status.queued{color:#347fae;background:#e4f3fc}
.history-preview{background:linear-gradient(135deg,#183749,#5eb3df)}
.history-actions button:hover{color:#347fae;background:#e4f3fc}
.managed-library-toolbar{align-items:flex-end}
.toolbar-actions{align-items:center;flex-wrap:nowrap}
.primary-button{background:#438fc4;min-width:max-content}
.primary-button:hover{background:#347fae}
.secondary-button,.danger-button{min-width:max-content}
.empty-state{min-height:320px}
.canvas-header{height:72px;padding:0 24px}
.canvas-header-left,.canvas-header-actions{min-width:0;flex-wrap:nowrap}
.canvas-header-actions .primary-button{min-width:116px}
.canvas-header-actions .secondary-button{min-width:104px}
.canvas-layout{grid-template-columns:240px minmax(0,1fr);height:calc(100% - 72px)}
.canvas-tools{padding:16px 14px}
.canvas-tool{min-width:0;min-height:78px;color:#526471}
.canvas-tool:hover{color:#347fae;border-color:#9eccea;background:#f1f9fe}
.canvas-tip{color:#54778e;background:#eaf6fd}
.canvas-node.selected{border-color:#67afe0;box-shadow:0 0 0 3px rgba(103,175,224,.18),0 14px 32px rgba(47,104,140,.14)}
.cost-bar{background:linear-gradient(#94d4f5,#4f9fd2);box-shadow:0 8px 18px rgba(79,159,210,.2)}
.switch.on{background:#67afe0}
@media(max-width:1050px){.side-stack{height:auto;grid-template-rows:none}.mini-card{min-height:155px}.create-layout{grid-template-columns:1fr}}
@media(max-width:760px){.page-shell{padding-top:26px}.canvas-header{height:66px;padding:0 12px}.canvas-header-left .badge{display:none}.canvas-layout{grid-template-columns:1fr;height:calc(100% - 66px)}.canvas-header-actions{gap:6px}.canvas-header-actions .primary-button,.canvas-header-actions .secondary-button{min-width:0;padding:0 11px}.managed-library-toolbar{align-items:flex-start}.toolbar-actions{flex-wrap:wrap}}

/* Day and night workspace themes */
.theme-switcher{display:flex;align-items:center;gap:7px}
.theme-button{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #dce5eb;border-radius:13px;color:#71808c;background:#fff;transition:.18s ease}
.theme-button svg{width:18px;height:18px}
.theme-button:hover{color:#347fae;border-color:#acd2e9;background:#f2f9fd}
.theme-button.is-active{color:#287fb7;border-color:#90c6e7;background:#dff1fb;box-shadow:0 5px 15px rgba(54,137,190,.14)}
body.theme-dark{--bg:#080d12;--ink:#edf4f8;--muted:#8d9ba5;--line:#27323b;--card:#111820;--sidebar:#070a0e;--shadow:0 16px 42px rgba(0,0,0,.3);background:#080d12;color:#edf4f8}
.theme-dark .main-wrap,.theme-dark .create-page,.theme-dark .library-page,.theme-dark .cost-page,.theme-dark .trash-page,.theme-dark .settings-page{background:#080d12}
.theme-dark .app-sidebar{background:#06090d;border-right:1px solid #1d2730}
.theme-dark .app-header{border-color:#24303a;background:rgba(10,15,20,.9);box-shadow:0 10px 32px rgba(0,0,0,.12)}
.theme-dark .header-title h1,.theme-dark .page-title,.theme-dark .section-heading h2,.theme-dark .generator-head h2,.theme-dark .history-head h3,.theme-dark .settings-card h2,.theme-dark .cost-chart-head h2{color:#f1f6f9}
.theme-dark .header-title p,.theme-dark .page-subtitle,.theme-dark .mini-card p,.theme-dark .recent-card p,.theme-dark .generator-head p,.theme-dark .field-label small,.theme-dark .history-copy small,.theme-dark .managed-library-toolbar p,.theme-dark .asset-card p,.theme-dark .cost-summary-grid small,.theme-dark .cost-summary-grid p,.theme-dark .cost-chart-head p,.theme-dark .trash-card p,.theme-dark .settings-card>p,.theme-dark .setting-copy small,.theme-dark .office-account-card p{color:#8796a1}
.theme-dark .theme-button,.theme-dark .icon-button{color:#8e9ca7;border-color:#2b3740;background:#111820}
.theme-dark .theme-button:hover,.theme-dark .icon-button:hover{color:#b8e4fc;border-color:#41677d;background:#17232c}
.theme-dark .theme-button.is-active{color:#0d4263;border-color:#74bce7;background:#bfe5fa;box-shadow:0 7px 18px rgba(0,0,0,.24)}
.theme-dark .mini-card,.theme-dark .model-quick-card,.theme-dark .recent-card,.theme-dark .select-card,.theme-dark .upload-slot,.theme-dark .asset-library-banner,.theme-dark .history-card,.theme-dark .empty-state,.theme-dark .asset-card,.theme-dark .cost-summary-grid article,.theme-dark .cost-chart-card,.theme-dark .trash-card,.theme-dark .settings-card,.theme-dark .office-account-card,.theme-dark .modal{color:#edf4f8;border-color:#27333d;background:#111820;box-shadow:0 10px 28px rgba(0,0,0,.15)}
.theme-dark .mini-card:hover,.theme-dark .model-quick-card:hover,.theme-dark .asset-card:hover{border-color:#426f88;box-shadow:0 14px 34px rgba(0,0,0,.26)}
.theme-dark .model-quick-mark{color:#dff4ff;background:#1d4c68}
.theme-dark .generator-panel{color:#edf4f8;background:#0c1218}
.theme-dark .history-panel{border-color:#26323b;background:#0a1016}
.theme-dark .history-head small{color:#71828d}.theme-dark .history-head .text-button{color:#86d0f4}.theme-dark .history-card:hover{border-color:#3f6e87;box-shadow:0 14px 32px rgba(0,0,0,.3)}.theme-dark .history-copy .history-card-title{color:#f1f6f9}.theme-dark .history-meta-chip{color:#aabac4;background:#17232c}.theme-dark .history-cost-chip{color:#a9e1ff;background:#173044}.theme-dark .history-canvas-button{color:#a9e1ff;border-color:#315267;background:#132631}.theme-dark .history-canvas-button:hover{color:#071018;border-color:#8dd7fb;background:#8dd7fb}
.theme-dark .field-label{color:#cbd7de}
.theme-dark .select-card.is-selected,.theme-dark .aspect-option.is-selected{color:#a8ddfa;border-color:#4e9dcd;background:#102536;box-shadow:0 0 0 2px rgba(74,157,207,.18)}
.theme-dark .upload-slot{color:#8998a3;background:#0e151c}
.theme-dark .upload-slot:hover,.theme-dark .asset-library-banner:hover,.theme-dark .asset-library-banner.is-open{color:#acdff9;border-color:#4d91b8;background:#10202b}
.theme-dark .aspect-option,.theme-dark .duration-value,.theme-dark .secondary-button,.theme-dark .asset-card-actions button,.theme-dark .office-account-card button{color:#c5d1d8;border-color:#2a3640;background:#111920}
.theme-dark .prompt-box{border-color:#2a3640;background:#0b1117}
.theme-dark .prompt-box textarea,.theme-dark .add-account-form input,.theme-dark .canvas-header input{color:#eaf2f6;background:#0b1117}
.theme-dark .prompt-box textarea::placeholder,.theme-dark .add-account-form input::placeholder{color:#667680}
.theme-dark .prompt-box:focus-within{border-color:#559fca;box-shadow:0 0 0 4px rgba(83,158,203,.13)}
.theme-dark .canvas-page,.theme-dark .canvas-header,.theme-dark .canvas-tools{color:#eaf2f6;border-color:#27333c;background:#0b1117}
.theme-dark .canvas-tool{color:#a5b3bd;border-color:#2b3740;background:#111920}
.theme-dark .canvas-tool:hover{color:#b9e7ff;border-color:#4b83a3;background:#132530}
.theme-dark .canvas-tip{color:#99bfd4;background:#10212c}
.theme-dark .canvas-node{color:#eaf2f6;border-color:#35434d;background:#121a22;box-shadow:0 12px 30px rgba(0,0,0,.3)}
.theme-dark .node-head-actions button{color:#9cabb5;background:#1a242c}
.theme-dark .node-preview{color:#81909a;background:linear-gradient(135deg,#1c252d,#11181e)}
.theme-dark .cost-chart{border-color:#2a353e;background:repeating-linear-gradient(to bottom,transparent 0,transparent 49px,#202b33 50px)}
.theme-dark .managed-library-toolbar{background:#080d12}
.theme-dark .asset-preview{background:#1a232b}
.theme-dark .setting-row{border-color:#222d35}
.theme-dark .switch{background:#35414a}
.theme-dark .office-login-page{background:radial-gradient(circle at 18% 10%,rgba(67,143,196,.14),transparent 36%),#070c11}
.theme-dark .office-login-card{color:#edf4f8;border-color:#29353e;background:rgba(15,22,29,.97);box-shadow:0 24px 70px rgba(0,0,0,.38)}
.theme-dark .office-login-card label{color:#cbd7de}
.theme-dark .office-login-card input{color:#edf4f8;border-color:#303c46;background:#0a1016}
.theme-dark .modal-head button{color:#cbd7de;background:#1a242c}
.theme-dark .text-button{color:#85c8ec}
@media(max-width:440px){.theme-switcher{gap:5px}.theme-button{width:38px;height:38px}.header-actions{gap:7px}}

/* Cinematic entrance */
.landing-page{position:relative;isolation:isolate;display:grid;min-height:100svh;overflow:hidden;color:#fff;background:#02070c}
.landing-page::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(1,5,9,.28) 0%,rgba(1,6,11,.05) 50%,rgba(1,6,10,.16) 100%),radial-gradient(circle at 50% 30%,transparent 0%,rgba(1,6,11,.04) 38%,rgba(1,6,11,.38) 100%);pointer-events:none}
.landing-page::after{content:"";position:absolute;inset:0;z-index:3;border:1px solid rgba(194,231,255,.1);box-shadow:inset 0 0 120px rgba(0,0,0,.42);pointer-events:none}
.landing-backdrop{position:absolute;inset:-4%;z-index:-2;background-image:url('./assets/hero-abstract-v2.png');background-position:center bottom;background-size:cover;filter:saturate(.88) brightness(.78) contrast(1.03) blur(1px);animation:landing-backdrop-loop 28s ease-in-out infinite alternate;will-change:transform,filter}
.landing-lightfield{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;mix-blend-mode:screen}
.landing-lightfield::before{content:"";position:absolute;left:-20%;bottom:-35%;width:92vw;height:82vh;border-radius:48%;background:radial-gradient(ellipse at 38% 44%,rgba(255,250,242,.22) 0%,rgba(255,178,128,.15) 18%,rgba(236,66,34,.13) 40%,rgba(91,8,20,.08) 60%,transparent 76%);filter:blur(68px);opacity:.68;transform:rotate(10deg) scale(1.02);animation:landing-warm-veil 24s ease-in-out infinite alternate;will-change:transform,opacity}
.landing-rays{position:absolute;left:-12%;bottom:-32%;width:98vw;height:76vh;border-radius:46% 54% 48% 52%;background:linear-gradient(28deg,rgba(244,244,235,.12) 0%,rgba(255,185,133,.14) 22%,rgba(235,67,32,.14) 44%,rgba(112,8,22,.08) 65%,transparent 79%);filter:blur(54px);opacity:.62;transform:rotate(8deg) scale(1.02);animation:landing-warm-ribbon 20s ease-in-out infinite alternate;will-change:transform,opacity}
.landing-rays::after{content:"";position:absolute;inset:12% 17% 22% 3%;border-radius:50%;background:radial-gradient(ellipse at 25% 55%,rgba(255,255,249,.2),rgba(255,126,72,.1) 32%,transparent 68%);filter:blur(34px);animation:landing-refraction 16s ease-in-out infinite alternate}
.landing-light-core{position:absolute;right:-19%;bottom:-31%;width:82vw;height:73vh;border-radius:50%;background:radial-gradient(ellipse at 46% 42%,rgba(95,214,222,.16) 0%,rgba(26,148,167,.12) 25%,rgba(7,78,99,.09) 47%,transparent 72%);filter:blur(64px);opacity:.58;transform:scale(1.03);animation:landing-cool-drift 30s ease-in-out infinite alternate;will-change:transform,opacity}
.landing-lightfield::after{content:"";position:absolute;left:-7%;right:-7%;bottom:-22%;height:58%;background:radial-gradient(ellipse at 26% 72%,rgba(255,202,166,.08),transparent 40%),radial-gradient(ellipse at 77% 68%,rgba(61,181,193,.1),transparent 43%);filter:blur(58px);opacity:.5;animation:landing-color-breathe 26s ease-in-out infinite alternate;will-change:transform,opacity}
.landing-glow{position:absolute;z-index:0;width:46vw;height:30vw;border-radius:50%;filter:blur(120px);opacity:.07;pointer-events:none;mix-blend-mode:screen;animation:landing-pulse 22s ease-in-out infinite alternate}
.landing-glow-left{left:-9vw;bottom:-14vw;background:#de492c}
.landing-glow-right{right:-8vw;bottom:-15vw;background:#35aeb7;animation-delay:-11s}
.landing-header{position:absolute;top:0;left:0;z-index:5;display:flex;align-items:center;justify-content:space-between;width:100%;padding:30px clamp(24px,4.4vw,76px);font-size:.75rem;letter-spacing:.18em}
.landing-brand{display:flex;align-items:center;gap:12px;font-weight:760}
.landing-brand-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(202,234,255,.26);border-radius:12px;background:rgba(190,228,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 12px 28px rgba(0,0,0,.18);backdrop-filter:blur(16px);letter-spacing:0}
.landing-local{display:flex;align-items:center;gap:9px;color:rgba(226,242,251,.72);letter-spacing:.08em}
.landing-local i{width:6px;height:6px;border-radius:50%;background:#8fd5fb;box-shadow:0 0 14px #79ccfa}
.landing-hero{z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:100svh;padding:126px 24px 174px;text-align:center}
.landing-kicker{display:flex;align-items:center;gap:10px;margin:0 0 24px;color:rgba(223,241,252,.72);font-size:.78rem;font-weight:630;letter-spacing:.18em;animation:landing-rise .9s .05s both}
.landing-kicker span{width:22px;height:1px;background:linear-gradient(90deg,transparent,#8ed7ff)}
.landing-hero h1{margin:0;max-width:1120px;font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;font-size:clamp(3rem,6vw,6.5rem);font-weight:800;line-height:1.08;letter-spacing:-.045em;text-wrap:balance;text-shadow:0 12px 44px rgba(0,0,0,.36)}
.landing-hero h1 span,.landing-hero h1 em{display:block}
.landing-hero h1 span{animation:landing-rise 1s .14s both}
.landing-hero h1 em{margin-top:.08em;color:#d9f2ff;font-size:.88em;font-family:inherit;font-style:normal;font-weight:800;letter-spacing:-.045em;animation:landing-rise 1s .24s both}
.landing-statement{margin:28px 0 0;color:rgba(219,235,245,.68);font-size:clamp(1rem,1.35vw,1.25rem);font-weight:430;letter-spacing:.08em;animation:landing-rise 1s .34s both}
.landing-statement strong{color:#fff;font-weight:620}
.landing-enter{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:154px;min-height:58px;margin-top:38px;padding:0 28px;overflow:hidden;border:1px solid rgba(218,241,255,.32);border-radius:18px;color:#fff;background:linear-gradient(135deg,rgba(213,239,255,.18),rgba(166,216,246,.07));box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 18px 50px rgba(0,0,0,.28),0 0 0 1px rgba(102,190,239,.04);backdrop-filter:blur(20px) saturate(1.2);font-size:.94rem;font-weight:680;letter-spacing:.08em;transition:transform .3s ease,border-color .3s ease,background .3s ease,box-shadow .3s ease;animation:landing-rise 1s .44s both}
.landing-enter::before{content:"";position:absolute;top:-120%;left:-45%;width:34%;height:340%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.26),transparent);transform:rotate(24deg);transition:left .6s ease}
.landing-enter:hover{transform:translateY(-3px);border-color:rgba(220,244,255,.58);background:linear-gradient(135deg,rgba(221,243,255,.25),rgba(157,215,247,.12));box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 22px 60px rgba(0,0,0,.32),0 0 36px rgba(106,199,247,.12)}
.landing-enter:hover::before{left:125%}
.landing-enter:focus-visible{outline:2px solid #a7defb;outline-offset:5px}
.landing-enter i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;color:#082137;background:rgba(235,248,255,.9);font-size:1.05rem;font-style:normal;transition:transform .3s ease}
.landing-enter:hover i{transform:translateX(2px)}
.landing-footnote{position:absolute;right:clamp(24px,4.4vw,76px);bottom:31px;z-index:4;margin:0;color:rgba(209,229,241,.44);font-size:.66rem;letter-spacing:.16em}
@keyframes landing-backdrop-loop{0%{transform:translate3d(-.55%,.35%,0) scale(1.045);filter:saturate(.84) brightness(.76) contrast(1.03) blur(1px)}100%{transform:translate3d(.55%,-.25%,0) scale(1.075);filter:saturate(.92) brightness(.8) contrast(1.03) blur(1.4px)}}
@keyframes landing-pulse{from{opacity:.045;transform:scale(.94)}to{opacity:.09;transform:scale(1.06)}}
@keyframes landing-warm-veil{0%{opacity:.55;transform:translate3d(-2.5%,2%,0) rotate(9deg) scale(.97)}52%{opacity:.69}100%{opacity:.59;transform:translate3d(3%,-2%,0) rotate(11deg) scale(1.05)}}
@keyframes landing-warm-ribbon{0%{opacity:.5;transform:translate3d(-3%,2%,0) rotate(7deg) scaleX(.96) scaleY(1.02)}48%{opacity:.68}100%{opacity:.55;transform:translate3d(4%,-2.5%,0) rotate(9deg) scaleX(1.06) scaleY(.96)}}
@keyframes landing-cool-drift{0%{opacity:.46;transform:translate3d(3%,1.5%,0) scale(.97)}50%{opacity:.6}100%{opacity:.5;transform:translate3d(-3%,-1.5%,0) scale(1.05)}}
@keyframes landing-refraction{0%{opacity:.58;transform:translate3d(-2%,1%,0) scale(.96)}100%{opacity:.82;transform:translate3d(3%,-2%,0) scale(1.05)}}
@keyframes landing-color-breathe{0%{opacity:.38;transform:translate3d(-1.5%,1%,0) scaleX(.98)}100%{opacity:.54;transform:translate3d(1.5%,-1%,0) scaleX(1.03)}}
@keyframes landing-rise{from{opacity:0;transform:translateY(18px);filter:blur(5px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@media(max-width:760px){.landing-header{padding:20px}.landing-local{font-size:.68rem}.landing-hero{justify-content:flex-start;padding:23vh 20px 140px}.landing-hero h1{font-size:clamp(2.45rem,11vw,4.4rem);line-height:1.1}.landing-statement{max-width:20em;line-height:1.8}.landing-statement strong{display:block}.landing-enter{margin-top:30px}.landing-footnote{right:20px;bottom:95px;font-size:.58rem}.landing-backdrop{background-position:58% bottom}}
@media(max-width:440px){.landing-brand>span:last-child{display:none}.landing-kicker{font-size:.68rem;letter-spacing:.12em}.landing-hero{padding-top:20vh}.landing-hero h1{font-size:clamp(2.2rem,12vw,3.2rem)}.landing-footnote{left:20px;right:auto}}
@media(prefers-reduced-motion:reduce){.landing-backdrop,.landing-rays,.landing-light-core,.landing-lightfield::before,.landing-lightfield::after,.landing-glow,.landing-kicker,.landing-hero h1 span,.landing-hero h1 em,.landing-statement,.landing-enter{animation:none}.landing-enter,.landing-enter i{transition:none}}

/* First-page account sign-in */
.landing-access{display:grid;justify-items:center;margin-top:38px;animation:landing-rise 1s .44s both}
.landing-access .landing-enter{margin-top:0;animation:none}
.landing-signed-in{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:rgba(224,241,250,.7);font-size:.72rem;letter-spacing:.08em}
.landing-signed-in span{width:7px;height:7px;border-radius:50%;background:#72d9a5;box-shadow:0 0 14px rgba(114,217,165,.8)}
.landing-login-panel{position:relative;z-index:5;display:grid;width:min(410px,calc(100vw - 40px));margin-top:22px;padding:22px;border:1px solid rgba(211,238,253,.23);border-radius:22px;color:#fff;background:linear-gradient(150deg,rgba(17,25,34,.88),rgba(10,16,23,.76));box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 24px 70px rgba(0,0,0,.38);backdrop-filter:blur(24px) saturate(1.25);text-align:left;animation:landing-login-in .28s ease both}
.landing-login-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
.landing-login-heading strong{display:block;font-size:1.05rem;letter-spacing:.02em}
.landing-login-heading small{display:block;margin-top:5px;color:rgba(217,235,246,.56);font-size:.72rem;letter-spacing:.02em}
.landing-login-heading>button{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(218,239,251,.14);border-radius:9px;color:rgba(229,243,251,.74);background:rgba(255,255,255,.05);font-size:1.1rem}
.landing-login-panel>label:not(.landing-remember){display:grid;gap:7px;margin-top:10px;color:rgba(232,244,251,.76);font-size:.72rem;font-weight:650;letter-spacing:.04em}
.landing-login-panel input[name=username],.landing-login-panel input[name=password]{width:100%;height:44px;padding:0 13px;border:1px solid rgba(209,235,249,.16);border-radius:12px;outline:0;color:#fff;background:rgba(4,9,14,.52);font:inherit;letter-spacing:0;transition:border-color .18s,box-shadow .18s,background .18s}
.landing-login-panel input::placeholder{color:rgba(209,229,241,.34)}
.landing-login-panel input:focus{border-color:rgba(129,207,248,.7);background:rgba(5,12,18,.72);box-shadow:0 0 0 3px rgba(91,184,235,.13)}
.landing-remember{position:relative;display:flex;align-items:center;gap:11px;margin-top:15px;cursor:pointer;user-select:none}
.landing-remember input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.landing-remember>i{position:relative;flex:0 0 20px;height:20px;border:1px solid rgba(211,237,250,.28);border-radius:6px;background:rgba(255,255,255,.05);transition:.18s}
.landing-remember input:checked+i{border-color:#7dcdf5;background:#65b9e5}
.landing-remember input:checked+i::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid #072238;border-width:0 2px 2px 0;transform:rotate(45deg)}
.landing-remember>span strong{display:block;color:rgba(239,248,253,.9);font-size:.75rem}
.landing-remember>span small{display:block;margin-top:2px;color:rgba(208,228,239,.46);font-size:.66rem}
.landing-login-error{margin:12px 0 0;padding:9px 11px;border:1px solid rgba(255,133,133,.2);border-radius:10px;color:#ffd0d0;background:rgba(142,40,40,.18);font-size:.7rem;line-height:1.45}
.landing-login-submit{height:46px;margin-top:16px;border:1px solid rgba(204,237,254,.35);border-radius:13px;color:#082033;background:linear-gradient(135deg,#d8f2ff,#84cef4);box-shadow:0 12px 30px rgba(46,139,191,.2);font-size:.82rem;font-weight:760;letter-spacing:.08em;transition:.2s}
.landing-login-submit:hover{transform:translateY(-1px);background:linear-gradient(135deg,#e8f8ff,#9bd8f7)}
.landing-login-submit:disabled{cursor:wait;opacity:.7;transform:none}
.landing-login-security{margin:10px 0 0;text-align:center;color:rgba(201,224,237,.4);font-size:.62rem;line-height:1.5}
.landing-page.is-login-open{overflow:auto}
.landing-page.is-login-open .landing-hero{justify-content:flex-start;min-height:100svh;padding:48px 24px 76px}
.landing-page.is-login-open .landing-kicker{margin-bottom:13px}
.landing-page.is-login-open .landing-hero h1{font-size:clamp(2.35rem,4.2vw,4.55rem);line-height:1.03}
.landing-page.is-login-open .landing-statement{margin-top:15px;font-size:.92rem}
.landing-page.is-login-open .landing-footnote{display:none}
@keyframes landing-login-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:760px){.landing-access{margin-top:30px}.landing-login-panel{margin-top:18px;padding:19px}.landing-page.is-login-open .landing-hero{justify-content:flex-start;padding:30px 16px 70px}.landing-page.is-login-open .landing-hero h1{font-size:clamp(1.9rem,8.5vw,3rem)}.landing-page.is-login-open .landing-kicker{font-size:.62rem}.landing-page.is-login-open .landing-statement{margin-top:12px}.landing-login-heading{margin-bottom:10px}}

/* One-click director agents */
.detailed-history-actions a{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:10px;color:#7f8e98;background:transparent;text-decoration:none}
.detailed-history-actions a:hover{color:#3088bb;background:#eaf5fb}
.detailed-history-actions a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-dark .detailed-history-actions a{color:#84959f}
.theme-dark .detailed-history-actions a:hover{color:#a9e1ff;background:#172a36}
.director-section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-top:40px}
.director-section-heading .eyebrow{margin-bottom:6px}
.director-section-heading h2{margin:0;font-size:22px;letter-spacing:-.025em}
.director-section-heading>p{margin:0;color:#7f8c96;font-size:13px}
.director-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px}
.director-entry-card{position:relative;display:grid;grid-template-columns:94px minmax(0,1fr);align-items:center;min-height:190px;padding:28px 32px;overflow:hidden;border:1px solid #25374a;border-radius:26px;color:#fff;background:radial-gradient(circle at 86% -20%,rgba(95,158,214,.17),transparent 38%),linear-gradient(125deg,#141727,#08121b 72%);text-align:left;box-shadow:0 18px 44px rgba(22,48,68,.15);transition:.25s ease}
.director-entry-card::after{content:"";position:absolute;right:-46px;top:-95px;width:230px;height:230px;border:1px solid rgba(133,194,231,.1);border-radius:50%;box-shadow:0 0 0 45px rgba(127,190,228,.025),0 0 0 90px rgba(127,190,228,.018)}
.director-entry-card:hover{transform:translateY(-3px);border-color:#4c91ba;box-shadow:0 22px 52px rgba(22,62,88,.24)}
.director-entry-status{position:absolute;z-index:2;top:18px;right:20px;padding:5px 10px;border-radius:999px;color:#86cdf5;background:#14293a;font-size:11px;font-weight:700}
.director-entry-icon{z-index:1;display:grid;place-items:center;width:68px;height:68px;border:1px solid rgba(125,190,232,.35);border-radius:50%;color:#89d4ff;background:rgba(60,128,172,.13)}
.director-entry-icon svg{width:31px;height:31px}
.director-entry-copy{z-index:1;display:block;min-width:0}
.director-entry-copy small{display:block;color:#7ec9f3;font-size:12px;font-weight:800;letter-spacing:.08em}
.director-entry-copy strong{display:block;margin-top:12px;font-size:25px;letter-spacing:-.03em}
.director-entry-copy em{display:block;margin-top:8px;overflow:hidden;color:#b8c9d5;font-size:13px;font-style:normal;line-height:1.55;text-overflow:ellipsis;white-space:nowrap}
.director-entry-action{position:absolute;z-index:2;right:28px;bottom:22px;color:#dff3ff;font-size:13px;font-weight:700}
.director-entry-action b{margin-left:7px;color:#74c8f8;font-size:16px}
.fight-skill-section{max-width:1400px;margin:0 auto 18px;padding:18px;border:1px solid #d7e5ed;border-radius:24px;background:#fff;box-shadow:0 18px 50px rgba(50,92,116,.07)}
.fight-skill-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.fight-skill-heading>div{display:flex;align-items:center;gap:11px}.fight-skill-heading>div>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;color:#347fae;background:#e5f3fb;font-size:11px;font-weight:800}.fight-skill-heading h2{margin:0;font-size:17px}.fight-skill-heading p{margin:3px 0 0;color:#84939c;font-size:11px}.fight-skill-heading>small{color:#438fc4;font-size:11px;font-weight:750}
.fight-skill-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:8px}.fight-skill-card{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;min-height:86px;padding:11px 10px;border:1px solid #d7e4eb;border-radius:14px;color:#263640;background:#f8fbfd;text-align:left;transition:.2s}.fight-skill-card:hover{border-color:#7eb8da;background:#f0f8fc;transform:translateY(-2px)}.fight-skill-card>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;color:#438fc4;background:#e5f3fb;font-size:10px;font-weight:850}.fight-skill-card div{min-width:0;padding-right:26px}.fight-skill-card small,.fight-skill-card strong,.fight-skill-card em{display:block}.fight-skill-card small{overflow:hidden;color:#4f9bc9;font-size:8px;font-weight:800;letter-spacing:.06em;text-overflow:ellipsis;white-space:nowrap}.fight-skill-card strong{margin-top:3px;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.fight-skill-card em{margin-top:3px;overflow:hidden;color:#83919a;font-size:9px;font-style:normal;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.fight-skill-card b{position:absolute;right:8px;top:8px;color:#8f9ca4;font-size:8px}.fight-skill-card.is-selected{border-color:#4c9dcc;background:linear-gradient(145deg,#eef9ff,#e4f4fc);box-shadow:0 0 0 2px rgba(76,157,204,.12)}.fight-skill-card.is-selected>span{color:#fff;background:#3d8fbd}.fight-skill-card.is-selected b{color:#277ba9}
.director-page{min-height:calc(100vh - 76px);padding:30px clamp(28px,4vw,58px) 60px;background:linear-gradient(180deg,#f4f9fc,#edf5f9)}
.director-topbar{display:flex;align-items:center;justify-content:space-between;max-width:1400px;margin:0 auto}
.director-back{border:0;color:#60717d;background:transparent;font-size:13px;font-weight:650}
.director-agent-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #cce3f0;border-radius:999px;color:#337fae;background:#e8f5fc;font-size:11px;font-weight:700}
.director-agent-pill svg{width:15px;height:15px}
.director-title-row{display:flex;align-items:center;gap:18px;max-width:1400px;margin:28px auto 24px}
.director-title-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid #b7d8ea;border-radius:20px;color:#347fae;background:#e6f4fc;box-shadow:0 12px 28px rgba(57,128,170,.11)}
.director-title-icon svg{width:30px;height:30px}
.director-title-row p{margin:0;color:#438fc4;font-size:11px;font-weight:800;letter-spacing:.11em}
.director-title-row h1{margin:5px 0 3px;font-size:30px;letter-spacing:-.04em}
.director-title-row div>span{color:#7b8a94;font-size:13px}
.director-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);gap:18px;max-width:1400px;margin:0 auto}
.director-setup-panel,.director-prompt-panel{border:1px solid #d8e5ec;border-radius:26px;background:#fff;box-shadow:0 18px 50px rgba(50,92,116,.07)}
.director-setup-panel{padding:26px}
.director-prompt-panel{position:sticky;top:94px;align-self:start;padding:26px}
.director-panel-head{display:flex;align-items:center;justify-content:space-between}
.director-panel-head>div{display:flex;align-items:center;gap:10px}
.director-panel-head>div>span,.director-field-label>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;color:#347fae;background:#e5f3fb;font-size:11px;font-weight:800}
.director-panel-head h2{margin:0;font-size:17px}
.director-panel-head>small{color:#96a2aa;font-size:11px}
.director-upload-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.director-upload-slot{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:142px;padding:12px;overflow:hidden;border:1px dashed #b9d2e0;border-radius:18px;color:#52636f;background:#f7fbfd;transition:.2s}
.director-upload-slot:hover{border-color:#5aa6d4;background:#eef8fd;transform:translateY(-2px)}
.director-upload-icon{display:grid;place-items:center;width:36px;height:36px;margin-bottom:3px;border-radius:12px;color:#438fc4;background:#e0f1fa}
.director-upload-icon svg{width:18px;height:18px}
.director-upload-slot strong{font-size:13px}.director-upload-slot small{color:#94a2ab;font-size:11px}
.director-upload-slot.has-file{border-style:solid;border-color:#78b7da;background:#10202c}
.director-upload-slot.has-file img,.director-upload-slot.has-file video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.director-file-label{position:absolute;right:7px;bottom:7px;left:7px;overflow:hidden;padding:6px 8px;border-radius:9px;color:#fff;background:rgba(5,15,22,.72);font-size:10px;text-overflow:ellipsis;white-space:nowrap;backdrop-filter:blur(8px)}
.director-core-field{position:relative;margin-top:24px}
.director-field-label{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.director-field-label div{display:flex;align-items:baseline;gap:10px}.director-field-label strong{font-size:15px}.director-field-label small{color:#8f9ba4;font-size:11px}
.director-core-field textarea{display:block;width:100%;min-height:122px;padding:15px 16px 30px;border:1px solid #cedde6;border-radius:17px;outline:none;color:#1c2a33;background:#fbfdfe;line-height:1.65;resize:vertical;transition:.2s}
.director-core-field textarea:focus{border-color:#67afe0;box-shadow:0 0 0 4px rgba(103,175,224,.13)}
.director-core-field>span{position:absolute;right:13px;bottom:10px;color:#9aa8b0;font-size:10px}
.director-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.director-options>label,.director-options>div{display:grid;gap:8px}.director-options label>span,.director-options>div>span{color:#5a6a75;font-size:12px;font-weight:700}
.director-options select{width:100%;height:42px;padding:0 12px;border:1px solid #d2e0e8;border-radius:12px;outline:none;color:#25343d;background:#fff}
.director-duration-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.director-duration-options button{height:42px;border:1px solid #d2e0e8;border-radius:12px;color:#64737d;background:#fff;font-size:12px}
.director-duration-options button.is-selected{color:#226f9d;border-color:#69acd3;background:#e7f5fc;box-shadow:0 0 0 2px rgba(103,175,224,.1)}
.director-ready-dot{display:inline-flex;align-items:center;gap:6px;color:#4686aa;font-size:11px}.director-ready-dot::before{content:"";width:6px;height:6px;border-radius:50%;background:#65b9e5;box-shadow:0 0 10px #65b9e5}
.director-agent-note{display:flex;align-items:center;gap:12px;margin-top:18px;padding:13px;border:1px solid #d8eaf4;border-radius:15px;color:#347fae;background:#eff8fd}
.director-agent-note>svg{width:22px;height:22px;flex:0 0 auto}.director-agent-note p{margin:0}.director-agent-note strong,.director-agent-note span{display:block}.director-agent-note strong{font-size:12px}.director-agent-note span{margin-top:3px;color:#6f8998;font-size:10px;line-height:1.45}
#director-prompt{display:block;width:100%;min-height:300px;margin-top:14px;padding:16px;border:1px solid #d5e2e9;border-radius:17px;outline:none;color:#25333c;background:#fbfdfe;font-size:12px;line-height:1.72;resize:vertical}
#director-prompt:focus{border-color:#67afe0;box-shadow:0 0 0 4px rgba(103,175,224,.12)}
.director-prompt-meta{display:flex;justify-content:space-between;margin:7px 3px 0;color:#96a3ab;font-size:10px}
.director-compose-button,.director-generate-button{display:flex;align-items:center;justify-content:center;width:100%;border:0;border-radius:15px;font-weight:750;transition:.2s}
.director-compose-button{gap:8px;height:48px;margin-top:14px;color:#236f9d;background:#e3f3fb}.director-compose-button:hover{background:#d5edf9;transform:translateY(-1px)}
.director-compose-button svg{width:18px;height:18px}
.director-generate-button{gap:8px;min-height:56px;margin-top:10px;color:#fff;background:linear-gradient(135deg,#286f9c,#59afe0);box-shadow:0 12px 28px rgba(53,137,187,.22)}
.director-generate-button:hover{transform:translateY(-1px);box-shadow:0 15px 32px rgba(53,137,187,.28)}
.director-generate-button svg{width:18px;height:18px}.director-generate-button small{margin-left:auto;margin-right:15px;color:rgba(255,255,255,.7);font-size:9px;font-weight:500}.director-generate-button:disabled{opacity:.75;cursor:wait}
.director-result{display:flex;align-items:center;gap:10px;margin-top:12px;padding:11px 13px;border:1px solid #e0e8ed;border-radius:14px;background:#fafcfd}
.director-result i{width:8px;height:8px;border-radius:50%;background:#aab5bc}.director-result span,.director-result strong,.director-result small{display:block}.director-result strong{font-size:11px}.director-result small{margin-top:2px;color:#8d9aa2;font-size:9px}.director-result.is-ready i{background:#65b9e5}.director-result.is-running i{background:#f4b85f;animation:pulse 1s infinite}.director-result.is-done i{background:#58b87a}
.theme-dark .director-section-heading>p{color:#81929d}
.theme-dark .director-page{background:#080d12}
.theme-dark .fight-skill-section{color:#edf4f8;border-color:#273640;background:#10171e;box-shadow:0 18px 50px rgba(0,0,0,.22)}.theme-dark .fight-skill-heading>div>span{color:#a8ddfa;background:#173044}.theme-dark .fight-skill-heading p{color:#82939e}.theme-dark .fight-skill-card{color:#eaf2f6;border-color:#2c3c47;background:#0b1218}.theme-dark .fight-skill-card:hover{border-color:#4b91b8;background:#10202a}.theme-dark .fight-skill-card>span{color:#a8ddfa;background:#173044}.theme-dark .fight-skill-card em{color:#82939e}.theme-dark .fight-skill-card.is-selected{border-color:#4c9dcc;background:linear-gradient(145deg,#102532,#0f202b);box-shadow:0 0 0 2px rgba(76,157,204,.18)}.theme-dark .fight-skill-card.is-selected>span{color:#fff;background:#347fae}
.theme-dark .director-back{color:#91a3ae}.theme-dark .director-agent-pill{color:#9cdafa;border-color:#284353;background:#102330}
.theme-dark .director-title-icon{color:#a8ddfa;border-color:#32556a;background:#102532}.theme-dark .director-title-row div>span{color:#82939e}
.theme-dark .director-setup-panel,.theme-dark .director-prompt-panel{color:#edf4f8;border-color:#273640;background:#10171e;box-shadow:0 18px 50px rgba(0,0,0,.22)}
.theme-dark .director-panel-head>div>span,.theme-dark .director-field-label>span{color:#a8ddfa;background:#173044}
.theme-dark .director-upload-slot{color:#cbd7de;border-color:#365061;background:#0c141a}.theme-dark .director-upload-slot:hover{border-color:#4b91b8;background:#10202a}
.theme-dark .director-core-field textarea,.theme-dark #director-prompt,.theme-dark .director-options select,.theme-dark .director-duration-options button{color:#eaf2f6;border-color:#2c3a44;background:#0b1117}
.theme-dark .director-core-field textarea::placeholder,.theme-dark #director-prompt::placeholder{color:#63727c}
.theme-dark .director-options label>span,.theme-dark .director-options>div>span{color:#a7b4bc}.theme-dark .director-duration-options button.is-selected{color:#acdff9;border-color:#4c94bd;background:#102536}
.theme-dark .director-agent-note{color:#a8ddfa;border-color:#284655;background:#10232d}.theme-dark .director-agent-note span{color:#7f9baa}
.theme-dark .director-compose-button{color:#a8ddfa;background:#173044}.theme-dark .director-compose-button:hover{background:#1b3a50}
.theme-dark .director-result{border-color:#28343d;background:#0b1117}
@media(max-width:1180px){.fight-skill-grid{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))}}
@media(max-width:980px){.director-entry-grid,.director-workspace{grid-template-columns:1fr}.director-prompt-panel{position:static}.director-upload-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.director-section-heading{align-items:flex-start;flex-direction:column;gap:6px}.director-entry-card{grid-template-columns:70px minmax(0,1fr);min-height:175px;padding:24px 20px}.director-entry-icon{width:56px;height:56px}.director-entry-copy strong{font-size:21px}.director-entry-copy em{white-space:normal}.director-page{min-height:calc(100vh - 138px);padding:22px 16px 100px}.director-title-row{margin-top:22px}.director-title-row h1{font-size:25px}.director-title-icon{width:54px;height:54px;border-radius:17px}.fight-skill-section{padding:14px;border-radius:19px}.fight-skill-heading{align-items:flex-start}.fight-skill-heading>small{display:none}.fight-skill-grid{grid-template-columns:1fr 1fr}.director-workspace{gap:12px}.director-setup-panel,.director-prompt-panel{padding:18px;border-radius:21px}.director-field-label div{align-items:flex-start;flex-direction:column;gap:3px}.director-options{grid-template-columns:1fr}}
@media(max-width:440px){.fight-skill-grid{grid-template-columns:1fr}.director-upload-grid{grid-template-columns:1fr 1fr}.director-upload-slot{min-height:118px}.director-entry-card{grid-template-columns:1fr;padding-top:54px}.director-entry-icon{margin-bottom:8px}.director-entry-action{bottom:16px}.director-options{grid-template-columns:1fr}#director-prompt{min-height:250px}}

/* Inline image library */
.inline-library-panel[hidden]{display:none!important}
.library-chevron{font-size:18px;transition:transform .2s ease}.asset-library-banner.is-open .library-chevron{transform:rotate(180deg)}
.inline-library-panel{margin-top:9px;padding:17px;border:1px solid #d7e4eb;border-radius:18px;background:#f8fbfd;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.inline-library-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.inline-library-panel>header>div strong,.inline-library-panel>header>div small{display:block}.inline-library-panel>header>div strong{font-size:14px}.inline-library-panel>header>div small{margin-top:3px;color:#8796a0;font-size:10px}
.inline-library-actions{display:flex;align-items:center;gap:9px}.inline-library-count{display:inline-flex;align-items:center;min-height:36px;padding:0 11px;border:1px solid #cfe0e9;border-radius:11px;color:#577486;background:#fff;font-size:11px;font-weight:700;white-space:nowrap}
.inline-library-upload{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 12px;border:0;border-radius:11px;color:#fff;background:#438fc4;font-size:11px;font-weight:700;box-shadow:0 7px 18px rgba(52,127,174,.18);transition:.18s}
.inline-library-upload:hover{background:#347fae;transform:translateY(-1px)}.inline-library-upload svg{width:15px;height:15px}
.inline-library-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;max-height:292px;overflow:auto}
.inline-library-item{position:relative;min-width:0;padding:7px;border:1px solid #dbe5eb;border-radius:14px;color:#27343d;background:#fff;transition:.18s;overflow:hidden}.inline-library-item:hover{border-color:#79b5d8;transform:translateY(-2px);box-shadow:0 9px 22px rgba(50,111,146,.11)}
.inline-library-select{display:block;width:100%;padding:0;border:0;color:inherit;background:transparent;text-align:left}.inline-library-select>span{display:grid;place-items:center;aspect-ratio:1;overflow:hidden;border-radius:10px;color:#7e8d96;background:#edf3f6;font-size:24px}.inline-library-select img,.inline-library-select video{width:100%;height:100%;object-fit:cover}.inline-library-select strong,.inline-library-select small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inline-library-select strong{margin:7px 2px 2px;font-size:10px}.inline-library-select small{margin:0 2px;color:#92a0a8;font-size:9px}
.inline-library-delete{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:28px;margin-top:7px;border:0;border-radius:8px;color:#8b5960;background:#fff1f2;font-size:10px;font-weight:700}.inline-library-delete:hover{color:#fff;background:#d96670}.inline-library-delete svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.inline-library-empty{grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:150px;border:1px dashed #cbdde7;border-radius:14px;color:#71828d;background:#fff;text-align:center}
.inline-library-empty>span{display:grid;place-items:center;width:40px;height:40px;margin-bottom:8px;border-radius:12px;color:#438fc4;background:#e5f3fb}.inline-library-empty svg{width:20px;height:20px}.inline-library-empty strong{font-size:12px}.inline-library-empty small{max-width:290px;margin-top:4px;color:#96a4ac;font-size:10px;line-height:1.5}
.director-setup-panel>.asset-library-banner{margin-top:12px}
.theme-dark .inline-library-panel{border-color:#2a3a44;background:#0c1319;box-shadow:none}.theme-dark .inline-library-panel>header>div small{color:#82939e}.theme-dark .inline-library-count{color:#a9bbc5;border-color:#2b3d48;background:#111b22}
.theme-dark .inline-library-item{color:#edf4f8;border-color:#2a3943;background:#121b22}.theme-dark .inline-library-item:hover{border-color:#4d91b8;box-shadow:0 9px 22px rgba(0,0,0,.24)}.theme-dark .inline-library-select>span{color:#82939e;background:#1a252d}.theme-dark .inline-library-delete{color:#d59aa0;background:#2a181c}.theme-dark .inline-library-delete:hover{color:#fff;background:#b9515b}
.theme-dark .inline-library-empty{color:#c9d5dc;border-color:#334650;background:#101820}.theme-dark .inline-library-empty>span{color:#9edafb;background:#183246}.theme-dark .inline-library-empty small{color:#7f909a}
.inline-library-batch{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 11px;border:1px solid #b9d4e2;border-radius:10px;color:#36799f;background:#eef8fd;font-size:10px;font-weight:750;white-space:nowrap}.inline-library-batch.is-danger{color:#b64f59;border-color:#efc7cb;background:#fff4f4}.inline-library-batch:disabled{opacity:.45;cursor:not-allowed}.inline-library-actions [hidden]{display:none!important}.library-check{position:absolute;z-index:5;left:11px;top:11px;display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:rgba(8,19,27,.66);cursor:pointer}.library-check input{position:absolute;opacity:0}.library-check span{width:11px;height:11px;border:1px solid rgba(255,255,255,.8);border-radius:3px}.library-check input:checked+span{border-color:#77c8f0;background:#58a8d2;box-shadow:inset 0 0 0 2px #18313e}.temporary-library-shell{margin-top:10px}.temporary-library-banner{margin-top:0}.temporary-library-panel:not(.is-batch-mode) .library-check{display:none}.temporary-selected-count{display:inline-flex;align-items:center;min-height:36px;padding:0 11px;border:1px solid #efd0d3;border-radius:11px;color:#ae4d56;background:#fff6f6;font-size:10px;font-weight:750;white-space:nowrap}.temporary-library-panel.is-batch-mode .temporary-library-item{border-color:#b9d7e7}.temporary-library-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;max-height:390px;overflow:auto}.temporary-library-item{position:relative;min-width:0;padding:8px;border:1px solid #d8e5eb;border-radius:14px;background:#fff}.temporary-library-preview{position:relative;display:grid;place-items:center;aspect-ratio:16/10;overflow:hidden;border-radius:10px;background:#eaf2f6}.temporary-library-preview img,.temporary-library-preview video{width:100%;height:100%;object-fit:cover}.temporary-library-preview em{position:absolute;right:6px;top:6px;padding:3px 6px;border-radius:7px;color:#fff;background:#8879c8;font-size:8px;font-style:normal}.temporary-library-preview em.is-active{background:#3d9a66}.temporary-library-preview em.is-failed{background:#c3515c}.temporary-audio-preview{display:grid;gap:8px;width:100%;padding:10px}.temporary-audio-preview>span{color:#ad6793;font-size:27px;text-align:center}.temporary-audio-preview audio{width:100%;height:28px}.temporary-library-item>strong,.temporary-library-item>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.temporary-library-item>strong{margin:8px 2px 3px;font-size:11px}.temporary-library-item>small{margin:0 2px;color:#8899a2;font-size:9px}.temporary-library-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}.temporary-library-actions button{display:flex;align-items:center;justify-content:center;gap:4px;min-height:29px;border:0;border-radius:8px;color:#347fae;background:#eaf6fc;font-size:9px;font-weight:750}.temporary-library-actions button.is-danger{color:#b6535d;background:#fff0f1}.temporary-library-actions svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8}.theme-dark .inline-library-batch{color:#a9ddf7;border-color:#31566a;background:#132731}.theme-dark .inline-library-batch.is-danger{color:#e4a4aa;border-color:#65363c;background:#2b191c}.theme-dark .temporary-selected-count{color:#e5abb0;border-color:#66383d;background:#2a181b}.theme-dark .temporary-library-panel.is-batch-mode .temporary-library-item{border-color:#3f718a}.theme-dark .temporary-library-item{color:#edf4f8;border-color:#2a3d48;background:#101920}.theme-dark .temporary-library-preview{background:#17242c}.theme-dark .temporary-library-item>small{color:#7f919c}.theme-dark .temporary-library-actions button{color:#a9ddf7;background:#173044}.theme-dark .temporary-library-actions button.is-danger{color:#e4a4aa;background:#2b191c}
@media(max-width:900px){.temporary-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-library-panel>header{align-items:flex-start;flex-direction:column}.inline-library-actions{flex-wrap:wrap}}
@media(max-width:520px){.temporary-library-grid{grid-template-columns:1fr}}
@media(max-width:980px){.inline-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.inline-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.inline-library-panel{padding:13px}.inline-library-panel>header{align-items:flex-start}.inline-library-actions{flex:0 0 auto}.inline-library-upload{flex:0 0 auto}}
@media(max-width:440px){.inline-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-library-panel>header>div small{display:none}.inline-library-actions{gap:6px}.inline-library-count{padding:0 8px}.inline-library-upload span{display:none}.inline-library-upload{width:38px;padding:0}}

/* Audio generation controls */
.audio-settings-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px;padding:14px 16px;border:1px solid #d6e4ec;border-radius:17px;background:linear-gradient(135deg,#fbfdfe,#f2f9fd);box-shadow:0 6px 18px rgba(53,105,135,.05)}
.audio-settings-copy{display:flex;align-items:center;gap:11px;min-width:0}.audio-settings-icon{display:grid;place-items:center;flex:0 0 39px;height:39px;border-radius:12px;color:#347fae;background:#dff1fb;font-size:17px;font-weight:800}.audio-settings-copy strong,.audio-settings-copy small{display:block}.audio-settings-copy strong{font-size:13px}.audio-settings-copy small{margin-top:3px;color:#83939d;font-size:10px}
.audio-switch-group{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.audio-switch{display:flex;align-items:center;gap:12px;min-width:132px;height:50px;padding:0 11px 0 13px;border:1px solid #d7e3ea;border-radius:14px;color:#344550;background:#fff;text-align:left;transition:.18s}
.audio-switch:hover{border-color:#9bcbe6;transform:translateY(-1px)}.audio-switch>span{flex:1}.audio-switch strong,.audio-switch small{display:block}.audio-switch strong{font-size:12px}.audio-switch small{margin-top:2px;color:#8d9aa3;font-size:9px}
.audio-switch i{position:relative;width:36px;height:21px;border-radius:999px;background:#cbd5dc;box-shadow:inset 0 1px 3px rgba(40,61,73,.15);transition:.2s}.audio-switch i::after{content:"";position:absolute;top:3px;left:3px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(30,50,62,.24);transition:.2s}
.audio-switch.is-on{color:#236f9d;border-color:#9acbe6;background:#f1f9fd}.audio-switch.is-on i{background:#59aee0}.audio-switch.is-on i::after{transform:translateX(15px)}
.director-setup-panel>.audio-settings-card{margin-top:18px}
.theme-dark .audio-settings-card{border-color:#2a3b46;background:linear-gradient(135deg,#101820,#0c141a);box-shadow:none}.theme-dark .audio-settings-icon{color:#a8ddfa;background:#183246}.theme-dark .audio-settings-copy small{color:#7f909a}
.theme-dark .audio-switch{color:#d8e2e8;border-color:#2b3a44;background:#131c23}.theme-dark .audio-switch:hover{border-color:#487f9d}.theme-dark .audio-switch small{color:#7f909a}.theme-dark .audio-switch i{background:#3b4952}.theme-dark .audio-switch.is-on{color:#a8ddfa;border-color:#4d91b8;background:#102532}.theme-dark .audio-switch.is-on i{background:#65b9e5}
@media(max-width:820px){.audio-settings-card{align-items:flex-start;flex-direction:column}.audio-switch-group{width:100%}.audio-switch{flex:1}}
@media(max-width:440px){.audio-switch-group{display:grid;grid-template-columns:1fr 1fr}.audio-switch{min-width:0;gap:7px;padding:0 9px}.audio-switch small{display:none}}

/* Fixed model entry and complete output parameters */
.model-quick-mark-25{background:linear-gradient(145deg,#286f9c,#68b9e6)}
.active-model-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:72px;padding:12px 15px;border:1px solid #cfe1eb;border-radius:17px;background:linear-gradient(135deg,#f7fbfd,#edf7fc)}
.active-model-card>span{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;color:#fff;background:linear-gradient(145deg,#183849,#4d9aca);font-size:11px;font-weight:850}.active-model-card div{min-width:0}.active-model-card small,.active-model-card strong,.active-model-card p{display:block}.active-model-card small{color:#7f919d;font-size:9px}.active-model-card strong{margin-top:2px;font-size:15px}.active-model-card p{margin:3px 0 0;color:#768791;font-size:10px}.active-model-card em{padding:5px 9px;border-radius:999px;color:#347fae;background:#dff1fb;font-size:9px;font-style:normal;font-weight:700;white-space:nowrap}
.resolution-options{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.resolution-options button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;height:58px;border:1px solid #d9e3e9;border-radius:13px;color:#586872;background:#fff;font-size:12px;font-weight:750}.resolution-options button small{color:#96a3ab;font-size:9px;font-weight:500}.resolution-options button.is-selected{color:#347fae;border-color:#67afe0;background:#eaf6fd;box-shadow:0 0 0 2px rgba(103,175,224,.13)}.resolution-options button.is-selected small{color:#6094b3}
.director-setup-panel>.active-model-card{margin-top:18px}
.director-parameter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.director-parameter-field{display:grid;gap:8px}.director-parameter-field>span{color:#5a6a75;font-size:12px;font-weight:700}.director-parameter-field select{width:100%;height:42px;padding:0 12px;border:1px solid #d2e0e8;border-radius:12px;outline:none;color:#25343d;background:#fff}
.director-choice-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.director-choice-options button{height:42px;border:1px solid #d2e0e8;border-radius:12px;color:#64737d;background:#fff;font-size:11px}.director-choice-options button.is-selected{color:#226f9d;border-color:#69acd3;background:#e7f5fc;box-shadow:0 0 0 2px rgba(103,175,224,.1)}
.director-resolution-options{grid-template-columns:repeat(4,1fr)}.director-choice-options button:disabled{color:#adb7bd;border-color:#e3eaee;background:#f3f6f8;opacity:.58;cursor:not-allowed;box-shadow:none}.theme-dark .director-choice-options button:disabled{color:#53636d;border-color:#233039;background:#0a1015;opacity:.65}
.theme-dark .active-model-card{color:#edf4f8;border-color:#2c414e;background:linear-gradient(135deg,#111b22,#0d171d)}.theme-dark .active-model-card p,.theme-dark .active-model-card small{color:#7f929d}.theme-dark .active-model-card em{color:#a8ddfa;background:#173044}
.theme-dark .resolution-options button,.theme-dark .director-parameter-field select,.theme-dark .director-choice-options button{color:#d3dee4;border-color:#2c3a44;background:#0b1117}.theme-dark .resolution-options button small{color:#758690}.theme-dark .resolution-options button.is-selected,.theme-dark .director-choice-options button.is-selected{color:#a8ddfa;border-color:#4e9dcd;background:#102536;box-shadow:0 0 0 2px rgba(74,157,207,.18)}.theme-dark .director-parameter-field>span{color:#a7b4bc}
@media(max-width:760px){.director-parameter-grid{grid-template-columns:1fr}.active-model-card{grid-template-columns:44px minmax(0,1fr) auto}}
@media(max-width:440px){.resolution-options{grid-template-columns:1fr}.resolution-options button{height:50px;flex-direction:row}.active-model-card em{display:none}}

/* DRASA-inspired colourful home cards. Interaction only; existing routes and actions stay unchanged. */
.home-page{width:100%;max-width:none;padding:44px max(40px,calc((100% - 1240px)/2)) 72px;background:#ccd7ff;color:#1b1700}
.home-page .eyebrow{color:#ff3f96}.home-page .page-title{color:#1b1700;font-size:clamp(34px,4vw,58px);font-weight:620;letter-spacing:-.055em}.home-page .page-subtitle{color:rgba(27,23,0,.64)}
.home-page .section-heading h2,.home-page .director-section-heading h2{color:#1b1700}.home-page .director-section-heading>p{color:rgba(27,23,0,.62)}
.home-page .home-interactive-card{--home-hover:#ff48a4;--home-icon:#ff48a4;--home-icon-bg:#f3dcff;position:relative;color:#1b1700;border:0;background:#f8f7f3;box-shadow:none;overflow:hidden;isolation:isolate;transition:background-color .3s ease,color .3s ease,transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease}
.home-page .home-interactive-card:hover,.home-page .home-interactive-card:focus-visible{color:#1b1700;border-color:transparent;background:var(--home-hover);transform:translateY(-4px);box-shadow:0 22px 46px rgba(38,45,76,.16);outline:none}
.home-page .home-tone-seedance{--home-hover:#65b9e9;--home-icon:#216d99;--home-icon-bg:#dff3ff}.home-page .home-tone-assets{--home-hover:#cdff4e;--home-icon:#315c1f;--home-icon-bg:#eaffb8}.home-page .home-tone-canvas{--home-hover:#ff5a25;--home-icon:#a73612;--home-icon-bg:#ffd8ca}.home-page .home-tone-minimax{--home-hover:#b8a4ff;--home-icon:#5437b4;--home-icon-bg:#e5ddff}.home-page .home-tone-fps{--home-hover:#f3dc45;--home-icon:#705d00;--home-icon-bg:#fff1a0}.home-page .home-tone-fight{--home-hover:#ff48a4;--home-icon:#8d164f;--home-icon-bg:#ffd1e8}
.home-page .model-card{min-height:344px;color:#1b1700;background:#f8f7f3}.home-page .model-card::before{content:"";position:absolute;z-index:-1;right:-10%;top:-35%;width:60%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.7),rgba(255,255,255,0) 68%);transform:scale(.7);opacity:0;transition:transform .7s cubic-bezier(.22,1,.36,1),opacity .3s ease}.home-page .model-card:hover::before,.home-page .model-card:focus-visible::before{transform:scale(1.25);opacity:1}.home-page .model-card::after{border-color:rgba(27,23,0,.12);box-shadow:0 0 0 28px rgba(27,23,0,.035),0 0 0 56px rgba(27,23,0,.025);transition:transform .7s cubic-bezier(.22,1,.36,1)}.home-page .model-card:hover::after{transform:scale(1.12)}
.home-page .model-card .model-mark{color:#1b1700;border-color:rgba(27,23,0,.18);background:rgba(255,255,255,.4)}.home-page .model-card p{color:rgba(27,23,0,.67)}.home-page .start-chip{color:#fff;background:#1b1700;border-radius:999px}.home-page .start-chip span{color:#1b1700;background:#fff;transition:transform .46s cubic-bezier(.34,1.56,.64,1)}.home-page .model-card:hover .start-chip span{transform:rotate(45deg) scale(1.08)}
.home-page .mini-card{min-height:155px;border-radius:22px}.home-page .mini-card>div{position:relative;z-index:2}.home-page .mini-icon{color:var(--home-icon);background:var(--home-icon-bg);transition:transform .46s cubic-bezier(.34,1.56,.64,1),background .3s ease}.home-page .mini-card:hover .mini-icon,.home-page .mini-card:focus-visible .mini-icon{transform:rotate(-7deg) scale(1.1);background:rgba(255,255,255,.62)}.home-page .mini-card p{color:rgba(27,23,0,.58)}
.home-page .model-quick-card{grid-template-columns:42px minmax(0,1fr) auto 38px;height:82px;padding-right:10px;border-radius:20px}.home-page .model-quick-mark{color:#fff;background:#1b1700;transition:transform .46s cubic-bezier(.34,1.56,.64,1)}.home-page .model-quick-card:hover .model-quick-mark,.home-page .model-quick-card:focus-visible .model-quick-mark{transform:rotate(7deg) scale(1.08)}.home-page .model-quick-card small{color:rgba(27,23,0,.56)}.home-page .model-quick-card .badge{color:#1b1700;background:rgba(255,255,255,.64)}.home-page .model-quick-card .home-float-arrow{right:10px;bottom:24px;width:34px;height:34px;font-size:18px}
.home-page .home-float-arrow{position:absolute;z-index:4;right:18px;bottom:16px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#ff3f96;background:#f8f7f3;font-size:22px;font-weight:700;opacity:0;pointer-events:none;transform:translateY(68px);transition:transform .46s cubic-bezier(.34,1.56,.64,1),opacity .26s cubic-bezier(.22,1,.36,1)}.home-page .home-interactive-card:hover .home-float-arrow,.home-page .home-interactive-card:focus-visible .home-float-arrow{opacity:1;transform:translateY(0)}
.home-page .director-entry-card{color:#1b1700;border-radius:24px;background:#f8f7f3}.home-page .director-entry-card::after{border-color:rgba(27,23,0,.09);box-shadow:0 0 0 45px rgba(27,23,0,.025),0 0 0 90px rgba(27,23,0,.018);transition:transform .7s cubic-bezier(.22,1,.36,1)}.home-page .director-entry-card:hover::after{transform:scale(1.16)}.home-page .director-entry-status{color:#1b1700;background:rgba(255,255,255,.62)}.home-page .director-entry-icon{color:var(--home-icon);border-color:transparent;background:var(--home-icon-bg);transition:transform .46s cubic-bezier(.34,1.56,.64,1),background .3s ease}.home-page .director-entry-card:hover .director-entry-icon,.home-page .director-entry-card:focus-visible .director-entry-icon{transform:rotate(-8deg) scale(1.08);background:rgba(255,255,255,.62)}.home-page .director-entry-copy small{color:rgba(27,23,0,.68)}.home-page .director-entry-copy em{color:rgba(27,23,0,.62)}.home-page .director-entry-action{color:#1b1700}.home-page .director-entry-action b{display:inline-grid;place-items:center;width:40px;height:40px;margin-left:9px;border-radius:50%;color:#ff3f96;background:#f8f7f3;font-size:20px;opacity:0;transform:translateY(56px);transition:transform .46s cubic-bezier(.34,1.56,.64,1),opacity .26s cubic-bezier(.22,1,.36,1)}.home-page .director-entry-card:hover .director-entry-action b,.home-page .director-entry-card:focus-visible .director-entry-action b{opacity:1;transform:translateY(0)}
.theme-dark .home-page{background:radial-gradient(circle at 14% 7%,rgba(106,119,194,.28),transparent 34%),radial-gradient(circle at 92% 86%,rgba(69,137,172,.18),transparent 38%),linear-gradient(145deg,#19213b 0%,#141b31 58%,#11182b 100%);color:#f3f1ea}.theme-dark .home-page .page-title,.theme-dark .home-page .section-heading h2,.theme-dark .home-page .director-section-heading h2{color:#f3f1ea}.theme-dark .home-page .page-subtitle,.theme-dark .home-page .director-section-heading>p{color:#aab4ce}.theme-dark .home-page .home-interactive-card{color:#edf4f8;border:1px solid #3b4668;background:#202842}.theme-dark .home-page .model-card .model-mark{color:#edf4f8;border-color:#4b587d;background:#29334f}.theme-dark .home-page .model-card p,.theme-dark .home-page .mini-card p,.theme-dark .home-page .model-quick-card small,.theme-dark .home-page .director-entry-copy em{color:#aeb8d0}.theme-dark .home-page .home-interactive-card:hover,.theme-dark .home-page .home-interactive-card:focus-visible{color:#1b1700;border-color:transparent;background:var(--home-hover)}.theme-dark .home-page .home-interactive-card:hover p,.theme-dark .home-page .home-interactive-card:focus-visible p,.theme-dark .home-page .home-interactive-card:hover small,.theme-dark .home-page .home-interactive-card:focus-visible small,.theme-dark .home-page .home-interactive-card:hover em,.theme-dark .home-page .home-interactive-card:focus-visible em{color:rgba(27,23,0,.64)}
body.theme-dark:has(.home-page) .main-wrap{background:#141b31}body.theme-dark:has(.home-page) .app-header{border-color:#35405f;background:rgba(22,29,51,.9);box-shadow:0 10px 32px rgba(6,10,24,.2)}body.theme-dark:has(.home-page) .app-sidebar{border-color:#2d3756;background:#0f1629}body.theme-dark:has(.home-page) .nav-icon:hover{background:#27314e}body.theme-dark:has(.home-page) .nav-icon.is-active{background:#2b3656;box-shadow:inset 0 0 0 1px #405078}
@media(hover:none){.home-page .home-float-arrow,.home-page .director-entry-action b{opacity:1;transform:none}}
@media(max-width:760px){.home-page{padding:28px 16px 96px}.home-page .page-title{font-size:34px}.home-page .model-card{min-height:330px}.home-page .model-quick-card{height:76px}.home-page .home-float-arrow{right:12px;bottom:12px;width:38px;height:38px}.home-page .director-entry-action b{opacity:1;transform:none}}

/* Dopamine model choices: idle cards retain the original theme; hover and selection reveal colour. */
.seedance-model-selector-grid>button[data-generator-model],.seedance-model-selector-grid>button[data-fight-model]{--model-pop:#65b9e9;--model-pop-ink:#1b1700;transition:transform .24s cubic-bezier(.22,1,.36,1),border-color .24s ease,background-color .28s ease,color .28s ease,box-shadow .28s ease}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.0 Mini"],.seedance-model-selector-grid>button[data-fight-model="Seedance 2.0 Mini"]{--model-pop:#ffe7a3}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.0 Fast"],.seedance-model-selector-grid>button[data-fight-model="Seedance 2.0 Fast"]{--model-pop:#bfe7ff}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.0"],.seedance-model-selector-grid>button[data-fight-model="Seedance 2.0"]{--model-pop:#ffc4dc}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.5 Flash"],.seedance-model-selector-grid>button[data-fight-model="Seedance 2.5 Flash"]{--model-pop:#d8c9ff}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.5"],.seedance-model-selector-grid>button[data-fight-model="Seedance 2.5"]{--model-pop:#c8ecd9}
.seedance-model-selector-grid>button[data-generator-model="MiniMax H3"]{--model-pop:#ffd0ad}
.seedance-model-selector-grid>button[data-generator-model="MiniMax H3 Highspeed"]{--model-pop:#bce5ff}
.seedance-model-selector-grid>button[data-generator-model="MiniMax H3 Lite"]{--model-pop:#ffe5a4}
.seedance-model-selector-grid>button[data-generator-model="MiniMax H3 Max"]{--model-pop:#d8c7ff}
.seedance-model-selector-grid>button[data-generator-model]:hover,.seedance-model-selector-grid>button[data-generator-model]:focus-visible,.seedance-model-selector-grid>button[data-generator-model].is-selected,.seedance-model-selector-grid>button[data-fight-model]:hover,.seedance-model-selector-grid>button[data-fight-model]:focus-visible,.seedance-model-selector-grid>button[data-fight-model].is-selected{color:var(--model-pop-ink);border-color:transparent;background:var(--model-pop);box-shadow:0 12px 25px color-mix(in srgb,var(--model-pop) 30%,transparent);transform:translateY(-3px);outline:none}
.seedance-model-selector-grid>button[data-generator-model]>span,.seedance-model-selector-grid>button[data-fight-model]>span{transition:transform .42s cubic-bezier(.34,1.56,.64,1),background .28s ease,color .28s ease}
.seedance-model-selector-grid>button[data-generator-model]:hover>span,.seedance-model-selector-grid>button[data-generator-model]:focus-visible>span,.seedance-model-selector-grid>button[data-generator-model].is-selected>span,.seedance-model-selector-grid>button[data-fight-model]:hover>span,.seedance-model-selector-grid>button[data-fight-model]:focus-visible>span,.seedance-model-selector-grid>button[data-fight-model].is-selected>span{color:#fff;background:#1b1700;transform:rotate(-6deg) scale(1.06)}
.seedance-model-selector-grid>button[data-generator-model]:hover small,.seedance-model-selector-grid>button[data-generator-model]:focus-visible small,.seedance-model-selector-grid>button[data-generator-model].is-selected small,.seedance-model-selector-grid>button[data-fight-model]:hover small,.seedance-model-selector-grid>button[data-fight-model]:focus-visible small,.seedance-model-selector-grid>button[data-fight-model].is-selected small{color:rgba(27,23,0,.64)}
.seedance-model-selector-grid>button[data-generator-model].is-selected em,.seedance-model-selector-grid>button[data-fight-model].is-selected em{color:#1b1700;background:rgba(255,255,255,.7)}
.theme-dark .seedance-model-selector-grid>button[data-generator-model]:hover,.theme-dark .seedance-model-selector-grid>button[data-generator-model]:focus-visible,.theme-dark .seedance-model-selector-grid>button[data-generator-model].is-selected,.theme-dark .seedance-model-selector-grid>button[data-fight-model]:hover,.theme-dark .seedance-model-selector-grid>button[data-fight-model]:focus-visible,.theme-dark .seedance-model-selector-grid>button[data-fight-model].is-selected{color:#1b1700;border-color:transparent;background:var(--model-pop);box-shadow:0 12px 28px color-mix(in srgb,var(--model-pop) 24%,transparent)}
.theme-dark .seedance-model-selector-grid>button[data-generator-model]:hover small,.theme-dark .seedance-model-selector-grid>button[data-generator-model]:focus-visible small,.theme-dark .seedance-model-selector-grid>button[data-generator-model].is-selected small,.theme-dark .seedance-model-selector-grid>button[data-fight-model]:hover small,.theme-dark .seedance-model-selector-grid>button[data-fight-model]:focus-visible small,.theme-dark .seedance-model-selector-grid>button[data-fight-model].is-selected small{color:rgba(27,23,0,.64)}

/* Shared colourful upload guide on both Seedance and MiniMax creation pages. */
.reference-format-notice,.theme-dark .reference-format-notice{border-color:transparent;background:linear-gradient(135deg,#ccd7ff 0 58%,#f0daff 100%);box-shadow:0 12px 28px rgba(63,73,118,.11)}
.reference-format-notice>strong,.theme-dark .reference-format-notice>strong{color:#1b1700}
.reference-format-notice span,.theme-dark .reference-format-notice span{color:#1b1700;border:1px solid rgba(27,23,0,.06);box-shadow:0 6px 16px rgba(44,49,76,.06)}
.reference-format-notice span:nth-child(1),.theme-dark .reference-format-notice span:nth-child(1){background:#cdff4e}
.reference-format-notice span:nth-child(2),.theme-dark .reference-format-notice span:nth-child(2){background:#ff7a3d}
.reference-format-notice span:nth-child(3),.theme-dark .reference-format-notice span:nth-child(3){background:#ff66b3}
.reference-format-notice b,.theme-dark .reference-format-notice b{color:#1b1700}
.reference-format-notice>small,.theme-dark .reference-format-notice>small{color:rgba(27,23,0,.66)}

/* Dopamine fight skills: preserve idle cards and reveal colour on hover/selection. */
.fight-skill-card{--skill-pop:#65b9e9;--skill-ink:#1b1700;transition:transform .24s cubic-bezier(.22,1,.36,1),border-color .24s ease,background-color .28s ease,color .28s ease,box-shadow .28s ease}
.fight-skill-card[data-fight-skill="close-combo"]{--skill-pop:#cdff4e}.fight-skill-card[data-fight-skill="weapon-duel"]{--skill-pop:#ff7a3d}.fight-skill-card[data-fight-skill="dodge-counter"]{--skill-pop:#65b9e9}.fight-skill-card[data-fight-skill="one-take"]{--skill-pop:#b8a4ff}.fight-skill-card[data-fight-skill="aerial-chase"]{--skill-pop:#ff66b3}.fight-skill-card[data-fight-skill="environment-break"]{--skill-pop:#60d6a5}.fight-skill-card[data-fight-skill="energy-clash"]{--skill-pop:#f3dc45}.fight-skill-card[data-fight-skill="boss-finale"]{--skill-pop:#ff5a25}.fight-skill-card[data-fight-skill="impact-frame-combat"]{--skill-pop:#ff48a4}
.fight-skill-card:hover,.fight-skill-card:focus-visible,.fight-skill-card.is-selected,.theme-dark .fight-skill-card:hover,.theme-dark .fight-skill-card:focus-visible,.theme-dark .fight-skill-card.is-selected{color:var(--skill-ink);border-color:transparent;background:var(--skill-pop);box-shadow:0 12px 26px color-mix(in srgb,var(--skill-pop) 28%,transparent);transform:translateY(-3px);outline:none}
.fight-skill-card>span{transition:transform .42s cubic-bezier(.34,1.56,.64,1),background .28s ease,color .28s ease}.fight-skill-card:hover>span,.fight-skill-card:focus-visible>span,.fight-skill-card.is-selected>span,.theme-dark .fight-skill-card:hover>span,.theme-dark .fight-skill-card:focus-visible>span,.theme-dark .fight-skill-card.is-selected>span{color:#fff;background:#1b1700;transform:rotate(-7deg) scale(1.06)}
.fight-skill-card:hover small,.fight-skill-card:focus-visible small,.fight-skill-card.is-selected small,.fight-skill-card:hover em,.fight-skill-card:focus-visible em,.fight-skill-card.is-selected em,.theme-dark .fight-skill-card:hover small,.theme-dark .fight-skill-card:focus-visible small,.theme-dark .fight-skill-card.is-selected small,.theme-dark .fight-skill-card:hover em,.theme-dark .fight-skill-card:focus-visible em,.theme-dark .fight-skill-card.is-selected em{color:rgba(27,23,0,.65)}
.fight-skill-card:hover b,.fight-skill-card:focus-visible b,.fight-skill-card.is-selected b,.theme-dark .fight-skill-card:hover b,.theme-dark .fight-skill-card:focus-visible b,.theme-dark .fight-skill-card.is-selected b{padding:3px 6px;border-radius:999px;color:#1b1700;background:rgba(255,255,255,.72)}

/* Detailed generation history */
.detailed-history-page{max-width:1680px}.history-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:26px}.history-overview{display:grid;grid-template-columns:repeat(4,minmax(112px,1fr));min-width:560px;border:1px solid #dbe4ea;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(44,92,120,.07)}.history-overview span{display:flex;flex-direction:column;gap:5px;padding:16px 18px;border-left:1px solid #e4ebef}.history-overview span:first-child{border-left:0}.history-overview small{color:#8997a0;font-size:12px}.history-overview strong{color:#15242e;font-size:19px}.detailed-history-list{display:grid;gap:14px}.detailed-history-card{border:1px solid #dce4e9;border-radius:20px;background:#fff;box-shadow:0 8px 26px rgba(35,75,100,.045);overflow:hidden}.detailed-history-row{display:grid;grid-template-columns:36px 200px minmax(236px,1.35fr) repeat(4,minmax(100px,.72fr)) 72px;align-items:center;gap:16px;min-height:170px;padding:18px 20px}.history-expand{display:grid;place-items:center;width:32px;height:42px;border:0;border-radius:10px;color:#80909a;background:transparent}.history-expand:hover{color:#3087bc;background:#eaf5fb}.history-expand span{font-size:31px;font-weight:300;line-height:1;transition:transform .2s}.history-expand.is-open span{transform:rotate(90deg)}.history-video-preview{position:relative;width:200px;height:112px;border-radius:14px;background:linear-gradient(145deg,#17212a,#4d9fcd 62%,#a6ddf7);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);overflow:hidden}.history-video-preview::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 75% 20%,rgba(255,255,255,.2),transparent 34%),linear-gradient(110deg,transparent 35%,rgba(0,0,0,.36))}.history-video-play{position:absolute;z-index:2;left:24px;top:42px;display:grid;place-items:center;width:28px;height:28px;color:#fff;opacity:.86}.history-video-play svg{width:21px;height:21px;fill:currentColor;stroke:currentColor}.history-video-preview i{position:absolute;z-index:2;right:22px;bottom:18px;left:22px;height:4px;border-radius:4px;background:rgba(255,255,255,.35)}.history-video-preview b{position:absolute;z-index:2;right:15px;top:31px;width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.7);box-shadow:0 8px 0 rgba(255,255,255,.7),0 16px 0 rgba(255,255,255,.7)}.history-time-block{min-width:0}.history-time-block>small,.history-fact small{display:block;margin-bottom:7px;color:#83919a;font-size:12px}.history-time-block p{margin:3px 0;color:#85929b;font-size:13px;line-height:1.45}.history-time-block p strong{color:#62727c;font-weight:650}.history-time-block .history-submitter-label{margin-top:11px;margin-bottom:2px}.history-time-block h3{margin:0 0 9px;color:#1a2932;font-size:14px}.history-usage-pill{display:inline-flex;max-width:100%;padding:6px 11px;border-radius:999px;color:#347fae;background:#e8f5fd;font-size:12px;font-weight:750;white-space:nowrap}.history-fact{align-self:start;padding-top:4px}.history-fact strong{display:block;color:#1a2932;font-size:15px;line-height:1.35}.history-status{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:750}.history-status.done{color:#2f8b4b;background:#e5f6e9}.history-status.queued{color:#287aa9;background:#e5f3fb}.history-status.failed{color:#b44e4e;background:#fdeaea}.detailed-history-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.detailed-history-actions button{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:10px;color:#7f8e98;background:transparent}.detailed-history-actions button:hover{color:#3088bb;background:#eaf5fb}.detailed-history-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.history-detail{display:grid;grid-template-columns:minmax(180px,.65fr) minmax(260px,1fr);gap:16px 28px;padding:17px 76px 20px 272px;border-top:1px solid #e5ebef;background:#f8fbfd}.history-detail>div{min-width:0}.history-detail small{display:block;margin-bottom:5px;color:#88959e;font-size:12px}.history-detail strong{color:#263640;font-size:13px}.history-prompt-detail{grid-column:1/-1}.history-prompt-detail p{margin:0;color:#5f707b;font-size:13px;line-height:1.65;white-space:pre-wrap}.history-empty{margin-top:24px}.history-empty .empty-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}
.theme-dark .detailed-history-page{background:#080d12}.theme-dark .history-overview,.theme-dark .detailed-history-card{border-color:#273640;background:#111820;box-shadow:0 10px 28px rgba(0,0,0,.16)}.theme-dark .history-overview span{border-color:#273640}.theme-dark .history-overview small,.theme-dark .history-time-block>small,.theme-dark .history-fact small,.theme-dark .history-detail small{color:#81919b}.theme-dark .history-overview strong,.theme-dark .history-time-block h3,.theme-dark .history-fact strong,.theme-dark .history-detail strong{color:#edf4f8}.theme-dark .history-time-block p{color:#82929c}.theme-dark .history-time-block p strong{color:#b6c4cc}.theme-dark .history-usage-pill{color:#a9e1ff;background:#173044}.theme-dark .history-expand,.theme-dark .detailed-history-actions button{color:#84959f}.theme-dark .history-expand:hover,.theme-dark .detailed-history-actions button:hover{color:#a9e1ff;background:#172a36}.theme-dark .history-detail{border-color:#26343e;background:#0c1319}.theme-dark .history-prompt-detail p{color:#aab8c0}
@media(max-width:1320px){.history-page-heading{align-items:flex-start;flex-direction:column}.history-overview{width:100%;min-width:0}.detailed-history-row{grid-template-columns:32px 170px minmax(210px,1.4fr) repeat(2,minmax(94px,.72fr));gap:14px}.history-video-preview{width:170px;height:96px}.detailed-history-actions{grid-column:5;justify-content:flex-start}.history-detail{padding-left:238px}}
@media(max-width:900px){.history-overview{grid-template-columns:repeat(2,1fr)}.history-overview span:nth-child(3){border-left:0;border-top:1px solid #e4ebef}.history-overview span:nth-child(4){border-top:1px solid #e4ebef}.detailed-history-row{grid-template-columns:32px 150px repeat(2,minmax(120px,1fr));align-items:start}.history-expand{grid-row:1/4}.history-video-preview{width:150px;height:85px}.history-time-block{grid-column:3/5}.history-fact{padding:5px 0}.detailed-history-actions{grid-column:3/5;justify-content:flex-end}.history-detail{grid-template-columns:1fr;padding:17px 24px 20px 198px}.history-prompt-detail{grid-column:1}}
@media(max-width:620px){.history-overview{grid-template-columns:1fr 1fr}.history-overview span{padding:12px}.detailed-history-row{grid-template-columns:30px 1fr;gap:12px;padding:15px}.history-expand{grid-column:1;grid-row:1/8}.history-video-preview{grid-column:2;width:100%;height:auto;aspect-ratio:16/9}.history-time-block,.history-fact,.detailed-history-actions{grid-column:2}.history-fact{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8edf0}.history-fact small{margin:0}.detailed-history-actions{justify-content:flex-start}.history-detail{padding:16px 18px 18px 57px}.history-usage-pill{white-space:normal}.theme-dark .history-fact{border-color:#26343e}}

/* Functional infinite canvas */
.canvas-surface{--canvas-grid:24px;--canvas-grid-x:0px;--canvas-grid-y:0px;background-position:var(--canvas-grid-x) var(--canvas-grid-y);background-size:var(--canvas-grid) var(--canvas-grid);overscroll-behavior:contain}
.canvas-world{inset:auto;left:0;top:0;width:0;height:0;overflow:visible;will-change:transform}
.canvas-edges{position:absolute;z-index:1;left:0;top:0;width:1px;height:1px;overflow:visible;pointer-events:none}.canvas-edge{fill:none;stroke:#6dbbe7;stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 3px 5px rgba(67,155,205,.22));vector-effect:non-scaling-stroke}.canvas-edge-preview{stroke:#a7dcf8;stroke-dasharray:8 7;animation:canvas-edge-flow .65s linear infinite}@keyframes canvas-edge-flow{to{stroke-dashoffset:-15}}
.canvas-node{width:260px;padding:10px;border-radius:16px;cursor:grab;touch-action:none;box-shadow:0 14px 34px rgba(1,10,16,.2)}.canvas-node:active{cursor:grabbing}.canvas-node.selected{z-index:3}.node-head{min-height:28px}.node-kind-icon{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;color:#4a95c2}.node-kind-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.node-head>strong{min-width:0;flex:1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-preview{position:relative;margin-top:8px;border-radius:10px;background:#0c1116}.node-preview img,.node-preview video{pointer-events:none}.node-placeholder-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;color:#5fa9d3;background:#eaf6fd}.node-placeholder-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}.node-video-badge{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:#fff;background:rgba(0,0,0,.55);transform:translate(-50%,-50%);backdrop-filter:blur(6px)}.node-video-badge svg{width:17px;height:17px;fill:currentColor;stroke:currentColor}.node-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px 1px}.node-footer p{min-width:0;margin:0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-footer small{flex:0 0 auto;color:#8796a0;font-size:10px}.node-port{position:absolute;z-index:5;top:50%;display:grid;place-items:center;width:22px;height:22px;padding:0;border:2px solid #fff;border-radius:50%;color:#fff;background:#7657ef;box-shadow:0 3px 10px rgba(55,36,136,.32);transform:translateY(-50%);cursor:crosshair}.node-port-left{left:-12px}.node-port-right{right:-12px}.node-port span{display:block;font-size:16px;line-height:1;transform:translateY(-1px)}.node-port:hover,.node-port.is-connecting{background:#4aa8d9;box-shadow:0 0 0 5px rgba(82,177,224,.2),0 4px 12px rgba(31,105,143,.34)}
.canvas-context-menu{position:absolute;z-index:30;width:360px;max-height:min(480px,calc(100% - 24px));padding:18px;border:1px solid rgba(138,153,164,.32);border-radius:24px;color:#263039;background:rgba(247,249,251,.97);box-shadow:0 24px 70px rgba(0,0,0,.35);backdrop-filter:blur(24px);overflow:auto;cursor:default}.canvas-context-menu[hidden]{display:none}.canvas-menu-title{display:flex;align-items:center;gap:13px;padding:3px 5px 14px}.canvas-menu-title>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;color:#7657ef;background:#eeeaff}.canvas-menu-title>span svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.canvas-menu-title>div{display:grid;gap:4px}.canvas-menu-title strong{font-size:16px}.canvas-menu-title small{color:#8b969e;font-size:12px}.canvas-menu-title.compact{padding-top:2px}.canvas-menu-row{display:grid;grid-template-columns:46px 1fr 18px;align-items:center;gap:12px;width:100%;padding:12px 8px;border:0;border-radius:15px;color:#29343c;background:transparent;text-align:left}.canvas-menu-row:hover{background:#eaf3f8}.canvas-menu-row-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px}.canvas-menu-row-icon.image{color:#7254e8;background:#eeeaff}.canvas-menu-row-icon.video{color:#2688b9;background:#e4f4fc}.canvas-menu-row-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.canvas-menu-row>span:nth-child(2){display:grid;gap:4px}.canvas-menu-row strong{font-size:14px}.canvas-menu-row small{color:#8a969e;font-size:12px}.canvas-menu-row b{color:#9aa5ac;font-size:24px;font-weight:400}.canvas-menu-back{margin-bottom:10px;padding:6px 8px;border:0;color:#638094;background:transparent;font-size:12px}.canvas-menu-back:hover{color:#2f86b9}.canvas-menu-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.canvas-menu-choice-grid>button{display:flex;align-items:flex-start;flex-direction:column;min-height:124px;padding:16px;border:1px solid #d7e2e8;border-radius:16px;color:#293640;background:#fff;text-align:left}.canvas-menu-choice-grid>button:hover{border-color:#75b8dd;background:#f3faff;box-shadow:0 9px 24px rgba(53,119,156,.1)}.canvas-menu-choice-grid>button>span{display:grid;place-items:center;width:34px;height:34px;margin-bottom:13px;border-radius:10px;color:#398fbe;background:#e7f5fd}.canvas-menu-choice-grid svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.canvas-menu-choice-grid strong{font-size:13px}.canvas-menu-choice-grid small{margin-top:5px;color:#8a979f;font-size:11px;line-height:1.45}.canvas-menu-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.canvas-menu-asset{min-width:0;padding:8px;border:1px solid #d7e2e8;border-radius:14px;color:#293640;background:#fff;text-align:left}.canvas-menu-asset:hover{border-color:#66add5;box-shadow:0 8px 20px rgba(48,113,150,.12)}.canvas-menu-asset>span{display:block;aspect-ratio:16/10;border-radius:9px;background:#111820;overflow:hidden}.canvas-menu-asset img,.canvas-menu-asset video{width:100%;height:100%;object-fit:cover}.canvas-menu-asset strong{display:block;margin-top:7px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.canvas-menu-empty{grid-column:1/-1;display:grid;place-items:center;min-height:180px;padding:22px;border:1px dashed #c6d6df;border-radius:16px;text-align:center}.canvas-menu-empty>span{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;color:#4a99c5;background:#e8f5fc}.canvas-menu-empty svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.canvas-menu-empty strong{margin-top:10px;font-size:13px}.canvas-menu-empty small{margin-top:4px;color:#8b979f;font-size:11px}.canvas-zoom-hint{position:absolute;left:18px;bottom:18px;padding:8px 11px;border:1px solid #303842;border-radius:10px;color:#8797a2;background:rgba(10,14,19,.84);font-size:11px;pointer-events:none}.zoom-controls{z-index:12}.zoom-controls button:hover{color:#fff;background:#2a3038}
.theme-dark .canvas-context-menu{border-color:#334550;color:#e9f2f6;background:rgba(17,24,31,.97)}.theme-dark .canvas-menu-title small,.theme-dark .canvas-menu-row small,.theme-dark .canvas-menu-choice-grid small,.theme-dark .canvas-menu-empty small{color:#81919b}.theme-dark .canvas-menu-row{color:#e7f0f4}.theme-dark .canvas-menu-row:hover{background:#182832}.theme-dark .canvas-menu-choice-grid>button,.theme-dark .canvas-menu-asset{color:#e6eff4;border-color:#2e414d;background:#0c141a}.theme-dark .canvas-menu-choice-grid>button:hover,.theme-dark .canvas-menu-asset:hover{border-color:#4e94ba;background:#11232e}.theme-dark .canvas-menu-back{color:#91bfd8}.theme-dark .canvas-menu-empty{border-color:#314650}.theme-dark .node-port{border-color:#111820}.theme-dark .node-placeholder-icon{color:#9cdafa;background:#173044}
@media(max-width:760px){.canvas-context-menu{width:min(360px,calc(100% - 24px));padding:15px}.canvas-zoom-hint{display:none}.canvas-menu-choice-grid{grid-template-columns:1fr}.canvas-menu-choice-grid>button{min-height:96px}}

/* Shared canvas-library delete controls */
.canvas-menu-asset{padding:7px}.canvas-menu-asset>button:first-child{display:block;width:100%;padding:0;border:0;color:inherit;background:transparent;text-align:left}.canvas-menu-asset>button:first-child>span{display:block;aspect-ratio:16/10;border-radius:9px;background:#111820;overflow:hidden}.canvas-menu-asset-delete{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;min-height:27px;margin-top:7px;border:0;border-radius:8px;color:#9b5960;background:#fff0f1;font-size:10px;font-weight:700}.canvas-menu-asset-delete:hover{color:#fff;background:#cf626c}.canvas-menu-asset-delete svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8}.theme-dark .canvas-menu-asset-delete{color:#d89ca2;background:#2a181c}.theme-dark .canvas-menu-asset-delete:hover{color:#fff;background:#b9515b}

/* Seedance generation modes */
.creation-mode-field{padding:17px;border:1px solid #d9e6ed;border-radius:18px;background:linear-gradient(135deg,#f8fcfe,#f1f8fc)}.creation-mode-field .field-label{margin-bottom:12px}.creation-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:620px;padding:5px;border:1px solid #d7e4eb;border-radius:16px;background:#eaf2f6}.creation-mode-switch button{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;min-height:68px;padding:10px 14px;border:1px solid transparent;border-radius:12px;color:#61717b;background:transparent;text-align:left;transition:.18s}.creation-mode-switch button>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;color:#4a96c2;background:#dceef8}.creation-mode-switch button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.creation-mode-switch button strong{font-size:13px}.creation-mode-switch button small{margin-top:3px;color:#8d9aa2;font-size:10px}.creation-mode-switch button:hover{color:#347fae}.creation-mode-switch button.is-selected{color:#226f9d;border-color:#9ccde7;background:#fff;box-shadow:0 7px 18px rgba(49,113,150,.11)}.creation-mode-switch button.is-selected>span{color:#2d83b4;background:#e3f3fb}.keyframe-reference-grid{display:grid;grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);align-items:center;gap:12px}.keyframe-upload-slot{min-height:172px;aspect-ratio:16/9;border-style:solid;background:linear-gradient(145deg,#f8fcfe,#eff7fb)}.keyframe-upload-slot>strong{font-size:14px}.keyframe-upload-slot>svg{width:25px;height:25px}.keyframe-order{position:absolute;left:10px;top:10px;z-index:2;display:grid;place-items:center;width:28px;height:23px;border-radius:8px;color:#428cb7;background:#e5f3fb;font-size:9px;font-weight:800}.keyframe-flow{display:flex;align-items:center;justify-content:center;color:#6eafd3}.keyframe-flow span{height:1px;flex:1;background:linear-gradient(90deg,transparent,#8ec6e4)}.keyframe-flow span:last-child{background:linear-gradient(90deg,#8ec6e4,transparent)}.keyframe-flow b{display:grid;place-items:center;width:30px;height:30px;border:1px solid #a9d0e5;border-radius:50%;background:#f3faff;font-size:15px}.keyframe-upload-slot.has-reference{border-style:solid;border-color:#6ab2da}.frame-slot-label{position:absolute;z-index:2;left:9px;bottom:9px;padding:5px 8px;border-radius:8px;color:#fff;background:rgba(8,21,29,.72);font-size:10px;font-weight:750;backdrop-filter:blur(7px)}.reference-audio{max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.theme-dark .creation-mode-field{border-color:#293b46;background:linear-gradient(135deg,#101920,#0d151b)}.theme-dark .creation-mode-switch{border-color:#2a3b45;background:#0b1217}.theme-dark .creation-mode-switch button{color:#93a3ad}.theme-dark .creation-mode-switch button small{color:#72838d}.theme-dark .creation-mode-switch button>span{color:#88c9eb;background:#163044}.theme-dark .creation-mode-switch button.is-selected{color:#b8e5fb;border-color:#4f94b9;background:#132630;box-shadow:0 8px 20px rgba(0,0,0,.18)}.theme-dark .keyframe-upload-slot{background:linear-gradient(145deg,#101920,#0c141a)}.theme-dark .keyframe-order{color:#a7ddf8;background:#173044}.theme-dark .keyframe-flow b{color:#9bd8f5;border-color:#365a6d;background:#10232d}
@media(max-width:700px){.creation-mode-switch{grid-template-columns:1fr}.keyframe-reference-grid{grid-template-columns:1fr}.keyframe-flow{height:34px;transform:rotate(90deg)}.keyframe-upload-slot{min-height:150px;aspect-ratio:16/9}}

/* Ephemeral per-task reference image */
.temporary-reference-row{display:flex;align-items:center;gap:12px;min-height:58px;margin:0 0 14px;padding:9px 10px 9px 14px;border:1px solid #d8e6ee;border-radius:14px;background:rgba(255,255,255,.78)}.temporary-reference-row[hidden]{display:none}.temporary-reference-copy{display:grid;gap:3px;min-width:0;margin-right:auto}.temporary-reference-copy strong{color:#263640;font-size:13px}.temporary-reference-copy small{color:#82919a;font-size:10px;line-height:1.4}.temporary-reference-upload{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:0 13px;border:1px solid #9ecde7;border-radius:10px;color:#277cae;background:#edf8fe;font-size:11px;font-weight:700;white-space:nowrap}.temporary-reference-upload:hover{color:#fff;background:#4c9dcc}.temporary-reference-upload:disabled{opacity:.58;cursor:wait}.temporary-reference-upload svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.temporary-ref-badge{position:absolute;z-index:2;left:8px;top:8px;padding:4px 7px;border-radius:7px;color:#e9f8ff;background:rgba(19,96,137,.9);font-size:9px;font-weight:750;backdrop-filter:blur(7px)}.theme-dark .temporary-reference-row{border-color:#2a3d48;background:rgba(12,21,27,.8)}.theme-dark .temporary-reference-copy strong{color:#d8e8f0}.theme-dark .temporary-reference-copy small{color:#7f929d}.theme-dark .temporary-reference-upload{color:#9edbfa;border-color:#3d718d;background:#112936}@media(max-width:700px){.temporary-reference-row{align-items:flex-start;flex-wrap:wrap}.temporary-reference-copy{width:100%}.temporary-reference-upload{width:100%}}
.reference-format-notice{margin:0 0 14px;padding:13px 15px;border:1px solid #cfe1ea;border-radius:15px;background:#f5fafc}.reference-format-notice>strong{display:block;margin-bottom:9px;color:#263b47;font-size:13px}.reference-format-notice>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.reference-format-notice span{display:block;padding:9px 10px;border-radius:10px;color:#647680;background:#fff;font-size:10px;line-height:1.5}.reference-format-notice b{display:block;margin-bottom:2px;color:#2b7ca9;font-size:11px}.reference-format-notice>small{display:block;margin-top:9px;color:#7e8e97;font-size:9px;line-height:1.5}.reference-grid-extended{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}.reference-grid-extended .upload-slot,.reference-summary-tile{min-width:0;aspect-ratio:1;border-radius:13px}.typed-reference-slot{padding:8px 5px}.typed-reference-slot strong{font-size:11px}.typed-reference-slot small{max-width:100%;overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.typed-reference-slot>svg{width:18px;height:18px}.reference-kind-pill{position:absolute;left:6px;top:6px;padding:3px 5px;border-radius:6px;color:#fff;background:#4a94bd;font-size:7px;font-weight:800}.typed-reference-slot.is-video .reference-kind-pill{background:#7764c9}.typed-reference-slot.is-audio .reference-kind-pill{background:#b36d9d}.reference-summary-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px;border:1px solid #cddfe7;color:#4e6b7a;background:linear-gradient(145deg,#f4fafc,#eaf4f8);text-align:center}.reference-summary-tile>span svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.reference-summary-tile strong{font-size:10px}.reference-summary-tile small{font-size:8px}.theme-dark .reference-format-notice{border-color:#d4d7da;background:#f1f2f3;box-shadow:0 8px 22px rgba(0,0,0,.14)}.theme-dark .reference-format-notice>strong{color:#111315}.theme-dark .reference-format-notice span{color:#202326;background:#fff}.theme-dark .reference-format-notice b{color:#0d0f11}.theme-dark .reference-format-notice>small{color:#555b60}.theme-dark .reference-summary-tile{color:#a8c8d8;border-color:#2b414d;background:linear-gradient(145deg,#111e25,#0c161c)}
@media(max-width:1200px){.reference-grid-extended{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.reference-format-notice>div{grid-template-columns:1fr}.reference-grid-extended{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact generation mode selector at the top of each supported model page */
.creation-mode-toolbar{margin:14px 0 22px}.creation-mode-toolbar .creation-mode-switch{display:inline-grid;grid-template-columns:repeat(2,minmax(92px,1fr));gap:0;max-width:none;padding:3px;border:0;border-radius:999px;background:#edf1f4;box-shadow:inset 0 0 0 1px rgba(107,127,139,.08)}.creation-mode-toolbar .creation-mode-switch button{display:flex;align-items:center;justify-content:center;min-height:32px;padding:6px 18px;border:0;border-radius:999px;color:#68747c;background:transparent;text-align:center;box-shadow:none}.creation-mode-toolbar .creation-mode-switch button strong{font-size:12px;font-weight:650;white-space:nowrap}.creation-mode-toolbar .creation-mode-switch button:hover{color:#25323a}.creation-mode-toolbar .creation-mode-switch button.is-selected{color:#17242c;border:0;background:#fff;box-shadow:0 1px 5px rgba(34,54,65,.16)}.theme-dark .creation-mode-toolbar .creation-mode-switch{border:0;background:#172128;box-shadow:inset 0 0 0 1px rgba(157,192,210,.08)}.theme-dark .creation-mode-toolbar .creation-mode-switch button{color:#85949d;background:transparent;box-shadow:none}.theme-dark .creation-mode-toolbar .creation-mode-switch button:hover{color:#d2e7f2}.theme-dark .creation-mode-toolbar .creation-mode-switch button.is-selected{color:#d9f0fb;border:0;background:#293a44;box-shadow:0 1px 6px rgba(0,0,0,.28)}

/* MiniMax H3 API status and real video previews */
.active-model-card em.is-ready{color:#187447;background:#e4f7ed}.history-preview.has-video,.history-video-preview.has-video{background:#05090b;filter:none!important}.history-preview.has-video::after{display:none}.history-preview video,.history-video-preview video{display:block;width:100%;height:100%;object-fit:contain;background:#05090b}.history-video-preview.has-video{overflow:hidden}.status.failed,.history-status.failed{color:#b4424b;background:#ffecee}.theme-dark .active-model-card em.is-ready{color:#8ee4b8;background:#143526}.theme-dark .status.failed,.theme-dark .history-status.failed{color:#ffabb1;background:#3a1d22}
.api-parameter-note{margin:-9px 0 18px;padding:9px 12px;border-radius:11px;color:#6f7f88;background:#edf6fa;font-size:10px;line-height:1.6}.theme-dark .api-parameter-note{color:#89a5b4;background:#12232c}
.temporary-ref-badge.is-active{color:#dfffee;background:rgba(20,128,80,.94)}.temporary-ref-badge.is-failed{color:#ffe8ea;background:rgba(166,49,61,.94)}.temporary-ref-badge.is-processing{color:#fff4d5;background:rgba(157,103,22,.94)}
.model-quick-grid-single{grid-template-columns:minmax(0,1fr);max-width:calc(50% - 6px)}
.seedance-model-selector{margin:18px 0 12px;padding:16px;border:1px solid #d9e6ed;border-radius:18px;background:linear-gradient(135deg,#f8fcfe,#f1f8fc)}
.seedance-model-selector-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:12px}
.seedance-model-selector-head>div{display:grid;gap:3px}.fight-model-selector #active-model-api-status{padding:4px 8px;border-radius:999px;color:#337fae;background:#e4f3fb;font-weight:750;white-space:nowrap}.fight-model-selector #active-model-api-status.is-ready{color:#187447;background:#e4f7ed}.theme-dark .fight-model-selector #active-model-api-status{color:#a8ddfa;background:#173044}.theme-dark .fight-model-selector #active-model-api-status.is-ready{color:#8ee4b8;background:#143526}
.seedance-model-selector-head strong{font-size:14px}
.seedance-model-selector-head small{color:#7f909b;font-size:10px}
.seedance-model-selector-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.seedance-model-selector-grid>button{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;min-height:70px;padding:10px 12px;border:1px solid #d4e2ea;border-radius:14px;color:#52636d;background:#fff;text-align:left;transition:transform .18s,border-color .18s,box-shadow .18s}
.seedance-model-selector-grid>button:hover{transform:translateY(-1px);border-color:#8dc6e4}
.seedance-model-selector-grid>button>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#fff;background:linear-gradient(145deg,#24536b,#55a7d4);font-size:11px;font-weight:850}
.seedance-model-selector-grid>button div{min-width:0}
.seedance-model-selector-grid>button strong,.seedance-model-selector-grid>button small{display:block}
.seedance-model-selector-grid>button strong{font-size:13px}
.seedance-model-selector-grid>button small{margin-top:3px;overflow:hidden;color:#84939c;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.seedance-model-selector-grid>button em{position:absolute;right:9px;top:8px;padding:3px 6px;border-radius:999px;color:#2176a5;background:#e2f3fc;font-size:8px;font-style:normal;font-weight:800}
.seedance-model-selector-grid>button.is-selected{color:#1d6f9e;border-color:#70b4d9;background:#fafdff;box-shadow:0 8px 20px rgba(48,117,156,.12)}
.theme-dark .seedance-model-selector{border-color:#293b46;background:linear-gradient(135deg,#101920,#0d151b)}
.theme-dark .seedance-model-selector-head small{color:#7f929d}
.theme-dark .seedance-model-selector-grid>button{color:#a9bac4;border-color:#2c414e;background:#0e171d}
.theme-dark .seedance-model-selector-grid>button:hover{border-color:#4f94b9}
.theme-dark .seedance-model-selector-grid>button.is-selected{color:#c7ebfc;border-color:#4f94b9;background:#132630;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.theme-dark .seedance-model-selector-grid>button em{color:#a8ddfa;background:#173044}
.minimax-regeneration-note{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:11px 13px;border:1px solid #d7e9b7;border-radius:13px;color:#526b25;background:#f5faeb}
.minimax-regeneration-note>svg{flex:0 0 auto;width:20px;height:20px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.minimax-regeneration-note span,.minimax-regeneration-note strong,.minimax-regeneration-note small{display:block}
.minimax-regeneration-note strong{font-size:12px}.minimax-regeneration-note small{margin-top:3px;color:#738552;font-size:10px;line-height:1.55}
.theme-dark .minimax-regeneration-note{border-color:#3d5324;color:#c6df94;background:#172011}.theme-dark .minimax-regeneration-note small{color:#93a773}
@media(max-width:1100px){.seedance-model-selector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.model-quick-grid-single{max-width:none}}
@media(max-width:700px){.seedance-model-selector-grid{grid-template-columns:1fr}}
@media(max-width:560px){.seedance-model-selector{padding:13px}.seedance-model-selector-head{display:block}.seedance-model-selector-head small{display:block;margin-top:4px}}

/* Route-aware pastel themes for every inner workspace. */
body:has(.seedance-create-page){--inner-page-tint:#e8f4fa;--inner-page-tint-2:#dceef7;--inner-page-dark:#132a36;--inner-page-dark-2:#10232d;--inner-page-accent:#6fb9dc}
body:has(.minimax-create-page){--inner-page-tint:#f0ebfa;--inner-page-tint-2:#e6def6;--inner-page-dark:#251e38;--inner-page-dark-2:#1f192f;--inner-page-accent:#a78be4}
body:has(.director-fight-page){--inner-page-tint:#f8eaf3;--inner-page-tint-2:#f2dce9;--inner-page-dark:#321f2c;--inner-page-dark-2:#291923;--inner-page-accent:#dc87b4}
body:has(.director-fps-page){--inner-page-tint:#e8f6ef;--inner-page-tint-2:#daf0e5;--inner-page-dark:#172d26;--inner-page-dark-2:#12251f;--inner-page-accent:#6cbf98}
body:has(.library-page){--inner-page-tint:#edf7e7;--inner-page-tint-2:#e0f0d8;--inner-page-dark:#1d2d20;--inner-page-dark-2:#17261a;--inner-page-accent:#85bb69}
body:has(.canvas-page){--inner-page-tint:#eef0fb;--inner-page-tint-2:#e2e6f7;--inner-page-dark:#20253b;--inner-page-dark-2:#191e31;--inner-page-accent:#8898d9}
body:has(.detailed-history-page){--inner-page-tint:#ebf2f6;--inner-page-tint-2:#dfeaf0;--inner-page-dark:#182935;--inner-page-dark-2:#13232d;--inner-page-accent:#78a9c4}
body:has(.cost-page){--inner-page-tint:#faf3dc;--inner-page-tint-2:#f5e9c5;--inner-page-dark:#302918;--inner-page-dark-2:#282214;--inner-page-accent:#d6ad4e}
body:has(.trash-page){--inner-page-tint:#f8e9ec;--inner-page-tint-2:#f2dce1;--inner-page-dark:#321f24;--inner-page-dark-2:#29191e;--inner-page-accent:#d88191}
body:has(.settings-page){--inner-page-tint:#f0ecf7;--inner-page-tint-2:#e6dff2;--inner-page-dark:#28233a;--inner-page-dark-2:#211d31;--inner-page-accent:#9c87c9}

body:is(:has(.seedance-create-page),:has(.minimax-create-page),:has(.director-fight-page),:has(.director-fps-page),:has(.library-page),:has(.canvas-page),:has(.detailed-history-page),:has(.cost-page),:has(.trash-page),:has(.settings-page)) .main-wrap{background:linear-gradient(145deg,var(--inner-page-tint),var(--inner-page-tint-2))}
body:is(:has(.seedance-create-page),:has(.minimax-create-page),:has(.director-fight-page),:has(.director-fps-page),:has(.library-page),:has(.canvas-page),:has(.detailed-history-page),:has(.cost-page),:has(.trash-page),:has(.settings-page)) .app-header{border-color:color-mix(in srgb,var(--inner-page-accent) 24%,#d8dde3);background:color-mix(in srgb,var(--inner-page-tint) 88%,rgba(255,255,255,.9));box-shadow:0 6px 24px rgba(61,76,93,.035)}
.seedance-create-page,.minimax-create-page,.director-fight-page,.director-fps-page,.library-page,.canvas-page,.detailed-history-page,.cost-page,.trash-page,.settings-page{background:linear-gradient(145deg,var(--inner-page-tint),var(--inner-page-tint-2))}
.seedance-create-page .generator-panel,.minimax-create-page .generator-panel{background:color-mix(in srgb,var(--inner-page-tint) 62%,#fff);box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
.seedance-create-page .generator-panel-inner,.minimax-create-page .generator-panel-inner{position:relative}
.director-fight-page,.director-fps-page{background:radial-gradient(circle at 82% 5%,rgba(255,255,255,.72),transparent 31%),linear-gradient(145deg,var(--inner-page-tint),var(--inner-page-tint-2))}
.canvas-page .canvas-header,.canvas-page .canvas-tools{border-color:color-mix(in srgb,var(--inner-page-accent) 24%,#d9dde5);background:color-mix(in srgb,var(--inner-page-tint) 72%,#fff)}

body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page),:has(.director-fight-page),:has(.director-fps-page),:has(.library-page),:has(.canvas-page),:has(.detailed-history-page),:has(.cost-page),:has(.trash-page),:has(.settings-page)) .main-wrap{background:radial-gradient(circle at 82% 8%,color-mix(in srgb,var(--inner-page-accent) 15%,transparent),transparent 32%),linear-gradient(145deg,var(--inner-page-dark),var(--inner-page-dark-2))}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page),:has(.director-fight-page),:has(.director-fps-page),:has(.library-page),:has(.canvas-page),:has(.detailed-history-page),:has(.cost-page),:has(.trash-page),:has(.settings-page)) .app-header{border-color:color-mix(in srgb,var(--inner-page-accent) 22%,#26333c);background:color-mix(in srgb,var(--inner-page-dark) 90%,rgba(8,13,18,.94));box-shadow:none}
.theme-dark .seedance-create-page,.theme-dark .minimax-create-page,.theme-dark .director-fight-page,.theme-dark .director-fps-page,.theme-dark .library-page,.theme-dark .canvas-page,.theme-dark .detailed-history-page,.theme-dark .cost-page,.theme-dark .trash-page,.theme-dark .settings-page{background:radial-gradient(circle at 82% 8%,color-mix(in srgb,var(--inner-page-accent) 14%,transparent),transparent 31%),linear-gradient(145deg,var(--inner-page-dark),var(--inner-page-dark-2))}
.theme-dark .seedance-create-page .generator-panel,.theme-dark .minimax-create-page .generator-panel{color:#edf4f8;background:color-mix(in srgb,var(--inner-page-dark) 80%,#0c1218);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--inner-page-accent) 13%,transparent)}
.theme-dark .canvas-page .canvas-header,.theme-dark .canvas-page .canvas-tools{color:#eaf2f6;border-color:color-mix(in srgb,var(--inner-page-accent) 22%,#27333c);background:color-mix(in srgb,var(--inner-page-dark) 82%,#0b1117)}

/* Keep the three primary creation workspaces bright even when dark mode is active. */
body.theme-dark:has(.seedance-create-page){--inner-page-dark:#d9edf5;--inner-page-dark-2:#c9e4ef;--inner-page-accent:#6faec8}
body.theme-dark:has(.minimax-create-page){--inner-page-dark:#e5def4;--inner-page-dark-2:#d6cdec;--inner-page-accent:#a28acb}
body.theme-dark:has(.director-fight-page){--inner-page-dark:#f2dde7;--inner-page-dark-2:#e8cfdb;--inner-page-accent:#c987a7}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page),:has(.director-fight-page)) .app-header{border-color:color-mix(in srgb,var(--inner-page-accent) 28%,#fff);background:color-mix(in srgb,var(--inner-page-dark) 92%,#fff);box-shadow:0 8px 26px rgba(58,49,74,.07)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page),:has(.director-fight-page)) .header-title h1{color:#242633}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page),:has(.director-fight-page)) .header-title p{color:#62697a}
.theme-dark .seedance-create-page .generator-panel,.theme-dark .minimax-create-page .generator-panel{color:#263340;background:rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.theme-dark .seedance-create-page .generator-head h2,.theme-dark .minimax-create-page .generator-head h2{color:#1e2933}
.theme-dark .seedance-create-page .generator-head p,.theme-dark .minimax-create-page .generator-head p{color:#64717d}
.theme-dark .seedance-create-page .eyebrow{color:#337fa7}.theme-dark .minimax-create-page .eyebrow{color:#765da8}
.theme-dark .director-fight-page{color:#26303a}
.theme-dark .director-fight-page .director-back{color:#655a6b}
.theme-dark .director-fight-page .director-title-row h1{color:#25232b}
.theme-dark .director-fight-page .director-title-row div>span{color:#716773}
.theme-dark .director-fight-page .director-title-icon{color:#8d4f72;border-color:#d9a9c0;background:#fff3f8}
.theme-dark .director-fight-page .director-agent-pill{color:#7f4967;border-color:#dab0c4;background:#fff1f7}

/* Light surfaces inside the two bright creation pages. */
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .seedance-model-selector{color:#202b34;border-color:#d5e0e7;background:rgba(255,255,255,.9);box-shadow:0 12px 30px rgba(58,71,88,.08)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .seedance-model-selector-head small{color:#6f7d87}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .seedance-model-selector-grid>button{color:#26343d;border-color:#d8e2e8;background:#fff}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .seedance-model-selector-grid>button small{color:#77858e}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .minimax-regeneration-note{color:#4e5d72;border-color:#d7deea;background:#f8f9fc}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .minimax-regeneration-note small{color:#748091}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .creation-mode-toolbar .creation-mode-switch{background:rgba(255,255,255,.82);box-shadow:inset 0 0 0 1px #d7e0e6}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .creation-mode-toolbar .creation-mode-switch button{color:#64717b;background:transparent}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .creation-mode-toolbar .creation-mode-switch button:hover{color:#25333c;background:#f5f8fa}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .creation-mode-toolbar .creation-mode-switch button.is-selected{color:#21313b;background:#fff;box-shadow:0 2px 8px rgba(48,65,77,.13)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .field-label{color:#33414a}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .field-label small{color:#74838d}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .active-model-card{color:#22323c;border-color:#d2dfe7;background:rgba(255,255,255,.9);box-shadow:0 10px 26px rgba(55,74,88,.07)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .active-model-card p,body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .active-model-card small{color:#71808a}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .active-model-card em{color:#33779e;background:#e8f4fa}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .active-model-card em.is-ready{color:#25734b;background:#e8f6ee}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .asset-library-banner{color:#22313a;border-color:#d4e0e7;background:rgba(255,255,255,.92);box-shadow:0 9px 24px rgba(55,74,88,.07)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .asset-library-banner p{color:#74828c}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .asset-library-banner:hover,body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .asset-library-banner.is-open{color:#255f80;border-color:#9fc9df;background:#f7fcff}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .upload-slot{color:#526775;border-color:#cbd9e1;background:rgba(255,255,255,.9);box-shadow:0 7px 20px rgba(58,76,88,.05)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .upload-slot small{color:#7b8b95}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .upload-slot:hover{color:#337da7;border-color:#83b9d6;background:#f6fcff}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .reference-summary-tile{color:#4e6b7a;border-color:#cbd9e1;background:rgba(255,255,255,.9);box-shadow:0 7px 20px rgba(58,76,88,.05)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .inline-library-panel{color:#26343d;border-color:#d3dfe6;background:rgba(255,255,255,.94);box-shadow:0 10px 26px rgba(55,74,88,.07)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .inline-library-panel>header>div small{color:#75848e}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .inline-library-count{color:#526d7c;border-color:#d4e1e8;background:#fff}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .temporary-library-item{color:#24323b;border-color:#d5e1e7;background:#fff}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .temporary-library-preview{background:#eef4f7}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .temporary-library-item>small{color:#778791}
.temporary-library-shell + #reference-mode-content{margin-top:18px}

/* Per-model dopamine marks: selected mark turns black; current-model mark keeps its original colour. */
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.0 Mini"]{--model-mark:#cbbcff;--model-mark-ink:#2d2348}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.0 Fast"]{--model-mark:#ffc29f;--model-mark-ink:#512817}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.0"]{--model-mark:#9edcff;--model-mark-ink:#173b51}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.5 Flash"]{--model-mark:#ffadd3;--model-mark-ink:#54233a}
.seedance-model-selector-grid>button[data-generator-model="Seedance 2.5"]{--model-mark:#ffe29a;--model-mark-ink:#4b3b12}
.seedance-model-selector-grid>button[data-generator-model="MiniMax H3"]{--model-mark:#c6b6ff;--model-mark-ink:#2e2449}
.seedance-model-selector-grid>button[data-generator-model="MiniMax H3 Highspeed"]{--model-mark:#ffc49a;--model-mark-ink:#542a16}
.seedance-model-selector-grid>button[data-generator-model="MiniMax H3 Lite"]{--model-mark:#afe8cf;--model-mark-ink:#173e30}
.seedance-model-selector-grid>button[data-generator-model="MiniMax H3 Max"]{--model-mark:#ffb3ca;--model-mark-ink:#512436}
.seedance-model-selector-grid>button[data-generator-model]>span,.theme-dark .seedance-model-selector-grid>button[data-generator-model]>span{color:#fff;background:#111216;box-shadow:0 7px 16px rgba(17,18,22,.16)}
.seedance-model-selector-grid>button[data-generator-model].is-selected>span,.theme-dark .seedance-model-selector-grid>button[data-generator-model].is-selected>span{color:var(--model-mark-ink);background:var(--model-mark);box-shadow:0 7px 16px color-mix(in srgb,var(--model-mark) 34%,transparent)}
.active-model-card[data-active-model="Seedance 2.0 Mini"]>span{color:#2d2348;background:#cbbcff}
.active-model-card[data-active-model="Seedance 2.0 Fast"]>span{color:#512817;background:#ffc29f}
.active-model-card[data-active-model="Seedance 2.0"]>span{color:#173b51;background:#9edcff}
.active-model-card[data-active-model="Seedance 2.5 Flash"]>span{color:#54233a;background:#ffadd3}
.active-model-card[data-active-model="Seedance 2.5"]>span{color:#4b3b12;background:#ffe29a}
.active-model-card[data-active-model="MiniMax H3"]>span{color:#2e2449;background:#c6b6ff}
.active-model-card[data-active-model="MiniMax H3 Highspeed"]>span{color:#542a16;background:#ffc49a}
.active-model-card[data-active-model="MiniMax H3 Lite"]>span{color:#173e30;background:#afe8cf}
.active-model-card[data-active-model="MiniMax H3 Max"]>span{color:#512436;background:#ffb3ca}
.active-model-card[data-active-model]>span{box-shadow:0 8px 18px rgba(49,59,72,.1)}

/* Remove remaining dark controls from the Seedance and MiniMax creation forms. */
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .resolution-options button{color:#33434d;border-color:#d4e0e7;background:#fff;box-shadow:0 6px 18px rgba(55,74,88,.05)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .resolution-options button small{color:#7b8992}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .resolution-options button.is-selected{color:#236f9d;border-color:#67afe0;background:#eaf6fd;box-shadow:0 0 0 2px rgba(103,175,224,.13)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .resolution-options button.is-selected small{color:#578bad}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .aspect-option{color:#354650;border-color:#d4e0e7;background:#fff;box-shadow:0 6px 18px rgba(55,74,88,.05)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .aspect-option.is-selected{color:#236f9d;border-color:#67afe0;background:#eaf6fd;box-shadow:0 0 0 2px rgba(103,175,224,.13)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .audio-settings-card{color:#2d3d47;border-color:#d3e0e7;background:rgba(255,255,255,.92);box-shadow:0 8px 22px rgba(55,74,88,.06)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .audio-settings-copy small{color:#778690}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .audio-switch{color:#344550;border-color:#d7e3ea;background:#fff}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .audio-switch:hover{border-color:#9bcbe6;background:#fafdff}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .audio-switch small{color:#7d8b94}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .audio-switch i{background:#cbd5dc}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .audio-switch.is-on{color:#236f9d;border-color:#9acbe6;background:#f1f9fd}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .audio-switch.is-on i{background:#65b9e5}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .duration-value{color:#2e3e48;border-color:#d5e1e8;background:#fff;box-shadow:0 5px 16px rgba(55,74,88,.05)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .prompt-box{border-color:#d4e0e7;background:#fff;box-shadow:0 8px 22px rgba(55,74,88,.05)}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .prompt-box textarea{color:#263640;background:#fff}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .prompt-box textarea::placeholder{color:#87949d}
body.theme-dark:is(:has(.seedance-create-page),:has(.minimax-create-page)) .prompt-box:focus-within{border-color:#67afe0;box-shadow:0 0 0 4px rgba(103,175,224,.13)}
body.theme-dark:has(.minimax-create-page) .api-parameter-note{color:#647784;border:1px solid #d7e3ea;background:rgba(255,255,255,.82)}

/* Compact asset library with a true white day theme and deep blue-grey night theme. */
body:not(.theme-dark):has(.library-page){--inner-page-tint:#fff;--inner-page-tint-2:#fff}
body:not(.theme-dark):has(.library-page) .main-wrap{background:#fff}
body:not(.theme-dark):has(.library-page) .app-header{border-color:#e4e8eb;background:#fff;box-shadow:0 6px 22px rgba(37,49,59,.04)}
body:not(.theme-dark):has(.library-page) .library-page{color:#25313a;background:#fff}
body:not(.theme-dark):has(.library-page) .managed-library-toolbar{color:#25313a;background:#fff}
body.theme-dark:has(.library-page){--inner-page-dark:#0b1117;--inner-page-dark-2:#101820;--inner-page-accent:#4f8ead}
body.theme-dark:has(.library-page) .main-wrap{background:linear-gradient(145deg,#0b1117,#101820)}
body.theme-dark:has(.library-page) .app-header{border-color:#26343e;background:#0d151b;box-shadow:none}
body.theme-dark:has(.library-page) .library-page{color:#edf4f8;background:transparent}
body.theme-dark:has(.library-page) .header-title h1,body.theme-dark:has(.library-page) .page-title{color:#edf4f8}
body.theme-dark:has(.library-page) .header-title p,body.theme-dark:has(.library-page) .page-subtitle{color:#8796a1}
body.theme-dark:has(.library-page) .library-page .eyebrow{color:#76b9dc}
body.theme-dark:has(.library-page) .managed-library-toolbar{color:#edf4f8;background:#0b1117}
body.theme-dark:has(.library-page) .managed-library-toolbar strong{color:#fff}
body.theme-dark:has(.library-page) .managed-library-toolbar p{color:#9aaab4}
.library-page .managed-asset-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.library-page .asset-card{padding:8px;border-radius:15px}
.library-page .asset-preview{aspect-ratio:4/3;border-radius:11px}
.library-page .asset-card h3{display:-webkit-box;min-height:34px;margin:8px 2px 3px;overflow:hidden;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.library-page .asset-card-actions{margin-top:7px}
@media(max-width:760px){.library-page .managed-asset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.library-page .managed-asset-grid{grid-template-columns:1fr}}

/* Day mode: maximise legibility inside the three coloured upload-limit cards. */
body:not(.theme-dark) .reference-format-notice span,body:not(.theme-dark) .reference-format-notice span b{color:#111315}
