:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202320;background:#f7f7f4;font-synthesis:none;--ink:#202320;--muted:#656960;--line:#dedfd8;--surface:#fff;--accent:#36573c;--radius:12px;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #557b5b;outline-offset:3px}a{color:inherit}::selection{background:#d5e2d1;color:#162219}input,textarea{caret-color:var(--accent)}*{scrollbar-color:#b6bcb1 transparent;scrollbar-width:thin}h1,h2,h3,p{margin-top:0}h1{font-size:30px;font-weight:550;line-height:1.15;letter-spacing:-.03em;margin-bottom:9px}h2{font-size:16px;font-weight:600;margin:0}label{display:block;font-size:12px;font-weight:550;margin:0 0 8px}input:not([type=checkbox]):not([type=radio]),textarea,select{width:100%;border:1px solid #d1d5ca;border-radius:6px;background:var(--surface);color:var(--ink);padding:11px 12px;font-size:14px;line-height:1.5}textarea{resize:vertical}input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:17px;height:17px;flex-shrink:0}select{min-height:44px}textarea::placeholder,input::placeholder{color:#73776f}code{overflow-wrap:anywhere;font-size:12px}.topbar{min-height:72px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:42px;padding:0 36px;background:#fdfdfa}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:650;text-decoration:none;letter-spacing:-.035em}.brand svg{width:21px;height:27px}.tabs{display:flex;align-self:stretch;gap:22px}.tab{min-width:56px;padding:0 3px;background:none;color:var(--muted);border-bottom:2px solid transparent;font-size:13px;font-weight:500}.tab.active{border-color:var(--ink);color:var(--ink)}.tab span{margin-left:5px;font-size:11px;color:var(--muted)}.connection{margin-left:auto;display:flex;gap:9px;align-items:center;font-size:12px;color:var(--muted);background:transparent;min-height:44px;padding:0 3px}.connection svg{width:16px;height:16px}.dot{background:#ad9465;width:6px;height:6px;border-radius:50%;flex-shrink:0}.dot.ready{background:#57775b}.connection-panel{max-width:1280px;margin:auto;padding:28px 36px;display:grid;grid-template-columns:1fr 1fr;gap:56px;border-bottom:1px solid var(--line)}.connection-panel p{font-size:13px;line-height:1.65;max-width:54ch}.connection-panel .button{margin-top:4px}.pairing summary{font-size:13px;font-weight:550;padding:0 0 15px}.pairing form label{margin-top:12px}.pairing form{max-width:430px}main{max-width:1280px;margin:auto;padding:40px 36px 64px}.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:72px}.editor{min-width:0}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:26px}.lede{font-size:13px;color:var(--muted);line-height:1.6;margin:0}.save-status{font-size:11px;color:var(--muted);white-space:nowrap;margin-top:9px}details summary{cursor:pointer;list-style:none}details summary::-webkit-details-marker{display:none}details summary:after{content:"+";margin-left:auto;font-size:17px;font-weight:400;color:var(--muted)}details[open]>summary:after{content:"−"}.idea-panel{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:24px}.idea-panel>summary,.finish-options>summary{min-height:46px;display:flex;gap:18px;align-items:center;font-size:13px;font-weight:550}.idea-panel>summary>span,.finish-options>summary>span{font-size:11px;font-weight:400;color:var(--muted)}.idea-content{padding:5px 0 22px}.idea-content label:not(:first-child){margin-top:16px}.optional{font-weight:400;color:var(--muted)}.row{display:flex;gap:10px;align-items:flex-end;margin-top:12px}.row .model-label{flex:1;margin:0}.row .button{white-space:nowrap}.title-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.script-menu{position:relative;font-size:11px;color:var(--muted)}.script-menu>summary{padding:6px 0;display:flex;gap:6px;align-items:center}.script-menu>summary:after{font-size:13px}.script-menu>div{position:absolute;right:0;top:100%;z-index:3;background:#fff;padding:6px;border:1px solid var(--line);border-radius:8px;min-width:145px}.script-menu .text-button{width:100%;text-align:left;justify-content:flex-start;margin:0}.storyboard-head{display:flex;gap:12px;align-items:center;margin-top:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}#scene-tabs{display:flex;gap:6px;min-width:0;overflow-x:auto;padding:3px;margin:-3px;scrollbar-width:none}.scene-tab{flex-shrink:0;width:38px;height:38px;border-radius:6px;color:var(--muted);background:transparent;border:1px solid var(--line);font-size:12px;font-variant-numeric:tabular-nums}.scene-tab[aria-current=true]{color:#fff;border-color:var(--ink);background:var(--ink)}#add-scene{margin-left:auto;white-space:nowrap}.scene{padding-top:16px}.scene-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.scene-top h3{font-size:12px;font-weight:500;color:var(--muted);margin:0}.scene-actions{display:flex;gap:3px}.scene-actions button{background:none;color:var(--muted);font-size:11px;min-height:32px;padding:0 8px;border-radius:4px}.scene-actions button:hover{background:#ebede6}.scene label{margin-top:14px}.scene textarea{min-height:126px}.scene-extras{margin-top:13px}.scene-extras summary{display:flex;align-items:center;font-size:12px;color:var(--muted);min-height:36px}.scene-source{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin:8px 0 12px}.scene-source label{margin:0;min-width:0}.scene-source input{font-size:12px!important}.asset-upload{position:relative;font-size:12px;white-space:nowrap;cursor:pointer;border:1px solid var(--line);border-radius:6px;padding:11px 12px;background:white;color:var(--ink)}.asset-upload input,.import-label input{position:absolute!important;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.asset-upload:focus-within,.import-label:focus-within{outline:2px solid #557b5b;outline-offset:3px}.asset-status{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px}.word-count{margin:12px 0 20px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.finish-panel{border-top:1px solid var(--line)}.settings-content{padding:8px 0 15px}.setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.setting-grid label{margin:0}.setting-grid select{margin-top:8px}fieldset{border:0;padding:0;margin:18px 0 0}legend{font-size:12px;font-weight:550;margin-bottom:8px}.theme-options{display:flex;gap:8px}.theme{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 8px;margin:0;border:1px solid var(--line);border-radius:6px;font-size:12px;flex:1;cursor:pointer;background:#fff}.theme:has(input:checked){border-color:#727e6b}.theme>span{width:12px;height:12px;border-radius:50%;background:#12203b}.theme.citrus>span{background:#57724d}.theme.paper>span{background:#d2b591}.theme input{width:13px;height:13px;margin:0}.check-row{display:flex;gap:10px;align-items:flex-start;font-size:11px;line-height:1.65;font-weight:400;color:var(--muted);margin:16px 0}.check-row input{margin:2px 0 0}.render-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:3px}.render-row .fine{margin:0;font-size:11px}.button{min-height:44px;padding:11px 18px;border-radius:6px;font-weight:550;font-size:12px;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;background:var(--ink);color:#fff}.button.secondary{background:#fff;color:var(--ink);border:1px solid #d1d5ca}.button.primary{min-width:160px}.text-button{position:relative;display:inline-flex;align-items:center;background:none;color:var(--muted);font-size:12px;font-weight:500;padding:8px;min-height:36px;text-decoration:none;border-radius:4px}.text-button:hover{color:var(--ink);background:#e9ece4}.import-label{margin:0;cursor:pointer}.fine{font-size:11px;line-height:1.65;color:var(--muted);margin:12px 0 0}.muted{font-size:13px;line-height:1.7;color:var(--muted)}.preview-column{min-width:0}.preview-sticky{position:sticky;top:24px}.preview-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.preview-heading h2{font-size:13px;font-weight:550}.preview-heading>span{font-size:11px;color:var(--muted)}.preview-stage{padding:20px;background:#e9ebe5;border-radius:12px;display:flex;justify-content:center}.frame-preview{width:min(100%,300px);aspect-ratio:9/16;background:#121b32;color:#f5f4ef;padding:8.3%;position:relative;border-radius:6px;overflow:hidden;--accent:#82acff;container-type:inline-size}.frame-preview:before{content:"";position:absolute;border:1px solid var(--accent);border-radius:50%;width:91%;aspect-ratio:1;left:42%;top:16%;opacity:.6}.frame-preview.citrus{background:#17251f;--accent:#d5ea85}.frame-preview.paper{background:#f3ebdd;color:#202124;--accent:#a44a26}.frame-preview.has-image{color:white;background-position:center;background-size:cover}.frame-preview.has-image:before{display:none}.frame-title{font-size:9px;text-transform:uppercase;letter-spacing:.08em;position:relative;margin:0;line-height:1.5;min-height:27px;overflow-wrap:anywhere}.frame-number{position:relative;font-size:10px;color:var(--accent);display:block;margin-top:30px;font-variant-numeric:tabular-nums}.frame-preview h3{position:relative;font-size:27px;line-height:1.2;letter-spacing:-.025em;font-weight:650;margin-top:16px;overflow-wrap:anywhere}.frame-caption{position:absolute;bottom:20%;left:7%;right:7%;background:#0b101b;border-radius:6px;padding:12px;font-size:16px;text-align:center;font-weight:600;line-height:1.3;color:#fff;margin:0}.frame-lines{position:absolute;left:8.3%;right:8.3%;height:2px;bottom:9.3%;background:var(--accent)}.frame-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:14px 0;font-size:11px;color:var(--muted)}.circle-button{width:36px;height:36px;border:1px solid var(--line);background:transparent;border-radius:6px;color:var(--ink);display:grid;place-items:center}.circle-button svg{width:18px;height:18px}.preview-note{font-size:11px;line-height:1.65;color:var(--muted);max-width:36ch;text-align:center;margin:0 auto}.active-render{padding:18px 0;border-top:1px solid var(--line);margin-top:24px;font-size:12px}.active-render strong{display:block;margin-bottom:8px}.active-render progress{width:100%;accent-color:var(--accent);margin:12px 0}.notice{padding:12px 16px;background:#eaf0e6;border:1px solid #c8d4c0;border-radius:6px;margin:0 0 24px;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.notice.error{background:#fff1e8;border-color:#dcb79d;color:#7a3f27}.library-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.library-head .muted{margin:0}.job-card{display:grid;grid-template-columns:240px minmax(0,1fr);gap:32px;border-top:1px solid var(--line);padding:28px 0;margin:0}.job-card video{width:240px;max-height:427px;border-radius:7px;background:#17222c}.job-placeholder{background:#e9ebe5;color:#64725f;border-radius:7px;aspect-ratio:9/16;display:grid;place-items:center;font-size:24px}.job-card h3{font-size:23px;letter-spacing:-.025em;font-weight:550;margin:14px 0}.job-meta{font-size:12px;color:var(--muted);line-height:1.7}.status-tag{font-size:11px;font-weight:500;display:inline-block;padding:5px 8px;background:#e8ede3;color:#3f5738;border-radius:4px}.status-tag.failed,.status-tag.interrupted{background:#f8e4d5;color:#88462c}.job-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 12px}.job-actions .button{font-size:12px}.job-error{background:#fff0e5;color:#844b2f;padding:12px;font-size:12px;line-height:1.6;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere}.job-links{display:flex;gap:16px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:15px}.job-links a{text-underline-offset:3px}.job-card progress{display:block;width:100%;accent-color:var(--accent);margin:20px 0}.empty-library{padding:64px 20px;border-top:1px solid var(--line);text-align:center}.empty-library h3{font-size:22px;font-weight:550;letter-spacing:-.025em;margin-bottom:12px}.empty-library p{font-size:13px;line-height:1.7;color:var(--muted)}footer{max-width:1280px;margin:auto;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;padding:22px 36px;font-size:10px;color:var(--muted)}.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}[hidden]{display:none!important}
@media(max-width:1050px){.studio-grid{grid-template-columns:minmax(0,1fr) 310px;gap:36px}.preview-stage{padding:16px}.frame-preview h3{font-size:24px}.frame-caption{font-size:14px}.page-heading{display:block}.save-status{display:block;margin-top:12px}.connection-panel{gap:30px}.topbar{gap:26px}}
@media(max-width:760px){.topbar{padding:0 18px;min-height:66px;gap:18px;flex-wrap:wrap}.brand{font-size:18px}.brand svg{width:18px;height:24px}.tabs{gap:12px;min-height:66px}.tab{font-size:12px;min-width:48px}.connection{gap:6px}.connection #connection-label{display:none}.connection svg{width:14px}.connection-panel{display:block;padding:22px 18px}.pairing{margin-top:24px}main{padding:26px 18px 40px}.studio-grid{display:flex;flex-direction:column;gap:30px}.page-heading{display:flex;gap:12px;margin-bottom:20px}h1{font-size:27px}.lede{font-size:12px;max-width:30ch}.save-status{font-size:10px;margin-top:5px;white-space:normal;text-align:right;max-width:65px;line-height:1.5}.preview-column{order:2}.preview-sticky{position:static;max-width:390px;margin:auto}.preview-stage{padding:20px}.frame-preview{width:240px}.frame-preview h3{font-size:23px}.frame-caption{font-size:13px}.frame-title{font-size:8px}.frame-number{font-size:9px;margin-top:24px}.preview-note{font-size:11px}.idea-panel>summary,.finish-options>summary{font-size:12px;gap:12px}.idea-panel>summary>span,.finish-options>summary>span{font-size:10px}.storyboard-head{gap:8px}.scene-tab{width:34px;height:36px}#add-scene{font-size:11px;padding:8px 4px}.scene-source{grid-template-columns:1fr}.asset-upload{width:max-content}.scene-actions button{font-size:10px;padding:0 7px}.scene textarea{min-height:130px}.render-row{gap:12px}.render-row .button{min-width:144px;font-size:11px;padding:11px 12px}.render-row .fine{font-size:10px}.check-row{font-size:11px}.setting-grid{gap:10px}.setting-grid select{font-size:12px}.theme{font-size:11px;padding:10px 5px;gap:4px}.row{align-items:stretch;flex-direction:column}.row .button{width:100%}.job-card{grid-template-columns:1fr;gap:20px}.job-card video,.job-placeholder{width:100%;max-width:220px;max-height:392px;margin:auto}.library-head{align-items:flex-start}.library-head h1{font-size:27px}.library-head .muted{font-size:12px}.library-head .button{padding:10px 12px;font-size:11px}.job-actions .button{flex:1;white-space:nowrap;font-size:11px}.job-card h3{font-size:22px}footer{padding:20px 18px;font-size:10px;line-height:1.6}}
@media(prefers-reduced-motion:no-preference){button,a,summary{transition:background-color 140ms ease,color 140ms ease,border-color 140ms ease}}

@media(max-width:760px){input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select,.setting-grid select,.scene-source input{font-size:16px!important}}
