:root{--bg:#080a0f;--surface-1:#0f1219;--surface-2:#151922;--surface-3:#1d222d;--surface-4:#252b38;--border:#292f3b;--border-strong:#3b4352;--text:#f5f7fb;--text-muted:#9aa4b4;--text-faint:#667183;--accent:#8467ff;--accent-bright:#a996ff;--accent-soft:#8467ff2b;--green:#44d2a0;--green-soft:#44d2a024;--amber:#f2b84b;--danger:#ff6478;--danger-soft:#ff64781f;--focus:#bdadff;--font-sans:-apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-mono:ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);font-family:var(--font-sans);margin:0}body{overflow:hidden}button,input,select,textarea{color:inherit;font:inherit}button,a,input,select,textarea{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.42}.editor-shell{background:radial-gradient(circle at 48% 10%, #5843a917, transparent 32%), var(--bg);grid-template-rows:60px minmax(0,1fr) 236px;width:100%;height:100dvh;min-height:680px;display:grid;overflow:hidden}.app-header{z-index:20;border-bottom:1px solid var(--border);background:#0c0e14f5;grid-template-columns:230px minmax(220px,1fr) auto;align-items:center;gap:18px;padding:0 18px;display:grid;box-shadow:0 6px 20px #0003}.brand-group,.brand-copy,.project-heading,.header-actions,.panel-heading-row,.inspector-header,.section-label-row,.switch-row,.timeline-toolbar,.timeline-toolbar-actions,.transport,.transport-controls,.output-actions,.reference-row,.clip-tools,.timeline-item-wrap,.video-track,.audio-track,.audio-strip,.setting-grid label>span,.section-label,.generate-footer,.save-state{align-items:center;display:flex}.brand-group{gap:10px}.brand-mark{background:var(--accent-soft);border:1px solid #a996ff73;border-radius:9px;align-items:flex-end;gap:3px;width:32px;height:32px;padding:7px;display:flex;box-shadow:inset 0 0 18px #8467ff1c}.brand-mark span{background:var(--accent-bright);border-radius:99px;width:4px}.brand-mark span:first-child{height:10px}.brand-mark span:nth-child(2){height:17px}.brand-mark span:nth-child(3){height:13px}.brand-copy{flex-direction:column;align-items:flex-start;line-height:1.08}.brand-copy strong{letter-spacing:-.01em;font-size:15px;font-weight:670}.brand-copy span,.save-state,.asset-meta,.helper-copy,.generate-footer>span,.reference-row small,.switch-row small,.audio-strip small{color:var(--text-faint);font-size:11px}.project-heading{justify-content:center;gap:10px;min-width:0}.project-title-input{color:#dfe3ec;text-align:center;background:0 0;border:1px solid #0000;border-radius:6px;width:min(280px,46vw);padding:5px 8px;font-size:14px;font-weight:590}.project-title-input:hover,.project-title-input:focus{border-color:var(--border);background:var(--surface-2)}.save-state{white-space:nowrap;gap:4px}.save-state svg{width:11px;color:var(--green)}.save-state.is-saving svg{color:var(--accent-bright)}.save-state.is-error,.save-state.is-error svg{color:var(--danger)}.header-actions{justify-content:flex-end;gap:9px}.connection-pill,.format-pill,.header-play-button,.new-project-button{border:1px solid var(--border);background:var(--surface-2);height:32px;color:var(--text-muted);white-space:nowrap;border-radius:8px;font-size:12px}.connection-pill,.format-pill{align-items:center;gap:7px;padding:0 10px;display:inline-flex}.connection-pill:hover{border-color:var(--border-strong);color:var(--text)}.connection-dot{background:var(--amber);border-radius:50%;width:7px;height:7px;box-shadow:0 0 8px #f2b84b73}.connection-pill.is-ready .connection-dot{background:var(--green);box-shadow:0 0 8px #44d2a080}.header-play-button{background:var(--accent-soft);color:#ddd6ff;border-color:#8467ff73;align-items:center;gap:7px;padding:0 13px;font-weight:590;display:inline-flex}.header-play-button:hover:not(:disabled){border-color:var(--accent);background:#8467ff3d}.header-play-button svg{fill:currentColor;width:13px}.new-project-button{height:28px;color:var(--text-muted);background:0 0;flex:none;align-items:center;gap:6px;padding:0 9px;display:inline-flex}.new-project-button:hover{border-color:var(--border-strong);background:var(--surface-2);color:var(--text)}.new-project-button svg{width:12px}.project-switcher{flex:none;position:relative}.project-switcher-button{border:1px solid var(--border);height:28px;color:var(--text-muted);white-space:nowrap;background:0 0;border-radius:8px;justify-content:center;align-items:center;gap:5px;padding:0 8px;font-size:12px;display:inline-flex}.project-switcher-button:hover,.project-switcher-button[aria-expanded=true]{border-color:var(--border-strong);background:var(--surface-2);color:var(--text)}.project-switcher-button svg{width:12px;height:12px}.project-switcher-label{text-overflow:ellipsis;white-space:nowrap;max-width:110px;overflow:hidden}.project-menu{z-index:100;border:1px solid var(--border-strong);width:min(280px,100vw - 36px);max-height:min(420px,100vh - 84px);color:var(--text);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#0f1219fa;border-radius:11px;flex-direction:column;padding:6px;display:flex;position:absolute;top:calc(100% + 8px);left:0;overflow:hidden;box-shadow:0 18px 46px #0000007a,0 0 0 1px #ffffff06}.project-menu-header{border-bottom:1px solid var(--border);min-height:34px;color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;justify-content:space-between;align-items:center;gap:10px;padding:5px 8px 8px;font-size:11px;font-weight:650;display:flex}.project-menu-list{overscroll-behavior:contain;min-height:0;padding:5px 0 0;overflow-y:auto}.project-menu-item{width:100%;color:var(--text-muted);text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:9px;padding:8px 9px;display:grid}.project-menu-item:hover{border-color:var(--border);background:var(--surface-2);color:var(--text)}.project-menu-item.is-active{background:var(--accent-soft);color:var(--text);border-color:#8467ff61}.project-menu-item-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.project-menu-item-title,.project-menu-item-meta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-menu-item-title{color:inherit;font-size:12px;font-weight:610}.project-menu-item-meta{color:var(--text-faint);font-size:10px}.project-menu-check{width:18px;height:18px;color:var(--green);justify-self:end;place-items:center;display:grid}.project-menu-check svg{width:13px;height:13px}.workspace{--inspector-width:356px;grid-template-columns:222px minmax(360px, 1fr) var(--inspector-width);min-height:0;display:grid;overflow:hidden}.media-rail,.inspector,.preview-panel{background:var(--surface-1);min-width:0;min-height:0}.media-rail{border-right:1px solid var(--border);padding:16px 14px 22px;overflow:auto}.panel-heading-row{justify-content:space-between;margin-bottom:13px}.eyebrow{color:var(--text-faint);letter-spacing:.12em;text-transform:uppercase;margin-bottom:3px;font-size:10px;font-weight:650;display:block}.panel-heading-row h2{letter-spacing:-.01em;margin:0;font-size:15px;font-weight:630}.icon-button,.clip-tools button,.transport button,.reference-row>button{border:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);justify-content:center;align-items:center;display:inline-flex}.icon-button{border-radius:7px;width:30px;height:30px}.icon-button:hover,.clip-tools button:hover:not(:disabled),.transport button:hover:not(:disabled),.reference-row>button:hover{border-color:var(--border-strong);color:var(--text)}.icon-button svg,.clip-tools svg,.transport svg,.reference-row>button svg{width:14px;height:14px}.style-lock{border:1px solid var(--border);background:#12161e;border-radius:9px;gap:6px;margin-bottom:13px;padding:10px;display:grid}.style-lock label{color:var(--text-faint);letter-spacing:.04em;text-transform:uppercase;font-size:11px;font-weight:600}.style-lock textarea{resize:vertical;border:1px solid var(--border);background:var(--bg);width:100%;min-height:52px;color:var(--text);border-radius:6px;padding:6px 9px;font-family:inherit;font-size:12px}.style-lock p{color:var(--text-faint);margin:0;font-size:10px}.asset-form{border:1px solid var(--border);background:#12161e;border-radius:9px;gap:7px;margin-bottom:13px;padding:10px;display:grid}.asset-form input,.asset-form select,.asset-form button{border:1px solid var(--border);background:var(--bg);width:100%;height:31px;color:var(--text);border-radius:6px;font-size:12px}.asset-form input{padding:0 9px}.asset-form select{padding:0 6px}.asset-form button{background:var(--accent-soft);color:#d8d0ff}.asset-form-row{grid-template-columns:1fr 56px;gap:6px;display:grid}.asset-form p{color:var(--text-faint);margin:0;font-size:10px;line-height:1.4}.asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.asset-card{text-align:left;background:0 0;border:1px solid #0000;border-radius:9px;min-width:0;padding:0}.asset-card:hover .asset-preview,.asset-card.is-attached .asset-preview{border-color:var(--accent)}.asset-card.is-attached .asset-name{color:#e2dcff}.asset-preview{aspect-ratio:1.25;border:1px solid var(--border);background:var(--surface-3);width:100%;color:var(--text-faint);border-radius:7px;place-items:center;transition:border-color .15s;display:grid;position:relative;overflow:hidden}.asset-preview.audio{background:repeating-linear-gradient(90deg,#44d2a033 0 2px,#0000 2px 7px),#101d1a}.asset-preview>svg{width:22px}.asset-preview img{object-fit:cover;width:100%;height:100%}.asset-type-icon,.attached-check{color:#ddd;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#07090dc7;border:1px solid #ffffff21;border-radius:5px;place-items:center;width:20px;height:20px;display:grid;position:absolute}.asset-type-icon{bottom:5px;left:5px}.attached-check{background:var(--accent);color:#fff;top:5px;right:5px}.asset-type-icon svg,.attached-check svg{width:11px}.asset-name,.asset-meta{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.asset-name{color:#cbd1dc;margin:6px 2px 2px;font-size:11px;font-weight:570}.asset-meta{margin:0 2px 7px;font-size:9px}.preview-panel{background:radial-gradient(circle at 50% 34%,#3238483d,#0000 50%),#0b0d12;flex-direction:column;align-items:center;padding:14px clamp(16px,3vw,42px) 12px;display:flex;overflow:hidden}.preview-topline{width:min(100%,780px);color:var(--text-faint);font-family:var(--font-mono);letter-spacing:.08em;justify-content:space-between;margin-bottom:9px;font-size:10px;display:flex}.video-stage{aspect-ratio:16/9;background:#030407;border:1px solid #272d39;border-radius:9px;width:min(100%,780px);max-height:calc(100% - 94px);position:relative;overflow:hidden;box-shadow:0 22px 60px #0000007a}.video-stage.ratio-9-16,.video-stage.ratio-3-4{width:auto;height:calc(100% - 94px)}.video-stage.ratio-9-16{aspect-ratio:9/16}.video-stage.ratio-3-4{aspect-ratio:3/4}.video-stage.ratio-1-1{aspect-ratio:1}.video-stage.ratio-4-3{aspect-ratio:4/3}.video-stage.ratio-21-9{aspect-ratio:21/9}.video-stage>video,.video-stage>img{object-fit:contain;width:100%;height:100%}.video-stage>video{position:absolute;inset:0}.video-stage>video.stage-standby{visibility:hidden}.stage-vignette{pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 -70px 80px #0000006b,inset 0 0 50px #0000002e}.stage-badges{justify-content:space-between;display:flex;position:absolute;top:11px;left:11px;right:11px}.status-badge,.reference-badge{color:#d6dae2;letter-spacing:.04em;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#05070ab8;border:1px solid #ffffff26;border-radius:6px;align-items:center;gap:5px;height:24px;padding:0 8px;font-size:10px;font-weight:620;display:inline-flex}.status-badge svg{width:11px}.status-badge.status-succeeded{color:#7ce3bd}.status-badge.status-running,.status-badge.status-queued{color:#c2b6ff}.status-badge.status-failed,.status-badge.status-expired,.status-badge.status-cancelled{color:#ff94a2}.reference-badge{color:#989fac;font-family:var(--font-mono);letter-spacing:.1em}.empty-stage{width:100%;height:100%;color:var(--text-faint);align-content:center;place-items:center;gap:9px;font-size:13px;display:grid}.empty-stage svg{width:28px;color:var(--accent)}.generation-overlay{z-index:3;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#06070cb8;align-content:center;place-items:center;gap:7px;display:grid;position:absolute;inset:0}.generation-overlay strong{margin-top:8px;font-size:15px;font-weight:620}.generation-overlay>span:last-child{max-width:330px;color:var(--text-muted);text-align:center;font-size:11px}.generation-strip{background:var(--accent-soft);border:1px solid #a996ff4d;border-radius:9px;align-items:center;gap:11px;width:min(100%,780px);margin-top:9px;padding:8px 12px;display:flex}.generation-strip .generation-orbit{flex-shrink:0;width:30px;height:30px;box-shadow:0 0 18px #8467ff38}.generation-strip .generation-orbit svg{width:14px}.generation-strip strong{font-size:13px;font-weight:620;display:block}.generation-strip span:not(.generation-orbit),.generation-strip div>span{color:var(--text-muted);font-size:11px}.generation-orbit{background:var(--accent-soft);width:50px;height:50px;color:var(--accent-bright);border:1px solid #a996ff59;border-radius:50%;place-items:center;animation:2.2s ease-in-out infinite breathe;display:grid;box-shadow:0 0 35px #8467ff40}.generation-orbit svg{width:20px}.transport{justify-content:space-between;width:min(100%,780px);height:46px}.transport-controls{gap:7px}.transport button{background:0 0;border-color:#0000;border-radius:50%;width:28px;height:28px}.reference-row>.set-reference-button{border-color:var(--border);width:auto;min-width:66px;color:var(--text-muted);white-space:nowrap;gap:4px;padding:0 7px;font-size:9px}.reference-row>.set-reference-button.is-active{color:var(--green);background:#66e2b71a;border-color:#66e2b77a}.set-reference-button svg{width:11px}.reference-row.continuity-lock{background:#44d2a014;border-color:#44d2a066}.reference-row.continuity-lock>svg{width:14px;color:var(--green);margin-left:auto}.transport .play-circle{color:#090b0f;background:#e8eaf0;width:34px;height:34px}.transport .play-circle svg{fill:currentColor}.timecode{color:var(--text-muted);font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:11px}.output-actions{justify-content:flex-end;gap:8px;width:min(100%,780px);margin-top:-2px}.output-actions>span{color:var(--amber);margin-right:auto;font-size:10px}.output-actions button,.output-actions a{border:1px solid var(--border);background:var(--surface-2);height:27px;color:var(--text-muted);border-radius:6px;align-items:center;gap:5px;padding:0 8px;font-size:10px;text-decoration:none;display:inline-flex}.output-actions svg{width:11px}.inspector{border-left:1px solid var(--border);grid-template-rows:auto minmax(0,1fr) auto;display:grid;position:relative}.inspector-resize-handle{z-index:12;cursor:col-resize;touch-action:none;width:12px;position:absolute;top:0;bottom:0;left:-6px}.inspector-resize-handle:after{content:"";background:0 0;width:2px;transition:background .12s,box-shadow .12s;position:absolute;top:0;bottom:0;left:5px}.inspector-resize-handle:hover:after,.inspector-resize-handle:focus-visible:after,.workspace.is-resizing-inspector .inspector-resize-handle:after{background:var(--focus);box-shadow:0 0 0 1px #8b6fff2e}.inspector-resize-handle:focus-visible{outline:none}.workspace.is-resizing-inspector,.workspace.is-resizing-inspector *{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}.inspector-header{border-bottom:1px solid var(--border);justify-content:space-between;gap:10px;min-height:64px;padding:12px 15px}.inspector-header>div:first-child{min-width:0}.inspector-header input{width:100%;color:var(--text);background:0 0;border:0;padding:2px 0;font-size:15px;font-weight:620}.clip-tools{gap:4px}.clip-tools button{border-radius:6px;width:26px;height:26px}.clip-tools .reorder-button{gap:2px;width:auto;padding:0 6px;font-size:10px}.inspector-scroll{min-height:0;overflow-y:auto}.inspector-section{border-bottom:1px solid var(--border);padding:14px 15px}.section-label-row{justify-content:space-between;margin-bottom:9px}.section-label-row label,.section-label{color:#d9dde5;gap:6px;font-size:12px;font-weight:610}.section-label-row>span,.section-label-row>label+span{color:var(--text-faint);font-size:10px}.section-label-row svg,.section-label svg{width:13px;color:var(--accent-bright)}.prompt-section textarea{resize:vertical;border:1px solid var(--border);color:#e1e4eb;background:#0c0f15;border-radius:8px;width:100%;min-height:128px;padding:11px;font-size:12px;line-height:1.55;display:block}.prompt-section textarea:hover,.prompt-section textarea:focus{border-color:var(--border-strong)}.suggestion-list{scrollbar-width:thin;gap:5px;margin-top:8px;padding-bottom:3px;display:flex;overflow-x:auto}.suggestion-list button{border:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);border-radius:99px;flex:none;padding:5px 8px;font-size:10px}.suggestion-list button:hover{color:#dcd5ff;border-color:#8467ff80}.reference-list{gap:6px;display:grid}.reference-row{border:1px solid var(--border);background:#11151c;border-radius:7px;gap:9px;min-width:0;padding:6px}.reference-icon{background:var(--accent-soft);width:28px;height:28px;color:var(--accent-bright);border-radius:6px;flex:none;place-items:center;display:grid}.reference-icon.audio{background:var(--green-soft);color:var(--green)}.reference-icon svg{width:13px}.reference-row>span:nth-child(2){gap:2px;min-width:0;display:grid}.reference-row strong,.reference-row small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reference-row strong{color:#cfd4de;font-size:11px;font-weight:560}.reference-row>button{background:0 0;border-color:#0000;border-radius:5px;width:24px;height:24px;margin-left:auto}.empty-reference{border:1px dashed var(--border-strong);height:42px;color:var(--text-muted);background:0 0;border-radius:7px;justify-content:center;align-items:center;gap:6px;font-size:11px;display:flex}.empty-reference svg{width:13px}.helper-copy{margin:8px 0 0;line-height:1.45}.settings-section>.section-label{margin-bottom:10px}.setting-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:8px;display:grid}.setting-grid label{gap:5px;display:grid}.setting-grid label>span{color:var(--text-muted);gap:5px;font-size:10px}.setting-grid svg{width:11px}.setting-grid select{border:1px solid var(--border);color:#d4d8e1;background:#0c0f15;border-radius:6px;width:100%;height:32px;padding:0 8px;font-size:11px}.transition-setting{border-top:1px solid #2a303c9e;justify-content:space-between;align-items:center;gap:10px;min-height:48px;display:flex}.transition-setting>span{align-items:center;gap:8px;min-width:0;display:flex}.transition-setting>span>svg{width:14px;color:var(--accent-bright);flex:none}.transition-setting>span>span{gap:2px;min-width:0;display:grid}.transition-setting strong{color:#d6dae2;font-size:11px;font-weight:570}.transition-setting small{color:var(--text-faint);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.transition-setting select{border:1px solid var(--border);color:#d4d8e1;background:#0c0f15;border-radius:6px;flex:none;width:148px;height:32px;padding:0 7px;font-size:10px}.switch-row{cursor:pointer;border-top:1px solid #2a303c9e;justify-content:space-between;min-height:42px}.switch-row>span{align-items:center;gap:8px;display:flex}.switch-row>span>svg{width:14px;color:var(--text-muted)}.switch-row>span>span{gap:2px;display:grid}.switch-row strong{color:#d3d7df;font-size:11px;font-weight:570}.switch-row input{appearance:none;border:1px solid var(--border-strong);background:var(--surface-4);cursor:pointer;border-radius:99px;width:29px;height:17px;position:relative}.switch-row input:after{content:"";background:#9aa2ae;border-radius:50%;width:11px;height:11px;transition:transform .15s,background .15s;position:absolute;top:2px;left:2px}.switch-row input:checked{border-color:var(--accent);background:var(--accent)}.switch-row input:checked:after{background:#fff;transform:translate(12px)}.error-card{background:var(--danger-soft);color:#ffb3bd;border:1px solid #ff647847;border-radius:8px;gap:9px;margin:12px 15px;padding:10px;font-size:11px;line-height:1.4;display:flex}.error-card>svg{flex:none;width:14px}.error-card span{gap:3px;display:grid}.generate-footer{border-top:1px solid var(--border);background:#10131a;flex-direction:column;gap:7px;padding:11px 14px 10px}.generate-button{color:#fff;background:linear-gradient(#8c70ff,#7557ef);border:1px solid #9a85ff;border-radius:8px;justify-content:center;align-items:center;gap:8px;width:100%;height:38px;font-size:12px;font-weight:650;display:flex;box-shadow:0 8px 22px #7557ef3d,inset 0 1px #ffffff2e}.generate-button:hover:not(:disabled){filter:brightness(1.08)}.generate-button svg{width:14px}.generate-footer>span{text-align:center}kbd{border:1px solid var(--border-strong);background:var(--surface-2);min-width:15px;height:15px;color:var(--text-muted);font-family:var(--font-sans);border-radius:3px;place-items:center;margin:0 1px;font-size:9px;display:inline-grid}.timeline{z-index:10;border-top:1px solid var(--border);background:#0d1016;overflow:hidden;box-shadow:0 -8px 22px #00000029}.timeline-toolbar{border-bottom:1px solid var(--border);justify-content:space-between;height:46px;padding:0 15px}.timeline-toolbar>div:first-child strong{font-size:11px;font-weight:550}.timeline-toolbar-actions{gap:13px}.timeline-toolbar-actions>span{color:var(--text-faint);align-items:center;gap:5px;font-size:10px;display:inline-flex}.timeline-key{background:var(--text-faint);border-radius:50%;width:6px;height:6px}.ready-key{background:var(--green)}.draft-key{background:var(--accent)}.timeline-toolbar-actions button{border:1px solid var(--border);background:var(--surface-2);color:#c5cad4;border-radius:6px;align-items:center;gap:5px;height:27px;padding:0 9px;font-size:10px;display:inline-flex}.timeline-toolbar-actions button:hover{border-color:var(--border-strong);color:#fff}.timeline-toolbar-actions svg{width:11px}.timeline-scroll{min-width:100%;height:calc(100% - 46px);padding-bottom:8px;overflow:auto hidden}.time-ruler{background-image:linear-gradient(90deg,#717a8a40 0 1px,#0000 1px);background-position-y:bottom;background-repeat:repeat-x;background-size:auto 6px;border-bottom:1px solid #2a303c8c;height:25px;margin-left:49px;position:relative}.time-ruler span{color:var(--text-faint);font-family:var(--font-mono);font-size:9px;position:absolute;bottom:7px;transform:translate(-50%)}.video-track,.audio-track{gap:7px;min-width:max-content;padding:6px 12px 0}.track-label{width:30px;color:var(--text-faint);font-family:var(--font-mono);flex:none;align-items:center;gap:3px;font-size:9px;display:inline-flex}.track-label svg{width:10px}.track-content{align-items:stretch;gap:0;height:70px;display:flex;position:relative}.timeline-item-wrap{min-width:0;position:relative}.timeline-clip{border:1px solid var(--border-strong);background:var(--surface-3);color:#fff;text-align:left;border-radius:7px;width:100%;height:70px;padding:0;display:block;position:relative;overflow:hidden}.timeline-clip:hover{border-color:#596273}.timeline-clip.is-selected{border-color:var(--accent-bright);box-shadow:0 0 0 2px #8467ff6b}.timeline-clip.status-running,.timeline-clip.status-queued{background:repeating-linear-gradient(-45deg,#8467ff21 0 9px,#0000 9px 18px),#1a1826}.timeline-clip.status-succeeded{border-color:#44d2a094}.timeline-clip.status-failed,.timeline-clip.status-expired,.timeline-clip.status-cancelled{border-color:#ff64789e}.timeline-thumbnails{position:absolute;inset:0}.timeline-thumbnail{background:linear-gradient(135deg,#252b38,#171b24);position:absolute;top:0;bottom:0;overflow:hidden}.timeline-thumbnail+.timeline-thumbnail{box-shadow:inset 1px 0 #ffffff42}.scene-card.is-logical-scene{border-left-color:#11110f24;border-right-color:#11110f24;border-radius:0}.scene-card.is-logical-start{border-top-color:#11110f24;border-top-left-radius:3px;border-top-right-radius:3px}.scene-card.is-logical-end{border-bottom-color:#11110f24;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.scene-card.is-logical-continuation{border-top:1px dashed #aaa89f;padding-top:16px;position:relative}.scene-card.is-logical-selected:not(.is-selected){background:#fefefa}.logical-segment-banner{color:#66645e;letter-spacing:.05em;text-transform:uppercase;align-items:baseline;gap:8px;margin:-13px 0 2px 42px;font-size:9px;display:flex}.logical-segment-banner span{color:#34332f;background:#f7f6f1;border:1px solid #c8c6bf;border-radius:2px;padding:2px 5px;font-weight:800}.logical-segment-banner.is-hard-cut span{color:#fff;background:#25241f;border-color:#8d8980}.logical-segment-banner strong{color:#55534e;font-weight:700}.logical-segment-banner small{color:#8b8880;letter-spacing:0;text-transform:none;font-size:9px}.timeline-item-wrap.is-logical-start:not(.is-logical-end) .timeline-clip{border-top-right-radius:0;border-bottom-right-radius:0}.timeline-item-wrap.is-logical-continuation .timeline-clip{border-left-color:#ffffff85;border-top-left-radius:0;border-bottom-left-radius:0}.timeline-item-wrap.is-logical-continuation:not(.is-logical-end) .timeline-clip{border-top-right-radius:0;border-bottom-right-radius:0}.timeline-item-wrap.is-logical-continuation:before{z-index:4;content:"";pointer-events:none;background:#ffffffe0;width:2px;position:absolute;top:0;bottom:0;left:-1px}.logical-scene-toggle{border-top-style:dashed}.timeline-thumbnail img{object-fit:cover;opacity:.72;width:100%;height:100%}.clip-scrim{background:linear-gradient(90deg,#05070ad1,#05070a42 72%,#05070a8a);position:absolute;inset:0}.clip-index,.clip-copy,.clip-duration{z-index:2;position:absolute}.clip-index{color:#ffffff8c;font-family:var(--font-mono);font-size:9px;top:6px;left:7px}.clip-copy{gap:3px;display:grid;bottom:8px;left:8px;right:8px}.clip-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:620;overflow:hidden}.clip-copy small{color:#ffffffa8;align-items:center;gap:4px;font-size:9px;display:flex}.clip-copy small svg{width:9px}.clip-duration{font-family:var(--font-mono);background:#00000080;border-radius:3px;padding:2px 4px;font-size:9px;top:6px;right:6px}.between-add{z-index:4;border:1px solid var(--border-strong);width:22px;height:22px;color:var(--text-muted);opacity:0;background:#151922;border-radius:50%;place-items:center;transition:opacity .12s,transform .12s;display:grid;position:absolute;top:24px;right:-11px;transform:scale(.86)}.timeline-item-wrap:hover .between-add,.between-add:focus-visible{opacity:1;transform:scale(1)}.between-add svg{width:11px}.playhead{z-index:5;pointer-events:none;background:#ff7385;width:1px;position:absolute;top:-27px;bottom:-49px}.playhead span{background:#ff7385;border-radius:2px 2px 5px 5px;width:9px;height:7px;position:absolute;top:0;left:-4px}.audio-track{padding-top:5px}.audio-strip{height:35px;color:var(--green);background:#1b4f413b;border:1px solid #44d2a052;border-radius:6px;gap:7px;padding:0 10px;position:relative;overflow:hidden}.audio-strip>svg{z-index:1;width:13px}.audio-strip>span:last-child{z-index:1;gap:1px;display:grid}.audio-strip strong{color:#9be9ce;font-size:10px;font-weight:560}.waveform{opacity:.22;background:repeating-linear-gradient(90deg, var(--green) 0 1px, transparent 1px 6px);clip-path:polygon(0 45%,4% 18%,8% 58%,12% 30%,16% 65%,20% 13%,24% 61%,28% 35%,32% 76%,36% 28%,40% 53%,44% 18%,48% 65%,52% 38%,56% 70%,60% 24%,64% 58%,68% 32%,72% 64%,76% 20%,80% 60%,84% 39%,88% 72%,92% 27%,96% 58%,100% 45%,100% 55%,96% 42%,92% 73%,88% 28%,84% 61%,80% 40%,76% 80%,72% 36%,68% 68%,64% 42%,60% 76%,56% 30%,52% 62%,48% 35%,44% 82%,40% 47%,36% 72%,32% 24%,28% 65%,24% 39%,20% 87%,16% 35%,12% 70%,8% 42%,4% 82%,0 55%);position:absolute;inset:6px 0}.toast{z-index:80;border:1px solid var(--border-strong);color:#d8dce5;pointer-events:none;background:#181c25f2;border-radius:8px;align-items:center;gap:7px;max-width:340px;min-height:34px;padding:8px 12px;font-size:11px;display:flex;position:fixed;bottom:16px;right:16px;box-shadow:0 10px 35px #00000059}.toast svg{width:13px;color:var(--green)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes breathe{50%{transform:scale(1.06);box-shadow:0 0 46px #8467ff61}}@media (max-width:1180px){.app-header{grid-template-columns:190px minmax(170px,1fr) auto}.brand-copy span,.format-pill,.save-state{display:none}.workspace{--inspector-width:322px;grid-template-columns:184px minmax(320px, 1fr) var(--inspector-width)}.asset-grid{grid-template-columns:1fr}}@media (max-width:900px){body{overflow:auto}.editor-shell{grid-template-rows:58px auto 210px;height:auto;min-height:100dvh;overflow:visible}.app-header{grid-template-columns:auto minmax(130px,1fr) auto;position:sticky;top:0}.brand-copy,.connection-pill,.format-pill,.header-play-button span,.new-project-button span{display:none}.new-project-button{justify-content:center;width:28px;padding:0}.project-switcher-label{display:none}.project-switcher-button{width:28px;padding:0}.project-menu{width:auto;max-height:min(420px,100vh - 66px);position:fixed;top:54px;left:12px;right:12px}.header-play-button{justify-content:center;width:34px;padding:0}.project-title-input{width:100%}.workspace{--inspector-width:330px;grid-template-columns:minmax(0, 1fr) var(--inspector-width);grid-template-rows:430px;overflow:visible}.media-rail{display:none}.preview-panel{min-height:430px}.timeline{position:sticky;bottom:0}}@media (max-width:680px){.editor-shell{grid-template-rows:54px auto 192px}.app-header{grid-template-columns:38px 1fr 38px;gap:6px;padding:0 9px}.header-actions{justify-content:flex-end}.workspace{display:block}.preview-panel{height:330px;min-height:0;padding:12px 12px 8px}.video-stage{max-height:240px}.inspector{border-top:1px solid var(--border);border-left:0;display:block}.inspector-resize-handle{display:none}.inspector-scroll{overflow:visible}.generate-footer{z-index:15;position:sticky;bottom:192px}.timeline-toolbar-actions>span,.timeline-toolbar-actions button{display:none}.timeline{height:192px}.timeline-toolbar{height:40px}.timeline-scroll{height:calc(100% - 40px)}.time-ruler{height:20px}.audio-track,.output-actions>span{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.script-panel{align-items:stretch;gap:10px;padding:14px clamp(14px,2vw,28px) 18px;overflow-y:auto}.script-header{justify-content:space-between;align-items:center;margin-bottom:2px;display:flex}.script-header h2{margin:0;font-size:16px}.script-header button{border:1px solid var(--border);background:var(--accent-soft);color:#d8d0ff;border-radius:7px;align-items:center;gap:6px;height:30px;padding:0 12px;font-size:12px;display:inline-flex}.scene-card{border:1px solid var(--border);background:var(--surface-2,#12161e);border-radius:10px;gap:9px;padding:12px;transition:border-color .14s,background .14s,box-shadow .14s;display:grid}.scene-card.is-selected{border-color:var(--accent-bright,#a996ff);background:linear-gradient(180deg, #8467ff1c, #8467ff09), var(--surface-2,#12161e);box-shadow:0 0 0 2px #8467ff33,0 10px 28px #0000002e}.scene-card.is-timeline-target{animation:1.05s ease-out scene-target-pulse}@keyframes scene-target-pulse{0%{box-shadow:0 0 #a996ffbf,0 10px 28px #0000002e}55%{box-shadow:0 0 0 7px #a996ff29,0 10px 28px #0000002e}to{box-shadow:0 0 0 2px #8467ff33,0 10px 28px #0000002e}}.scene-card-header{grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;display:grid}.scene-number{color:var(--text-faint);font-size:12px;font-weight:700}.scene-card-header input{height:28px;color:var(--text);background:0 0;border:1px solid #0000;border-radius:6px;padding:0 8px;font-size:14px;font-weight:600}.scene-card-header input:focus{border-color:var(--border);background:var(--bg);outline:none}.scene-original-prompt{background:#8467ff12;border:1px solid #8467ff3d;border-radius:7px;gap:4px;padding:8px 10px;display:grid}.scene-original-prompt-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.scene-original-prompt label{color:#b9aaff;letter-spacing:.08em;text-transform:uppercase;font-size:9px;font-weight:700}.scene-original-prompt button{color:#d8d0ff;background:#8467ff1f;border:1px solid #8467ff6b;border-radius:6px;align-items:center;gap:5px;height:24px;padding:0 8px;font-size:10px;font-weight:650;display:inline-flex}.scene-original-prompt button:disabled{cursor:not-allowed;opacity:.5}.scene-original-prompt button svg{width:11px;height:11px}.scene-original-prompt textarea{resize:vertical;width:100%;min-height:52px;color:var(--text-muted);background:0 0;border:1px solid #0000;border-radius:5px;padding:6px 7px;font-family:inherit;font-size:11px;line-height:1.45}.scene-original-prompt textarea:focus{color:var(--text);background:#0000001f;border-color:#8467ff6b;outline:none}.scene-status{color:var(--text-faint);white-space:nowrap;align-items:center;gap:5px;font-size:11px;display:inline-flex}.scene-status svg{width:12px;height:12px}.scene-status.status-succeeded{color:#7ddc9a}.scene-status.status-failed{color:#ff8f8f}.scene-generate{background:var(--accent,#6c5ce7);color:#fff;border:none;border-radius:6px;align-items:center;gap:6px;height:28px;padding:0 11px;font-size:12px;font-weight:600;display:inline-flex}.scene-generate:disabled{opacity:.45}.scene-generate svg{width:13px;height:13px}.shot-list{gap:8px;display:grid}.shot-row{grid-template-columns:28px 1fr;gap:8px;display:grid}.shot-index{color:var(--text-faint);text-align:center;background:0 0;border:0;align-self:start;padding:7px 0 0;font-size:11px;font-weight:700}.shot-index:hover,.shot-index:focus-visible{color:var(--accent-bright)}.shot-fields{gap:6px;display:grid}.shot-fields textarea{resize:vertical;border:1px solid var(--border);background:var(--bg);width:100%;min-height:44px;color:var(--text);border-radius:6px;padding:7px 9px;font-family:inherit;font-size:13px}.inline-description-shell{gap:4px;display:grid}.inline-description-editor{overflow-wrap:anywhere;border:1px solid var(--border);background:var(--bg);width:100%;min-height:48px;color:var(--text);white-space:pre-wrap;border-radius:6px;outline:none;padding:7px 9px;font-family:inherit;font-size:13px;line-height:1.7}.inline-description-editor:focus{border-color:#8467ffb3;box-shadow:0 0 0 2px #8467ff17}.inline-description-editor:empty:before{content:attr(data-placeholder);color:var(--text-faint);pointer-events:none}.inline-character-tag{color:#e1dcff;vertical-align:baseline;white-space:nowrap;cursor:text;-webkit-user-select:all;user-select:all;background:#8467ff2e;border:1px solid #8467ff9e;border-radius:999px;outline:none;margin:0 2px;padding:2px 7px;font-size:11px;font-weight:650;line-height:1.2}.inline-character-tag::selection{color:#fff;background:#a892ff8f}.inline-description-editor:focus .inline-character-tag{border-color:#a892ff}.shot-meta{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.shot-meta select,.shot-meta input{border:1px solid var(--border);background:var(--bg);height:26px;color:var(--text);border-radius:6px;padding:0 7px;font-size:12px}.shot-meta input{flex:1;min-width:0}.shot-meta button{border:1px solid var(--border);width:26px;height:26px;color:var(--text-faint);background:0 0;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.shot-meta button svg{width:12px;height:12px}.shot-frame-lock{border:1px dashed var(--border);background:#0c0f1594;border-radius:6px;align-items:center;gap:6px;min-width:0;padding:5px 6px;display:flex}.shot-frame-lock.is-locked{background:#8467ff0f;border-style:solid;border-color:#8467ff6b}.shot-frame-lock>img{object-fit:cover;border-radius:4px;flex:none;width:32px;height:32px}.shot-frame-lock>label{min-width:0;color:var(--text-faint);flex:1;align-items:center;gap:5px;font-size:10px;display:flex}.shot-frame-lock>label>svg{flex:none;width:12px}.shot-frame-lock select{border:1px solid var(--border);background:var(--bg);min-width:0;height:26px;color:var(--text);border-radius:5px;flex:1;padding:0 7px;font-size:10px}.shot-frame-lock>button{border:1px solid var(--border);height:26px;color:var(--text-muted);background:0 0;border-radius:5px;flex:none;align-items:center;gap:4px;padding:0 7px;font-size:9px;display:inline-flex}.shot-frame-lock>button svg{width:11px}.add-shot{border:1px dashed var(--border);height:28px;color:var(--text-faint);background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:6px;font-size:12px;display:inline-flex}.freeform-block{gap:6px;display:grid}.freeform-block textarea{resize:vertical;border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text);border-radius:6px;padding:8px 10px;font-family:inherit;font-size:13px}.freeform-block button{border:1px solid var(--border);height:24px;color:var(--text-faint);background:0 0;border-radius:6px;justify-self:start;padding:0 9px;font-size:11px}.scene-foot{color:var(--text-faint);justify-content:space-between;align-items:baseline;gap:10px;font-size:11px;display:flex}.scene-insert{place-items:center;min-height:36px;padding:0 18px;display:grid;position:relative}.scene-insert:before{content:"";border-top:1px solid #8467ff47;position:absolute;left:24px;right:24px}.scene-insert-trigger{z-index:1;background:var(--surface-2,#12161e);color:#cfc5ff;border:1px solid #8467ff8c;border-radius:50%;place-items:center;width:26px;height:26px;padding:0;transition:border-color .14s,background .14s,color .14s,transform .14s;display:grid;position:relative}.scene-insert-trigger:hover,.scene-insert-trigger:focus-visible{border-color:var(--accent-bright,#a996ff);background:var(--accent,#6c5ce7);color:#fff;outline:none;transform:scale(1.08)}.scene-insert-trigger:disabled{cursor:not-allowed;opacity:.45}.scene-insert-trigger svg{width:13px;height:13px}.scene-insert.is-open{padding:7px 0 12px;display:block}.scene-insert.is-open:before{display:none}.scene-writer{background:var(--accent-soft);border:1px solid #8467ff80;border-radius:9px;gap:8px;margin:0;padding:11px;display:grid}.scene-writer label{color:#d8d0ff;align-items:center;gap:6px;font-size:12px;font-weight:650;display:inline-flex}.scene-writer label svg{width:13px;height:13px}.scene-writer textarea{resize:vertical;border:1px solid var(--border);background:var(--bg);width:100%;min-height:64px;color:var(--text);font:inherit;border-radius:7px;padding:8px 10px;font-size:13px}.scene-writer-actions{align-items:center;gap:8px;display:flex}.scene-writer-actions span{color:var(--text-faint);flex:1;font-size:11px}.scene-writer-actions button{border:1px solid var(--border);background:var(--surface-3);height:30px;color:var(--text-muted);border-radius:7px;align-items:center;gap:5px;padding:0 11px;font-size:12px;display:inline-flex}.scene-writer-actions button[type=submit]{background:var(--accent);color:#fff;border-color:#0000;font-weight:650}.scene-writer-actions svg{width:13px;height:13px}.scene-foot details{max-width:70%}.scene-foot summary{cursor:pointer}.scene-foot details p{border:1px solid var(--border);background:var(--bg);color:var(--text-faint);border-radius:6px;margin:6px 0 0;padding:8px;font-size:11px;line-height:1.5}.scene-warning{color:#f0c66b;margin:0;font-size:11px}.cast-panel{border:1px solid var(--border);background:#12161e;border-radius:9px;gap:8px;margin-bottom:13px;padding:10px;display:grid}.cast-header{justify-content:space-between;align-items:center;display:flex}.cast-header label{color:var(--text-faint);letter-spacing:.04em;text-transform:uppercase;align-items:center;gap:6px;font-size:11px;font-weight:600;display:inline-flex}.cast-header label svg{width:12px;height:12px}.cast-header button{border:1px solid var(--border);width:22px;height:22px;color:var(--text-faint);background:0 0;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.cast-header button svg{width:12px;height:12px}.cast-card{border:1px solid var(--border);background:var(--bg);border-radius:7px;gap:5px;padding:7px;display:grid}.cast-card input,.cast-card textarea{border:1px solid var(--border);width:100%;color:var(--text);background:#12161e;border-radius:5px;padding:5px 7px;font-family:inherit;font-size:12px}.cast-card textarea{resize:vertical;min-height:40px}.cast-row{grid-template-columns:1fr 24px;gap:5px;display:grid}.cast-row button{color:var(--text-faint);background:0 0;border:none}.cast-row button svg{width:12px;height:12px}.cast-panel>p{color:var(--text-faint);margin:0;font-size:10px}.preview-section .video-stage{width:100%;max-height:none;box-shadow:none}.preview-section .preview-topline{color:var(--text-faint);letter-spacing:.08em;justify-content:space-between;margin-bottom:8px;font-size:11px;display:flex}.preview-section .transport{margin-top:8px}.pacing-toggle{color:var(--text-faint);align-items:center;gap:6px;font-size:11px;display:inline-flex}.pacing-toggle select{border:1px solid var(--border);background:var(--bg);height:22px;color:var(--text);border-radius:5px;padding:0 6px;font-size:11px}.story-box{background:var(--accent-soft);border:1px solid #8467ff73;border-radius:10px;gap:8px;padding:12px;display:grid}.story-box label{color:#d8d0ff;letter-spacing:.04em;text-transform:uppercase;align-items:center;gap:6px;font-size:12px;font-weight:650;display:inline-flex}.story-box label svg{width:13px;height:13px}.story-box textarea{resize:vertical;border:1px solid var(--border);background:var(--bg);width:100%;min-height:62px;color:var(--text);border-radius:7px;padding:8px 10px;font-family:inherit;font-size:13px}.story-box-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.story-box-row button{background:var(--accent);color:#fff;white-space:nowrap;border:none;border-radius:7px;align-items:center;gap:6px;height:30px;padding:0 13px;font-size:12px;font-weight:600;display:inline-flex}.story-box-row button svg{width:13px;height:13px}.script-actions{align-items:center;gap:8px;display:flex}.script-actions .generate-film{background:var(--accent);color:#fff;border:none;font-weight:600}.take-switcher{border:1px solid var(--border);background:var(--surface-2);border-radius:8px;gap:7px;margin-top:10px;padding:9px 10px;display:grid}.take-switcher-row{justify-content:center;align-items:center;gap:10px;display:flex}.take-switcher-row span{color:var(--text-muted);font-size:12px;font-weight:600}.take-switcher-row button{border:1px solid var(--border);background:var(--surface-3);width:26px;height:26px;color:var(--text-muted);border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.take-switcher-row button svg{width:13px;height:13px}.take-reference-note{color:var(--text-faint);text-align:center;justify-content:center;align-items:center;gap:5px;margin:0;font-size:10px;display:flex}.take-reference-note svg{width:11px;height:11px}.take-prompt summary{color:var(--text-faint);cursor:pointer;font-size:11px}.take-prompt p{border:1px solid var(--border);background:var(--bg);color:var(--text-faint);border-radius:6px;margin:7px 0 0;padding:8px;font-size:11px;line-height:1.5}.take-prompt .take-note{color:var(--amber);border-color:#f2b84b66}.script-panel{--script-font:"Courier Prime", "Courier New", Courier, monospace;--script-ink:#11110f;--script-muted:#77756f;--script-rule:#deddd7;color:var(--script-ink);font-family:var(--script-font);background:#fff;align-items:stretch;gap:0;padding:0 0 30px;container-type:inline-size}.script-panel button,.script-panel input,.script-panel select,.script-panel textarea{font-family:var(--script-font)}.script-header{z-index:8;background:#f3f2ed;border:1px solid #11110f1f;border-radius:0;flex:none;width:100%;padding:10px 12px;position:sticky;top:0;box-shadow:0 2px 8px #22211d14}.script-header .eyebrow{color:#77756f}.script-header h2{color:var(--script-ink);letter-spacing:.04em;text-transform:uppercase;font-size:13px;font-weight:700}.script-actions{opacity:0;transition:opacity .14s,transform .14s;transform:translateY(2px)}.script-header:hover .script-actions,.script-header:focus-within .script-actions{opacity:1;transform:translateY(0)}.script-header button,.script-actions .generate-film{color:#11110f;text-transform:uppercase;background:#fff;border-color:#1a1a18;border-radius:3px;font-size:11px;font-weight:700}.script-actions .generate-film{color:#fff;background:#11110f}.script-page{width:100%;min-height:920px;box-shadow:none;color:var(--script-ink);background:#fff;flex:none;padding:80px clamp(48px,18cqi,192px) 296px}.script-panel.is-following-script .script-page{padding-top:max(80px,50dvh - 292px)}.story-box{border:1px solid #0000;border-bottom-color:var(--script-rule);opacity:.52;background:#fff;border-radius:0;max-height:38px;margin:0 0 26px;padding:9px 11px;transition:max-height .18s,opacity .14s,border-color .14s,background .14s;overflow:hidden}.story-box:hover,.story-box:focus-within{opacity:1;background:#fbfaf6;border-color:#bbb9b1;max-height:230px}.story-box>textarea,.story-box-row{opacity:0;pointer-events:none;transition:opacity .12s}.story-box:hover>textarea,.story-box:focus-within>textarea,.story-box:hover .story-box-row,.story-box:focus-within .story-box-row{opacity:1;pointer-events:auto}.story-box label{color:var(--script-ink);letter-spacing:.1em;font-size:10px}.story-box textarea{color:var(--script-ink);background:#fff;border-color:#c8c6bf;border-radius:2px;font-size:12px;line-height:1.5}.story-box-row span{color:var(--script-muted);font-size:10px}.story-box-row button{color:#fff;text-transform:uppercase;background:#11110f;border-radius:2px;font-size:10px}.scene-list{gap:0;display:grid}.scene-card{color:var(--script-ink);box-shadow:none;background:#fff;border:1px solid #0000;border-radius:3px;gap:10px;padding:25px 20px 29px;transition:border-color .14s,background .14s,box-shadow .14s}.scene-card.is-selected{background:#fefefa;border-color:#11110f21;box-shadow:inset 3px 0 #171714}.scene-card-header{grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;margin-bottom:6px}.scene-number{color:var(--script-ink);letter-spacing:.06em;font-size:21.6px;font-weight:700}.scene-card-header input{height:48px;color:var(--script-ink);letter-spacing:.035em;text-transform:uppercase;border-radius:0;padding:0;font-size:23.4px;font-weight:700}.scene-card-header input:hover,.scene-card-header input:focus{background:0 0;border-color:#0000 #0000 #aaa89f}.scene-slugline{grid-template-columns:92px minmax(0,1fr);align-items:center;gap:8px;margin:-2px 0 12px 42px;display:grid}.scene-slugline select,.scene-slugline input{width:100%;height:30px;color:var(--script-ink);letter-spacing:.06em;text-transform:uppercase;background:0 0;border:0;border-bottom:1px solid #0000;border-radius:0;padding:0 3px;font-size:12px;font-weight:700}.scene-slugline select:hover,.scene-slugline select:focus,.scene-slugline input:hover,.scene-slugline input:focus{background:0 0;border-bottom-color:#aaa89f;outline:none}.scene-slugline input::placeholder{color:var(--script-muted);opacity:.7}.scene-status,.scene-generate{visibility:hidden;opacity:0;pointer-events:none;transition:visibility 0s linear .14s,opacity .14s,transform .14s;transform:translateY(2px)}.scene-card:hover .scene-status,.scene-card:hover .scene-generate,.scene-card:focus-within .scene-status,.scene-card:focus-within .scene-generate{visibility:visible;opacity:1;pointer-events:auto;transition-delay:0s;transform:translateY(0)}.scene-status,.scene-status.status-succeeded,.scene-status.status-failed{color:var(--script-muted);font-size:10px}.scene-generate{color:#fff;text-transform:uppercase;background:#171714;border:1px solid #171714;border-radius:2px;font-size:10px;font-weight:700}.scene-original-prompt{opacity:0;background:#f6f5f0;border-color:#0000;border-radius:2px;max-height:0;padding:0 10px;transition:max-height .18s,padding .18s,opacity .14s,border-color .14s;overflow:hidden}.scene-card:hover .scene-original-prompt,.scene-card:focus-within .scene-original-prompt{opacity:1;border-color:#d3d1c9;max-height:220px;padding:9px 10px}.scene-original-prompt label,.scene-original-prompt textarea{color:var(--script-ink)}.scene-original-prompt button{color:var(--script-ink);background:#fff;border-color:#aaa89f;border-radius:2px}.scene-original-prompt textarea:focus{color:var(--script-ink);background:#fff;border-color:#aaa89f}.shot-list{gap:2px}.shot-row{border-radius:2px;grid-template-columns:30px minmax(0,1fr);gap:7px;padding:4px 0 6px;scroll-margin-block:120px}.shot-row:hover,.shot-row:focus-within{background:#faf9f5}.shot-row.is-playing{background:#f1f0e9;box-shadow:inset 4px 0 #171714}.shot-index{color:var(--script-muted);opacity:0;font-size:10px;transition:opacity .14s,transform .14s;transform:translate(-3px)}.shot-row:hover .shot-index,.shot-row:focus-within .shot-index{color:var(--script-muted);opacity:1;transform:translate(0)}.shot-fields{gap:1px}.inline-description-editor{min-height:54px;color:var(--script-ink);background:0 0;border-color:#0000;border-radius:1px;padding:8px 10px;font-size:21.6px;line-height:1.55}.inline-description-editor:hover{border-color:#e1dfd8}.inline-description-editor:focus{box-shadow:none;background:#fff;border-color:#aaa89f}.inline-description-editor:empty:before{color:#aaa89f}.inline-character-tag{color:var(--script-ink);font-size:inherit;background:0 0;border:0;border-radius:0;margin:0;padding:0;font-weight:400}.inline-character-tag:before{content:""}.inline-description-editor:focus .inline-character-tag{background:#ecebe5;border-color:#0000}.inline-description-editor:focus .inline-character-tag:before{content:"@"}.shot-meta{align-items:center;gap:1px;min-height:0;display:grid;position:relative}.shot-meta select,.shot-meta input,.shot-meta textarea{color:var(--script-ink);font-size:11px}.shot-meta .speaker-select{width:58%;height:38px;color:var(--script-ink);text-align:center;text-transform:uppercase;background-color:#0000;border-color:#0000;border-radius:1px;justify-self:center;padding:0 20px 0 7px;font-size:19.8px;font-weight:700}.shot-meta .speaker-select:hover,.shot-meta .speaker-select:focus{background-color:#fff;border-color:#d4d2ca}.shot-meta .speaker-select.is-empty{opacity:0;pointer-events:none;text-transform:none;width:100px;font-size:9px;font-weight:400;position:absolute;top:-29px;right:62px}.shot-row:hover .speaker-select.is-empty,.shot-row:focus-within .speaker-select.is-empty{opacity:1;pointer-events:auto}.shot-meta textarea.dialogue-line{resize:vertical;width:66%;min-width:0;min-height:64px;color:var(--script-ink);text-align:left;background:0 0;border:1px solid #0000;border-radius:1px;outline:none;justify-self:center;padding:2px 7px 7px;font-size:21.6px;line-height:1.45}.shot-meta textarea.dialogue-line:hover,.shot-meta textarea.dialogue-line:focus{background:#fff;border-color:#d4d2ca}.shot-meta .shot-duration-select,.shot-meta .remove-shot-button{opacity:0;pointer-events:none;transition:opacity .14s;position:absolute;top:-29px}.shot-meta .shot-duration-select{color:#55534e;background:#fff;border-color:#d4d2ca;border-radius:2px;width:54px;font-size:9px;right:31px}.shot-meta .remove-shot-button{color:#77756f;background:#fff;border-color:#d4d2ca;border-radius:2px;right:1px}.shot-row:hover .shot-duration-select,.shot-row:hover .remove-shot-button,.shot-row:focus-within .shot-duration-select,.shot-row:focus-within .remove-shot-button{opacity:1;pointer-events:auto}.add-shot{height:0;color:var(--script-muted);opacity:0;border-color:#0000;border-radius:2px;margin:0 0 0 37px;transition:height .14s,margin .14s,opacity .14s,border-color .14s;overflow:hidden}.scene-card:hover .add-shot,.scene-card:focus-within .add-shot,.add-shot:focus-visible{opacity:1;border-color:#c8c6bf;height:28px;margin-top:5px}.freeform-block textarea{color:var(--script-ink);background:0 0;border-color:#0000;border-radius:1px;font-size:21.6px;line-height:1.55}.freeform-block textarea:hover,.freeform-block textarea:focus{background:#fff;border-color:#aaa89f}.freeform-block button,.scene-foot,.scene-warning{max-height:0;color:var(--script-muted);opacity:0;transition:max-height .14s,opacity .14s;overflow:hidden}.scene-card:hover .freeform-block button,.scene-card:focus-within .freeform-block button,.scene-card:hover .scene-foot,.scene-card:focus-within .scene-foot,.scene-card:hover .scene-warning,.scene-card:focus-within .scene-warning{opacity:1;max-height:140px}.scene-foot select,.scene-foot details p{color:var(--script-ink);background:#fff;border-color:#d4d2ca;border-radius:2px}.scene-insert{min-height:22px;padding:0 18px}.scene-insert:before{opacity:0;border-color:#d8d6cf;transition:opacity .14s}.scene-insert-trigger{color:#55534e;opacity:0;background:#fff;border-color:#aaa89f;width:22px;height:22px;transform:scale(.94)}.scene-insert:hover:before,.scene-insert:focus-within:before,.scene-insert:hover .scene-insert-trigger,.scene-insert:focus-within .scene-insert-trigger{opacity:1}.scene-insert-trigger:hover,.scene-insert-trigger:focus-visible{color:#fff;background:#171714;border-color:#171714}.scene-writer{color:var(--script-ink);background:#f6f5f0;border-color:#aaa89f;border-radius:2px}.scene-writer label,.scene-writer textarea,.scene-writer-actions span{color:var(--script-ink)}.scene-writer textarea,.scene-writer-actions button{color:var(--script-ink);background:#fff;border-color:#c8c6bf;border-radius:2px}.scene-writer-actions button[type=submit]{color:#fff;background:#171714}@media (max-width:680px){.preview-panel.script-panel{height:440px;padding:0}.script-page{min-height:720px;padding:60px 48px 204px}.scene-card{padding-left:8px;padding-right:8px}.scene-card-header{grid-template-columns:auto minmax(0,1fr)}.scene-slugline{grid-template-columns:88px minmax(0,1fr);margin-left:0}.scene-status,.scene-generate{grid-row:2}}@media (hover:none){.script-actions,.scene-status,.scene-generate,.shot-index,.shot-row .speaker-select.is-empty,.shot-row .shot-duration-select,.shot-row .remove-shot-button,.scene-insert:before,.scene-insert .scene-insert-trigger{visibility:visible;opacity:1;pointer-events:auto;transform:none}.scene-card .add-shot{opacity:1;border-color:#c8c6bf;height:28px;margin-top:5px}.scene-card .scene-foot,.scene-card .scene-warning{opacity:1;max-height:140px}}
