/* Scoped to the storyboard workspace; dialogue, assets and record views retain their layout. */
#recordsModal.is-storyboard-view .records-list.is-storyboard-list{padding:0!important;overflow:hidden!important;height:100%;max-height:none;min-height:0}
#recordsModal.is-storyboard-view .records-media-toolbar{display:none}
.wf-app{--wf-bg:#10191c;--wf-panel:#152125;--wf-line:#2b3e43;--wf-ink:#edf2f2;--wf-muted:#9daeb2;--wf-accent:#4dd6c3;background:var(--wf-bg);color:var(--wf-ink);display:flex;flex-direction:column;height:100%;min-height:400px;font:14px/1.55 "Microsoft YaHei","Segoe UI",sans-serif;text-align:left}
.wf-app *,.wf-dialog-overlay *{box-sizing:border-box}
.wf-app button,.wf-dialog-overlay button{cursor:pointer;font:inherit;transition:background .15s,border-color .15s}
.wf-app button:disabled,.wf-dialog-overlay button:disabled{opacity:.5;cursor:wait}
.wf-app button:focus-visible,.wf-app input:focus-visible,.wf-app textarea:focus-visible,.wf-app select:focus-visible,.wf-dialog-overlay :focus-visible{outline:2px solid var(--wf-accent,#4dd6c3);outline-offset:2px}
.wf-app h2{margin:0 0 3px;font-size:27px;line-height:1.3;font-weight:650;letter-spacing:.2px}
.wf-app h3{margin:0 0 15px;font-size:17px;font-weight:600}.wf-app p{margin:0 0 12px}.wf-app hr{border:0;border-top:1px solid var(--wf-line);margin:22px 0}
.wf-steps{display:flex;gap:12px;justify-content:space-between;padding:21px 28px;border-bottom:1px solid var(--wf-line);flex-shrink:0}
.wf-steps button{position:relative;display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#b6c3c6;padding:4px 0;text-align:left;white-space:nowrap}
.wf-steps button b{display:grid;place-items:center;width:31px;height:31px;border:1px solid #58676b;border-radius:50%;font-size:15px;font-weight:500;background:#2a383d}
.wf-steps button[aria-current]{color:var(--wf-accent)}.wf-steps button[aria-current] b{background:var(--wf-accent);color:#092322;border-color:var(--wf-accent)}
.wf-body{display:flex;flex:1;min-height:0;overflow:hidden;gap:12px;padding:12px 12px 0}
.wf-sidebar{width:218px;min-width:192px;padding:19px 12px;border:1px solid var(--wf-line);border-radius:6px;display:flex;flex-direction:column;overflow:auto;background:var(--wf-panel)}
.wf-sidebar h3,.wf-sidebar>p{padding:0 9px}.wf-shot-list{flex:1}.wf-shot{display:flex;align-items:center;gap:7px;padding:16px 8px;border-bottom:1px solid var(--wf-line);border-left:3px solid transparent;border-radius:3px}.wf-shot.is-active{background:#173938;border-left-color:var(--wf-accent)}
.wf-shot button{display:flex;gap:10px;align-items:flex-start;min-width:0;background:none;border:0;color:inherit;padding:0;flex:1;text-align:left}.wf-shot button>span:last-child{min-width:0}.wf-shot strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.wf-shot small{display:block;color:var(--wf-muted);font-size:12px;margin-top:4px}.wf-shot-no{font-variant-numeric:tabular-nums;color:var(--wf-accent)}
.wf-app input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:var(--wf-accent);flex-shrink:0}.wf-workspace{flex:1;min-width:0;overflow:auto;border:1px solid var(--wf-line);border-radius:6px;padding:24px;background:#111d21;scrollbar-gutter:stable}.wf-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.wf-heading p{color:var(--wf-muted);margin:8px 0 0;font-size:14px}.wf-heading>.wf-actions{flex-shrink:0}
.wf-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,1fr);gap:22px}.wf-columns.wf-generate{grid-template-columns:minmax(0,1fr) 278px}.wf-panel{background:var(--wf-panel);border:1px solid var(--wf-line);border-radius:6px;padding:20px;margin:0 0 16px;min-width:0}.wf-panel>summary{cursor:pointer;font-weight:600;font-size:15px;list-style-position:inside}.wf-panel[open]>summary{margin-bottom:18px}.wf-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:16px;font-size:13px}.wf-field>span{color:#c6d2d5}.wf-app input:not([type=checkbox]),.wf-app select,.wf-app textarea,.wf-dialog input,.wf-dialog textarea,.wf-dialog select{width:100%;min-width:0;color:#e5eeee;background:#101c20;border:1px solid #395259;border-radius:5px;min-height:38px;padding:9px 11px;font:14px/1.5 "Microsoft YaHei","Segoe UI",sans-serif;box-shadow:none}.wf-app textarea,.wf-dialog textarea{resize:vertical;min-height:82px}.wf-app textarea[data-wf-field="w.script"]{min-height:225px}.wf-field.wf-check,.wf-check{display:flex;align-items:center;flex-direction:row;gap:10px;font-size:13px;margin-bottom:13px}.wf-field.wf-check>span{order:1}.wf-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.wf-grid2>.wf-hint{grid-column:1/-1}
.wf-btn,.wf-dialog button{border:1px solid #375159;border-radius:5px;color:#deeaed;background:#15262b;min-height:35px;padding:7px 13px;white-space:normal}.wf-btn:hover,.wf-dialog button:hover{background:#20383e;border-color:#58818a}.wf-btn.wf-primary,.wf-dialog button.wf-primary{background:#4dd6c3;border-color:#4dd6c3;color:#092b28;font-weight:600}.wf-btn.wf-primary:hover{background:#71e1d2}.wf-btn.is-active{border-color:var(--wf-accent);color:var(--wf-accent);background:#153b39}.wf-full{width:100%;min-height:42px}.wf-add{margin-top:18px;color:var(--wf-accent);background:transparent}.wf-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.wf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0}.wf-toolbar>span{font-size:13px;color:var(--wf-muted)}.wf-hint,.wf-app .wf-hint{color:var(--wf-muted);font-size:12px;line-height:1.7;margin:9px 0}.wf-note{padding:12px;border:1px solid var(--wf-line);border-radius:5px;color:var(--wf-accent);margin-bottom:16px;font-size:13px}.wf-warning{padding:12px;background:#3c3020;color:#e3c485;border:1px solid #615239;border-radius:5px;font-size:13px}
.wf-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:8px}.wf-section-head h3{margin:0}.wf-section-head .wf-btn{font-size:12px;padding:5px 10px}.wf-motion{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:16px}.wf-motion>span{width:100%;font-size:13px;color:#c6d2d5}.wf-motion-item{display:flex;align-items:center;gap:5px}.wf-motion-item select{width:54px;padding:5px;font-size:12px}.wf-skills label{padding:8px 0;border-bottom:1px solid var(--wf-line)}
.wf-references{display:flex;flex-direction:column;gap:9px;margin:16px 0}.wf-ref{display:flex;gap:9px;align-items:center;border:1px solid var(--wf-line);padding:8px;border-radius:5px;font-size:12px}.wf-ref img{height:48px;width:64px;object-fit:cover;border-radius:3px}.wf-ref>span{min-width:0;flex:1;overflow-wrap:anywhere}.wf-ref small{display:block;color:var(--wf-muted);margin-top:2px}.wf-ref .wf-btn{font-size:11px;padding:4px 7px;min-height:28px}.wf-media-label{color:var(--wf-accent);max-width:50px}
.wf-breakdown{border:1px solid var(--wf-line);border-radius:6px;margin-bottom:20px}.wf-row{display:grid;grid-template-columns:18px 24px minmax(100px,1fr) 85px 95px 55px;gap:14px;align-items:center;padding:18px 16px;border-bottom:1px solid var(--wf-line);background:var(--wf-panel)}.wf-row:last-child{border-bottom:0}.wf-row-content input{margin-bottom:7px}.wf-row .wf-field{margin:0}.wf-row-content textarea{min-height:64px;resize:vertical}.wf-row>strong{font-size:14px;color:var(--wf-accent)}.wf-row-menu{position:relative}.wf-row-menu summary{cursor:pointer;color:var(--wf-accent)}.wf-row-menu>div{position:absolute;right:0;top:28px;z-index:6;display:flex;flex-direction:column;gap:6px;background:#10252a;border:1px solid #4f737b;padding:8px;width:95px;border-radius:5px}.wf-breakdown.is-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:0;gap:16px}.is-cards .wf-row{grid-template-columns:18px 24px 1fr;border:1px solid var(--wf-line);border-radius:6px}.is-cards .wf-row-content{grid-column:1/-1;grid-row:2}.is-cards .wf-row .wf-field{grid-column:auto}
.wf-candidates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wf-candidate{min-width:0;border:1px solid var(--wf-line);border-radius:6px;overflow:hidden;background:#0b1316}.wf-candidate.is-active{border:2px solid var(--wf-accent)}.wf-candidate>img,.wf-candidate>video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain}.wf-candidate>div{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:11px;font-size:12px}.wf-candidate .wf-btn{font-size:12px;padding:4px 9px}.wf-empty-media{grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:265px;border:1px dashed #375058;border-radius:5px;color:#a1b5bb;text-align:center;padding:24px}.wf-empty-media strong{font-weight:500;font-size:18px}.wf-empty-media p{font-size:13px;margin:0}.wf-preview{padding:12px;background:#0a1215;min-height:230px;display:flex;justify-content:center;align-items:center}.wf-preview>video,.wf-preview>img{display:block;width:100%;max-height:460px;object-fit:contain}.wf-preview>.wf-empty-media{width:100%}.wf-mode{display:flex;gap:8px;margin-bottom:20px}.wf-mode .wf-btn{padding:9px 23px}.wf-timeline{display:flex;gap:8px;overflow:auto;padding:6px 0 20px}.wf-timeline button{min-width:90px}.wf-export{display:flex;flex-direction:column;gap:12px;margin:18px 0}.wf-export button{min-height:43px}.wf-empty{text-align:center;padding:60px 20px}.wf-empty p{color:var(--wf-muted);margin:16px 0 24px}
.wf-footer{display:flex;align-items:center;gap:18px;border-top:1px solid var(--wf-line);padding:15px 22px;margin-top:12px;flex-shrink:0;background:#132025}.wf-footer>.wf-btn{min-height:42px}.wf-footer>.wf-primary{margin-left:auto;padding:10px 25px}.wf-notice{font-size:12px;color:#a4b7bb;flex:1}.wf-notice.is-error{color:#ffb0a4}.wf-mobile-tools{display:none}.wf-dialog-overlay{position:fixed;inset:0;background:#050b10b8;z-index:220000;display:flex;align-items:center;justify-content:center;padding:20px;color:#e5efef}.wf-dialog{width:620px;max-width:100%;max-height:88vh;overflow:auto;border:1px solid #40616a;border-radius:8px;background:#14232a;padding:25px;box-shadow:0 20px 90px #0008;font:14px/1.6 "Microsoft YaHei",sans-serif}.wf-dialog h2{font-size:21px;margin:0 0 18px}.wf-dialog footer{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.wf-dialog [data-wf-dialog-error]{color:#ffb0a4}.wf-dialog .wf-ai-preview{min-height:260px}.wf-asset-options{max-height:50vh;overflow:auto}
@media(min-width:1101px){.wf-design>.wf-panel>.wf-field{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:start}.wf-design>.wf-panel>.wf-field>span{padding-top:9px}.wf-design .wf-field{margin-bottom:12px}.wf-design .wf-field textarea{min-height:66px;height:66px}.wf-motion-item input[type=checkbox]{margin:0}.wf-motion{gap:6px}.wf-motion-item{gap:3px;font-size:13px}.wf-motion-item select{width:43px}.wf-design .wf-panel{padding:20px}.wf-design .wf-panel hr{margin:16px 0}.wf-design .wf-panel h3{margin-bottom:12px}}
@media(min-width:1400px){.wf-workspace{padding:28px}.wf-sidebar{width:245px}.wf-columns{gap:26px}.wf-columns.wf-generate{grid-template-columns:minmax(0,1fr) 310px}.wf-panel{padding:23px}.wf-steps{padding:24px 44px}}
@media(max-width:1100px){.wf-sidebar{width:185px;min-width:170px}.wf-workspace{padding:18px}.wf-columns{grid-template-columns:minmax(0,1fr)}.wf-columns.wf-generate{grid-template-columns:minmax(0,1fr)}.wf-heading{align-items:flex-start}.wf-heading h2{font-size:23px}.wf-heading>.wf-actions{max-width:210px}.wf-row{grid-template-columns:18px 24px minmax(100px,1fr) 70px 80px 44px;gap:8px;padding:12px}.wf-steps{padding:16px 20px}.wf-steps button{gap:7px;font-size:13px}}
@media(max-width:760px){.wf-body{padding:0 8px;position:relative}.wf-sidebar{display:none;position:absolute;left:8px;top:0;bottom:0;z-index:20;width:260px;box-shadow:8px 0 25px #0009}.wf-sidebar.is-open{display:flex}.wf-mobile-tools{display:flex;align-items:center;gap:13px;padding:10px 12px;font-size:12px;color:var(--wf-muted)}.wf-steps{overflow:auto;gap:17px;padding:13px 12px;scrollbar-width:thin}.wf-steps button{gap:6px;font-size:12px}.wf-steps button b{width:24px;height:24px;font-size:12px}.wf-workspace{padding:16px 12px}.wf-footer{padding:11px 12px;gap:8px;flex-wrap:wrap}.wf-footer .wf-notice{order:3;flex-basis:100%}.wf-footer>.wf-primary{padding:8px 14px}.wf-heading{flex-direction:column;gap:13px;margin-bottom:18px}.wf-heading>.wf-actions{max-width:none}.wf-panel{padding:16px}.wf-row{grid-template-columns:18px 24px 1fr 55px;gap:8px}.wf-row-content{grid-column:1/-1;grid-row:2}.wf-row-menu{grid-column:4;grid-row:1}.wf-row .wf-field{grid-column:span 2}.wf-breakdown.is-cards{grid-template-columns:1fr}.wf-app{min-height:360px}.wf-candidates{grid-template-columns:1fr}.wf-ref{flex-wrap:wrap}.wf-section-head{flex-wrap:wrap}}
@media(max-width:400px){.wf-grid2{grid-template-columns:1fr}.wf-panel{padding:12px}.wf-workspace{padding:12px 9px}.wf-mode .wf-btn{padding:8px 13px}.wf-app h2{font-size:21px}}
@media(min-width:1101px){.wf-design .wf-grid2 .wf-field{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:8px}.wf-design textarea[data-wf-field="row.dialogue"]{min-height:42px;height:42px}.wf-design .wf-panel hr{margin:12px 0}.wf-design .wf-motion{margin-bottom:12px}.wf-design>.wf-panel{padding:18px}.wf-design>.wf-panel>.wf-field{margin-bottom:10px}}
@media(max-width:760px){.wf-stage-4 .wf-generate>aside,.wf-stage-5 .wf-generate>aside{display:none;position:fixed;z-index:50;top:243px;left:20px;right:20px;bottom:113px;overflow:auto;background:#14242a;border:1px solid #476a72;border-radius:6px;padding:12px;box-shadow:0 12px 40px #000a}.wf-stage-4.is-settings-open .wf-generate>aside,.wf-stage-5.is-settings-open .wf-generate>aside{display:block}.wf-mobile-tools{flex-wrap:wrap}}
@media(min-width:1101px){.wf-breakdown:not(.is-cards) .wf-row{padding:10px 14px}.wf-breakdown:not(.is-cards) .wf-row-content{display:grid;grid-template-columns:135px minmax(0,1fr);align-items:center;gap:12px}.wf-breakdown:not(.is-cards) .wf-row-content input{margin:0;background:transparent;border-color:transparent;padding:6px 0}.wf-breakdown:not(.is-cards) .wf-row-content textarea{height:44px;min-height:44px;margin:0}.wf-breakdown:not(.is-cards) .wf-row-content>p{grid-column:1/-1}}
.wf-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px}.wf-compare img,.wf-compare video{width:100%;max-height:360px;object-fit:contain}.wf-stage-6 .wf-preview>img,.wf-stage-6 .wf-preview>video{max-height:300px}.wf-stage-6 .wf-preview{min-height:180px}
@media(max-width:760px){.wf-compare{grid-template-columns:1fr}}
.wf-stage-4 .wf-toolbar{margin-top:0}.wf-history{margin-top:16px}.wf-history>summary{cursor:pointer;color:var(--wf-muted);padding:8px 0}.wf-history[open]>summary{margin-bottom:10px}
@media(min-width:1101px){.wf-candidate>img,.wf-candidate>video{max-height:170px}}
.wf-stage-5 .wf-preview>img,.wf-stage-5 .wf-preview>video{max-height:300px}
.wf-shot-parameters{grid-column:1/-1;min-width:0;border-top:1px solid var(--wf-line);padding-top:10px}
.wf-shot-parameters>summary{cursor:pointer;color:var(--wf-accent);font-size:13px;padding:4px 0}
.wf-shot-parameters>summary>span{color:var(--wf-muted);font-size:12px;margin-left:8px}
.wf-shot-parameter-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;padding-top:14px}
.wf-shot-parameter-grid>section{min-width:0}
.wf-shot-parameter-grid h4{margin:0 0 12px;font-size:14px;color:#dae5e7;font-weight:600}
.wf-shot-parameter-grid .wf-field{grid-column:auto;margin:0 0 10px;gap:4px;font-size:12px}
.wf-shot-parameter-grid input:not([type=checkbox]),.wf-shot-parameter-grid select,.wf-shot-parameter-grid textarea{min-height:32px;padding:5px 8px;font-size:13px}
.wf-shot-parameter-grid textarea{height:64px;min-height:64px}
.wf-shot-parameter-grid .wf-motion{gap:6px;margin:0 0 10px}
.wf-shot-parameter-grid .wf-motion-item{gap:4px;font-size:12px}
.wf-shot-parameter-grid .wf-motion-item select{width:43px;padding:4px 3px;font-size:12px}
.is-cards .wf-shot-parameter-grid{grid-template-columns:minmax(0,1fr)}
@media(max-width:760px){.wf-shot-parameter-grid{grid-template-columns:minmax(0,1fr);gap:10px}.wf-shot-parameter-grid .wf-field{grid-column:auto}.wf-shot-parameters>summary>span{display:block;margin:4px 0 0 16px}}
@media(min-width:1101px){.wf-stage-6 .wf-generate>section>.wf-panel:last-child{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.wf-stage-6 .wf-generate>section>.wf-panel:last-child>h3,.wf-stage-6 .wf-generate>section>.wf-panel:last-child>.wf-actions,.wf-stage-6 .wf-generate>section>.wf-panel:last-child>.wf-hint{grid-column:1/-1}.wf-stage-6 .wf-generate>section>.wf-panel:last-child>.wf-field{margin-bottom:12px}}

/* Project preparation has its own responsive layout; keep defaults beside the script. */
.wf-stage-1 .wf-mobile-tools{display:none}
.wf-stage-1 .wf-heading{margin-bottom:0}
.wf-stage-1 .wf-setup{grid-template-columns:minmax(0,1fr) 370px;gap:28px}
.wf-preparation{display:flex;flex-direction:column;gap:10px;width:220px;flex-shrink:0;padding:22px 10px;border:1px solid var(--wf-line);border-radius:6px;background:var(--wf-panel)}
.wf-preparation h3{padding:0 10px;margin-bottom:12px}
.wf-preparation .wf-btn{text-align:left;border-color:transparent;background:transparent;padding:13px 16px}
.wf-preparation .wf-btn.is-active{border-left:3px solid var(--wf-accent);border-radius:3px;background:#173938;color:var(--wf-accent)}
.wf-setup-main{min-width:0;display:flex;flex-direction:column;gap:24px}
.wf-setup-section h3,.wf-setup-defaults h3{margin:0 0 14px}
.wf-setup-basic .wf-field{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:12px}
.wf-setup-basic .wf-field:last-child{margin-bottom:0}
.wf-setup-basic-pair{display:grid;gap:12px;margin-bottom:12px}
.wf-setup-basic-pair .wf-field{margin-bottom:0}
.wf-setup-defaults{min-width:0;padding-left:28px;border-left:1px solid var(--wf-line)}
.wf-setup-defaults .wf-grid2{display:block}
.wf-setup-model .wf-field:not(.wf-check){display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:12px;margin-bottom:12px}
.wf-setup-script .wf-section-head{margin-bottom:10px;gap:12px}
.wf-setup-script .wf-section-head h3{margin:0}
.wf-setup-script>.wf-field{margin:0}
.wf-setup-script>.wf-field>span{display:none}
.wf-stage-1 textarea[data-wf-field="w.script"]{height:120px;min-height:100px;max-height:260px}
.wf-setup-script-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}
.wf-setup-script-tools .wf-hint{margin:0;font-size:12px}
.wf-setup-start .wf-actions{gap:8px}
@media(min-width:860px) and (max-width:1279px), (min-width:1280px) and (max-height:850px){
  .wf-stage-1 .wf-preparation{display:none}
  .wf-stage-1 .wf-workspace{padding:16px 18px}
  .wf-stage-1 .wf-heading{margin-bottom:0;gap:8px}
  .wf-stage-1 .wf-steps{padding:10px 20px}
  .wf-stage-1 .wf-footer{padding:12px 18px}
  .wf-stage-1 .wf-heading h2{font-size:23px}
  .wf-stage-1 .wf-heading p{margin-top:3px;font-size:12px}
  .wf-stage-1 .wf-setup{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:22px}
  .wf-stage-1 .wf-setup-main{gap:12px}
  .wf-stage-1 .wf-setup-section h3,.wf-stage-1 .wf-setup-defaults h3{font-size:16px;margin-bottom:9px}
  .wf-stage-1 .wf-field{font-size:12px;gap:4px;margin-bottom:8px}
  .wf-stage-1 input:not([type=checkbox]),.wf-stage-1 select,.wf-stage-1 textarea{min-height:32px;padding:5px 8px;font-size:13px;line-height:1.5}
  .wf-stage-1 .wf-setup-basic .wf-field{grid-template-columns:86px minmax(0,1fr);gap:8px}
  .wf-stage-1 .wf-setup-basic-pair{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:8px}
  .wf-stage-1 .wf-setup-basic-pair .wf-field{margin-bottom:0;grid-template-columns:auto minmax(0,1fr)}
  .wf-stage-1 .wf-setup-defaults{padding-left:22px}
  .wf-stage-1 .wf-setup-defaults .wf-grid2{display:block}
  .wf-stage-1 .wf-setup-model .wf-field:not(.wf-check){display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:8px;margin-bottom:6px}
  .wf-stage-1 .wf-setup-model .wf-check{margin-bottom:6px}
  .wf-stage-1 .wf-setup-model .wf-hint{margin:0 0 8px;font-size:12px}
  .wf-stage-1 .wf-setup-defaults hr{margin:10px 0 14px}
  .wf-stage-1 .wf-setup-defaults>.wf-hint{font-size:12px;margin:2px 0 0}
  .wf-stage-1 textarea[data-wf-field="w.script"]{height:88px;min-height:88px}
  .wf-stage-1 .wf-setup-script-tools{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .wf-stage-1 .wf-setup-script-tools .wf-hint{line-height:1.45}
  .wf-stage-1 .wf-setup-script-tools .wf-actions{flex-wrap:nowrap}
  .wf-stage-1 .wf-btn{font-size:12px;min-height:30px;padding:5px 10px}
  .wf-stage-1 .wf-footer>.wf-btn{min-height:38px}
  .wf-stage-1 .wf-setup-script .wf-section-head{margin-bottom:8px}
  .wf-stage-1 .wf-setup-script .wf-section-head h3{margin:0}
}
@media(max-width:859px){
  .wf-stage-1 .wf-body{flex-direction:column;gap:10px}
  .wf-stage-1 .wf-preparation{flex-direction:row;width:100%;padding:4px;gap:3px;overflow-x:auto}
  .wf-stage-1 .wf-preparation h3{display:none}
  .wf-stage-1 .wf-preparation .wf-btn{flex:1;text-align:center;white-space:nowrap;font-size:12px;padding:8px 5px;border:0;min-height:36px}
  .wf-stage-1 .wf-preparation .wf-btn.is-active{box-shadow:inset 0 -2px var(--wf-accent)}
  .wf-stage-1 .wf-workspace{min-height:0}
  .wf-stage-1 .wf-heading{margin-bottom:20px}
  .wf-stage-1 .wf-heading>.wf-actions{display:none}
  .wf-stage-1 .wf-setup{display:block}
  .wf-stage-1 .wf-setup-main{display:contents}
  .wf-stage-1 .wf-setup-defaults{padding:0;border:0}
  .wf-stage-1 .wf-setup-basic .wf-field{grid-template-columns:90px minmax(0,1fr);gap:8px}
  .wf-stage-1 .wf-setup-basic-pair{gap:12px}
  .wf-stage-1 .wf-setup-model .wf-field:not(.wf-check){grid-template-columns:104px minmax(0,1fr);gap:8px;margin-bottom:8px}
  .wf-stage-1 .wf-setup-defaults input:not([type=checkbox]),.wf-stage-1 .wf-setup-defaults select{min-height:36px;padding:6px 8px;font-size:13px}
  .wf-stage-1 .wf-setup-defaults hr{margin:12px 0}
  .wf-stage-1[data-wf-setup-view="base"] [data-wf-setup-section]:not([data-wf-setup-section="base"]),
  .wf-stage-1[data-wf-setup-view="script"] [data-wf-setup-section]:not([data-wf-setup-section="script"]),
  .wf-stage-1[data-wf-setup-view="defaults"] [data-wf-setup-section]:not([data-wf-setup-section="defaults"]),
  .wf-stage-1[data-wf-setup-view="start"] [data-wf-setup-section]:not([data-wf-setup-section="start"]){display:none}
}

/* Narrow desktop dock: one working column, with settings and lists opened on demand. */
.wf-narrow{position:relative;min-height:0;overflow:hidden}
.wf-narrow .wf-n-stage{display:flex;align-items:center;gap:8px;padding:12px 14px;min-height:60px;flex-shrink:0;border-bottom:1px solid var(--wf-line)}
.wf-narrow .wf-n-stage h2{font-size:20px;white-space:nowrap;margin:0;font-weight:600}
.wf-n-number{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:var(--wf-accent);color:#092b28;font-size:16px;font-weight:600}
.wf-n-total{color:var(--wf-muted);font-size:13px;margin-right:3px}
.wf-narrow .wf-n-stage>.wf-btn{margin-left:auto;white-space:nowrap;padding:6px 9px;font-size:12px;min-height:32px}
.wf-narrow .wf-n-shot-nav{display:flex;align-items:center;gap:7px;padding:9px 12px;flex-shrink:0;border-bottom:1px solid var(--wf-line)}
.wf-n-shot-nav>span{flex:1;min-width:0;text-align:center;line-height:1.45}
.wf-n-shot-nav b{font-weight:500;color:var(--wf-accent);font-size:13px}.wf-n-shot-nav small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;color:var(--wf-muted)}
.wf-narrow .wf-n-shot-nav>.wf-btn{font-size:12px;padding:5px 7px;white-space:nowrap;min-height:32px}
.wf-narrow button:disabled{cursor:default}
.wf-narrow .wf-body{padding:0;display:flex;flex-direction:row;min-height:0;gap:0}
.wf-narrow .wf-workspace{padding:14px;border:0;border-radius:0;overflow-x:hidden;overflow-y:auto;min-height:0;background:var(--wf-bg);scrollbar-gutter:stable}
.wf-narrow h3{font-size:15px;margin:0 0 10px}.wf-narrow .wf-section-head h3{margin:0}
.wf-narrow .wf-field{margin-bottom:12px;gap:5px;font-size:13px}
.wf-narrow input:not([type=checkbox]),.wf-narrow select,.wf-narrow textarea{min-height:36px;padding:7px 9px;font-size:14px;line-height:1.5}
.wf-narrow textarea{height:72px;min-height:60px}.wf-narrow textarea[data-wf-field="w.script"]{height:104px;min-height:80px}
.wf-narrow .wf-grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
.wf-narrow .wf-panel{padding:12px;margin-bottom:12px}
.wf-narrow .wf-btn{font-size:13px;min-height:34px;padding:7px 10px}
.wf-narrow .wf-n-entry{display:block;width:100%;text-align:left;padding:11px 12px;margin:10px 0;border-color:var(--wf-line);background:var(--wf-panel)}
.wf-n-entry strong{display:block;font-weight:500}.wf-n-entry small{display:block;color:var(--wf-muted);line-height:1.6;font-size:12px;margin-top:3px;overflow-wrap:anywhere}
.wf-n-start{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:16px}
.wf-narrow .wf-n-start .wf-btn{padding:7px 3px;white-space:nowrap;font-size:12px}
.wf-narrow .wf-n-setup>.wf-section-head+.wf-field{margin-bottom:6px}.wf-n-setup>.wf-section-head+.wf-field>span{display:none}
.wf-n-list-tools{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:12px;color:var(--wf-muted)}
.wf-n-list-tools>span{flex:1;min-width:0}.wf-narrow .wf-n-list-tools>.wf-btn{white-space:nowrap;padding:5px 8px;font-size:12px}
.wf-n-shot{background:var(--wf-panel);border:1px solid var(--wf-line);border-radius:5px;margin:0 0 10px;padding:12px;min-width:0}
.wf-n-shot.is-active{border-left:3px solid var(--wf-accent);padding-left:10px}
.wf-n-shot-head{display:flex;align-items:center;gap:6px}.wf-narrow .wf-n-shot-title{display:flex;gap:7px;align-items:center;flex:1;min-width:0;border:0;background:none;padding:0;text-align:left}
.wf-n-shot-title b{color:var(--wf-accent);font-weight:500}.wf-n-shot-title span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wf-n-shot-head .wf-row-menu{flex-shrink:0;font-size:12px}.wf-n-shot-head .wf-row-menu summary{padding:6px 0}
.wf-narrow .wf-n-shot-meta{font-size:12px;color:var(--wf-muted);margin:5px 0 0 25px}
.wf-n-shot-edit{margin-top:10px}.wf-n-shot-edit>.wf-field:first-child>span{display:none}
.wf-n-shot-thumb{float:left;width:76px;height:48px;object-fit:cover;margin:2px 10px 8px 0;border-radius:3px}
.wf-narrow .wf-shot-parameter-grid{display:block}.wf-narrow .wf-shot-parameters{clear:both;padding-top:8px}.wf-narrow .wf-shot-parameters>summary>span{font-size:11px;margin-left:15px}
.wf-narrow .wf-shot-parameter-grid h4{font-size:13px}.wf-narrow .wf-shot-parameter-grid>section+section{border-top:1px solid var(--wf-line);padding-top:12px;margin-top:12px}
.wf-narrow .wf-n-group{border-bottom:1px solid var(--wf-line);margin:0 0 8px;padding:0 0 4px}
.wf-n-group>summary{cursor:pointer;font-size:14px;font-weight:600;padding:12px 0;list-style-position:inside}.wf-n-group>div{padding:0 0 4px}.wf-n-group>div>.wf-field:last-child{margin-bottom:8px}
.wf-narrow .wf-motion{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-bottom:10px}
.wf-narrow .wf-motion>span{display:none}.wf-narrow .wf-motion-item{display:grid;grid-template-columns:16px 1fr;gap:5px;align-items:center;justify-content:center;padding:6px 4px;background:var(--wf-panel);border:1px solid var(--wf-line);border-radius:4px;font-size:13px}
.wf-narrow .wf-motion-item input{margin:0}.wf-narrow .wf-motion-item select{grid-column:1/-1;width:100%;min-width:0;min-height:30px;font-size:12px;padding:4px 2px}
.wf-n-assist{display:flex;gap:8px;justify-content:flex-end;margin-bottom:4px}
.wf-narrow .wf-n-assist>.wf-btn{font-size:12px;padding:5px 9px}
.wf-narrow .wf-preview{min-height:0;padding:0;margin:0 0 12px;overflow:hidden;border:1px solid var(--wf-line);border-radius:5px;background:#0a1215;aspect-ratio:16/9}
.wf-narrow .wf-preview>img,.wf-narrow .wf-preview>video{width:100%;height:100%;max-height:250px;object-fit:contain}
.wf-narrow .wf-empty-media{min-height:0;height:100%;width:100%;padding:18px;border:0}.wf-narrow .wf-empty-media strong{font-size:16px}.wf-narrow .wf-empty-media p{font-size:12px}
.wf-n-candidates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:8px}
.wf-narrow .wf-n-candidates>.wf-btn{min-width:0;padding:2px;overflow:hidden;font-size:11px;line-height:1.4}
.wf-n-candidates img{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#0a1215}.wf-n-candidates span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:3px 0}
.wf-n-media-tools{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:8px 0 12px;font-size:12px;color:var(--wf-muted)}.wf-narrow .wf-n-media-tools>.wf-btn{font-size:12px;padding:5px 8px}
.wf-narrow .wf-mode{margin:0 0 12px;gap:0}.wf-narrow .wf-mode .wf-btn{flex:1;padding:8px 4px;font-size:13px;border-radius:0}.wf-narrow .wf-mode .wf-btn:first-child{border-radius:5px 0 0 5px}.wf-narrow .wf-mode .wf-btn:last-child{border-radius:0 5px 5px 0}
.wf-narrow .wf-mode .is-active{background:var(--wf-accent);color:#092b28}
.wf-n-generate-actions{display:flex;gap:8px;margin:12px 0 4px}.wf-n-generate-actions>.wf-full{flex:1;width:auto}.wf-n-generate-actions>.wf-btn:last-child{white-space:nowrap}
.wf-n-review-actions{display:flex;gap:8px}.wf-n-review-actions>.wf-btn{flex:1}
.wf-narrow .wf-footer{display:block;padding:8px 12px 10px;margin:0;border-top:1px solid var(--wf-line);background:#132025}
.wf-n-save{display:flex;align-items:center;gap:8px;margin-bottom:6px;min-width:0}.wf-narrow .wf-n-save>.wf-notice{order:0;font-size:11px;line-height:1.4;min-width:0;overflow-wrap:anywhere;flex-basis:auto}
.wf-narrow .wf-n-save>.wf-btn{border:0;background:none;padding:0 3px;min-height:20px;font-size:11px;white-space:nowrap;color:var(--wf-muted)}
.wf-n-footer-actions{display:flex;gap:8px}.wf-narrow .wf-n-footer-actions>.wf-btn{min-height:38px;padding:8px 12px;font-size:13px}.wf-n-footer-actions>.wf-primary{flex:1;margin-left:auto}
.wf-sheet-backdrop{position:absolute;inset:0;z-index:60;background:#03090ca8;display:flex;align-items:flex-end}
.wf-sheet{width:100%;max-height:90%;min-height:0;background:#15252b;border:1px solid #47636a;border-radius:8px 8px 0 0;display:flex;flex-direction:column;box-shadow:0 -8px 32px #0006;overflow:hidden}
.wf-sheet>header{display:flex;align-items:center;gap:10px;padding:12px 14px;flex-shrink:0;border-bottom:1px solid var(--wf-line)}.wf-sheet>header h3{flex:1;margin:0;font-size:16px}.wf-sheet>header .wf-btn{font-size:12px;padding:5px 8px;min-height:30px}
.wf-sheet-content{padding:14px;overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:contain}
.wf-sheet .wf-sidebar{display:flex;position:static;min-width:0;width:100%;padding:0;border:0;box-shadow:none;overflow:visible;background:none}
.wf-sheet .wf-sidebar>h3{display:none}.wf-sheet .wf-sidebar>p{padding:0}.wf-sheet .wf-shot{padding:12px 6px}.wf-sheet .wf-shot[hidden]{display:none}.wf-sheet .wf-add{margin-top:12px}
.wf-sheet .wf-panel{border:0;background:none;padding:0}.wf-sheet .wf-ref{flex-wrap:wrap}.wf-sheet .wf-references{gap:8px}
.wf-n-action-list,.wf-n-step-list{display:flex;flex-direction:column;gap:8px}.wf-narrow .wf-n-action-list>.wf-btn,.wf-narrow .wf-n-step-list>.wf-btn{text-align:left;padding:12px;min-height:42px}
.wf-n-action-list strong{display:block;font-weight:500}.wf-n-action-list small{display:block;color:var(--wf-muted);font-size:12px;line-height:1.6;margin-top:4px}
@media(max-width:760px){
  #recordsModal.is-storyboard-view>.records-filters{height:42px;min-height:42px;flex-shrink:0;padding:0}
  #recordsModal.is-storyboard-view>.records-filters>.record-filter{min-height:42px;padding:8px 2px;font-size:13px}
}
@media(max-width:760px) and (max-height:650px){
  .wf-narrow .wf-n-stage{min-height:48px;padding:8px 12px}.wf-narrow .wf-n-shot-nav{padding:6px 12px}
  .wf-narrow .wf-preview{max-height:160px;aspect-ratio:auto;height:160px}.wf-narrow .wf-footer{padding:5px 10px 8px}
  .wf-narrow .wf-n-stage h2{font-size:18px}.wf-narrow .wf-n-footer-actions>.wf-btn{min-height:34px;padding:6px 10px}
}
/* Compact labels keep the shot-design parameters usable without shrinking text. */
.wf-narrow .wf-n-group>summary{margin:0;color:var(--wf-ink);font-size:14px;padding:10px 0}
.wf-n-group>summary small{font-size:12px;font-weight:400;color:var(--wf-muted);margin-left:8px}
.wf-narrow.wf-stage-3 .wf-n-group .wf-field{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:start;gap:8px;margin-bottom:8px}
.wf-narrow.wf-stage-3 .wf-n-group .wf-field>span{padding-top:7px;font-size:12px}
.wf-narrow.wf-stage-3 .wf-n-group textarea{height:60px;min-height:54px}
.wf-narrow.wf-stage-3 .wf-n-group .wf-grid2>.wf-field{display:flex;gap:5px}
.wf-narrow.wf-stage-3 .wf-n-group .wf-grid2>.wf-field>span{padding-top:0}
.wf-narrow .wf-row-menu>summary{margin:0}
.wf-narrow .wf-n-media-tools{margin:4px 0 8px;min-height:26px}
.wf-narrow .wf-n-media-tools>.wf-btn{border:0;background:none;padding:3px 0;min-height:26px;color:var(--wf-accent)}
.wf-narrow.wf-stage-4 .wf-workspace>.wf-field textarea{height:60px;min-height:60px}
.wf-narrow.wf-stage-4 .wf-n-entry,.wf-narrow.wf-stage-5 .wf-n-entry{padding:8px 10px;margin:7px 0}
.wf-narrow .wf-n-generate-actions{margin:8px 0 0}
@media(max-width:760px){
  body.records-page-open.is-storyboard-page{min-width:0}
}
.wf-n-collapsed-thumb{width:56px;height:36px;object-fit:cover;border-radius:3px;flex-shrink:0}
.wf-role-voice{min-width:0}.wf-role-voice audio{display:block;width:100%;max-width:100%;height:36px;margin:12px 0}
.wf-app .wf-required-mark{display:inline;color:#ff9b91;font-size:14px;font-style:normal;font-weight:700;white-space:nowrap}.wf-app .wf-required-legend{display:inline-block;margin-left:10px;color:#a4b7bb;font-size:11px;font-weight:400;white-space:nowrap;vertical-align:middle}.wf-app .wf-required-note{display:block;color:#a4b7bb;font-size:11px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}.wf-row-content>.wf-field{margin:8px 0 0}.wf-row-content>.wf-field>span{font-size:12px}.wf-narrow.wf-stage-3 .wf-n-group .wf-field>.wf-required-note{grid-column:2}.wf-narrow .wf-n-stage .wf-required-legend{margin-left:6px}
.wf-asset-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.wf-asset-choices>.wf-btn{min-width:0;padding:9px 5px;text-align:center}.wf-asset-choices strong,.wf-asset-choices small{display:block}.wf-asset-choices small{font-size:11px;font-weight:400;margin-top:3px;color:#aec3c7}.wf-panel h3>small,.wf-n-assets h3>small{font-size:11px;font-weight:400;color:#a4b7bb}.wf-ref-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.wf-n-assets{margin:12px 0;padding:12px;border:1px solid var(--wf-line);border-radius:5px;background:var(--wf-panel)}.wf-n-assets .wf-section-head{gap:6px;margin-bottom:10px}.wf-n-assets .wf-section-head>.wf-btn{font-size:11px;padding:5px 7px}
.wf-dialog .wf-asset-options{margin-top:12px}.wf-asset-option{display:flex;align-items:center;gap:10px;padding:10px;margin-bottom:8px;border:1px solid #395259;border-radius:5px;cursor:pointer}.wf-asset-option[hidden]{display:none}.wf-dialog .wf-asset-option input[type=checkbox]{width:18px;min-height:18px;height:18px;padding:0;flex:0 0 18px;accent-color:#4dd6c3}.wf-asset-option img,.wf-asset-option>b{width:58px;height:48px;object-fit:cover;flex-shrink:0;border-radius:4px}.wf-asset-option>b{display:flex;align-items:center;justify-content:center;background:#21373e;font-size:12px}.wf-asset-option>span{min-width:0;overflow-wrap:anywhere}.wf-asset-option strong{font-size:13px}.wf-asset-option small{display:block;color:#abc0c5;font-size:12px;white-space:pre-line}.wf-asset-empty{padding:16px;border:1px dashed #46606a;border-radius:5px;line-height:1.8}
@media(max-width:760px){.wf-dialog-overlay{padding:12px}.wf-dialog{padding:16px}.wf-asset-option{gap:8px}.wf-asset-option img,.wf-asset-option>b{width:46px;height:42px}}
.wf-role-voice .wf-section-head{flex-wrap:wrap;gap:8px}.wf-role-voice select{max-width:100%}.wf-role-voice .wf-hint{overflow-wrap:anywhere}
.wf-narrow .wf-role-voice{margin:12px 0;padding:12px}.wf-narrow .wf-role-voice .wf-actions{flex-wrap:wrap}
@media(max-width:760px){
  #recordsModal.is-storyboard-view>.records-filters>.record-filter[data-filter="chat"]{color:#4dd6c3;border-bottom:2px solid #4dd6c3;background:#142426}
}
.wf-design>.wf-panel>.wf-field>.wf-required-note{grid-column:2}
