/* Creation workspaces share a bounded controls area and a visible result. */
body[data-workspace] .workspace-overview[data-intro]{padding:16px 20px!important;overflow:visible!important}
body[data-workspace] .tool-groups{flex-wrap:wrap;overflow:visible}
body[data-workspace] .tool-groups button{font-size:12px;padding:7px 10px;white-space:normal;text-align:left}
body[data-workspace] .tool-cards small{font-size:12px;line-height:1.45}
.workbench-form .tool-cards small{display:none}
.workbench-form .tool-cards>button{min-height:54px;padding:9px;grid-template-columns:22px 1fr;align-items:center}
.workbench-form .tool-cards strong{font-size:12px;line-height:1.4}
.workbench-form .tool-cards>button>span{grid-row:auto;font-size:20px}
.workbench-form #tool-description,.workbench-form #audio-description,.workbench-form #video-tool-description{font-size:12px;line-height:1.5;margin:8px 0 16px}
.workbench-footer{padding:12px 0 0;margin-top:auto;background:var(--panel);border-top:1px solid var(--line);flex:none}
.workbench-footer .primary{margin:0;min-height:44px}
.workbench-footer .form-status{font-size:12px;margin:8px 0 0;text-align:left}
.workbench-footer .model-ready-inline{font-size:12px;margin:0 0 8px}
.workbench-footer>.secondary{margin:8px 8px 0 0}
.workbench-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-width:thin}
.workbench-takes{margin:0 0 12px;border:1px solid var(--line);border-radius:9px;padding:10px 12px}
.workbench-takes>summary{cursor:pointer;font-size:13px;color:var(--text)}
.workbench-takes nav{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.workbench-takes .workspace-tab{font-size:12px;padding:8px 10px;border:1px solid var(--line);border-radius:7px}
.workbench-checks{margin:12px 0;border:1px solid var(--line);border-radius:9px;padding:10px 12px}
.workbench-checks>summary{font-size:13px;cursor:pointer;color:var(--accent)}
.workbench-checks ul,.workbench-checks .check-pills{margin-top:12px}
.workbench-result-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.workbench-result-actions button,.workbench-result-actions a,.workbench-result-actions summary{font-size:12px;min-height:36px}
.workbench-primary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.workbench-primary-actions>a,.workbench-primary-actions>button,.workbench-primary-actions>details>summary{display:inline-flex;align-items:center;border:1px solid #41513b;border-radius:7px;min-height:36px;padding:8px 12px;font:12px system-ui;color:#dfedc9;background:#202a1d;cursor:pointer}
.workbench-primary-actions .result-sendto{margin:0}
.workbench-primary-actions>.result-primary-actions{display:contents}
.audio-waveform{display:block;width:100%;height:100px;border-radius:10px;background:#111b17}
.audio-waveform-status{font-size:12px;color:var(--muted);margin:8px 0}
.audio-transcript-preview{max-height:170px;overflow:auto;font-size:13px;line-height:1.6;width:100%;margin-top:12px}
.audio-transcript-preview button{display:block;text-align:left;padding:8px;width:100%;border-bottom:1px solid var(--line)}
.audio-transcript-preview time{color:var(--accent);margin-right:10px;font-size:12px}
.audio-transcript-preview button[aria-current=true]{background:#29351c}
body[data-page=audio] .dialogue-library{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:10px;padding:2px 0 8px;margin:10px 0}
body[data-page=audio] .dialogue-library button{flex:0 0 180px;width:180px;max-width:180px;font-size:12px;padding:12px}
body[data-page=audio] .dialogue-library small{font-size:11px}
.audio-recent-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}
body[data-page=audio] .shot-strip{display:block}
body[data-page=audio] .tool-groups{display:none}
body[data-page=audio] .workbench-scroll>div>label{display:block;margin:14px 0}
.video-model-route{border:1px solid var(--line);border-radius:9px;margin:12px 0;padding:12px;font-size:13px}
.video-model-route select{font-size:13px}
.video-model-route p{font-size:12px;line-height:1.5;color:var(--muted)}
.video-model-route a{display:inline-block;margin:6px 8px 0 0;color:var(--accent);font-size:12px}
body[data-video-model-route]:not([data-video-model-route=wan]) #shot-form .workbench-scroll>*:not(.video-model-route),body[data-video-model-route]:not([data-video-model-route=wan]) #shot-form .workbench-footer,body[data-video-model-route]:not([data-video-model-route=wan]) .compact-workflow{display:none}
@media(min-width:961px){
 body[data-page=images] .studio-grid,body[data-page=create] .studio-grid,body[data-page=video-tools] .studio-grid,body[data-page=audio] .studio-grid{grid-template-columns:minmax(340px,380px) minmax(0,1fr);align-items:start;gap:22px}
 .workbench-form{display:flex;flex-direction:column;height:var(--workbench-height,600px);min-height:260px;position:sticky;top:var(--workbench-sticky-top,24px);overflow:hidden}
 body[data-workspace] .workbench-grid>.stage-column{position:sticky;top:var(--workbench-sticky-top,24px);max-height:var(--workbench-height,600px);overflow:auto;scrollbar-width:thin}
 body[data-workspace] .workbench-grid .stage{aspect-ratio:auto;height:clamp(190px,calc(var(--workbench-height,600px) - 260px),480px)}
 body[data-workspace] .workbench-grid .image-output{min-height:190px;height:clamp(190px,calc(var(--workbench-height,600px) - 235px),480px)}
 body[data-workspace] .workbench-grid .image-output img{max-height:100%;width:100%;height:100%;object-fit:contain}
 body[data-workspace] .workbench-grid .tool-output{min-height:190px;height:clamp(190px,calc(var(--workbench-height,600px) - 235px),480px)}
 body[data-workspace] .workbench-grid .tool-output video{max-height:100%;height:100%;object-fit:contain}
 body[data-workspace] .workbench-grid .dialogue-preview{min-height:190px}
 body[data-workspace] .workbench-grid .dialogue-preview video{max-height:280px}
 .workbench-grid .tip{display:none}
}
@media(max-width:960px){
 body[data-workspace] .workbench-grid{display:flex;flex-direction:column}
 body[data-workspace] .workbench-grid>.stage-column{order:0;position:static;max-height:none;width:100%}
 .workbench-form{width:100%;position:relative;height:auto;overflow:visible}
 .workbench-scroll{max-height:52dvh;overflow:auto}
 .workbench-footer{position:sticky;bottom:0;z-index:3;padding:12px 0}
 body[data-workspace] .workbench-grid .image-output{min-height:220px;max-height:360px}
 body[data-workspace] .workbench-grid .image-output img{max-height:360px}
}

body[data-page=audio] main>.page-heading{display:none}

.provider-recipe-picker{display:block;margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:12px}.provider-recipe-picker select{display:block;width:100%;margin-top:8px;color:var(--text)}
#shot-form[data-provider-recipe]:not([data-provider-recipe=""]) :is(label:has(#engine),label:has(#generation-type),#presets,label:has(#aspect),label:has(#length),#film-look){display:none}

#shot-form[data-provider-recipe]:not([data-provider-recipe=""]) :is(#engine,#generation-type,label[for="engine"],label[for="generation-type"],#camera-controls,#motion-note,.advanced:has(#look-controls),label:has(#generation-profile),label:has(#quality),.advanced:has(#seed) .micro,#add-to-batch){display:none}

#shot-form[data-provider-recipe]:not([data-provider-recipe=""]) :is(#presets,#camera-controls,#camera-sampling,#motion-note,#look-controls,#generation-profile,#end-reference-section,#add-to-batch){display:none!important}

#shot-form[data-provider-recipe]:not([data-provider-recipe=""]) button[data-view="queue"]{display:none!important}
