/* Auto-run workspace: shared site surfaces, controls and task services. */
.batch-draft-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:-8px 0 14px;min-height:28px}.batch-draft-bar>div{display:flex;gap:8px}.batch-draft-bar button,.batch-draft-confirm button{font-size:12px;padding:5px 10px}.batch-draft-error{color:var(--error-text)}.batch-draft-confirm{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;margin-bottom:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface-soft);font-size:12px}.batch-draft-confirm span{flex:1;min-width:180px}
.batch-workspace{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px}
.batch-heading h2{font-size:23px;margin:0}.batch-heading p{margin:5px 0 22px;color:var(--muted);font-size:12px}
.batch-file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;border:1px solid var(--border);border-radius:10px;margin-bottom:22px}
.batch-file-row>div{min-width:0;overflow-wrap:anywhere}.batch-file-row strong{display:block;font-size:13px}.batch-file-row .muted{display:block;font-size:11px;margin-top:4px}.batch-file-row button{flex:none;font-size:12px}
.batch-fields{display:grid;gap:12px}.batch-parameter-fields{grid-template-columns:2fr 1fr 1fr 1fr}.batch-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);min-width:0}
.batch-fields input,.batch-fields select{width:100%;min-width:0;min-height:38px;font-size:12px;color:var(--text)}
.batch-advanced{margin-top:15px;font-size:12px}.batch-advanced>summary,.batch-fixed-details>summary{cursor:pointer;color:var(--muted)}.batch-advanced-fields{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px}
.batch-option-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:15px 0}.batch-option-foot .muted{font-size:11px}
.batch-help{font-size:11px;line-height:1.7;color:var(--muted);margin:9px 0;overflow-wrap:anywhere}.batch-fixed-details{margin-top:14px}.batch-fixed-details p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto;color:var(--muted)}
.batch-section{margin-top:21px;padding-top:20px;border-top:1px solid var(--border)}.batch-section-heading,.batch-title-row,.batch-inline{display:flex;align-items:center;gap:8px}.batch-section-heading{justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.batch-title-row h3{font-size:14px;margin:0}.batch-title-row #batchToggleBtn{display:inline-flex;align-items:center;gap:9px;min-height:36px;padding:7px 12px;border:1px solid var(--border);border-radius:8px;background:var(--field-bg);color:var(--text);font-size:12px;font-weight:500;white-space:nowrap}.batch-title-row #batchToggleBtn::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s}.batch-title-row #batchToggleBtn[aria-expanded=true]::after{transform:translateY(2px) rotate(225deg)}.batch-title-row #batchToggleBtn:hover{background:var(--surface-soft);border-color:var(--muted)}.batch-title-row #batchToggleBtn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(pointer:coarse){.batch-title-row #batchToggleBtn{min-height:44px}}@media(prefers-reduced-motion:reduce){.batch-title-row #batchToggleBtn::after{transition:none}}.batch-summary{font-size:12px;color:var(--muted);margin:7px 0 14px}
.batch-range{padding:15px 16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;font-size:12px;margin-bottom:5px}
.batch-range-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:12px}.batch-range-heading strong{font-size:13px;font-weight:600}.batch-range-heading span{color:var(--muted);font-size:11px}
.batch-range-fields{display:grid;grid-template-columns:minmax(120px,1.3fr) minmax(85px,1fr) auto;align-items:end;gap:10px}.batch-range-fields label{display:flex;flex-direction:column;gap:7px;color:var(--muted);min-width:0}.batch-range-fields select,.batch-range-fields input{width:100%;min-width:0;min-height:38px;font-size:12px;color:var(--text)}.batch-range-fields button{min-height:38px;white-space:nowrap;background:var(--field-bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:12px}.batch-range-fields button:hover{border-color:var(--muted)}.batch-range-summary{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.batch-asset-picker{position:fixed;z-index:1200;width:270px;max-width:calc(100vw - 16px);max-height:240px;font-size:12px}.batch-asset-picker[hidden],.batch-asset-option[hidden],.batch-asset-empty[hidden]{display:none!important}.batch-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 5px 5px;color:var(--muted);font-size:11px}.batch-picker-heading strong{font-weight:500}.batch-picker-heading button{font-size:16px;line-height:1;padding:3px;min-width:22px;min-height:22px;border:0;background:transparent}.batch-asset-option{width:100%;min-width:0;text-align:left;border:0;background:transparent;color:var(--text)}.batch-asset-option:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;background:var(--hover-bg)}.batch-asset-option img{flex:none}.batch-asset-icon{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:7px;background:var(--surface-soft);font-size:20px}.batch-asset-info{display:block;flex:1;min-width:0}.batch-asset-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:500}.batch-asset-info small{display:block;font-size:10px;margin-top:3px;color:var(--muted)}.batch-asset-picker .batch-help{padding:4px 7px}.batch-reference-status{font-size:11px;color:var(--muted);overflow-wrap:anywhere;line-height:1.6;margin-top:8px}.batch-reference-status[data-linked=true]{color:var(--success-text)}

.batch-shot{border-bottom:1px solid var(--border);padding:14px 0}.batch-shot-head{display:flex;align-items:center;gap:9px}.batch-shot-content{flex:1;min-width:0}.batch-shot-number{color:var(--muted);font-size:11px;width:24px;flex:none}.batch-prompt-preview{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.batch-item-assets{font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.batch-item-state{font-size:11px;color:var(--muted);flex:none;max-width:90px;overflow-wrap:anywhere}.batch-item-state[data-status=succeed],.batch-item-state[data-status=submitted]{color:var(--success-text)}.batch-item-state[data-status=failed],.batch-item-state[data-status=invalid]{color:var(--error-text)}.batch-item-state[data-status=processing],.batch-item-state[data-status=submitting]{color:var(--pending-text)}
.batch-item-warning,.batch-item-error{margin:7px 0 0 33px;font-size:11px;line-height:1.6;min-width:0}.batch-item-warning>summary,.batch-item-error>summary{cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;padding:2px 0}.batch-item-warning>summary:focus-visible,.batch-item-error>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}.batch-notice-content{max-height:144px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px;padding:8px 10px;border:1px solid var(--border);border-radius:6px;background:var(--surface-soft)}.batch-item-warning{color:var(--pending-text)}.batch-item-error{color:var(--error-text)}.batch-item-tools{display:flex;gap:6px;margin:8px 0 0 33px}.batch-item-tools:empty{display:none}
.batch-edit{padding:13px;margin-top:12px;border-radius:8px;background:var(--surface-soft)}.batch-edit label{display:block;font-size:12px;color:var(--muted)}.batch-edit textarea{width:100%;min-height:100px;resize:vertical;margin-top:7px;font-size:13px;line-height:1.6}.batch-edit-footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center}.batch-edit-footer .batch-delete{margin-left:auto;color:var(--error-text)}
.batch-warning{font-size:12px;line-height:1.7;color:var(--pending-text);margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.batch-error{font-size:12px;line-height:1.7;color:var(--error-text);background:var(--error-bg);padding:10px;border-radius:7px;margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.batch-execution{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}.batch-footer{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}.batch-cost{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--muted)}.batch-cost strong{font-size:15px;font-weight:600;color:var(--text)}.batch-actions{display:flex;gap:8px;flex-wrap:wrap}.batch-actions button{font-size:12px;min-height:40px}.batch-actions .primary{min-width:110px}.batch-progress-counts{display:flex;flex-wrap:wrap;gap:14px;font-size:11px;color:var(--muted);margin-top:18px}.batch-progress-counts strong{font-weight:500;color:var(--text)}
#batchProgress{width:100%;height:4px;display:block;margin:10px 0;appearance:none;border:0;border-radius:4px;overflow:hidden;background:var(--surface-soft);accent-color:var(--accent)}#batchProgress::-webkit-progress-bar{background:var(--surface-soft)}#batchProgress::-webkit-progress-value{background:var(--accent)}#batchProgress::-moz-progress-bar{background:var(--accent)}.batch-status{font-size:12px;color:var(--muted);margin:0}
#batchPage [hidden]{display:none!important}
@media(max-width:1450px){.batch-workspace{padding:20px}.batch-parameter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.batch-workspace{overflow:visible}}
@media(max-width:560px){.batch-workspace{padding:16px}.batch-model-field{grid-column:1/-1}.batch-shot-head{gap:6px}.batch-item-state{max-width:58px}.batch-shot-head .small{padding:6px;font-size:11px}.batch-range{padding:12px}.batch-range-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.batch-range-fields button{grid-column:1/-1;justify-self:end}.batch-item-warning,.batch-item-error,.batch-item-tools{margin-left:0}}
