/* Image preparation: a calm import area, compact settings and a clear output grid. */
.batch-workspace{min-width:0;color:#203a43;--batch-accent:var(--visual-accent,#315e83);--batch-soft:var(--visual-soft,#edf4f9)}
.batch-workspace .sectionhead{align-items:flex-start;gap:16px;margin-bottom:12px}
.batch-workspace .sectionhead h2{max-width:28ch}
.batch-workspace>.batch-intro{max-width:72ch;margin:0 0 26px}
.batch-controls{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.6fr);gap:24px;padding:0;border:0;background:transparent;min-width:0}
.batch-source{align-self:start;min-width:0;padding:24px;border:1px solid #ccdae4;border-radius:16px;background:linear-gradient(145deg,#f0f6fa,#e8f1f6)}
.batch-source::before{content:"01";display:grid;place-items:center;width:34px;height:34px;margin-bottom:18px;border:1px solid #b5cbdc;border-radius:10px;background:#fff;color:var(--batch-accent);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.batch-source label{margin:0 0 16px;font-size:18px;letter-spacing:-.3px;color:#213f53}
.batch-controls input[type=file]{box-sizing:border-box;width:100%;min-width:0;max-width:100%;margin:0;padding:14px 12px;border:1px dashed #9fb9cc;border-radius:10px;background:#fff;color:#3d5567;font-size:13px;line-height:1.65}
.batch-controls input[type=file]::file-selector-button{display:block;margin:0 0 10px;padding:10px 14px;border:1px solid #b7cbd9;border-radius:7px;background:#e4eef5;color:#244a65;font:inherit;font-weight:750}
.batch-source .privacy{margin:15px 0 0;color:#526a79;font-size:12px;line-height:1.7}
.batch-settings{min-width:0;padding:24px;border:1px solid #dce4e8;border-radius:16px;background:#f8fafb}
.batch-settings-title{display:flex;align-items:center;gap:12px;margin:0 0 22px;color:#213c4c;font-size:18px;line-height:1.4;letter-spacing:-.3px}
.batch-settings-title::before{content:"02";display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #ccdbe5;border-radius:10px;background:#fff;color:var(--batch-accent);font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.batch-grid>div{display:flex;flex-direction:column;justify-content:flex-end;min-width:0}
.batch-grid label{display:block;margin:0 0 8px;font-size:13px;font-weight:700;line-height:1.5;color:#405665}
.batch-grid :is(input,select){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:46px;padding:11px 13px;border:1px solid #b9c9d4;border-radius:8px;background:#fff;color:#233f50;font-size:16px;font-variant-numeric:tabular-nums}
.batch-grid select{padding-inline-end:44px}
.batch-grid :is(input,select):disabled{color:#71818d;background:#eef1f3}
.batch-settings>.privacy{margin:20px 0 0;padding-top:18px;border-top:1px solid #dce5eb;font-size:12px;line-height:1.7;color:#5b6e7d}
.batch-actions{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:22px;border-top:1px solid #dce5eb}
.batch-actions button{min-height:46px;padding:11px 18px;font-size:14px;line-height:1.4}
.batch-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px;margin-top:22px;min-width:0}
.batch-result{display:flex;flex-direction:column;min-width:0;padding:16px;border:1px solid #d8e2e9;border-radius:16px;background:#fff;overflow-wrap:anywhere;box-shadow:0 6px 22px #244c6710}
.batch-result img{display:block;width:100%;max-width:100%;height:200px;object-fit:contain;margin:0 0 18px;padding:10px;background:#f0f4f7;border:1px solid #e4ebef;border-radius:10px}
.batch-result h3{margin:0 0 8px;font-size:15px;line-height:1.5;letter-spacing:-.1px}
.batch-result p{margin:0 0 18px;color:#607282;font-size:13px;line-height:1.6;font-variant-numeric:tabular-nums}
.batch-result a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:auto 0 0;padding:10px 14px;font-weight:700;text-decoration:none}
.batch-result.error{border-color:#dfb4ad;background:#fff7f5}
.batch-result.error h3{color:#8c4039}
.batch-result.error p{color:#874e47}
#batch-status{margin:22px 0 0;color:#36556a;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
#batch-status:not(:empty){padding:14px 16px;border:1px solid #ccdde8;border-radius:10px;background:#edf4f8}
.batch-workspace :focus-visible{outline:3px solid var(--batch-accent);outline-offset:3px}
@media(max-width:820px){.batch-controls{grid-template-columns:minmax(0,1fr);gap:18px}.batch-source{padding:20px}.batch-source::before{float:inline-start;margin:0 12px 12px 0}.batch-source label{min-height:34px;align-content:center;margin-bottom:16px}.batch-source input{clear:both}.batch-settings{padding:20px}.batch-result img{height:180px}}
@media(max-width:480px){.batch-source,.batch-settings{padding:18px 16px;border-radius:12px}.batch-grid{gap:18px 14px}.batch-grid>div:nth-child(-n+2){grid-column:1/-1}.batch-settings-title{font-size:17px;gap:10px}.batch-actions{display:grid;grid-template-columns:1fr;padding-top:18px}.batch-actions button{width:100%;min-width:0}.batch-results{gap:16px}.batch-result{padding:14px;border-radius:12px}.batch-workspace .sectionhead{flex-wrap:wrap}}

/* Leave room for the format name beside the shared dropdown caret. */
@media(max-width:360px){.batch-grid>div:nth-child(n+5){grid-column:1/-1}}

/* Retain context while edited settings await a new conversion. */
.batch-results[data-outdated=true] .batch-result img{opacity:.65}.batch-result a[aria-disabled=true]{background:#e9edf0;color:#61717c;border-color:#c6cfd6;cursor:not-allowed;box-shadow:none}
