:root{--dv-border:rgba(147,163,184,.2);--dv-ink:#edf2fb;--dv-muted:#9caac0;--dv-panel:#111723;--dv-blue:#367aff}body{background:#0c1019;color:var(--dv-ink)}.director-page{max-width:1392px;margin:0 auto;padding:56px 20px 100px;font-family:Inter,system-ui,sans-serif}.director-hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:50px;padding:28px 0 62px}.director-eyebrow,.summary-kicker{color:#81aaff;letter-spacing:.13em;font-size:11px;font-weight:700}.director-hero h1{font-weight:750;font-size:clamp(38px,4.5vw,66px);letter-spacing:-.052em;line-height:1.06;max-width:780px;margin:19px 0}.director-hero h1 em{font-style:normal;background:linear-gradient(105deg,#73a9ff,#ad93ff);-webkit-background-clip:text;background-clip:text;color:transparent}.director-hero p{color:var(--dv-muted);font-size:17px;line-height:1.8;max-width:610px}.hero-note{display:flex;gap:16px;flex-wrap:wrap;margin-top:24px;color:#c2cfdf;font-size:12px}.director-hero-art{height:270px;border-radius:24px;position:relative;overflow:hidden;background:radial-gradient(circle at 50% 60%,#202b4d 0%,#131b2e 48%,#0e1421 100%);border:1px solid var(--dv-border)}.hero-frame{position:absolute;width:42%;height:62%;border:5px solid #0e1624;box-shadow:0 20px 50px #0008;border-radius:12px;top:18%;background-size:cover;background-position:center}.hero-frame span{position:absolute;bottom:0;left:0;right:0;background:#0009;padding:9px 12px;font-size:11px;color:white}.hf-a{left:8%;transform:rotate(-10deg);background:linear-gradient(135deg,#2c3f63,#ad7f6d)}.hf-b{left:31%;z-index:1;transform:rotate(1deg);background:linear-gradient(140deg,#314450 0%,#588f85 50%,#bda175 100%)}.hf-c{right:7%;transform:rotate(10deg);background:linear-gradient(125deg,#3d406a,#b46b7d)}.hero-play{position:absolute;z-index:3;left:calc(50% - 24px);top:calc(50% - 24px);width:48px;height:48px;background:#fff;border-radius:50%;display:grid;place-items:center;color:#17243e;box-shadow:0 8px 30px #0007}.director-workbench{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,7fr);gap:18px;align-items:start}.director-left,.director-right{min-width:0;background:var(--dv-panel);border:1px solid var(--dv-border);border-radius:20px;padding:26px;min-height:615px}.panel-heading{display:flex;align-items:center;gap:12px;margin-bottom:26px}.panel-heading h2{font-size:20px;letter-spacing:-.025em;margin:0 0 4px}.panel-heading p{font-size:12px;color:var(--dv-muted);margin:0}.stage-index{background:#1d2941;color:#a7c3ff;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:700}.director-label{display:block;margin:16px 0 10px;font-size:13px;font-weight:650}.director-left textarea,.director-left select,.scene-card textarea{width:100%;box-sizing:border-box;background:#0d1420;border:1px solid #2a3547;color:#eff5ff;border-radius:12px;padding:13px 14px;font:inherit;outline:0}.director-left textarea:focus,.director-left select:focus,.scene-card textarea:focus{border-color:#4488ff;box-shadow:0 0 0 3px #367aff1e}.director-left textarea{line-height:1.65;resize:vertical}.idea-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.idea-pills button{background:#1b2535;border:1px solid #29374b;color:#a9bdd5;padding:7px 9px;border-radius:20px;font-size:11px;cursor:pointer}.idea-pills button:hover{color:#fff;border-color:#598cf1}.divider-line{height:1px;background:var(--dv-border);margin:25px 0}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-grid label span{display:block;color:#c3cfdf;font-size:12px;margin-bottom:7px}.settings-grid select{padding:11px}.director-advanced{border:1px solid var(--dv-border);border-radius:12px;padding:12px 14px;margin:22px 0 16px}.director-advanced summary{cursor:pointer;font-weight:600;font-size:13px;list-style:none}.director-advanced summary span{float:right;color:#788ba4;font-weight:400}.director-advanced select{margin-top:7px}.advanced-hint{color:var(--dv-muted);font-size:12px;line-height:1.7}.director-primary{width:100%;background:#3076f8;border:0;color:white;font-weight:700;cursor:pointer;padding:15px 20px;border-radius:12px;font-size:15px;display:flex;justify-content:center;gap:12px}.director-primary:hover{background:#4e8aff}.director-primary:disabled{opacity:.55;cursor:wait}.button-arrow{margin-left:auto}.director-disclaimer{color:#7f8fa7;font-size:11px;line-height:1.7;margin:12px 0 0}.state-label{margin-left:auto;color:#aab6c6;font-size:11px;border:1px solid #2b3b50;border-radius:20px;padding:6px 10px;white-space:nowrap}.director-empty{height:500px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at center,#1b263a 0%,#111723 70%);border-radius:14px;border:1px dashed #344052;padding:20px}.empty-film{font-size:62px;color:#4b6c9f;position:relative}.empty-film i{font-size:24px;position:absolute;right:-16px;top:0;color:#b4a5ff}.director-empty h3{font-size:22px;margin:16px 0 4px}.director-empty p{max-width:400px;color:#95a8bf;line-height:1.8;font-size:13px}.empty-mini{display:flex;gap:9px;margin-top:16px;flex-wrap:wrap;justify-content:center}.empty-mini span{border:1px solid #344154;border-radius:20px;padding:6px 11px;color:#a8b6ca;font-size:11px}.story-summary{display:flex;gap:10px;justify-content:space-between;background:#182234;padding:17px;border-radius:12px}.story-summary h3{font-size:20px;margin:9px 0}.story-summary p{font-size:13px;line-height:1.65;color:#acbad0;margin:0}.story-summary button,.result-actions button,.scene-card button{border:1px solid #354762;background:#1c2a41;color:#d8e6ff;border-radius:9px;padding:9px 12px;cursor:pointer;white-space:nowrap}.result-stats{display:flex;flex-wrap:wrap;gap:9px;margin:17px 0}.result-stats span{font-size:11px;border-radius:20px;background:#1c2b43;color:#a9c3e8;padding:7px 10px}.story-tabs{display:flex;border-bottom:1px solid var(--dv-border);gap:15px;margin-bottom:14px}.story-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:#99a8bd;padding:10px 5px;cursor:pointer}.story-tabs button.active{border-color:#5c9aff;color:#fff}.scene-card{border:1px solid #29384d;border-radius:12px;margin:10px 0;padding:15px;background:#121c2a}.scene-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.scene-head strong{font-size:13px}.scene-head small{color:#859bb6}.scene-card label{display:block;font-size:11px;color:#91a8c8;margin:11px 0 5px}.scene-card textarea{font-size:12px;line-height:1.5;min-height:65px}.scene-card .purpose{font-size:12px;color:#bbc9dc;line-height:1.6;margin:8px 0}.scene-card details summary{cursor:pointer;font-size:12px;color:#94b7fa;margin-top:8px}.scene-card .scene-type{color:#98dfc4;font-size:11px}.partial-note{font-size:12px;color:#b1a17f;line-height:1.6}.result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.result-actions button:disabled{opacity:.45;cursor:not-allowed}#dv-style{white-space:pre-wrap;line-height:1.8;color:#aebfd4;font-size:13px}.director-error{margin-top:20px;border:1px solid #9e404b;background:#3a1d29;color:#ffb5bf;padding:15px;border-radius:12px;font-size:13px}.director-explain{margin-top:90px}.explain-heading{text-align:center;max-width:680px;margin:0 auto 35px}.explain-heading h2,.director-faq h2{font-size:34px;letter-spacing:-.04em;margin:12px 0}.explain-heading p{color:#97a9c1}.steps-four{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.steps-four article{padding:23px;background:#141c29;border:1px solid var(--dv-border);border-radius:16px}.steps-four article span{color:#73a5fa;font-size:12px;font-weight:750}.steps-four article h3{font-size:16px}.steps-four article p{color:#98abc3;font-size:13px;line-height:1.7}.director-faq{max-width:870px;margin:80px auto 0}.director-faq h2{text-align:center;margin-bottom:24px}.director-faq details{border-bottom:1px solid var(--dv-border);padding:17px 3px}.director-faq summary{font-weight:600;cursor:pointer}.director-faq details p{color:#99abc2;line-height:1.8;font-size:13px}@media(max-width:950px){.director-workbench{grid-template-columns:1fr}.director-hero{grid-template-columns:1fr}.director-hero-art{display:none}.director-left,.director-right{min-height:auto}.director-page{padding-top:30px}.steps-four{grid-template-columns:repeat(2,1fr)}}@media(max-width:550px){.director-page{padding:18px 12px 60px}.director-left,.director-right{padding:16px;border-radius:14px}.director-hero h1{font-size:38px}.director-hero p{font-size:14px}.settings-grid{gap:9px}.steps-four{grid-template-columns:1fr}.director-empty{height:370px}.result-actions button{width:100%}}
.director-job{border:1px solid #344c72;background:#162237;border-radius:13px;padding:16px;margin-top:16px}.director-job p{font-size:13px;color:#cfe0f6;line-height:1.6;margin:0 0 12px}.director-progress{width:100%;height:7px;background:#273e60;border-radius:8px;overflow:hidden}.director-progress span{width:0;height:100%;background:#5b9dff;display:block;transition:width .3s}.director-job video{display:block;max-width:100%;width:100%;max-height:480px;margin-top:17px;background:#070b11;border-radius:10px}.director-job video[hidden],.director-job a[hidden]{display:none}.director-job a{display:inline-block;margin-top:13px;color:#b2d0ff;font-weight:650;font-size:13px}.result-actions #dv-generate{background:#2867df;border-color:#4084ff;color:white}.result-actions #dv-generate:disabled{background:#1c2a41;color:#8fa1bf}
/* Stage 2.1: clear one-click + optional storyboard preview. */
.director-preview-button{display:block;width:100%;padding:12px 10px;margin-top:8px;color:#b5c8e5;font-size:12px;font-weight:600;background:transparent;border:1px solid #2b3a51;border-radius:10px;cursor:pointer;transition:background .2s,color .2s}
.director-preview-button:hover{background:#1c2b40;color:#fff}
.director-preview-button[hidden]{display:none}
.director-preview-button:disabled{opacity:.45;cursor:not-allowed}
.director-disclaimer{line-height:1.65}

/* Stage 2.4 — Credits confirmation directly below the Create button. */
.director-credit-approval{background:#162337;border:1px solid #35537d;border-radius:13px;padding:16px;margin-top:12px}
.director-credit-approval[hidden]{display:none!important}
.director-credit-heading{display:flex;align-items:center;gap:9px;font-size:14px;color:#f0f6ff}
.director-credit-mark{display:grid;place-items:center;border:1px solid #639afe;border-radius:100%;width:22px;height:22px;color:#95bcff;font-size:12px}
.director-credit-approval p{color:#cee0f7;font-size:13px;line-height:1.65;margin:10px 0}
.director-credit-approval .director-credit-note{color:#91a9c6;font-size:11px}
.director-credit-actions{display:flex;gap:9px;margin-top:14px}
.director-credit-actions button{border-radius:10px;padding:12px 13px;font-size:12px;font-weight:650;cursor:pointer}
.director-credit-actions #dv-credits-approve{background:#3076f8;color:white;border:1px solid #4f93ff;flex:1}
.director-credit-actions #dv-credits-cancel{background:#1e2c42;color:#ccdaf0;border:1px solid #3c4c63}
.director-credit-actions button:disabled{opacity:.55;cursor:wait}
@media(max-width:550px){.director-credit-actions{flex-direction:column}.director-credit-actions button{width:100%}}
/* Stage 3A storyboard filmstrip and editor; scoped so other Tool67 pages are unchanged. */
#dv-filmstrip{padding:16px;background:linear-gradient(130deg,#142238,#101926);border:1px solid #2a405d;border-radius:15px;margin:16px 0 14px;min-width:0}
.dv-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.dv-strip-heading strong{font-size:13px;color:#d4e5ff;letter-spacing:.06em}.dv-strip-heading small{color:#849bb8;font-size:11px}.dv-strip-controls{display:flex;gap:7px}.dv-strip-controls button{border:1px solid #39506d;border-radius:100%;background:#1c2c45;color:#d5e5ff;width:28px;height:28px;cursor:pointer}
.dv-filmstrip-track{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#355c96 #152238;padding:3px 2px 10px;min-height:155px}.dv-filmstrip-track::-webkit-scrollbar{height:6px}.dv-filmstrip-track::-webkit-scrollbar-thumb{background:#355c96;border-radius:5px}
.dv-tile{flex:0 0 138px;min-width:0;text-align:left;border:1px solid #34455e;border-radius:12px;background:#101c2c;color:#fff;cursor:pointer;padding:7px;scroll-snap-align:start;transition:border-color .15s,box-shadow .15s,transform .15s}.dv-tile:hover{border-color:#5d87c2;transform:translateY(-2px)}.dv-tile.selected{border-color:#398bff;box-shadow:0 0 0 1px #398bff,inset 0 0 20px #2e77ff13,0 0 16px #398bff2d}.dv-tile-media{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:9px;background:radial-gradient(ellipse at center,#1b2e4c,#101827)}.dv-tile-media img{width:100%;height:100%;object-fit:cover}.dv-scene-placeholder{position:absolute;inset:0;display:grid;place-items:center;font-size:31px;font-weight:800;color:#37547c}.dv-duration,.dv-play-flag{position:absolute;top:6px;right:6px;font-size:10px;padding:3px 6px;background:#081629d9;color:#d5e4fb;border-radius:12px}.dv-play-flag{right:auto;left:6px;color:#fff}.dv-tile-bottom{padding:8px 2px 2px;display:flex;flex-direction:column;gap:5px}.dv-tile-bottom strong{font-size:11px;letter-spacing:.03em}.dv-tile-status{font-size:10px;line-height:1.4;color:#a8b9d0;min-height:26px}.dv-tile-status.ready{color:#50d9a2}.dv-tile-status.image{color:#80b3ff}.dv-tile-status.busy{color:#87b5ff}.dv-loading-ring{position:absolute;left:calc(50% - 21px);top:calc(50% - 21px);width:42px;height:42px;border:4px solid #9cc5ff35;border-top-color:#4d9cff;border-radius:50%;animation:dvspin .85s linear infinite;box-shadow:0 0 18px #398bff44}@keyframes dvspin{to{transform:rotate(360deg)}}
#dv-inspector{background:#101b2b;border:1px solid #30445e;border-radius:16px;padding:17px;margin:8px 0 12px;min-width:0}.dv-detail-title,.dv-detail-title>div,.dv-scene-nav,.dv-inspector-tabs{display:flex;align-items:center;gap:9px}.dv-detail-title{justify-content:space-between;flex-wrap:wrap}.dv-detail-title strong{font-size:16px}.dv-detail-title span{font-size:11px;color:#a8bfdc;padding:5px 9px;border:1px solid #30435e;border-radius:14px}.dv-detail-title .dv-inline-status.ready{color:#63dbab}.dv-detail-title .dv-inline-status.image{color:#8bb7fb}.dv-scene-nav button{border:1px solid #344766;background:#1c2d46;color:#cbdfff;border-radius:7px;padding:7px 13px;cursor:pointer}
.dv-inspector-tabs{border-bottom:1px solid #2e4058;margin:14px 0 15px;gap:4px}.dv-inspector-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;color:#9db4d2;padding:10px 14px;cursor:pointer;font-size:12px}.dv-inspector-tabs button.active{border-color:#4a8eff;color:#eaf4ff}.dv-detail-grid{display:grid;grid-template-columns:1.04fr 1fr;gap:14px;min-width:0}.dv-prompt-panel,.dv-preview-media{background:#131f31;border:1px solid #2b4059;border-radius:12px;padding:13px;min-width:0}.dv-prompt-panel label{display:block;color:#bad0ea;font-size:11px;margin:10px 0 6px}.dv-prompt-panel label:first-child{margin-top:0}.dv-prompt-panel textarea{width:100%;box-sizing:border-box;color:#e1efff;background:#0d1726;border:1px solid #344863;border-radius:9px;padding:10px;resize:vertical;line-height:1.45;min-height:64px;font:12px/1.5 inherit}.dv-prompt-panel textarea:focus{outline:1px solid #4f92ff}.dv-help,.dv-pane p{font-size:11px;line-height:1.6;color:#90a8c7}.dv-inline-tools,.dv-voice-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.dv-inline-tools button,.dv-voice-options button,.dv-pane [data-recreate],.dv-scene-approval button{border:1px solid #37629b;background:#1b3151;color:#cfe3ff;padding:9px 12px;border-radius:8px;cursor:pointer;font-size:12px}.dv-pane button:disabled{opacity:.45;cursor:not-allowed}.dv-inline-tools small,.dv-voice-options span{color:#98adc8;font-size:10px}.dv-pane input[type=file]{width:100%;font-size:11px;color:#9fb7d3}.dv-pane audio{width:100%;height:36px;margin-top:13px}.dv-previews{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dv-preview-label{font-size:11px;color:#b6cff0;margin-bottom:9px}.dv-preview-click{width:100%;height:200px;position:relative;border:0;border-radius:9px;overflow:hidden;cursor:zoom-in;background:#0b1524;display:block;padding:0}.dv-preview-click img,.dv-preview-click video{width:100%;height:100%;object-fit:contain}.dv-preview-click span{position:absolute;bottom:8px;right:8px;border-radius:7px;background:#07172edb;color:#fff;padding:7px 10px;font-size:11px}.dv-preview-blank{height:200px;border-radius:9px;background:radial-gradient(circle,#213451,#10192b);display:flex;align-items:center;justify-content:center;text-align:center;padding:10px;color:#7188a6;font-size:11px}.dv-selected-progress{display:flex;gap:4px;margin-top:13px;justify-content:space-between}.dv-selected-progress span{border-radius:7px;background:#1d2940;padding:7px 9px;color:#7e96b5;font-size:10px}.dv-selected-progress span.done{color:#62dba8;background:#153d35}.dv-scene-approval{background:#1b2c48;border:1px solid #4273ae;border-radius:10px;margin-top:13px;padding:13px}.dv-scene-approval strong{font-size:12px}.dv-scene-approval p{font-size:11px}.dv-scene-approval div{display:flex;gap:8px}.dv-scene-approval button:first-child{background:#347ef1;color:white}.dv-scene-approval button:disabled{opacity:.5;cursor:not-allowed}.dv-not-fresh{font-size:12px;color:#ffcf82;background:#332914;padding:11px 13px;border:1px solid #8c6931;border-radius:9px;margin-top:10px}
.dv-lightbox{position:fixed;inset:0;z-index:100000;background:rgba(2,8,17,.96);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:15px}.dv-lightbox[hidden]{display:none}.dv-lightbox-bar{display:flex;width:min(96vw,1500px);justify-content:space-between;align-items:center;color:#edf5ff;font-size:12px;margin-bottom:14px}.dv-lightbox-bar button{background:#24344e;border:1px solid #5c7aa4;color:white;border-radius:9px;padding:10px;cursor:pointer}.dv-lightbox-media{display:flex;align-items:center;justify-content:center;max-height:87vh;width:100%}.dv-lightbox-media img,.dv-lightbox-media video{max-width:96vw;max-height:85vh;object-fit:contain;border-radius:7px}.dv-lightbox-media img{cursor:zoom-out}
.dv-projects{margin:14px 0}.dv-projects label{display:block;color:#a8bbd5;font-size:11px;margin-bottom:5px}.dv-projects select{width:100%;border-radius:10px;border:1px solid #2b425d;background:#132033;color:#d8e7fa;padding:11px;font-size:12px}.result-stats{margin-bottom:7px}
@media(max-width:1160px){.dv-detail-grid{grid-template-columns:1fr}.dv-preview-click,.dv-preview-blank{height:160px}}@media(max-width:950px){.dv-detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.dv-detail-grid{grid-template-columns:1fr}.dv-previews{grid-template-columns:1fr 1fr}.dv-preview-click,.dv-preview-blank{height:135px}.dv-tile{flex-basis:122px}.dv-selected-progress{overflow-x:auto}.dv-selected-progress span{flex-shrink:0}#dv-inspector{padding:12px}.dv-inspector-tabs button{padding:9px 11px}}

/* Stage 3B: empty state must yield to the storyboard once planning starts.
   Author-level display:flex previously overrode the native [hidden] rule. */
.director-empty[hidden],#dv-results[hidden]{display:none!important}
@media(max-width:950px){.director-workbench{grid-template-columns:minmax(0,1fr)}}

/* Scene safety-review recovery: shown only when image provider declines a frame. */
.dv-review-recovery{border:1px solid #805e2b;border-radius:12px;background:#201c16;padding:16px;margin-top:14px;color:#f4e3c5}
.dv-review-recovery strong{font-size:14px;color:#ffdc96}
.dv-review-recovery p{font-size:12px;line-height:1.65;color:#ded0b5;margin:9px 0}
.dv-review-actions,.dv-review-approval>div{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.dv-review-actions button,.dv-review-approval button{border:1px solid #5275a9;border-radius:9px;background:#172947;color:#e1edff;padding:9px 13px;cursor:pointer}
.dv-review-actions button:last-child,.dv-review-approval [data-yes]{background:#2d74ed;border-color:#377dfa;color:#fff}
.dv-review-actions button:disabled,.dv-review-approval button:disabled{opacity:.5;cursor:not-allowed}
.dv-review-approval{margin-top:13px;padding:11px;border-radius:8px;background:#151c2a}

/* Stage 3C.3: direct prompt review in the recovery notice. */
.dv-review-recovery .dv-review-label{display:block;font-size:12px;font-weight:600;color:#f8e3bd;margin:14px 0 8px}
.dv-review-recovery [data-review-prompt]{display:block;width:100%;min-height:116px;resize:vertical;box-sizing:border-box;background:#101b2c;color:#e8f1ff;border:1px solid #516d96;border-radius:9px;padding:12px;font-size:13px;line-height:1.55;font-family:inherit;overflow-wrap:anywhere}
.dv-review-recovery [data-review-prompt]:focus{outline:2px solid #478ef5;outline-offset:1px}
.dv-review-recovery .dv-review-hint{color:#b8c7dd;margin:7px 0 12px}
.dv-review-recovery [data-review-warning]{color:#ffd6aa;border:1px solid #a77940;background:#49301b;padding:10px 12px;border-radius:9px;margin:9px 0}
.dv-review-recovery [data-review-warning][hidden],.dv-review-recovery [data-review-approval][hidden]{display:none!important}
.dv-review-recovery .dv-review-refund{margin-top:13px;color:#b7c8dc}

/* Scene-safe TTS recovery: use the same inline approval styling as image review. */
.dv-narration-recovery { border-color: rgba(76, 145, 242, .45); background: rgba(29, 57, 100, .23); }
.dv-narration-recovery > strong { color: #d7eaff; }
.dv-narration-recovery [data-voice-warning] { color: #ffa5a5; margin: 10px 0; }

/* Stage 4: persistent project exports and saved scene versions. */
.dv-project-actions{display:flex;align-items:center;flex-wrap:wrap;gap:13px;background:#14253c;border:1px solid #335780;border-radius:12px;padding:13px 15px;margin:12px 0}.dv-project-actions[hidden],.dv-project-export-approval[hidden],.dv-project-export-status[hidden]{display:none!important}.dv-project-actions>div:first-child{flex:1;min-width:170px}.dv-project-actions strong,.dv-asset-history strong{font-size:12px;color:#eaf3ff}.dv-project-actions p,.dv-asset-history p{color:#9db2d0;font-size:11px;line-height:1.6;margin:5px 0}.dv-project-actions button,.dv-asset-history button{background:#2776ed;border:1px solid #4589f4;color:white;border-radius:9px;padding:10px 13px;cursor:pointer;font-size:12px}.dv-project-actions button:disabled,.dv-asset-history button:disabled{opacity:.5;cursor:not-allowed}.dv-project-export-approval{flex-basis:100%;padding:12px;background:#17283f;border:1px solid #3f5f87;border-radius:10px}.dv-project-export-approval>div{display:flex;gap:8px}.dv-project-export-approval button:last-child{background:#1e3049;border-color:#354b69}.dv-project-export-status{flex-basis:100%;font-size:12px;color:#a8d7ff}.dv-asset-history{border-top:1px solid #2e415b;margin-top:18px;padding-top:13px}.dv-version-row{display:flex;gap:8px;margin-top:9px}.dv-version-row select{min-width:0;flex:1;border:1px solid #3b506d;background:#121e30;color:#e2edff;border-radius:8px;padding:8px;font-size:11px}.dv-version-row button{flex-shrink:0}.dv-asset-history p{max-width:600px}@media(max-width:650px){.dv-version-row{flex-direction:column}.dv-project-actions>button{width:100%}}

/* Stage 4.2: deliberate Project selection, no automatic session restoration. */
.dv-new-video{margin-top:9px;width:100%;background:#1a2e4b;color:#d8eaff;border:1px solid #3a6294;border-radius:10px;padding:10px 14px;font-weight:600;font-size:12px;cursor:pointer;text-align:center}
.dv-new-video:hover{background:#223e63;border-color:#6099f1}
.dv-new-video[hidden]{display:none!important}

/* Stage 4.3 Soundscape: compact, clear voice/ambience controls */
.dv-global-sound,.dv-sound-mix{background:#101c2b;border:1px solid #304660;border-radius:12px;padding:14px;margin-top:13px}
.dv-global-sound strong,.dv-sound-header strong{display:block;color:#dbeaff;font-size:13px}
.dv-global-sound p,.dv-sound-header small{display:block;color:#8faaca;font-size:11px;line-height:1.6;margin:5px 0 10px}
.dv-global-sound label,.dv-sound-mix label:not(.dv-sound-duck){display:flex;align-items:center;justify-content:space-between;color:#c4d8ed;font-size:12px;margin:11px 0 7px}
.dv-global-sound label output,.dv-sound-mix label output{color:#84b5ff;font-weight:650;font-variant-numeric:tabular-nums}
.dv-global-sound input[type=range],.dv-sound-mix input[type=range]{width:100%;accent-color:#347dff;cursor:pointer;height:18px}
.dv-global-sound .dv-sound-duck,.dv-sound-mix .dv-sound-duck{display:flex;gap:8px;align-items:center;justify-content:flex-start;font-size:11px;color:#b5c9e0;margin-top:14px;line-height:1.5}
.dv-sound-duck input{accent-color:#347dff}
.dv-sound-mix .dv-help{margin:10px 0 6px}
.dv-sound-mix [data-save-mix]{background:#1b3151;border:1px solid #37629b;color:#d6e9ff;border-radius:8px;padding:9px 12px;cursor:pointer;font-size:12px}
.dv-sound-mix [data-save-mix]:disabled{opacity:.55;cursor:not-allowed}

/* Stage 4.4: user-facing continuity display is read-only by default. */
.dv-consistency-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin:0 0 14px}
.dv-consistency-head strong{font-size:14px;color:#e5f1ff}.dv-consistency-head>span{font-size:11px;color:#73d5af}
.dv-style-text{white-space:normal;color:#dceaff;font-size:12px}.dv-style-text strong{color:#bed7f5}
.dv-style-text p{line-height:1.65;white-space:pre-wrap;color:#a9c2df}
.dv-cast-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:14px 0}
.dv-cast-card{display:flex;gap:12px;background:#121f31;border:1px solid #325073;border-radius:12px;padding:12px;min-width:0}
.dv-cast-photo{width:92px;height:110px;flex-shrink:0;border:1px solid #344d70;border-radius:9px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#0d1928;color:#5178a9;font-size:30px}
.dv-cast-photo img{width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.dv-cast-details{min-width:0}.dv-cast-details strong{display:block;color:#e9f2ff;font-size:13px}.dv-cast-details small{display:block;margin:3px 0;color:#8fafcd;font-size:11px}
.dv-cast-details p{font-size:11px;color:#b4cbe3;margin:5px 0;line-height:1.5;overflow-wrap:anywhere}
.dv-cast-ready,.dv-cast-pending{display:block;font-size:10px;margin-top:9px}.dv-cast-ready{color:#65d4a2}.dv-cast-pending{color:#8fb9ff}
.dv-no-cast,.dv-cast-note{color:#9aacc4;font-size:11px;line-height:1.65;margin:10px 0}
@media(max-width:650px){.dv-cast-grid{grid-template-columns:1fr}.dv-cast-photo{width:80px;height:95px}}

#dv-style:has(.dv-consistency-head){white-space:normal}

/* Stage 5A — Continuity Bible above the filmstrip. */
.dv-bible-board{background:#111e31;border:1px solid #2c4668;border-radius:14px;padding:16px;margin:13px 0 16px}
.dv-bible-board[hidden]{display:none!important}
.dv-bible-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.dv-bible-title strong{display:block;font-size:14px;color:#e9f2ff}
.dv-bible-title span{display:block;font-size:11px;color:#95abc8;line-height:1.6;margin-top:3px}
.dv-bible-counter{flex-shrink:0;font-size:11px;background:#1d3553;color:#b9d6ff;border:1px solid #385984;padding:6px 9px;border-radius:15px}
.dv-bible-sections{display:grid;gap:14px}
.dv-bible-sections h4{font-size:11px;letter-spacing:.04em;color:#a6c1e4;margin:4px 0 8px}
.dv-bible-tiles{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:9px;padding:2px 0 7px;scrollbar-width:thin;scrollbar-color:#496da7 transparent}
.dv-bible-tile{border:1px solid #355070;border-radius:11px;background:#15253a;color:#edf5ff;width:136px;min-width:136px;padding:6px;text-align:left;cursor:pointer;scroll-snap-align:start;transition:border-color .16s,transform .16s}
.dv-bible-tile:hover{border-color:#77a7ff;transform:translateY(-1px)}
.dv-bible-image{height:96px;background:#0d1827;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.dv-bible-image img{display:block;max-height:100%;width:100%;object-fit:contain}
.dv-bible-placeholder{color:#779bc4;font-size:27px}
.dv-bible-info{padding:8px 5px 3px}.dv-bible-info>*{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dv-bible-info small{color:#85b5ff;font-size:9px;text-transform:uppercase;letter-spacing:.04em}
.dv-bible-info strong{font-size:12px;margin:4px 0}.dv-bible-info span{font-size:10px;color:#a3b8d2}
.dv-bible-info em{font-size:10px;color:#62d9ac;font-style:normal;margin-top:5px}.dv-bible-tile.pending em{color:#8c9db5}
.dv-bible-empty{font-size:11px;color:#7e96b7;padding:16px 5px}
.dv-style-card{border-radius:10px;border:1px solid #344965;padding:12px;background:linear-gradient(120deg,#213753,#182335 55%,#3b314a)}
.dv-style-card strong{font-size:12px;color:#e7f1ff}.dv-style-card p{font-size:11px;color:#b4c8e3;line-height:1.6;max-width:780px;margin:7px 0 3px}.dv-style-card small{font-size:10px;color:#a7b4ce}

/* Stage 5A — self-contained Image / Video / Voice cards, no confusing Prompt tab. */
#dv-inspector .dv-scene-purpose{color:#a8bdd7;font-size:12px;line-height:1.6;margin:8px 0 14px}
.dv-scene-continuity{border:1px solid #2d405c;background:#142239;border-radius:10px;padding:9px 12px;margin-bottom:14px}
.dv-scene-continuity summary{cursor:pointer;color:#a9c4e7;font-size:11px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.dv-scene-continuity label{display:block;font-size:10px;color:#b8c8dc;margin:10px 0 5px}
.dv-scene-continuity textarea{width:100%;background:#0c1728;border:1px solid #354d6e;color:#eaf2ff;border-radius:8px;padding:10px;resize:vertical;box-sizing:border-box}
.dv-scene-references{display:inline-flex;gap:4px}.dv-scene-references span{color:#c8ddff;border:1px solid #406391;border-radius:12px;background:#1b3655;padding:3px 6px;font-size:10px}
.dv-scene-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.dv-scene-tool-card{padding:13px;background:#121e30;border:1px solid #2d4261;border-radius:12px;min-width:0}
.dv-card-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.dv-card-head strong{color:#eaf4ff;font-size:15px}.dv-card-head span{font-size:10px;color:#91b5e2}
.dv-scene-tool-card>label{display:block;font-size:11px;font-weight:600;margin:11px 0 6px;color:#bed1ee}
.dv-scene-tool-card textarea{display:block;box-sizing:border-box;width:100%;background:#0a1525;border:1px solid #344c6b;color:#e8f2ff;border-radius:9px;padding:11px 12px;font-size:12px;line-height:1.55;resize:vertical;min-height:116px;font-family:inherit}
.dv-scene-tool-card textarea:focus{outline:none;border-color:#5792ec;box-shadow:0 0 0 2px #3578ff29}
.dv-card-media{width:100%;height:205px;border-radius:10px;background:#0b1525;overflow:hidden}
.dv-card-media-click{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;border:0;cursor:zoom-in;padding:0;background:#0b1525}
.dv-card-media-click img,.dv-card-media-click video{width:100%;height:100%;object-fit:contain}
.dv-card-media-click>span{position:absolute;right:9px;bottom:9px;padding:6px 8px;font-size:10px;border-radius:7px;background:#0a1a30db;color:#ebf3ff}
.dv-card-media-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#8296b2;font-size:12px;background:radial-gradient(circle,#1d3555,#0b1525 72%)}
.dv-scene-tool-card input[type=file]{width:100%;box-sizing:border-box;color:#b6c8dd;background:#0d192b;border:1px dashed #405e86;border-radius:9px;padding:10px;font-size:11px;cursor:pointer}
.dv-uploaded-reference{display:flex;gap:9px;align-items:center;border-radius:9px;padding:8px;border:1px solid #365071;background:#15273e;margin-top:9px}
.dv-uploaded-reference button{width:84px;min-width:84px;height:68px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:7px;background:#0d1a2e;cursor:zoom-in;color:#fff}
.dv-uploaded-reference button img,.dv-uploaded-reference button video{width:100%;height:100%;object-fit:contain}
.dv-uploaded-reference button span{position:absolute;bottom:3px;left:3px;right:3px;font-size:9px;background:#0e1c30bb;border-radius:4px}
.dv-uploaded-reference small{font-size:10px;line-height:1.5;color:#a3bddc}
.dv-card-note{font-size:11px;line-height:1.65;color:#9eafc7;min-height:42px}
.dv-card-generate{width:100%;background:#2b73ed!important;border:1px solid #468afa!important;color:#fff!important;font-weight:650!important;font-size:12px;padding:12px 9px!important;border-radius:9px;cursor:pointer}
.dv-card-generate:disabled{opacity:.5;cursor:not-allowed}
.dv-subtle-action{display:block;background:transparent!important;border:1px solid #3b5879!important;width:100%;margin-top:9px;color:#bbd3f3!important;border-radius:9px;font-size:11px;padding:10px;cursor:pointer}
.dv-voice-tool{grid-column:1/-1}.dv-voice-tool textarea{min-height:76px}
.dv-voice-primary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.dv-voice-primary .dv-card-generate{width:auto;flex:1 1 200px}
.dv-voice-primary button:not(.dv-card-generate){border:1px solid #3a577d;background:#1b3355;color:#dcecff;padding:11px;border-radius:8px;cursor:pointer;font-size:11px}
.dv-voice-tool audio{max-width:100%;margin-top:10px}
.dv-mix-details{margin-top:12px;border:1px solid #314866;padding:10px;border-radius:9px}
.dv-mix-details summary{cursor:pointer;color:#a9c6e9;font-size:12px}
.dv-scene-action-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #2b3b54;margin-top:15px;padding:12px 0 2px}
.dv-scene-action-footer p{flex:1 1 230px;font-size:11px;line-height:1.5;color:#9daec8;margin:0}
.dv-scene-action-footer button{background:#1e3655;color:#e1edff;border:1px solid #416a9e;border-radius:8px;padding:9px 12px;cursor:pointer;font-size:12px}
.dv-scene-action-footer small{font-size:10px;color:#88a8ce}
@media(max-width:1170px){.dv-scene-editor-grid{grid-template-columns:1fr}.dv-card-media{height:260px}.dv-bible-counter{display:none}}
@media(max-width:950px){.dv-scene-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dv-card-media{height:175px}}
@media(max-width:610px){.dv-scene-editor-grid{grid-template-columns:1fr}.dv-card-media{height:220px}.dv-bible-board{padding:11px}.dv-bible-tile{width:124px;min-width:124px}.dv-bible-image{height:83px}}

/* Stage 5A.3 — one-click price visibility and truthful generation progress */
.dv-pricing-inline{font-size:12px;color:#abc9ef;line-height:1.6;margin:9px 3px 13px;min-height:20px}
.dv-startup-status{min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:15px;background:radial-gradient(ellipse at 50% 38%,#16304f 0%,#0e1827 66%);border:1px solid #2a4667;border-radius:16px;padding:35px 22px}
.dv-startup-status[hidden],.dv-live-status[hidden],#dv-generate[hidden]{display:none!important}
.dv-startup-status h3{font-size:20px;color:#edf5ff;margin:4px 0 0}
.dv-startup-status p{font-size:12px;color:#99afca;line-height:1.7;margin:0;max-width:410px}
.dv-startup-status small,.dv-live-timer{font-size:11px;color:#93b6e5;font-variant-numeric:tabular-nums}
.dv-startup-orbit{height:72px;width:72px;border:5px solid #233e63;border-top-color:#4695ff;border-right-color:#93b6ff;border-radius:50%;animation:dv-turn 1.1s linear infinite;box-shadow:0 0 26px #286cf425}
.dv-startup-orbit span{display:block;width:16px;height:16px;background:#55a1ff;border-radius:4px;margin:23px}
.dv-inline-spinner{display:inline-block;width:36px;height:36px;flex-shrink:0;border-radius:50%;border:4px solid #3e5778;border-top-color:#67abff;box-shadow:0 0 18px #398bff33;animation:dv-turn .85s linear infinite}
@keyframes dv-turn{to{transform:rotate(360deg)}}
.dv-live-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;background:#162a43;border:1px solid #355a87;border-radius:12px;margin-bottom:14px;padding:13px 16px;color:#e4efff;font-size:12px}
.dv-live-status strong{flex:1;min-width:180px;font-size:12px}
.dv-live-status .dv-stage-steps{flex-basis:100%;margin:4px 0 0}
.dv-stage-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:6px}
.dv-stage-steps span{padding:6px 9px;border-radius:24px;background:#14243a;border:1px solid #2c3d57;color:#8092ac;font-size:10px}
.dv-stage-steps span.active{background:#21446a;border-color:#4e8ed1;color:#f0f8ff;box-shadow:0 0 14px #286cf435}
.dv-stage-steps span.completed{color:#83d9ae;border-color:#2b604e}
.dv-bible-tile.working{border-color:#4693fe;box-shadow:0 0 0 1px #2f73da,0 0 17px #2563eb36}
.dv-bible-tile.working .dv-bible-placeholder{width:30px;height:30px;border:3px solid #2a466f;border-top-color:#4f9fff;border-radius:50%;font-size:0;animation:dv-turn 1s linear infinite}
.dv-bible-tile.working em{color:#a1caff}
@media(max-width:640px){.dv-startup-status{min-height:290px;padding:25px 12px}.dv-stage-steps{gap:4px}.dv-stage-steps span{font-size:9px;padding:5px 6px}}
@media(prefers-reduced-motion:reduce){.dv-startup-orbit,.dv-inline-spinner,.dv-bible-tile.working .dv-bible-placeholder,.dv-export-orbit{animation-duration:3s}}

/* Stage 5A.7 — simplified editing surfaces. Existing production state & controls remain intact. */
.director-page{max-width:1392px;width:calc(100% - 36px);box-sizing:border-box;padding:32px 0 84px}
.director-hero{gap:32px;padding:20px 0 42px}
.director-hero h1{font-size:clamp(37px,4.3vw,59px);line-height:1.08;max-width:750px;margin:12px 0 15px}
.director-hero p{max-width:590px;line-height:1.65;margin:0}
.hero-note{margin-top:16px}
.director-hero-art{height:214px}
.director-workbench{grid-template-columns:minmax(0,3fr) minmax(0,7fr);gap:20px;align-items:start}
.director-left,.director-right{background:transparent;border:0;border-radius:0;padding:0;min-height:0;box-shadow:none}
.director-left .panel-heading,.director-right .panel-heading{margin-bottom:17px;min-height:28px}
.director-left .panel-heading h2,.director-right .panel-heading h2{font-size:19px;margin:0}
.director-left .panel-heading p,.director-right .panel-heading p{display:none}
.stage-index{display:none!important}
.dv-sr-only{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.settings-grid{gap:10px;margin-top:18px}
.settings-grid .dv-select-control{min-width:0}
.settings-grid .dv-select-control>select{display:block;width:100%;min-width:0;padding:12px 10px;font-size:13px;color-scheme:dark}
.director-left .divider-line{margin:18px 0 0}
.director-advanced{margin:17px 0 14px}
.director-disclaimer{display:none}
.director-empty{height:340px;min-height:0;box-sizing:border-box}
.director-empty p{max-width:290px;font-size:12px}
.story-summary{padding:15px 17px}
.story-summary h3{margin:5px 0;font-size:18px}
.result-stats{margin:11px 0 7px}
.dv-bible-board{background:transparent;border:0;border-radius:0;padding:4px 0 0;margin:14px 0}
.dv-bible-title{margin-bottom:10px}
.dv-bible-title strong{font-size:15px}
.dv-bible-all{display:flex!important;gap:10px;padding:0 0 10px;scrollbar-width:thin;flex-wrap:nowrap;align-items:stretch}
.dv-bible-all .dv-bible-tile{flex:0 0 134px;width:134px;min-width:134px;align-self:stretch}
.dv-bible-all .dv-bible-image{height:105px}
.dv-bible-all .dv-style-tile{cursor:default;overflow:hidden}
.dv-style-thumbnail{background:linear-gradient(130deg,#1f527a,#626bc1 55%,#ad7cbf)!important;color:white;display:grid!important;place-items:center;font-size:35px}
.dv-style-thumbnail span{filter:drop-shadow(0 3px 7px #0008)}
#dv-filmstrip{background:transparent;border:0;border-radius:0;padding:4px 0 0;margin:12px 0}
.dv-strip-heading{margin-bottom:10px}
#dv-inspector{background:transparent;border:0;border-radius:0;padding:5px 0;margin:10px 0;min-width:0}
#dv-inspector .dv-scene-purpose{margin:6px 0 10px}
.dv-scene-continuity{margin-bottom:11px}
.dv-scene-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:stretch}
.dv-scene-tool-card{min-width:0;display:flex;flex-direction:column;padding:12px;border-radius:12px}
.dv-card-head{min-height:25px;align-items:center;margin:0 0 10px}
.dv-card-head strong{font-size:15px}
.dv-card-head span{font-size:10px;text-align:right}
.dv-card-media{height:auto;aspect-ratio:16 / 9;flex-shrink:0;border-radius:9px}
.dv-scene-tool-card>label{margin:11px 0 6px;font-size:11px}
.dv-scene-tool-card textarea,.dv-voice-tool textarea{height:155px;min-height:155px;max-height:none;resize:vertical;font-size:12px;line-height:1.55;overflow:auto}
.dv-scene-tool-card input[type=file]{min-height:38px;padding:7px;font-size:10px}
.dv-card-note{min-height:0;margin:8px 0 12px;font-size:10px;line-height:1.45}
.dv-card-generate{margin-top:auto;white-space:normal!important}
.dv-voice-tool{grid-column:auto}
.dv-voice-primary{display:flex;gap:7px;margin-top:11px}
.dv-voice-primary .dv-card-generate{width:100%;flex:1 1 100%;order:3}
.dv-voice-primary button:not(.dv-card-generate){flex:1 1 40%;font-size:10px;padding:8px}
.dv-voice-options{gap:6px;margin-top:9px}
.dv-voice-options button{font-size:10px!important;padding:8px 10px!important}
.dv-voice-tool audio{width:100%;height:34px}
.dv-mix-details{margin-top:10px;padding:9px}
.dv-sound-mix{padding:9px;margin-top:9px}
.dv-sound-mix label:not(.dv-sound-duck){margin:8px 0 5px;font-size:11px}
.dv-uploaded-reference{position:relative;align-self:flex-start;display:inline-flex;min-width:0;max-width:100%;padding:5px;margin-top:8px}
.dv-uploaded-reference .dv-uploaded-view{height:84px;width:132px;min-width:0;max-width:100%;display:block;position:relative;border-radius:8px}
.dv-uploaded-reference .dv-uploaded-view img,.dv-uploaded-reference .dv-uploaded-view video{display:block;width:100%;height:100%;object-fit:contain}
.dv-uploaded-reference .dv-remove-reference{position:absolute!important;z-index:2;top:0;right:0;transform:translate(30%,-30%);width:25px!important;height:25px!important;min-width:25px!important;display:grid!important;place-items:center!important;padding:0!important;border:1px solid #8d9bb0!important;border-radius:50%!important;background:#1d293c!important;color:white!important;font:bold 17px/1 sans-serif!important;cursor:pointer!important;box-shadow:0 2px 7px #0008}
.dv-uploaded-reference .dv-remove-reference:hover{background:#d33e52!important;border-color:#ef6477!important}
.dv-uploaded-reference .dv-remove-reference:disabled{opacity:.5;cursor:not-allowed!important}
.dv-scene-action-footer{margin-top:12px;padding:10px 0}
.dv-asset-history{margin-top:15px}
.director-explain{margin-top:62px}
.director-faq{margin-top:54px}
.steps-four article{padding:18px}
@media(min-width:1250px){.dv-scene-editor-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dv-card-media{height:165px;aspect-ratio:auto}}
@media(min-width:985px) and (max-width:1249px){.dv-scene-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dv-voice-tool{grid-column:1/-1}}
@media(min-width:680px) and (max-width:984px){.dv-scene-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dv-voice-tool{grid-column:1/-1}}
@media(max-width:950px){.director-workbench{grid-template-columns:1fr}.director-hero{grid-template-columns:1fr}.director-left,.director-right{padding:0;min-height:0}}
@media(max-width:679px){.director-page{width:auto;padding:18px 14px 66px}.director-hero{padding:9px 0 27px}.director-hero h1{font-size:35px}.director-hero p{font-size:14px}.dv-scene-editor-grid{grid-template-columns:1fr}.dv-voice-tool{grid-column:auto}.dv-card-media{height:auto;aspect-ratio:16/9}.dv-scene-tool-card textarea,.dv-voice-tool textarea{height:132px;min-height:132px}.director-empty{height:270px}.dv-bible-all .dv-bible-tile{flex-basis:115px;min-width:115px;width:115px}.dv-bible-all .dv-bible-image{height:84px}}

/* Light mode follows Tool67's html[data-theme] / body.dark theme setting. */
html[data-theme="light"]{--dv-ink:#17243a;--dv-muted:#57677e;--dv-border:#dbe3ee;--dv-panel:#fff;--dv-blue:#2563eb}
html[data-theme="light"] body{background:#f7f9fc;color:#18263b}
html[data-theme="light"] .director-hero h1,html[data-theme="light"] .panel-heading h2,html[data-theme="light"] .director-faq h2,html[data-theme="light"] .explain-heading h2{color:#132138}
html[data-theme="light"] .director-hero p,html[data-theme="light"] .hero-note,html[data-theme="light"] .explain-heading p{color:#51647e}
html[data-theme="light"] .director-left textarea,html[data-theme="light"] .director-left select,html[data-theme="light"] .director-advanced select,html[data-theme="light"] .director-left input[type=text]{background:#fff;border-color:#cfd9e7;color:#1a2941;color-scheme:light}
html[data-theme="light"] .director-left textarea::placeholder{color:#8c99a8}
html[data-theme="light"] .director-label,html[data-theme="light"] .director-advanced summary,html[data-theme="light"] .dv-projects label{color:#253f60}
html[data-theme="light"] .director-advanced{border-color:#d5e0ed;background:#fff}
html[data-theme="light"] .director-advanced summary span{color:#667c99}
html[data-theme="light"] .idea-pills button,html[data-theme="light"] .director-preview-button{background:#fff;color:#315477;border-color:#cfdaeb}
html[data-theme="light"] .director-preview-button:hover,html[data-theme="light"] .idea-pills button:hover{background:#e8f1ff;color:#1a57ab}
html[data-theme="light"] .dv-pricing-inline{color:#315e99}
html[data-theme="light"] .dv-projects select,html[data-theme="light"] .dv-new-video{background:#fff;color:#1b3959;border-color:#cfdaeb;color-scheme:light}
html[data-theme="light"] .state-label{background:#fff;color:#526780;border-color:#d0dce9}
html[data-theme="light"] .director-empty{background:radial-gradient(circle at center,#eaf1fc,#fff 74%);border-color:#cbd8e9}
html[data-theme="light"] .director-empty h3{color:#213753}
html[data-theme="light"] .director-empty p{color:#667b96}
html[data-theme="light"] .empty-film{color:#7197d1}
html[data-theme="light"] .story-summary,html[data-theme="light"] .result-stats span,html[data-theme="light"] .dv-live-status{background:#fff;border:1px solid #d7e2ef;color:#1c3452}
html[data-theme="light"] .story-summary h3{color:#152b48}
html[data-theme="light"] .story-summary p{color:#526885}
html[data-theme="light"] .story-summary button,html[data-theme="light"] .result-actions button,html[data-theme="light"] .scene-card button{background:#eef4fe;border-color:#cbdcef;color:#2d5686}
html[data-theme="light"] .result-stats span{background:#eaf2fe;color:#2a5a94}
html[data-theme="light"] .dv-bible-title strong,html[data-theme="light"] .dv-strip-heading strong,html[data-theme="light"] .dv-detail-title strong,html[data-theme="light"] .dv-card-head strong{color:#172b49}
html[data-theme="light"] .dv-bible-counter{background:#eaf3ff;border-color:#ccdcf1;color:#2e5d97}
html[data-theme="light"] .dv-bible-tile,html[data-theme="light"] .dv-tile,html[data-theme="light"] .dv-scene-tool-card{background:#fff;border-color:#cedbeb;color:#1d344e}
html[data-theme="light"] .dv-bible-tile:hover,html[data-theme="light"] .dv-tile:hover{border-color:#6195e9}
html[data-theme="light"] .dv-bible-info strong,html[data-theme="light"] .dv-tile-bottom strong{color:#173454}
html[data-theme="light"] .dv-bible-info small,html[data-theme="light"] .dv-bible-info span,html[data-theme="light"] .dv-bible-title span,html[data-theme="light"] .dv-tile-status{color:#637997}
html[data-theme="light"] .dv-bible-info em,html[data-theme="light"] .dv-tile-status.ready{color:#0b875f}
html[data-theme="light"] .dv-bible-image,html[data-theme="light"] .dv-tile-media,html[data-theme="light"] .dv-card-media,html[data-theme="light"] .dv-card-media-click,html[data-theme="light"] .dv-card-media-empty{background:#eef3fa;color:#5c718d}
html[data-theme="light"] .dv-scene-placeholder{color:#7194c6}
html[data-theme="light"] .dv-strip-heading small,html[data-theme="light"] .dv-scene-purpose{color:#58708d}
html[data-theme="light"] .dv-detail-title span{color:#526a88;border-color:#d3deec}
html[data-theme="light"] .dv-scene-nav button,html[data-theme="light"] .dv-strip-controls button{background:#fff;border-color:#cfdbed;color:#274d7d}
html[data-theme="light"] .dv-scene-continuity,html[data-theme="light"] .dv-mix-details,html[data-theme="light"] .dv-sound-mix,html[data-theme="light"] .dv-global-sound{background:#f9fbff;border-color:#d5e2f1}
html[data-theme="light"] .dv-scene-continuity summary,html[data-theme="light"] .dv-scene-continuity label,html[data-theme="light"] .dv-scene-tool-card>label,html[data-theme="light"] .dv-global-sound label,html[data-theme="light"] .dv-sound-mix label:not(.dv-sound-duck){color:#31516f}
html[data-theme="light"] .dv-scene-tool-card textarea,html[data-theme="light"] .dv-scene-continuity textarea,html[data-theme="light"] .dv-review-recovery textarea{background:#fff;color:#172a44;border-color:#cfdbeb}
html[data-theme="light"] .dv-scene-tool-card input[type=file]{background:#f6faff;color:#315677;border-color:#b5c8e2}
html[data-theme="light"] .dv-uploaded-reference{background:#f4f9ff;border-color:#d0e1f3}
html[data-theme="light"] .dv-card-note,html[data-theme="light"] .dv-scene-action-footer p,html[data-theme="light"] .dv-scene-tool-card .dv-voice-options span{color:#58708d}
html[data-theme="light"] .dv-voice-primary button:not(.dv-card-generate),html[data-theme="light"] .dv-voice-options button,html[data-theme="light"] .dv-scene-action-footer button{background:#edf4ff;color:#285c91;border-color:#c7dbef}
html[data-theme="light"] .dv-sound-mix [data-save-mix]{background:#edf4ff;color:#285c91;border-color:#c7dbef}
html[data-theme="light"] .dv-asset-history{border-color:#d8e3ef}
html[data-theme="light"] .dv-project-actions{background:#fff;border-color:#d3dfed}
html[data-theme="light"] .dv-project-actions strong,html[data-theme="light"] .dv-asset-history strong{color:#1d334f}
html[data-theme="light"] .dv-project-actions p,html[data-theme="light"] .dv-asset-history p{color:#627995}
html[data-theme="light"] .dv-version-row select{background:#fff;border-color:#ccdbed;color:#253f61}
html[data-theme="light"] .dv-selected-progress span{background:#eaf1fb;color:#647993}
html[data-theme="light"] .dv-selected-progress span.done{background:#def7ec;color:#137c55}
html[data-theme="light"] .steps-four article,html[data-theme="light"] .scene-card{background:#fff;border-color:#d7e0ec;color:#1e344e}
html[data-theme="light"] .steps-four article p,html[data-theme="light"] .director-faq details p{color:#5b718b}
html[data-theme="light"] .director-faq details{border-color:#dbe3ef}
html[data-theme="light"] .director-faq summary,html[data-theme="light"] .steps-four article h3{color:#203954}
html[data-theme="light"] .director-job{background:#f4f8ff;border-color:#d0dff1}
html[data-theme="light"] .director-job p{color:#33516e}
html[data-theme="light"] .dv-startup-status{background:radial-gradient(ellipse at 50% 38%,#ecf5ff,#fff 72%);border-color:#d3e1f0}
html[data-theme="light"] .dv-startup-status h3{color:#213a59}
html[data-theme="light"] .dv-startup-status p{color:#6c829b}
html[data-theme="light"] .dv-stage-steps span{background:#eaf1fa;border-color:#cbdbee;color:#587699}
html[data-theme="light"] .dv-stage-steps span.active{background:#e3f0ff;color:#265e9e;border-color:#80b1ed}
html[data-theme="light"] .dv-live-status strong{color:#23466b}
html[data-theme="light"] .dv-not-fresh{background:#fff7e5;color:#8a5505;border-color:#e8d4a3}

/* Stage 8 — keep the established workbench, remove secondary interface noise. */
.director-workbench{grid-template-columns:minmax(0,3fr) minmax(0,7fr)}
.director-left>.panel-heading,.director-left>.idea-pills,.director-left>.divider-line,
.director-right>.panel-heading h2,.result-stats,.dv-bible-counter,
.dv-bible-all .dv-style-tile{display:none!important}
.director-right>.panel-heading{justify-content:flex-end;margin-bottom:14px}
.director-right>.panel-heading>div{display:none}
.director-right>.panel-heading .state-label{margin-left:0}
.director-right>.panel-heading .dv-new-video{margin:0 auto 0 0;width:auto;padding:7px 14px;border-radius:999px}
.dv-projects{display:none!important}
.director-workbench:not(.dv-has-project){align-items:stretch}
.director-workbench:not(.dv-has-project) .director-right{display:flex;flex-direction:column}
.director-workbench:not(.dv-has-project) .director-empty{flex:1;min-height:465px;height:auto}
.director-empty{position:relative;isolation:isolate;overflow:hidden;padding:38px 28px 155px;
 background:radial-gradient(ellipse at 50% 36%,#1c2b44 0%,#112039 60%,#0c1729 100%);
 border:1px dashed #334c69;border-radius:16px}
.director-empty:after{content:'';position:absolute;inset:0;z-index:-1;
 background:radial-gradient(ellipse at 50% 36%,rgba(93,132,245,.09),transparent 65%);pointer-events:none}
.director-empty .dv-empty-clapper{width:92px;height:89px;color:#6897ff;filter:drop-shadow(0 7px 16px #5477ff28)}
.director-empty h3{position:relative;margin:18px 0 6px;font-size:clamp(18px,2vw,23px);letter-spacing:-.035em}
.director-empty p{position:relative;margin:0;color:#a4bde0}
.dv-empty-filmstrip{position:absolute;left:6%;right:6%;bottom:23px;height:96px;opacity:.42;
 border:7px solid #25518a;border-radius:7px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:10px 5px;box-sizing:border-box}
.dv-empty-filmstrip:before,.dv-empty-filmstrip:after{content:'';position:absolute;left:-2px;right:-2px;height:6px;
 background:repeating-linear-gradient(90deg,#5680c6 0 11px,transparent 11px 17px)}
.dv-empty-filmstrip:before{top:-7px}.dv-empty-filmstrip:after{bottom:-7px}
.dv-empty-filmstrip span{position:relative;border-radius:5px;background:#243e66}
.dv-empty-filmstrip span:after{content:'';position:absolute;left:16%;right:16%;bottom:17%;height:54%;background:#4c6fa7;
 clip-path:polygon(0 100%,29% 35%,45% 67%,65% 13%,100% 100%);opacity:.7}
html[data-theme="light"] .director-empty{background:radial-gradient(ellipse at 50% 36%,#f9fcff 0%,#f1f7ff 66%,#edf4ff 100%);border-color:#cbdcf5}
html[data-theme="light"] .director-empty:after{background:radial-gradient(ellipse at 50% 32%,rgba(142,171,244,.12),transparent 68%)}
html[data-theme="light"] .dv-empty-filmstrip{border-color:#d4e3fa;opacity:.66}
html[data-theme="light"] .dv-empty-filmstrip:before,html[data-theme="light"] .dv-empty-filmstrip:after{background:repeating-linear-gradient(90deg,#edf5ff 0 11px,transparent 11px 17px)}
html[data-theme="light"] .dv-empty-filmstrip span{background:#ccdff9}
html[data-theme="light"] .dv-empty-filmstrip span:after{background:#a1bde9}

/* Voice is a first-class scene asset: same preview and script sizes as Image/Video. */
.dv-voice-tool .dv-voice-media{position:relative;display:flex;align-items:center;justify-content:center;
 overflow:hidden;background:radial-gradient(ellipse at 45% 30%,#1d3d5b,#10243b 80%);border:1px solid #23445f;color:#c3d6f6}
.dv-voice-media .dv-waveform{width:96%;height:75%;max-height:125px;overflow:visible}
.dv-voice-media .dv-wave-mic{fill:#294f78;stroke:#bbd6fd;stroke-width:2}
.dv-voice-media .dv-wave-label{position:absolute;right:9px;bottom:6px;color:#aac4e6;font-size:9px}
.dv-voice-media audio{position:absolute;bottom:6px;left:5%;width:90%;height:30px;opacity:.95}
.dv-voice-media:has(audio) .dv-waveform{height:60%;transform:translateY(-15px)}
.dv-voice-tool .dv-voice-modes{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:11px 0 10px}
.dv-voice-tool .dv-voice-modes button{border:1px solid #395677;background:#1d304b;color:#b3c8e8;border-radius:9px;
 padding:9px 5px;font-weight:650;font-size:10px;cursor:pointer;white-space:normal}
.dv-voice-tool .dv-voice-modes button[aria-pressed="true"]{background:#326ff2;border-color:#568cff;color:#fff;
 box-shadow:0 2px 12px #367aff38}
.dv-voice-tool .dv-voice-modes button[data-mode="mute"][aria-pressed="true"]{background:#e9a447;border-color:#ecb15a;color:#172c47}
.dv-voice-tool .dv-voice-details{flex:1;display:flex;flex-direction:column;min-height:0;transition:opacity .2s,filter .2s}
.dv-voice-tool .dv-voice-details>label{display:block;margin:11px 0 6px;font-size:11px;font-weight:700}
.dv-voice-tool .dv-voice-details>textarea{height:155px;min-height:155px;max-height:none}
.dv-voice-tool .dv-voice-details .dv-card-generate{margin-top:auto;width:100%}
.dv-voice-tool .dv-voice-details .dv-mix-details{margin-bottom:12px}
.dv-voice-tool.is-muted .dv-voice-details{opacity:.36;filter:grayscale(1);pointer-events:none}
.dv-voice-tool.is-muted .dv-voice-media{filter:grayscale(.83);opacity:.65}
.dv-voice-tool.is-muted .dv-card-head>span{color:#e9a447}
html[data-theme="light"] .dv-voice-tool .dv-voice-modes button{background:#eef4ff;color:#28577d;border-color:#c6d9ee}
html[data-theme="light"] .dv-voice-tool .dv-voice-modes button[aria-pressed="true"]{background:#326ff2;color:#fff;border-color:#568cff}
html[data-theme="light"] .dv-voice-tool .dv-voice-modes button[data-mode="mute"][aria-pressed="true"]{background:#e9a447;border-color:#ecb15a;color:#172c47}
html[data-theme="light"] .dv-voice-tool .dv-voice-details>label{color:#31516f}
@media(min-width:680px){.dv-scene-editor-grid .dv-card-media{height:165px;aspect-ratio:auto}}
@media(max-width:950px){.director-workbench{grid-template-columns:1fr}.director-workbench:not(.dv-has-project) .director-empty{min-height:360px}}
@media(max-width:679px){.director-empty{padding-bottom:125px}.dv-empty-filmstrip{height:74px;bottom:15px}.dv-voice-tool .dv-voice-details>textarea{height:132px;min-height:132px}}

/* Editable storyboard: a selectable scene and two independent touch-friendly
   actions. Avoid nesting buttons inside the scene-selection button. */
.dv-tile{position:relative;cursor:default}
.dv-tile-select{display:block;width:100%;border:0;padding:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.dv-tile-select:focus-visible,.dv-tile-actions button:focus-visible{outline:2px solid #6bacff;outline-offset:2px}
.dv-tile-bottom{padding-right:43px;min-height:51px}
.dv-tile-actions{position:absolute;right:8px;bottom:8px;display:flex;align-items:center;gap:3px;opacity:.6;transition:opacity .15s}
.dv-tile:hover .dv-tile-actions,.dv-tile.selected .dv-tile-actions,.dv-tile:focus-within .dv-tile-actions{opacity:1}
.dv-tile-actions button{width:20px;height:22px;display:grid;place-items:center;padding:2px;border:1px solid #36577e;border-radius:5px;background:#172a45;color:#bad8ff;cursor:pointer}
.dv-tile-actions button:hover{background:#2e70c8;color:#fff}
.dv-tile-actions button[data-remove-scene]:hover{background:#7e3040;border-color:#b44e60}
.dv-tile-actions button:disabled{opacity:.3;cursor:not-allowed}
.dv-tile-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dv-asset-history>summary{cursor:pointer;font-size:12px;font-weight:650;color:#bfd5f2;list-style:revert}
.dv-asset-history[open]>summary{margin-bottom:8px}
.dv-not-fresh{display:none!important} /* Project status is rendered next to Reassemble. */
html[data-theme="light"] .dv-tile-actions button{background:#edf3fb;color:#315e92;border-color:#cbdbee}
html[data-theme="light"] .dv-tile-actions button:hover{background:#327ee3;color:white}
html[data-theme="light"] .dv-asset-history>summary{color:#294e7b}
@media(hover:none){.dv-tile-actions{opacity:1}}

/* Stage 7: full-size inline spinner replaces the stale MP4 during reassembly. */
.dv-export-wait{width:100%;min-height:280px;margin-top:17px;padding:28px 18px;box-sizing:border-box;border:1px solid #3b6394;border-radius:12px;background:radial-gradient(circle at 50% 42%,#204268,#101d31 75%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:17px}
.dv-export-wait[hidden]{display:none!important}
.dv-export-orbit{width:88px;height:88px;box-sizing:border-box;border:7px solid #274a71;border-top-color:#62adff;border-right-color:#8dcbff;border-radius:50%;animation:dv-turn 1s linear infinite;box-shadow:0 0 28px #377cff50}
.dv-export-wait strong{font-size:17px;color:#edf6ff}
.dv-export-wait small{font-size:12px;color:#a9c7e9;line-height:1.6}
html[data-theme="light"] .dv-export-wait{background:radial-gradient(circle at 50% 42%,#e5f2ff,#f4f9ff 75%);border-color:#b8d4f2}
html[data-theme="light"] .dv-export-wait strong{color:#21496e}
html[data-theme="light"] .dv-export-wait small{color:#547da8}
@media(max-width:650px){.dv-tile-actions button{width:22px;height:24px}.dv-tile-bottom{padding-right:45px}}

/* Stage 9 — five true square storyboard frames in the default workbench. */
.director-workbench:not(.dv-has-project) .director-empty{min-height:530px}
.dv-empty-filmstrip{left:50%;right:auto;transform:translateX(-50%);width:min(88%,700px);height:auto;
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:11px 9px;bottom:23px}
.dv-empty-filmstrip span{min-width:0;aspect-ratio:1/1}
@media(max-width:679px){
 .director-workbench:not(.dv-has-project) .director-empty{min-height:400px}
 .dv-empty-filmstrip{width:92%;height:auto;padding:7px 5px;gap:5px;bottom:14px}
}

/* Stage 12 — visible storyboard insert action and distinct workbench panels. */
.director-left,.director-right{
 box-sizing:border-box;background:#111d2e;border:1px solid #314762;
 border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(0,0,0,.12)
}
html[data-theme="light"] .director-left,html[data-theme="light"] .director-right{
 background:#e9f0f9;border-color:#c9d7e9;box-shadow:0 8px 24px rgba(48,78,120,.07)
}
.dv-tile-actions{opacity:1;gap:5px}
.dv-tile-actions button{width:23px;height:24px}
.dv-tile-actions button[data-insert-scene]{
 background:#1d4b82;color:#e6f3ff;border-color:#559ae9;
 box-shadow:0 1px 5px rgba(29,99,196,.22)
}
.dv-tile-actions button[data-insert-scene] svg{stroke-width:2.6}
.dv-tile-actions button[data-insert-scene]:not(:disabled):hover{
 background:#2e80e0;border-color:#78b5ff;color:#fff
}
.dv-tile-actions button:disabled{opacity:.58;cursor:not-allowed}
html[data-theme="light"] .dv-tile-actions button[data-insert-scene]{
 background:#d2e6ff;color:#175aa8;border-color:#8bb8ed
}
html[data-theme="light"] .dv-tile-actions button[data-insert-scene]:not(:disabled):hover{
 background:#2c70d4;color:#fff;border-color:#2562bb
}
@media(max-width:650px){.director-left,.director-right{padding:14px}}
