:root{color-scheme:dark;--bg:#0b0b12;--sidebar:#101018;--panel:#14141e;--border:#292934;--muted:#9393a5;--text:#ececf4;--purple:#c4b0ff;--accent:#8b5ded;--field:#0e0e17;--radius:13px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);font-size:14px;line-height:1.45}button,textarea,select,input{font:inherit}button,a,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{outline:2px solid #c1a8ff;outline-offset:3px}svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{width:0;height:0;position:absolute;overflow:hidden}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--sidebar);border-right:1px solid #22222d;padding:26px 14px 19px;display:flex;flex-direction:column;gap:8px}.brand{display:flex;align-items:center;gap:11px;margin:0 10px 31px}.brand img{box-shadow:0 3px 20px #8d5cff30;border-radius:11px}.brandword{font-size:22px;letter-spacing:2px;font-weight:800;white-space:nowrap}.brandword span{color:#b498ff;font-size:12px;letter-spacing:0}.workspace-label{font-size:10px;color:#77778b;letter-spacing:1.1px;font-weight:700;padding:0 12px 6px}.account-label{margin-top:19px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.nav{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px;border:0;border-radius:8px;background:transparent;color:#9696a8;font-weight:550;font-size:13px;transition:background .15s,color .15s}.nav:hover{background:#22222d;color:#fff}.nav.active{color:#d8c9ff;background:#29223f}.nav.active svg{color:#bca2ff}.sidebar-bottom{margin-top:auto;padding:10px 8px 0}.brand-note{font-size:11px;color:#b6b6c7;line-height:1.8}.brand-note span{color:#77778b}.profile{border-top:1px solid #282834;margin-top:19px;padding-top:18px;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:50%;background:#30244c;color:#cdb8ff;display:grid;place-items:center;font-weight:700}.profiletext strong{font-size:12px}.profiletext small{display:block;color:var(--muted);font-size:11px}.main{min-width:0}.topbar{height:68px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #24242d;padding:0 32px;gap:14px}.breadcrumb{display:flex;gap:8px;align-items:center;font-size:13px;color:var(--muted)}.breadcrumb svg{width:13px;height:13px}.breadcrumb b{color:#d9d9e5;font-weight:550}.top-actions{display:flex;gap:13px;align-items:center}.demo-badge{font-size:11px;color:#9a99ac;white-space:nowrap;display:flex;gap:6px;align-items:center}.demo-badge>span{width:6px;height:6px;background:#a38ada;border-radius:50%}.balance{display:flex;align-items:center;gap:5px;color:#d2beff;border:1px solid #3c3152;background:#1c1729;padding:8px 11px;border-radius:8px;font-size:12px;white-space:nowrap}.balance svg{width:15px;height:15px}.balance:hover{background:#2d2341}.plus{border-left:1px solid #4a3b61;margin-left:5px;padding-left:9px;font-size:15px;line-height:1}.content{max-width:1440px;margin:0 auto;padding:0 32px 22px}.hero{padding:31px 0 24px}.eyebrow{color:#bdaaff;font-size:11px;letter-spacing:1.25px;font-weight:700;display:flex;align-items:center;gap:7px;margin-bottom:10px}.eyebrow svg{width:14px;height:14px}.hero h1{font-size:clamp(26px,3vw,39px);line-height:1.13;letter-spacing:-1.6px;margin:0 0 9px;font-weight:750}.hero h1 span{color:var(--purple)}.hero p{color:var(--muted);font-size:13px;margin:0}.editor{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.15fr);gap:17px}.panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--panel);min-width:0;overflow:hidden}.controls{display:flex;flex-direction:column;gap:16px;padding:19px}.tabs{display:flex;gap:4px;padding:4px;background:#0d0d15;border:1px solid #272732;border-radius:9px}.tab{flex:1;min-width:0;padding:9px 4px;border:0;background:transparent;color:#9291a4;border-radius:6px;font-size:12px;white-space:nowrap;font-weight:550}.tab.active{background:#302743;color:#e0d3ff}.field label,dialog label{display:block;color:#b6b6c5;font-size:12px;font-weight:600;margin-bottom:7px}.field select,textarea,dialog select{width:100%;background:var(--field);border:1px solid #30303d;color:#e0e0e9;border-radius:8px;padding:11px 12px;font-size:13px;min-width:0}select{cursor:pointer}textarea{resize:vertical;min-height:112px;line-height:1.55}.model-picker{position:relative}.model-picker select{padding-left:40px}.model-symbol{position:absolute;left:12px;top:8px;font-size:19px;color:#be9eff;pointer-events:none}.hint{font-size:11px;color:#838396;margin-top:5px;display:flex;justify-content:space-between;gap:8px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:13px 12px}.primary{display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;background:linear-gradient(108deg,#8e5ef0,#7352e6);border-radius:8px;padding:13px 15px;font-weight:700;color:#fff;box-shadow:0 3px 18px #7545db26;min-height:47px}.primary:hover:not(:disabled){filter:brightness(1.13)}.primary>span:first-child{display:flex;align-items:center;gap:9px}.primary svg{width:17px;height:17px}.cost{padding:4px 8px;background:#ffffff20;border-radius:6px;font-size:11px;white-space:nowrap}.demo-caption{color:#88879c;text-align:center;font-size:10px;margin-top:-7px}.preview{padding:19px;display:flex;flex-direction:column;gap:15px}.previewhead{display:flex;justify-content:space-between;align-items:center;gap:8px}.previewhead h2,.sectiontitle h2,dialog h2{font-size:16px;font-weight:650;margin:0}.status{font-size:10px;letter-spacing:.5px;color:#b0afc2;border:1px solid #3b3b49;padding:4px 8px;border-radius:5px;white-space:nowrap}.screen{position:relative;background:#090911;min-height:240px;flex:1;aspect-ratio:16/10;display:grid;place-items:center;overflow:hidden;border:1px solid #2e2e3a;border-radius:9px}.screen video,.screen img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.screen img{object-fit:contain;background:#090911}.screeninfo{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;gap:5px;padding:30px 13px 15px;background:linear-gradient(0deg,#080711b0,transparent);color:#eae5ef;font-size:11px;pointer-events:none}.screen.playing .screeninfo,.screen.playing .play{display:none}.play{width:52px;height:52px;z-index:1;border-radius:50%;display:grid;place-items:center;background:#ffffff22;border:1px solid #ffffff55;backdrop-filter:blur(8px);color:white}.play svg{fill:white;stroke:white;transform:translateX(1px);width:23px;height:23px}.play:hover{background:#ffffff40}.progress{height:4px;background:#30303a;border-radius:8px;overflow:hidden}.progress>span{height:100%;width:0;display:block;background:#b18fff;transition:width .25s}.meta{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:11px}.ghost,.icon-button{display:inline-flex;gap:6px;align-items:center;justify-content:center;padding:8px 11px;border:1px solid #343440;background:#20202c;border-radius:7px;font-size:12px;color:#dad9e6;white-space:nowrap}.ghost:hover,.icon-button:hover{background:#2a2939}.ghost svg{width:14px;height:14px}.previewfoot{display:flex;gap:8px;align-items:center;border-top:1px solid #282834;padding-top:12px;font-size:11px;color:#88879d;margin-top:auto}.previewfoot svg{width:14px;height:14px}.notice{font-size:12px;color:#b0a6c7;line-height:1.6;border-radius:7px;background:#201a2d;padding:10px 12px;margin:0;overflow-wrap:anywhere}.notice.error{background:#39212c;color:#ffc3d2}.sectiontitle{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 13px}.sectiontitle p{font-size:12px;color:var(--muted);margin:4px 0 0}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.thumb{padding:0;overflow:hidden;text-align:left;background:#15151f;border:1px solid var(--border);border-radius:10px;color:inherit;transition:border-color .15s,transform .15s}.thumb:hover{border-color:#72609a;transform:translateY(-2px)}.art{position:relative;aspect-ratio:16/8;overflow:hidden;background:#211c33}.art img{width:100%;height:100%;object-fit:cover;display:block}.tagtime{position:absolute;bottom:8px;right:8px;background:#090912a0;padding:3px 6px;border-radius:4px;font-size:10px;color:#f0eef6}.thumbtxt{padding:12px;font-size:13px;font-weight:600}.thumbtxt small{display:block;color:#89899d;font-size:11px;font-weight:400;margin-top:3px}.upload{display:flex!important;flex-direction:column;align-items:center;gap:5px;border:1px dashed #62517f;background:#1c1729;border-radius:8px;padding:12px;color:#c5b0ff!important;font-size:12px;text-align:center;cursor:pointer;margin:0!important}.upload input{width:100%;max-width:220px;font-size:11px;color:var(--muted)}.upload small{font-size:10px;color:#a19ab1;font-weight:400}.upload svg{width:23px;height:23px}dialog{background:#181822;color:var(--text);border:1px solid #393445;border-radius:14px;width:min(440px,calc(100vw - 24px));padding:23px;box-shadow:0 20px 60px #0008}dialog::backdrop{background:#05050bbf;backdrop-filter:blur(5px)}.dialoghead{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.icon-button{padding:5px}.icon-button svg{width:17px;height:17px}.muted{color:var(--muted);font-size:13px;margin:0}.packages{display:flex;flex-direction:column;gap:9px;margin:17px 0}.package{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;padding:12px 14px;border:1px solid #343344;background:#101019;border-radius:8px;font-size:12px;color:#bfbfce}.package strong{display:block;font-size:19px;color:#fff;font-weight:700;margin-top:2px}.package.chosen{border-color:#a286ff;background:#28213a}.checkout{margin:14px 0 10px;width:100%;justify-content:center}.history-list{display:flex;flex-direction:column;gap:10px}.empty{padding:60px 20px;text-align:center;border:1px dashed #383848;border-radius:10px;color:var(--muted);line-height:1.8}.historyitem{display:flex;align-items:center;gap:14px;padding:12px;background:#161620;border:1px solid #2c2c38;border-radius:9px}.historyitem img{width:110px;aspect-ratio:16/9;object-fit:cover;border-radius:5px;flex-shrink:0}.historyitem .history-text{min-width:0;flex:1}.historyitem strong{font-size:13px;display:block;overflow-wrap:anywhere}.historyitem small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.historyitem .ghost{margin-left:auto}footer{display:flex;justify-content:space-between;gap:10px;color:#6f6f82;font-size:11px;border-top:1px solid #24242d;padding-top:15px;margin-top:28px}.nojs{padding:15px;color:#ffcf9f}[hidden]{display:none!important}@media(min-width:1500px){.content{padding-left:45px;padding-right:45px}.topbar{padding:0 45px}}@media(max-width:1020px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:22px 10px}.content{padding:0 20px 20px}.topbar{padding:0 20px}.controls,.preview{padding:14px}.editor{gap:12px}.settings{gap:10px}.preview .screen{min-height:210px;aspect-ratio:16/12}.hero h1{font-size:32px}}@media(max-width:800px){.shell{grid-template-columns:62px minmax(0,1fr)}.sidebar{padding:18px 7px;gap:6px}.brand{margin:0 auto 26px}.brandword,.nav span,.workspace-label,.profiletext,.brand-note{display:none}.nav{justify-content:center;padding:12px 6px}.sidebar-bottom{padding:0}.profile{justify-content:center}.topbar{height:58px;padding:0 13px}.content{padding:0 13px 20px}.editor{grid-template-columns:1fr}.hero{padding:23px 0 20px}.hero h1{font-size:29px}.screen{min-height:210px;aspect-ratio:16/9}.preview .screen{aspect-ratio:16/9}.demo-badge{display:none}.gallery{gap:8px}.thumbtxt{padding:9px;font-size:11px}.thumbtxt small{font-size:10px}.sectiontitle p{display:none}.breadcrumb{font-size:11px;gap:4px}.balance{padding:6px 8px}.historyitem img{width:70px}.historyitem .ghost{font-size:10px}}@media(max-width:410px){.shell{grid-template-columns:48px minmax(0,1fr)}.sidebar{padding:15px 3px}.brand img{width:30px;height:30px}.content{padding:0 9px 16px}.topbar{padding:0 9px}.hero h1{font-size:25px}.topbar .breadcrumb span{display:none}.breadcrumb svg{display:none}.gallery{grid-template-columns:1fr}.gallery .thumb{display:flex;align-items:center}.gallery .art{width:42%}.thumbtxt{padding:10px}.controls,.preview{padding:12px}.settings select{font-size:12px;padding:10px 7px}.tab{font-size:11px}.historyitem{flex-wrap:wrap}.historyitem .history-text{min-width:110px}.historyitem .ghost{margin:0}.meta{font-size:10px}}
/* v2 studio tools */
.workspace-grid{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.15fr);gap:17px;align-items:start}.workspace-grid h2,.pricing-grid h2,.price-table h2{font-size:16px;line-height:1.4;margin:0}.field input:not([type=file]),.scene-card input:not([type=checkbox]){width:100%;background:var(--field);border:1px solid #30303d;color:#e0e0e9;border-radius:8px;padding:11px 12px;font:inherit;min-width:0}.field input:focus,.scene-card input:focus{outline:2px solid #a391ff;outline-offset:1px}.mini-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.mini-tools>*{flex:1;min-width:0;white-space:normal;text-align:center}.scene-list,.char-list{display:flex;flex-direction:column;gap:12px}.scene-card,.char-card{background:#101019;border:1px solid #30303d;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px;min-width:0}.scene-card .field textarea{min-height:78px;font-size:12px}.scene-card .field label{font-size:11px}.scene-card .scene-head{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.scene-card .scene-head b{color:#bdaaff;margin-right:auto;font-size:12px}.scene-card .ghost{padding:6px 9px;font-size:11px}.scene-sample{display:flex;gap:10px;align-items:center}.scene-sample img{width:90px;aspect-ratio:16/9;object-fit:cover;border-radius:6px}.scene-sample .field{flex:1;min-width:0}.checklist{display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow:auto}.check,.checklist label{display:flex;gap:7px;align-items:center;font-size:12px;color:#d1c7e4;margin:0}.checklist label{padding:6px 9px;border:1px solid #393049;border-radius:7px;background:#201a2c}.check input,.checklist input{accent-color:#a485ff;width:16px;height:16px}.char-card{flex-direction:row;align-items:flex-start;flex-wrap:wrap}.char-card .char-description{flex:1;min-width:130px;overflow-wrap:anywhere}.char-card p{color:var(--muted);font-size:12px;white-space:pre-wrap;margin:5px 0}.char-card h3{margin:0;font-size:15px}.char-card img,.char-placeholder{width:76px;height:88px;object-fit:cover;background:#2d2346;border-radius:8px;display:grid;place-items:center;font-size:26px;color:#cab2ff}.portrait-preview{width:100%;max-width:220px;max-height:220px;object-fit:contain;align-self:center;border-radius:8px}.film-output{width:100%;max-height:480px;background:#090911;border-radius:8px}.wave-art{display:flex;align-items:center;justify-content:center;min-height:145px;font-size:clamp(20px,3vw,38px);letter-spacing:2px;background:radial-gradient(ellipse,#2c2144,#100f19 70%);color:#b49aff;border-radius:10px;overflow:hidden}.workspace-grid audio{width:100%}.pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.pricing-grid .primary{justify-content:center}.price-number{font-size:30px;letter-spacing:-1px}.price-table{margin-top:16px}.rate-row{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #2b2b38;font-size:13px}.rate-row:last-child{border-bottom:none}.rate-row small{display:block;color:var(--muted);font-size:11px}.rate-row strong{text-align:right;color:#cbb8ff}.sidebar{overflow-y:auto}.sidebar .nav{min-height:38px}.workspace-grid .primary{justify-content:center;text-align:center}.workspace-grid .primary:disabled{opacity:.5}.workspace-grid .notice{white-space:pre-wrap}.workspace-grid .empty{padding:25px 15px}.checklist .muted{font-size:12px}@media(max-width:960px){.workspace-grid{grid-template-columns:1fr}}@media(max-width:650px){.pricing-grid{grid-template-columns:1fr}.pricing-grid .controls{gap:8px}.scene-sample img{width:70px}.scene-card{padding:10px}.price-number{font-size:25px}.sidebar .nav{min-height:37px}.mini-tools>.ghost{font-size:11px}}

/* Reference studio */
.editor>.preview{align-self:start}
.reference-enable{width:100%;margin:8px 0}.reference-fields{margin:12px 0;padding:14px;border:1px solid #39334f;border-radius:12px;background:var(--field,#16131f);min-width:0}.reference-heading{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px}.reference-heading strong{font-size:13px}.reference-heading small,.reference-card small{font-size:11px;color:var(--muted,#a4a0b5)}.reference-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.reference-card{display:flex;flex-direction:column;gap:5px;border:1px solid #39334f;border-radius:9px;padding:6px;min-width:0}.reference-card img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:5px;background:#101019}.reference-card .ghost{padding:5px 3px;font-size:10px;min-width:0}.reference-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-range{display:grid;grid-template-columns:1fr 1fr;gap:10px}.reference-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.reference-actions .ghost{font-size:11px;flex:1}.reference-actions select{flex:1;min-width:130px;max-width:100%}.reference-file-label{position:relative;text-align:center;overflow:hidden;cursor:pointer}.reference-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.reference-file-label:focus-within{outline:2px solid #a391ff}.reference-video{width:100%;max-height:210px;background:#080810;border-radius:8px}.reference-fields audio{width:100%;margin-top:10px}.reference-fields details{margin-top:14px;font-size:12px}.reference-fields summary{cursor:pointer;color:var(--muted,#a4a0b5)}.reference-job{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #302b3e}.reference-job span{flex:1}.reference-job small{width:100%;color:var(--muted,#a4a0b5)}.reference-job .ghost{font-size:11px}.reference-fields .model-note{display:block;line-height:1.6;margin:8px 0}.reference-fields .notice{overflow-wrap:anywhere}.tabs .tab{white-space:normal;min-width:0}@media(max-width:420px){.reference-images{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-fields{padding:10px}}

/* Long-film workspace */
.video-library{margin:12px 0;padding:12px;border:1px solid #39334f;border-radius:12px}.video-library summary{cursor:pointer;font-weight:600}.video-library .rate-row{gap:10px;overflow-wrap:anywhere}#media-library{max-height:280px;overflow:auto}#film-jobs progress{width:100%;height:12px;accent-color:#a78bfa}#film-jobs .scene-card{margin:12px 0}#scene-list input[type=number]{max-width:160px}#film-jobs .mini-tools{flex-wrap:wrap}

.watermark-setting{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;color:var(--text,#f2f0ff);font-size:13px}.watermark-setting small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--muted,#a4a0b5)}.watermark-setting input{appearance:none;flex:0 0 40px;width:40px;height:23px;padding:0;border:1px solid #666078;border-radius:20px;background:#282433;cursor:pointer;position:relative}.watermark-setting input::after{content:"";position:absolute;top:3px;left:3px;width:15px;height:15px;border-radius:50%;background:#b5afc5;transition:transform .15s}.watermark-setting input:checked{background:#8b5cf6;border-color:#a78bfa}.watermark-setting input:checked::after{transform:translateX(17px);background:#fff}.watermark-setting input:focus-visible{outline:2px solid #c4b5fd;outline-offset:3px}.watermark-setting input:disabled{cursor:default;opacity:.65}
