.batch-main{min-width:0;background:#f6f7f9}.batch-content{display:grid;gap:18px;padding-bottom:64px}.batch-header{align-items:center}.batch-header>div:first-child{max-width:720px}.batch-header h1{margin-bottom:8px}.batch-header>div:first-child>span{color:#6f7580;font-size:14px}.batch-summary{display:grid;grid-template-columns:auto auto 1px auto auto;align-items:center;gap:9px;padding:14px 18px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.batch-summary b{font-size:22px}.batch-summary span{color:#747a84;font-size:12px}.batch-summary i{width:1px;height:28px;background:#e4e6ea;margin:0 8px}
.batch-flow{display:flex;align-items:center;gap:12px;padding:13px 18px;border:1px solid #e6e8ec;border-radius:14px;background:#fff;color:#989da6;font-size:12px;font-weight:700}.batch-flow span.active{color:#e64034}.batch-flow i{flex:1;height:1px;background:#e4e6eb}
.batch-panel,.batch-results-section{border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(24,30,40,.035)}.batch-panel{padding:22px}.batch-panel-heading,.batch-results-heading,.batch-task-heading,.batch-subheading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.batch-panel-heading small,.batch-results-heading small{display:block;color:#e64639;font-size:10px;font-weight:800;letter-spacing:.14em}.batch-panel-heading h2,.batch-results-heading h2{margin:5px 0 6px;font-size:20px}.batch-panel-heading p{margin:0;color:#7b808a;font-size:13px}.batch-primary,.batch-generate{border:0;border-radius:11px;background:#17191d;color:#fff;padding:12px 17px;font-weight:700;cursor:pointer;white-space:nowrap}.batch-primary:hover,.batch-generate:hover{background:#e64034}.batch-primary:disabled,.batch-generate:disabled{cursor:not-allowed;background:#b7bbc2}.batch-lock-note{padding:7px 10px;border-radius:999px;background:#f1f3f5;color:#6d737d;font-size:11px;font-weight:700}
#batchLinksInput{box-sizing:border-box;width:100%;min-height:124px;margin-top:18px;padding:14px 16px;resize:vertical;border:1px solid #dfe2e7;border-radius:12px;background:#fafbfc;color:#24272d;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;outline:none}#batchLinksInput:focus{border-color:#eb746b;background:#fff;box-shadow:0 0 0 3px rgba(230,64,52,.08)}.batch-link-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:9px;color:#7c828c;font-size:12px}.batch-link-meta button{border:0;background:none;color:#777d87;cursor:pointer}.batch-link-meta button:hover{color:#e64034}.batch-cloud-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.batch-cloud-actions span{color:#5b6472;margin-right:4px}.batch-cloud-actions button{border:1px solid #d8dde6;background:#fff;border-radius:8px;padding:7px 11px}.batch-cloud-actions button:disabled{opacity:.45;cursor:not-allowed}.batch-pagination{display:flex;justify-content:center;align-items:center;gap:14px;padding:18px 0 4px;color:#667085;font-size:13px}.batch-pagination button{border:1px solid #d8dde6;background:#fff;color:#273142;border-radius:8px;padding:7px 11px;cursor:pointer}.batch-pagination button:disabled{opacity:.45;cursor:not-allowed}
.batch-task-name{display:grid;grid-template-columns:auto minmax(220px,420px);align-items:center;justify-content:start;gap:12px;margin-top:18px;color:#686e77;font-size:11px;font-weight:800}.batch-task-name input{box-sizing:border-box;width:100%;height:40px;padding:0 12px;border:1px solid #dde1e6;border-radius:10px;background:#fafbfc;color:#25282e;outline:none}.batch-task-name input:focus{border-color:#eb746b;background:#fff;box-shadow:0 0 0 3px rgba(230,64,52,.07)}
.batch-assets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:18px}.batch-assets label{position:relative;display:flex;min-height:184px;box-sizing:border-box;flex-direction:column;justify-content:flex-start;gap:7px;padding:10px;border:1px dashed #d8dce2;border-radius:13px;background:#fafbfc;cursor:pointer;overflow:hidden}.batch-assets label:hover{border-color:#ee8179;background:#fff}.batch-assets label.is-uploading{border-color:#e64034;background:#fff7f6}.batch-assets label.is-ready{border-style:solid;border-color:#96c9a5;background:#f5fbf6}.batch-assets label.is-failed{border-color:#e64034;background:#fff6f5}.batch-assets label span{font-size:12px;font-weight:800}.batch-assets label span em{color:#e64034;font-style:normal}.batch-assets label b{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.batch-assets label small{overflow:hidden;color:#858b95;font-size:10px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}.batch-asset-preview{display:block;width:100%;height:108px;flex:none;object-fit:contain;border:1px solid #e5e8ec;border-radius:9px;background:#f0f2f4}.batch-assets label .batch-remove-asset{position:absolute;top:7px;right:7px;z-index:2;width:24px;height:24px;border:0;border-radius:50%;background:#fff;color:#777;box-shadow:0 2px 8px rgba(0,0,0,.1);cursor:pointer}.batch-config-panel .reference-image-order-note{margin:10px 0 0;padding:9px 11px;border:1px solid #e0e5d7;border-radius:9px;background:#f8faf4;color:#666e60;font-size:10px;line-height:1.5}.batch-settings{display:grid;grid-template-columns:1fr 1fr 1fr 2fr;gap:11px;margin-top:14px}.batch-settings label{display:grid;gap:7px;color:#686e77;font-size:11px;font-weight:700}.batch-settings select,.batch-settings input{box-sizing:border-box;width:100%;height:40px;border:1px solid #dde1e6;border-radius:10px;background:#fafbfc;padding:0 11px;color:#262a31;outline:none}.batch-settings select:focus,.batch-settings input:focus{border-color:#eb746b;background:#fff}
.batch-results-section{padding:22px}.batch-results-heading{align-items:center;margin-bottom:15px}.batch-results-actions{display:flex;align-items:center;gap:8px}.batch-export,.batch-clear-results{padding:11px 14px;border:1px solid #d8dce3;border-radius:10px;background:#fff;color:#4f5661;font-weight:700;cursor:pointer}.batch-export:hover{border-color:#e64034;color:#e64034}.batch-clear-results{border-color:#f0d7d4;color:#b63a31}.batch-clear-results:hover{border-color:#d94c42;background:#fff8f7;color:#9f2f28}.batch-export:disabled,.batch-clear-results:disabled{opacity:.45;cursor:not-allowed}.batch-generate span{margin-left:5px;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.15)}.batch-task-list{display:grid;gap:12px}.batch-empty{display:grid;justify-items:center;padding:52px 20px;border:1px dashed #dfe2e7;border-radius:14px;color:#838994;text-align:center}.batch-empty span{font-size:26px}.batch-empty b{margin-top:8px;color:#40444b}.batch-empty p{max-width:540px;margin:7px 0 0;font-size:12px;line-height:1.6}
.batch-task{border:1px solid #e2e5e9;border-radius:15px;overflow:hidden}.batch-task.is-running{border-color:#f0b5b0}.batch-task.is-failed{border-color:#efb0aa}.batch-task-heading{align-items:center;padding:14px 16px;background:#fafbfc}.batch-task-index{display:grid;place-items:center;min-width:34px;height:34px;border-radius:10px;background:#17191d;color:#fff;font-weight:800}.batch-task-title{min-width:0;flex:1}.batch-task-title b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.batch-task-title small{display:block;margin-top:4px;color:#888e97;font-size:10px}.batch-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#eef0f2;color:#686e77;font-size:10px;font-weight:800}.batch-status.running{background:#fff0ee;color:#dc4237}.batch-status.success{background:#edf8ef;color:#34884c}.batch-status.failed{background:#fff0ee;color:#cf392f}.batch-task-progress{height:3px;background:#eceef1}.batch-task-progress i{display:block;height:100%;width:var(--progress,0%);background:#e64034;transition:width .35s}.batch-task-actions{display:flex;gap:7px}.batch-task-actions button,.batch-copy,.batch-reset{border:1px solid #dadee4;border-radius:8px;background:#fff;padding:7px 10px;color:#626873;font-size:11px;cursor:pointer}.batch-task-actions button:hover,.batch-copy:hover,.batch-reset:hover{border-color:#e64034;color:#e64034}.batch-error{margin:13px 16px;padding:11px 13px;border-radius:10px;background:#fff1ef;color:#b5352c;font-size:12px;line-height:1.55}
.batch-task-body{padding:16px}.batch-task-body details{border:1px solid #e7e9ed;border-radius:11px;background:#fff}.batch-task-body summary{padding:11px 13px;cursor:pointer;color:#444950;font-size:12px;font-weight:800}.batch-analysis{display:grid;gap:12px;padding:0 13px 13px}.batch-strategy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.batch-strategy-grid div,.batch-subject-grid div{padding:10px;border-radius:9px;background:#f7f8fa}.batch-strategy-grid span,.batch-subject-grid span{display:block;color:#8a9099;font-size:9px}.batch-strategy-grid b,.batch-subject-grid b{display:block;margin-top:4px;font-size:11px;line-height:1.55}.batch-subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.batch-shot-scroll{overflow:auto;max-height:290px;border:1px solid #e7e9ed;border-radius:10px}.batch-shot-table{width:100%;min-width:920px;border-collapse:collapse;font-size:10px}.batch-shot-table th,.batch-shot-table td{padding:8px 9px;border-bottom:1px solid #eceef1;text-align:left;vertical-align:top;line-height:1.5}.batch-shot-table th{position:sticky;top:0;background:#f7f8fa;color:#6f7580}.batch-shot-table td{max-width:180px}.batch-subheading{align-items:center;margin:17px 0 9px}.batch-subheading h3{margin:0;font-size:14px}.batch-subheading span{color:#848a94;font-size:10px}
.batch-queue-overview{margin-bottom:14px;border:1px solid #e3e6eb;border-radius:13px;background:#fafbfc}.batch-queue-overview>summary{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;cursor:pointer;list-style:none;font-size:12px}.batch-queue-overview>summary::-webkit-details-marker{display:none}.batch-queue-overview>summary span{color:#747b86;font-weight:600}.batch-queue-list{display:grid;max-height:300px;overflow:auto;border-top:1px solid #e7e9ed}.batch-queue-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:9px 13px;border-bottom:1px solid #eceef1}.batch-queue-row>span{color:#8a9099;font-size:10px;font-weight:800}.batch-queue-row>div{min-width:0}.batch-queue-row>div b,.batch-queue-row>div small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.batch-queue-row>div b{font-size:11px}.batch-queue-row>div small{margin-top:3px;color:#9297a0;font-size:9px}.batch-queue-row>button{border:1px solid #dadee4;border-radius:7px;background:#fff;padding:6px 9px;color:#d84338;cursor:pointer}
.batch-stage-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px}.batch-stage-tabs button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border:1px solid #e1e4e9;border-radius:11px;background:#fafbfc;color:#5f6671;cursor:pointer}.batch-stage-tabs button.active{border-color:#202329;background:#202329;color:#fff}.batch-stage-tabs button b{font-size:12px}.batch-stage-tabs button span{display:grid;place-items:center;min-width:23px;height:23px;border-radius:999px;background:rgba(127,133,144,.14);font-size:10px}.batch-stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px;padding:10px 12px;border-radius:10px;background:#f6f7f9}.batch-stage-toolbar>div b,.batch-stage-toolbar>div span{display:block}.batch-stage-toolbar>div b{font-size:13px}.batch-stage-toolbar>div span{margin-top:3px;color:#818792;font-size:10px}.batch-stage-toolbar>button{border:1px solid #d8dde4;border-radius:8px;background:#fff;padding:7px 10px;color:#484e57;font-size:11px;cursor:pointer}.batch-structure-list{display:grid;gap:10px}.batch-structure-row{display:grid;grid-template-columns:42px minmax(0,1.45fr) minmax(260px,.75fr);gap:12px;align-items:stretch;padding:12px;border:1px solid #e2e5e9;border-radius:13px;background:#fff}.batch-structure-row.is-selected{border-color:#ee8a82;box-shadow:0 0 0 2px rgba(230,64,52,.06)}.batch-segment-select{display:flex;align-items:flex-start;justify-content:center;gap:5px;padding-top:5px}.batch-segment-select input{accent-color:#e64034}.batch-segment-select span{color:#8a9099;font-size:9px;font-weight:800}.batch-primary-prompt{min-width:0}.batch-structure-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:8px}.batch-structure-title b,.batch-structure-title small{display:block}.batch-structure-title b{font-size:12px}.batch-structure-title small{margin-top:3px;color:#858b95;font-size:9px}.batch-structure-title>div:last-child{display:flex;gap:5px}.batch-primary-prompt textarea{box-sizing:border-box;width:100%;height:128px;resize:vertical;border:1px solid #dfe2e7;border-radius:9px;background:#fbfbfc;padding:10px 11px;color:#343840;font:11px/1.55 inherit;outline:none}.batch-primary-prompt textarea:focus{border-color:#e86b61;background:#fff}.batch-video-analysis{min-width:0;padding:10px 11px;border-radius:10px;background:#f6f7f9}.batch-video-analysis>b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.batch-video-analysis>a{display:inline-block;margin-top:4px;color:#d74439;font-size:9px;text-decoration:none}.batch-video-analysis dl{display:grid;gap:7px;margin:10px 0 0}.batch-video-analysis dl div{min-width:0}.batch-video-analysis dt{color:#8a9099;font-size:8px}.batch-video-analysis dd{display:-webkit-box;overflow:hidden;margin:2px 0 0;color:#4f555e;font-size:10px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.batch-inline-generation{margin-top:9px;padding:7px 8px;border-radius:7px;background:#fff;color:#717782;font-size:9px}.batch-inline-generation.success{background:#edf8ef}.batch-inline-generation a{color:#288145;text-decoration:none}.batch-empty.compact{padding:28px 16px}
.batch-strategy-filter{display:grid;grid-template-columns:minmax(220px,1fr) 180px 200px auto;align-items:end;gap:10px;margin:0 0 10px;padding:11px 12px;border:1px solid #e4e7eb;border-radius:11px;background:#fbfbfc}.batch-strategy-filter>div b,.batch-strategy-filter>div span{display:block}.batch-strategy-filter>div b{font-size:12px}.batch-strategy-filter>div span{margin-top:3px;color:#858b95;font-size:9px}.batch-strategy-filter label{display:grid;gap:5px;color:#7d838d;font-size:9px}.batch-strategy-filter select{height:34px;padding:0 9px;border:1px solid #dadee4;border-radius:8px;background:#fff;color:#41464e}.batch-strategy-filter button{height:34px;padding:0 11px;border:1px solid #dadee4;border-radius:8px;background:#fff;color:#5b626c;cursor:pointer}.batch-strategy-filter button:disabled{opacity:.4;cursor:not-allowed}.batch-analysis-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.batch-analysis-title b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.batch-analysis-title a{flex:none;color:#d74439;font-size:9px;text-decoration:none}.batch-content-strategy-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px;max-height:270px;overflow:auto}.batch-content-strategy-grid>div{min-width:0;padding:7px 8px;border-radius:7px;background:#fff}.batch-content-strategy-grid span,.batch-content-strategy-grid b{display:block}.batch-content-strategy-grid span{color:#8a9099;font-size:8px}.batch-content-strategy-grid b{margin-top:3px;color:#4b515a;font-size:9px;line-height:1.45;font-weight:600}
.batch-segments{display:grid;gap:8px}.batch-segment{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border:1px solid #e5e7eb;border-radius:11px;background:#fbfbfc}.batch-segment-meta b{display:block;font-size:12px}.batch-segment-meta small{display:block;margin-top:4px;color:#858b95;font-size:9px}.batch-segment textarea{box-sizing:border-box;width:100%;height:74px;resize:vertical;border:1px solid #dfe2e7;border-radius:9px;background:#fff;padding:9px 10px;font:11px/1.55 inherit;outline:none}.batch-segment textarea:focus{border-color:#e86b61}.batch-segment-actions{display:grid;gap:6px}.batch-segment-actions button{white-space:nowrap}.batch-generated{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.batch-generated article{padding:10px;border-radius:11px;background:#f5f6f8}.batch-generated video{display:block;width:100%;aspect-ratio:9/16;max-height:240px;border-radius:8px;background:#111}.batch-generated b,.batch-generated small{display:block;margin-top:7px}.batch-generated small{color:#858b95;font-size:9px}.batch-generation-state{margin-top:12px;padding:10px 12px;border-radius:9px;background:#f4f5f7;color:#626872;font-size:11px}
@media(max-width:1100px){.batch-assets{grid-template-columns:repeat(3,1fr)}.batch-settings{grid-template-columns:repeat(2,1fr)}.batch-strategy-grid{grid-template-columns:repeat(2,1fr)}.batch-structure-row{grid-template-columns:36px minmax(0,1fr)}.batch-video-analysis{grid-column:2}.batch-strategy-filter{grid-template-columns:1fr 1fr 1fr}.batch-strategy-filter>div{grid-column:1/-1}}
@media(max-width:760px){.batch-header,.batch-panel-heading,.batch-results-heading{align-items:stretch;flex-direction:column}.batch-results-actions{align-items:stretch;flex-direction:column}.batch-summary{grid-template-columns:auto auto 1px auto auto}.batch-flow{overflow:auto}.batch-flow i{min-width:24px}.batch-assets,.batch-settings,.batch-strategy-grid,.batch-subject-grid,.batch-generated,.batch-stage-tabs,.batch-strategy-filter,.batch-content-strategy-grid{grid-template-columns:1fr}.batch-strategy-filter>div{grid-column:auto}.batch-segment{grid-template-columns:1fr}.batch-segment-actions{grid-template-columns:repeat(2,max-content)}.batch-lock-note{align-self:flex-start}.batch-task-name{grid-template-columns:1fr}.batch-stage-toolbar{align-items:flex-start;flex-direction:column}.batch-structure-row{grid-template-columns:1fr}.batch-segment-select{justify-content:flex-start}.batch-video-analysis{grid-column:auto}.batch-queue-row{grid-template-columns:26px minmax(0,1fr)}.batch-queue-row>.batch-status,.batch-queue-row>button{grid-column:2;justify-self:start}}
.batch-analysis-location-hint{display:flex;align-items:center;gap:8px;margin:10px 0 0;padding:9px 11px;border:1px solid #e3e7ec;border-radius:9px;background:#f8fafc;color:#747c87;font-size:11px;line-height:1.5}
.batch-analysis-location-hint:before{content:"↓";display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#eef1f4;color:#e64034;font-weight:800}
.batch-analysis-location-hint.is-active{border-color:#f0b5b0;background:#fff7f6;color:#a63831}
.batch-analysis-location-hint.is-active:before{background:#e64034;color:#fff}
.batch-duplicate-notice{margin-top:9px;padding:10px 12px;border:1px solid #f0b5b0;border-radius:10px;background:#fff7f6;color:#8f3a34;font-size:10px;line-height:1.5}
.batch-duplicate-notice>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.batch-duplicate-notice>div b{font-size:11px}
.batch-duplicate-notice>div span{color:#aa6b65}
.batch-duplicate-notice ul{display:grid;gap:5px;margin:8px 0 0;padding:0;list-style:none}
.batch-duplicate-notice li{display:flex;align-items:center;gap:7px;min-width:0}
.batch-duplicate-notice code{overflow:hidden;color:#6e4b48;text-overflow:ellipsis;white-space:nowrap;font:10px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace}
.batch-duplicate-badge{flex:none;padding:2px 6px;border-radius:999px;background:#f3d3d0;color:#a6362f;font-size:9px;font-weight:800}
.batch-duplicate-more{display:block;margin-top:7px;color:#aa6b65;font-size:9px}
.batch-results-actions .batch-generate{background:#d94136;color:#fff}
.batch-results-actions .batch-generate:hover{background:#b92d25}

/* Compact batch workspace: keep the task name beside the 01 link input. */
.batch-content{gap:12px;padding-bottom:40px}
.batch-panel,.batch-results-section{border-radius:12px}
.batch-panel{padding:16px}
.batch-panel-heading{gap:12px}
.batch-link-heading{align-items:center}
.batch-link-heading>div{min-width:0}
.batch-link-heading .batch-task-inline{display:flex;align-items:center;flex:0 0 auto;gap:8px;margin:0;color:#686e77;font-size:11px;font-weight:800;white-space:nowrap}
.batch-task-inline input{box-sizing:border-box;width:230px;height:34px;padding:0 10px;border:1px solid #dde1e6;border-radius:8px;background:#fafbfc;color:#25282e;font:inherit;font-weight:400;outline:none}
.batch-task-inline input:focus{border-color:#eb746b;background:#fff;box-shadow:0 0 0 3px rgba(230,64,52,.07)}
.batch-panel-heading h2,.batch-results-heading h2{margin:3px 0 4px;font-size:17px}
.batch-panel-heading p{font-size:11px}
#batchLinksInput{min-height:96px;margin-top:12px;padding:11px 12px;font-size:12px}
.batch-link-meta{margin-top:7px}
.batch-analysis-location-hint{margin-top:7px;padding:7px 9px;font-size:10px}
.batch-results-section{padding:16px}
.batch-results-heading{margin-bottom:10px}
.batch-assets{margin-top:12px}
.batch-settings{margin-top:10px}
@media(max-width:760px){
  .batch-link-heading .batch-task-inline{width:100%;white-space:normal}
  .batch-task-inline input{width:min(100%,360px);flex:1}
}

/* Keep the editable prompt column visually level with the analysis column. */
.batch-structure-row{align-items:stretch}
.batch-primary-prompt{display:flex;min-height:100%;flex-direction:column}
.batch-primary-prompt textarea{flex:1;height:auto;min-height:250px}
.batch-video-analysis{height:100%;box-sizing:border-box}
.batch-inline-generation-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.batch-inline-generation-actions button,.batch-generated-preview{border:1px solid #d7a09a;border-radius:7px;background:#fff;color:#bd3c34;padding:6px 9px;font-size:10px;font-weight:800;cursor:pointer}
.batch-inline-generation-actions button:hover,.batch-generated-preview:hover{border-color:#d94136;background:#fff6f5;color:#a82d27}
.batch-inline-generation-actions a{margin-top:0!important}
.batch-generated-preview{display:block;margin-top:8px}
.batch-video-preview-dialog{width:min(560px,calc(100% - 28px));max-height:calc(100vh - 28px);padding:0;color:#30372f;border:0;border-radius:10px;background:#f8faf6;box-shadow:0 25px 90px rgba(13,22,14,.36);overflow:hidden}
.batch-video-preview-dialog::backdrop{background:rgba(20,27,20,.62);backdrop-filter:blur(4px)}
.batch-video-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 20px 13px;border-bottom:1px solid #e5eae1}
.batch-video-preview-heading h2{margin:4px 0 0;color:#30372f;font-size:17px}
.batch-video-preview-heading>button{width:28px;height:28px;color:#748071;border:0;background:transparent;font-size:24px;line-height:20px;cursor:pointer}
.batch-video-preview-stage{display:grid;place-items:center;min-height:260px;max-height:72vh;padding:18px;background:radial-gradient(circle at 50% 12%,#536655,#202a22 74%)}
.batch-video-preview-stage video{display:block;width:auto;max-width:100%;height:auto;max-height:64vh;border-radius:5px;background:#111;box-shadow:0 14px 34px rgba(0,0,0,.3)}
.batch-video-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#fff}
.batch-video-preview-actions span{color:#89938a;font:9px "DM Mono",monospace}
.batch-video-preview-download{height:30px;padding:0 12px;border:1px solid #d7e0d2;border-radius:4px;background:#efffc8;color:#2f461d;font-size:10px;font-weight:700;cursor:pointer}
.batch-video-preview-download:hover{background:#fff}
@media(max-width:760px){
  .batch-primary-prompt textarea{min-height:210px}
  .batch-video-preview-dialog{width:calc(100% - 20px)}
  .batch-video-preview-stage{min-height:230px;padding:12px}
  .batch-video-preview-stage video{max-height:63vh}
}

.batch-generated article{position:relative}
.batch-generated article.is-downloadable{border:1px solid #dceadf;background:#f7fbf8}
.batch-generated-select{display:flex;align-items:center;gap:5px;margin-bottom:7px;color:#4d7656;font-size:10px;font-weight:700;cursor:pointer}
.batch-generated-select input{margin:0;accent-color:#45a25e}
.batch-download{padding:11px 14px;border:1px solid #cfe3d3;border-radius:10px;background:#f5fbf6;color:#39704a;font-weight:700;cursor:pointer}
.batch-download:hover{border-color:#7fba8d;background:#edf8ef;color:#2b633c}
.batch-download:disabled{opacity:.45;cursor:not-allowed}
.batch-download-mode{display:flex;align-items:center;gap:6px;padding:0 2px;color:#68717c;font-size:10px;font-weight:700;white-space:nowrap}
.batch-download-mode select{height:34px;padding:0 8px;border:1px solid #d8dde4;border-radius:8px;background:#fff;color:#454c56;font:inherit;font-weight:600}
