.wv-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:8px 0 25px}.wv-kicker{color:var(--studio-accent);font-size:10px;letter-spacing:2px;display:block;margin-bottom:10px}.wv-heading h2{font-size:26px;font-weight:600;letter-spacing:-.7px;margin-bottom:8px}.wv-heading p,.wv-toolbar p{font-size:12px;line-height:1.8;margin:0}.wv-status{flex-shrink:0;padding:6px 12px;border:1px solid var(--studio-line);border-radius:20px;color:var(--studio-muted);font-size:12px}.wv-status[data-running=true]{color:var(--studio-positive);background:#86cbb40d;border-color:#86cbb440}.wv-status[data-running=true]::before{content:"";display:inline-block;width:6px;height:6px;background:currentColor;border-radius:50%;margin-right:7px;animation:wv-breathe 2s ease-in-out infinite}
.wv-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.wv-stats>div{padding:15px 18px;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-field)}.wv-stats span{display:block;color:var(--studio-muted);font-size:11px}.wv-stats strong{display:block;font-size:26px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--studio-ink)}.wv-progress{height:3px;margin-top:18px;background:var(--studio-hover);border-radius:4px;overflow:hidden}.wv-progress>span{display:block;height:100%;background:var(--studio-positive);transition:width .5s ease}
.wv-message{font-size:12px;min-height:22px;margin:12px 0 20px;overflow-wrap:anywhere}.wv-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:20px}.wv-compose,.wv-options{border:1px solid var(--studio-line);background:var(--studio-field);padding:22px;border-radius:15px;min-width:0}.wv-layout h3,.wv-toolbar h3{font-size:15px;font-weight:600;margin:0 0 18px}.wv-section-title{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.wv-file{position:relative;cursor:pointer;color:var(--studio-accent);font-size:12px}.wv-file input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;padding:0}.wv-layout label{font-size:12px;color:var(--studio-muted);gap:7px;margin-bottom:14px}.wv-layout select{background:var(--studio-control);color:var(--studio-ink);font-size:12px;padding:9px 10px}.wv-compose textarea{min-height:270px;font-size:13px;line-height:1.9;background:var(--studio-panel);padding:15px}.wv-help{font-size:11px;line-height:1.8;margin:10px 0;color:var(--studio-muted)}.wv-source-actions{display:flex;gap:8px;flex-wrap:wrap}.wv-source-actions button{padding:7px 10px;font-size:11px}.wv-option-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wv-cost{font-size:12px;line-height:1.8;color:var(--studio-accent);padding:12px;border-radius:9px;background:#edb38c0a;border:1px solid #edb38c20}.wv-prepare{width:100%;margin-top:10px}.wv-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:30px 0 18px}.wv-toolbar h3{margin-bottom:5px}.wv-actions{display:flex;gap:8px;flex-wrap:wrap}.wv-actions button{font-size:12px;padding:9px 12px}.wv-jobs{display:flex;flex-direction:column;gap:10px}.wv-empty{padding:40px 20px;text-align:center;color:var(--studio-muted);font-size:13px;border:1px dashed var(--studio-line);border-radius:12px}.wv-job{display:flex;gap:15px;align-items:flex-start;padding:20px;border:1px solid var(--studio-line);border-radius:12px;background:var(--studio-field);flex-wrap:wrap}.wv-job-index{width:32px;line-height:32px;text-align:center;background:var(--studio-hover);border-radius:9px;font-size:12px;color:var(--studio-muted)}.wv-job-body{flex:1;min-width:180px}.wv-job-title{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}.wv-job-title>span{font-size:11px;color:var(--studio-muted)}.wv-job[data-state=succeeded] .wv-job-title>span{color:var(--studio-positive)}.wv-job[data-state=processing]{border-color:#edb38c40}.wv-job-body>p{font-size:12px;line-height:1.8;margin:7px 0;overflow-wrap:anywhere;white-space:pre-line}.wv-ref-list{display:flex;gap:6px;flex-wrap:wrap}.wv-ref-list span{font-size:10px;padding:2px 7px;border:1px solid var(--studio-line);border-radius:5px;color:var(--studio-muted)}.wv-job details{flex-basis:100%;padding-left:47px;font-size:11px;color:var(--studio-muted)}.wv-job summary{cursor:pointer}.wv-job pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:12px;line-height:1.9;color:var(--studio-ink)}.wv-job a{display:inline-block;margin-top:10px;font-size:12px;color:var(--studio-accent)}.wv-job .wv-job-error{color:#e3a58e}.wv-permission{padding:18px;border:1px solid #edb38c40;border-radius:12px;margin-bottom:20px;background:#edb38c08}.wv-permission p{font-size:12px}.wv-permission>div{display:flex;gap:10px}.wv-permission input{max-width:350px}.wv-permission button{white-space:nowrap}
html #videoPanel .primary{background:var(--studio-accent);border-color:var(--studio-accent);color:var(--accent-ink);font-weight:600}html #videoPanel button:disabled{opacity:.4;cursor:default}html #videoPanel input:disabled,html #videoPanel textarea:disabled,html #videoPanel select:disabled{opacity:.65;cursor:default}
@keyframes wv-breathe{50%{opacity:.35}}@media(max-width:1100px){.wv-layout{grid-template-columns:1fr}.wv-compose textarea{min-height:220px}}@media(max-width:600px){.wv-heading{flex-direction:column;gap:8px}.wv-heading h2{font-size:22px}.wv-stats{grid-template-columns:repeat(2,1fr)}.wv-compose,.wv-options{padding:15px}.wv-actions{width:100%}.wv-actions button{flex:1;white-space:nowrap}.wv-job{padding:14px;gap:10px}.wv-job details{padding-left:0}.wv-job-title{flex-wrap:wrap}.wv-file{white-space:nowrap}.wv-section-title h3{font-size:13px}.wv-permission>div{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.wv-status::before{animation:none!important}.wv-progress>span{transition:none}}
.wv-setup{margin:18px 0 24px}.wv-setup>summary{font-size:12px;color:var(--studio-muted);cursor:pointer;margin-bottom:16px}.wv-preview{width:min(900px,calc(100vw - 32px));padding:20px}.wv-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.wv-preview video{display:block;width:100%;max-height:65dvh;background:#090d0d;border-radius:10px}.wv-result-actions{display:flex;align-items:center;gap:16px;margin-top:12px}.wv-result-actions button{font-size:12px;padding:6px 10px}.wv-result-actions a{margin:0}.workflow-video-cover{display:grid;place-items:center;height:180px;background:var(--studio-field);border:1px solid var(--studio-line);border-radius:10px;color:var(--studio-accent);font-size:26px}#previewVideo{display:block;width:100%;max-height:72dvh;background:#090d0d}#previewVideo[hidden]{display:none}

#previewImage[hidden]{display:none}.workflow-video-cover{width:100%;min-width:180px}
html #videoPanel .wv-file input{opacity:0}
.wv-layout{align-items:start}
.sb-check{flex-direction:row;align-items:center}.sb-check input{width:auto;flex:none}.sb-rule-preview{font-size:12px;line-height:1.8;padding:12px;border:1px solid var(--studio-line);border-radius:9px;background:var(--studio-panel);overflow-wrap:anywhere}
.sb-step{margin-top:28px!important}.sb-modes{display:flex;gap:22px;margin:12px 0}.sb-modes label{display:flex;flex-direction:row;align-items:center;gap:8px}.sb-modes input,.sb-missing-row input{width:auto}.sb-shot{border-top:1px solid var(--studio-line);padding:15px 0}.sb-shot summary{cursor:pointer;font-size:13px;margin-bottom:15px}.sb-shot summary span{font-size:11px;color:var(--studio-muted);margin-left:10px}.sb-shot textarea{min-height:130px}.sb-assets{margin:20px 0}.sb-assets summary{cursor:pointer}.sb-asset-row{margin-top:15px}.sb-missing{width:min(650px,calc(100vw - 24px))}.sb-missing p{font-size:13px}.sb-missing-row{display:grid;grid-template-columns:20px 1fr;align-items:center;margin:18px 0}.sb-missing-row small{grid-column:2;color:var(--studio-muted)}.sb-missing .actions{flex-wrap:wrap}.sb-missing .wv-option-grid{margin-top:24px}.sb-shots{max-height:650px;overflow:auto;padding-right:6px}.wv-source-actions a{font-size:11px;align-self:center;color:var(--studio-accent)}

/* Compact task bar: keep the queue scannable while preserving a real video preview. */
.wv-actions{align-items:center}
.wv-sort{display:flex;align-items:center;gap:7px;color:var(--studio-muted);font-size:11px;white-space:nowrap}
.wv-sort select{background:var(--studio-control);color:var(--studio-ink);border:1px solid var(--studio-line);border-radius:7px;padding:7px 8px;font-size:11px}
.wv-jobs{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,430px),1fr));gap:10px}
.wv-empty{grid-column:1/-1}
.wv-job{display:grid;grid-template-columns:32px 112px minmax(0,1fr);gap:12px;align-items:start;padding:12px;min-width:0}
.wv-job-body{min-width:0}
.wv-job-title>span{white-space:nowrap}
.wv-job-body>p{line-height:1.65;margin:6px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.wv-job details{grid-column:2/-1;font-size:11px;padding-left:0}
.wv-job a{font-size:11px;margin-top:0}
.wv-result-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:8px}
.wv-result-actions button{font-size:11px;padding:5px 8px}
.wv-prompt-editor{width:100%;min-height:125px;margin:7px 0;font-size:12px;line-height:1.7;background:var(--studio-panel);border:1px solid var(--studio-line);border-radius:8px;padding:9px;color:var(--studio-ink)}
.wv-thumb-button,.wv-thumb-placeholder{position:relative;width:112px;height:70px;display:grid;place-items:center;border:1px solid var(--studio-line);border-radius:9px;overflow:hidden;background:var(--studio-panel);padding:0}
.wv-thumb-button{cursor:pointer}.wv-thumb-button:hover{border-color:var(--studio-accent)}
.wv-thumb{width:100%;height:100%;display:block;object-fit:cover}.wv-thumb-play{position:absolute;inset:auto 7px 6px auto;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#111b;color:#fff;font-size:10px}
.wv-thumb-placeholder{color:var(--studio-muted);text-align:center;line-height:1.15}.wv-thumb-placeholder span{font-size:17px;color:var(--studio-accent)}.wv-thumb-placeholder small{font-size:9px}
/* Keep results above delivery instructions, with settings available on demand. */
#videoPanel [data-stage=video]{display:flex;flex-direction:column}
#videoPanel [data-stage=video] .wv-setup{order:1;margin:8px 0}
#videoPanel [data-stage=video] .wv-setup>summary{display:list-item;padding:10px 0;margin:0}
#videoPanel [data-stage=video] .wv-toolbar{order:2;margin:14px 0 12px}
#videoPanel [data-stage=video] .wv-jobs{order:3}
#videoPanel [data-stage=video] .wv-edit-handoff{order:4}

#videoPanel [data-stage=video] .wv-stats>div{display:flex;align-items:center;justify-content:space-between;padding:9px 14px}
#videoPanel [data-stage=video] .wv-stats strong{font-size:20px}
#videoPanel [data-stage=video] .wv-message{margin:8px 0}
#videoPanel [data-stage=video] .wv-options{max-width:none;padding:16px}
.wv-edit-handoff label{flex-direction:row}
.wv-generation-layout,.wv-queue {display:contents}
#videoPanel [data-stage=video] .wv-generation-layout {
  order:1;display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:14px;align-items:stretch;
}
#videoPanel [data-stage=video] .wv-setup {margin:0;min-width:0}
#videoPanel [data-stage=video] .wv-setup .wv-layout,
#videoPanel [data-stage=video] .wv-setup .wv-options {height:100%;box-sizing:border-box}
#videoPanel [data-stage=video] .wv-setup>summary {display:none}
#videoPanel [data-stage=video] .wv-queue {
  order:2;display:flex;flex-direction:column;gap:12px;min-width:0;min-height:440px;
  padding:16px;border:1px solid var(--studio-line);border-radius:15px;background:var(--studio-field);
}
#videoPanel [data-stage=video] .wv-toolbar {order:0;margin:0;align-items:flex-start;gap:10px}
#videoPanel [data-stage=video] .wv-toolbar>div:first-child {min-width:0}
#videoPanel [data-stage=video] .wv-toolbar p {font-size:11px;line-height:1.6}
#videoPanel [data-stage=video] .wv-actions {gap:6px}
#videoPanel [data-stage=video] .wv-actions button {padding:6px 8px;font-size:11px}
#videoPanel [data-stage=video] .wv-jobs {order:1;grid-template-columns:minmax(0,1fr);align-content:start}
#videoPanel [data-stage=video] .wv-empty {padding:36px 14px;font-size:12px}
#videoPanel [data-stage=video] .wv-options {padding:16px}
#videoPanel [data-stage=video] .wv-section-title {align-items:center;margin-bottom:12px}
#videoPanel [data-stage=video] .wv-section-title h3 {margin:0;font-size:14px}
#videoPanel [data-stage=video] .wv-section-title button {padding:6px 8px;font-size:11px;white-space:nowrap}
#videoPanel [data-stage=video] .wv-option-grid {gap:10px}
#videoPanel [data-stage=video] .wv-job {grid-template-columns:26px 88px minmax(0,1fr);gap:10px}
#videoPanel [data-stage=video] .wv-job-index {width:26px;line-height:26px}
#videoPanel [data-stage=video] :is(.wv-thumb-button,.wv-thumb-placeholder) {width:88px;height:88px;aspect-ratio:1}
#videoPanel [data-stage=video] .wv-thumb {object-fit:contain}
@media(max-width:959px) {
  #videoPanel [data-stage=video] .wv-generation-layout {grid-template-columns:minmax(0,1fr)}
  #videoPanel [data-stage=video] .wv-setup .wv-layout,
  #videoPanel [data-stage=video] .wv-setup .wv-options {height:auto}
  #videoPanel [data-stage=video] .wv-queue {min-height:280px}
}
@media(max-width:600px){.wv-sort{order:-1;width:100%}.wv-sort select{flex:1}.wv-job{grid-template-columns:30px 96px minmax(0,1fr);padding:10px;gap:8px}.wv-thumb-button,.wv-thumb-placeholder{width:96px;height:62px}.wv-job details{grid-column:1/-1}}
