.batch-root{color:var(--text,#e7edf9);font-size:13px;min-width:0}
.batch-root *{box-sizing:border-box}
.batch-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.batch-root h1{font-size:32px;letter-spacing:-.6px;margin:0 0 7px;font-weight:800}
.batch-root h3{font-size:16px;margin:0}
.batch-topline p{margin:0;color:var(--muted,#94a3b8);font-size:14px;line-height:1.7}
.batch-count{display:grid;gap:5px;color:var(--accent,#7c8cff);text-align:right;flex:0 0 auto;padding-top:6px}
.batch-count strong{font-size:14px}.batch-count small{color:var(--muted,#94a3b8);font-size:11px}
.batch-muted,.batch-small{color:var(--muted,#94a3b8);line-height:1.65}
.batch-muted{margin:8px 0 14px}.batch-small{display:block;font-size:11px;margin:0}
.batch-layout{display:grid;grid-template-columns:minmax(460px,1.12fr) minmax(360px,.88fr);gap:14px;align-items:start;min-width:0}
.batch-panel{border:1px solid var(--border,#2b3443);background:var(--surface,#151c28);border-radius:16px;padding:18px;min-width:0}
.batch-editor{display:grid;gap:18px}.batch-results{display:grid;gap:12px;align-content:start;position:sticky;top:18px}
.batch-step-head{display:flex;align-items:center;gap:9px}
.batch-step-head>span{display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 auto;border-radius:999px;background:var(--accent-soft,#242a49);border:1px solid color-mix(in srgb,var(--accent,#7c8cff) 32%,transparent);color:var(--accent,#7c8cff);font-size:11px;font-weight:800}
.batch-step-head>div{display:grid;gap:1px}.batch-step-head strong{color:var(--text);font-size:13px;font-weight:750}.batch-step-head small{color:var(--muted);font-size:11px;line-height:1.35}
.batch-field{display:flex;flex-direction:column;gap:7px;margin:0;min-width:0}
.batch-field>span{font-size:12px;color:var(--muted,#94a3b8)}
.batch-field small{font-size:11px;color:var(--muted);line-height:1.65}
.batch-root input:not([type=file]):not([type=checkbox]),.batch-root textarea,.batch-root select{width:100%;background:var(--panel-2,#1c2534);border:1px solid var(--border,#2b3443);border-radius:10px;color:var(--text);padding:10px 13px;font:inherit;font-size:13px;outline:none;min-width:0}
.batch-root textarea{resize:vertical;min-height:74px;line-height:1.6;background:var(--bg,#111827)}
.batch-root input:focus,.batch-root textarea:focus,.batch-root select:focus{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 15%,transparent)}
.batch-root input::placeholder,.batch-root textarea::placeholder{color:#60738c}
.batch-root option{background:var(--panel);color:var(--text)}
.batch-root input[type=checkbox]{width:auto;min-height:auto;accent-color:var(--accent);padding:0;flex:0 0 auto}
.batch-parameters{display:grid;gap:12px}.batch-config-row{display:grid;grid-template-columns:minmax(180px,2fr) minmax(100px,1fr) minmax(90px,1fr);gap:10px}
.batch-aspect-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.batch-button{border:1px solid var(--border,#2b3443);background:var(--surface,#151c28);color:var(--text,#e7edf9);padding:9px 12px;min-height:38px;border-radius:9px;font:inherit;font-size:12px;cursor:pointer;transition:background .15s,border-color .15s;line-height:1.2}
.batch-button:hover:not(:disabled){background:var(--accent-soft,#242a49);border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}
.batch-button:disabled{opacity:.5;cursor:not-allowed}.batch-button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.batch-button.active{background:var(--accent-soft,#242a49);border-color:var(--accent,#7c8cff);color:var(--accent,#7c8cff)}
.batch-primary{background:var(--accent,#7c8cff);border-color:var(--accent,#7c8cff);color:#fff;font-weight:650}
.batch-primary:hover:not(:disabled){background:color-mix(in srgb,var(--accent) 85%,white)}
.batch-aspect.batch-button{align-items:center;background:var(--surface);display:grid;gap:6px;justify-items:center;min-height:78px;padding:10px 8px;border-radius:10px}
.batch-aspect.active{background:var(--accent-soft);border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
.batch-aspect-preview{align-items:center;display:flex;height:28px;justify-content:center;width:42px}
.batch-aspect-preview i{background:linear-gradient(135deg,#06b6d43d,#f59e0b38);border:1px solid rgb(255 255 255 / 24%);border-radius:4px;display:block;min-height:12px;min-width:12px}
.batch-aspect strong{font-size:13px;line-height:1.2}.batch-ratio-auto{color:var(--muted);font-size:28px;line-height:1}
.batch-mode-form{display:grid;gap:15px;min-width:0}
.batch-tabs{display:flex;flex-wrap:wrap;gap:0;border:1px solid var(--border);border-radius:10px;padding:4px;width:max-content;max-width:100%;background:var(--bg)}
.batch-tabs .batch-button{min-height:34px;font-size:12px;border:0;background:transparent;padding:8px 12px;white-space:nowrap;border-radius:7px}
.batch-tabs .batch-button.active{background:var(--accent-soft);color:var(--accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 24%,transparent)}
.batch-import-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:var(--panel-2);border:1px solid var(--border);border-radius:12px;min-width:0}
.batch-import-row>div:first-child{display:grid;gap:3px;flex:1 1 200px;min-width:0}.batch-import-row strong{font-size:13px}.batch-import-row small{font-size:11px;line-height:1.45;color:var(--muted)}
.batch-import-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;flex:0 0 auto}
.batch-template-menu{position:relative;color:var(--accent);font-size:12px;z-index:3}
.batch-template-menu>summary{padding:10px;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--border));border-radius:9px;cursor:pointer;background:var(--surface);list-style:none;white-space:nowrap}
.batch-template-menu>summary::-webkit-details-marker{display:none}
.batch-template-popover{position:absolute;right:0;top:calc(100% + 8px);background:var(--surface);border:1px solid var(--border);padding:7px;border-radius:12px;box-shadow:0 18px 40px #0005;display:grid;gap:5px;min-width:150px}
.batch-template-popover>.batch-button{text-align:left;min-width:130px}
.batch-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.batch-file-button{display:inline-flex;max-width:100%}.batch-file-button input[hidden]{display:none}
.batch-prompt-tools{display:flex;align-items:center;gap:10px}.batch-prompt-tools>select{width:min(240px,60%)}.batch-optimize{color:var(--accent);background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 30%,transparent)}
.batch-submit-bar{display:flex;gap:10px;align-items:center}.batch-submit{flex:1;min-height:44px;box-shadow:0 10px 24px color-mix(in srgb,var(--accent) 20%,transparent)}
.batch-badge{display:inline-flex;align-items:center;padding:4px 8px;border:1px solid var(--border);background:var(--accent-soft);color:var(--accent);border-radius:99px;font-size:11px;white-space:nowrap}
.batch-message{padding:12px 15px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 25%,var(--border));border-radius:10px;color:var(--text);font-size:12px;line-height:1.7;margin-bottom:18px;overflow-wrap:anywhere}
.batch-message[hidden]{display:none}.batch-error{background:#361d26;border-color:#793442;color:#ffb4bd}.batch-success{background:#172c24;border-color:#345e4c;color:#a5dcbf}.batch-error-text{font-size:12px;color:var(--danger,#ff8392)}
.batch-file-drop{display:grid;justify-items:center;text-align:center;gap:10px;padding:24px 18px;border:1px dashed color-mix(in srgb,var(--accent) 35%,var(--border));border-radius:12px;background:var(--bg)}
.batch-file-drop small{color:var(--muted);font-size:11px;line-height:1.65}.batch-file-drop strong{font-size:14px}.batch-file-drop.dragover{border-color:var(--accent);background:var(--accent-soft)}.batch-upload-symbol{color:var(--accent);font-size:28px}.batch-reference-controls{display:grid;gap:10px}
.batch-reference-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;min-width:0}
.batch-reference{display:grid;align-content:start;gap:9px;min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:10px}
.batch-ref-image{position:relative}.batch-ref-image img{display:block;width:100%;height:160px;object-fit:contain;border-radius:8px;background:var(--bg)}.batch-ref-image>span{position:absolute;top:7px;left:7px;padding:4px 7px;border-radius:6px;font-size:10px;background:#111827d9;color:#e2e8f0}
.batch-reference-content{min-width:0;display:grid;gap:5px}.batch-reference-content strong{font-size:12px;word-break:break-all}.batch-reference-content small{font-size:10px;color:var(--muted)}.batch-reference-content textarea{margin-top:5px;min-height:85px}.batch-reference>.batch-button{justify-self:end;min-height:28px;font-size:10px;padding:6px 9px}
.batch-empty{border:1px dashed var(--border);border-radius:12px;color:var(--muted);padding:22px 16px;line-height:1.7;font-size:13px}
.batch-groups{display:grid;gap:14px;min-width:0}.batch-groups h3{font-size:17px;font-weight:650}.batch-group-import{padding-top:14px;border-top:1px solid var(--border)}
.batch-group-common{display:grid;gap:10px;padding:16px;background:var(--panel-2);border:1px solid var(--border);border-radius:12px;min-width:0}
.batch-group-output-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.batch-group-output-actions>.batch-field{width:150px}.batch-group-common .batch-tabs{margin:0}
.batch-folder-list{display:grid;gap:14px}.batch-folder{display:grid;gap:12px;border:1px solid var(--border);border-radius:14px;background:var(--surface);padding:16px;min-width:0}
.batch-folder-header{display:grid;grid-template-columns:minmax(120px,1fr) 90px auto;gap:10px;align-items:end}.batch-folder-header>.batch-button{padding:10px 9px}
.batch-folder-thumbs{display:flex;gap:10px;flex-wrap:wrap}.batch-folder-thumbs figure{display:grid;gap:5px;margin:0;width:92px;min-width:0}.batch-folder-thumbs img{width:92px;height:86px;object-fit:contain;background:var(--bg);border-radius:7px}.batch-folder-thumbs figcaption{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.batch-folder-thumbs small{font-size:10px;color:var(--muted)}.batch-folder-thumbs .batch-button{padding:4px 0;min-height:20px;border:0;background:transparent;font-size:11px;justify-self:start;color:var(--muted)}
.batch-mapping-list{display:grid;gap:12px}.batch-mapping-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(110px,.8fr) auto;gap:10px;align-items:center;border-top:1px solid var(--border);padding-top:12px;min-width:0}.batch-mapping-row>div{display:grid;gap:8px;min-width:0}.batch-mapping-row strong{font-size:12px;overflow-wrap:anywhere}.batch-mapping-row textarea{min-height:64px;font-size:11px}
.batch-group-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.batch-group-filters>.batch-field{flex:1 1 180px}.batch-group-filters>label:not(.batch-field){display:flex;gap:5px;white-space:nowrap;font-size:12px}.batch-group-filters small{color:var(--muted)}
.batch-preview-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.batch-preview-header h3{margin:0;font-size:15px}
.batch-history-toggle{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:11px}
.batch-task-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2);font-size:11px;color:var(--muted)}
.batch-progress{display:grid;gap:8px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--panel-2)}.batch-progress-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:var(--muted)}.batch-progress-label strong{color:var(--text);font-weight:650}.batch-progress-bar{height:7px;border-radius:6px;overflow:hidden;background:var(--accent-soft)}.batch-progress-bar>span{display:block;height:100%;background:var(--accent);transition:width .2s}
.batch-result-list{display:grid;gap:12px;max-height:620px;overflow:auto;min-width:0}.batch-result-list .work-card{width:100%}.batch-result-list .work-card img{max-height:340px;object-fit:contain}
.batch-results-empty{display:grid;justify-items:center;text-align:center;align-content:center;min-height:250px;border:0}.batch-results-empty strong{font-size:14px;color:var(--text)}.batch-results-empty p{font-size:12px;margin:4px 0}.batch-empty-icon{font-size:42px;color:var(--muted);opacity:.7}
.batch-preview-details{border-top:1px solid var(--border);padding-top:14px}.batch-preview-details>summary{font-size:13px;color:var(--muted);cursor:pointer;padding-bottom:14px}
.batch-preview-list{display:grid;gap:9px;max-height:520px;overflow:auto;padding-right:3px}.batch-task-preview{border:1px solid var(--border);background:var(--panel-2);border-radius:10px;padding:13px;min-width:0}.batch-task-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.batch-task-title strong{font-size:12px;word-break:break-all}.batch-task-prompt{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:12px;margin:9px 0 10px;color:var(--text)}.batch-task-preview>small{color:var(--muted);font-size:10px}.batch-task-thumbs{display:flex;gap:5px;flex-wrap:wrap}.batch-task-thumbs img{height:48px;width:48px;object-fit:contain;background:var(--bg);border-radius:5px}
.batch-pager{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:12px}.batch-pager:empty{display:none}.batch-pager span{font-size:11px;color:var(--muted)}.batch-pager select{width:auto;max-width:100px;padding:8px}.batch-imported-list{display:grid;gap:13px}.batch-imported-editor{display:grid;gap:12px}.batch-imported-editor .batch-actions{align-items:center}
.batch-busy .batch-editor{opacity:.8}
@media(min-width:1281px){.batch-editor,.batch-results{max-height:calc(100vh - 214px);min-height:650px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#364052 transparent}.batch-results{position:static}}
@media(max-width:1250px){.batch-layout{grid-template-columns:minmax(420px,1.1fr) minmax(280px,.8fr)}.batch-import-row{align-items:flex-start;flex-direction:column;width:100%}.batch-import-actions{justify-content:flex-start}.batch-config-row{grid-template-columns:minmax(170px,1.6fr) 1fr 1fr}}
@media(max-width:1050px){.batch-layout{grid-template-columns:1fr}.batch-results{position:static}.batch-result-list{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.batch-results-empty{grid-column:1/-1}.batch-count{display:none}}
@media(max-width:600px){.batch-panel{padding:14px}.batch-root h1{font-size:28px}.batch-config-row{grid-template-columns:1fr 1fr}.batch-config-row>.batch-field:first-child{grid-column:1/-1}.batch-aspect-grid{gap:7px}.batch-aspect.batch-button{min-height:70px}.batch-tabs{width:100%}.batch-tabs .batch-button{flex:1 1 40%}.batch-folder-header{grid-template-columns:1fr 80px}.batch-folder-header>.batch-button{grid-column:1/-1;justify-self:end}.batch-mapping-row{grid-template-columns:1fr auto}.batch-mapping-row>div{grid-column:1/-1}.batch-task-stats{grid-template-columns:1fr 1fr}}
