/* Batch workspace states. Data, progress, cancellation and downloads are connected by Claude. */
.batch-entry { margin:6px 0 17px;min-height:76px; }
.batch-entry small { max-width:310px;line-height:1.5; }
body.batch-maker-open { overflow:hidden; }
.batch-maker #batch-maker-h { font-size:31px; }
.batch-limit { flex:none;padding:5px 9px;border:1px solid var(--line);border-radius:20px;color:var(--muted);font-size:10px; }
.batch-setup { display:flex;flex-direction:column;flex:1;min-height:0; }
.batch-setup-body { grid-template-columns:minmax(0,1.23fr) minmax(0,1fr); }
.batch-input { min-width:0;padding:28px 30px;background:var(--panel);min-height:100%; }
.batch-input h2,.batch-output h2 { display:flex;align-items:center;gap:9px;margin:0 0 21px;font-size:16px;letter-spacing:-.2px; }
.batch-tabs { display:grid;grid-template-columns:1fr 1.3fr 1.2fr;gap:4px;padding:4px;background:var(--soft);border:1px solid var(--line);border-radius:9px; }
.batch-tabs button { min-width:0;min-height:42px;padding:8px 5px;border:1px solid transparent;border-radius:6px;background:none;color:var(--muted);font-size:11px;line-height:1.3;cursor:pointer; }
.batch-tabs button[aria-selected="true"] { background:var(--panel);color:var(--ink);border-color:var(--line);box-shadow:0 2px 4px #1c241c08;font-weight:700; }
.batch-source { margin-top:21px; }
.batch-source .label-field { margin-top:18px; }
.batch-source textarea { display:block;width:100%;min-height:204px;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:13px;line-height:1.8; }
.batch-source textarea::placeholder { color:var(--muted); }
.batch-source-intro { margin:0 0 13px;font-size:13px;color:var(--muted); }
.batch-number-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px; }
.batch-zeros-note { align-self:center;margin:26px 0 0; }
.batch-sequence { margin-top:25px;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--soft); }
.batch-example-label { display:block;color:var(--muted);font-size:10px; }
.batch-sequence p { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:9px 0;color:var(--ink);font-size:20px;font-weight:700;letter-spacing:-.4px;overflow-wrap:anywhere; }
.batch-sequence p span { color:var(--orange-text);font-weight:400; }
#batch-sequence-count { font-size:11px;color:var(--muted); }
.batch-upload { padding:24px 18px;background:var(--paper);border:1px dashed var(--muted);border-radius:10px;text-align:center; }
.batch-upload > .ui-icon { width:34px;height:34px;color:var(--orange-text);margin-bottom:9px; }
.batch-upload > label { display:block;font-size:15px;font-weight:700; }
.batch-upload p { margin:5px 0 18px;font-size:12px;color:var(--muted); }
.batch-upload input { width:100%;max-width:370px;font-size:12px; }
.batch-upload input::file-selector-button { min-height:44px;margin-right:9px;padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);font:700 12px var(--body);cursor:pointer; }
.batch-header-choice { margin-top:18px; }
.batch-empty-map { padding:18px 16px;border:1px solid var(--line);border-radius:8px;margin-top:23px;color:var(--muted);font-size:12px; }
.batch-mapping { margin-top:24px; }
.batch-mapping h3 { margin:0;font-size:14px; }
.batch-map-head,.batch-map-row { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center; }
.batch-map-head { margin-top:17px;padding-bottom:8px;border-bottom:1px solid var(--line);font-size:10px;color:var(--muted); }
.batch-map-row { padding:10px 0; }
.batch-map-row label { font-size:12px;font-weight:700; }
.batch-map-row select { min-height:44px;width:100%;padding:9px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:13px; }
.batch-output { min-width:0;padding:28px 30px; }
.batch-style-card { display:flex;align-items:center;gap:16px;margin-bottom:25px;padding:17px;border:1px solid var(--line);border-radius:10px;background:var(--panel); }
.batch-style-card img { width:72px;height:72px;object-fit:contain;background:#fff;border-radius:5px;flex:none; }
.batch-style-card > div { min-width:0; }
.batch-style-kicker { display:block;margin-bottom:5px;font-size:8px;letter-spacing:1px;color:var(--muted); }
.batch-style-card b { display:block;font-size:14px; }
.batch-style-card p { margin:4px 0 0;font-size:11px;color:var(--muted);line-height:1.5; }
.batch-style-link { display:inline-block;min-height:34px;margin:3px 12px 0 0;padding:4px 0;border:0;background:none;color:var(--orange-text);font-size:11px;font-weight:700;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px; }
.batch-output-choices { display:grid;gap:10px; }
.batch-output-choices .label-choice { min-height:72px;padding:13px; }
.batch-format-mark { margin-left:auto;flex:none;font-size:9px;color:var(--muted);border:1px solid var(--line);padding:5px 6px;border-radius:5px; }
.batch-format { display:flex;gap:24px;border:0;padding:0;margin:22px 0 0; }
.batch-format legend { padding:0;margin-bottom:10px;font-size:12px;font-weight:700; }
.batch-format label { display:flex;align-items:center;gap:7px;font-size:12px;min-height:30px; }
.batch-format input { accent-color:var(--orange-text); }
.batch-scale-note { margin:18px 0 0;padding:12px;background:var(--orange-soft);color:var(--orange-text);font-size:11px;border-radius:7px; }
.batch-local-note { display:flex;align-items:center;gap:10px; }
.batch-local-note .ui-icon { width:18px;height:18px;color:var(--orange-text); }
.batch-local-note p { margin:0;font-size:11px; }
.batch-local-note b,.batch-local-note p > span { display:block; }
.batch-local-note p > span { margin-top:3px;color:var(--muted); }
.batch-maker .label-download-actions .btn .ui-icon { transform:none; }
.batch-state { flex:1;min-height:0;overflow:auto;padding:40px 52px;text-align:center; }
.batch-state h2 { margin:8px 0 12px;font-size:29px;line-height:1.2;letter-spacing:-.7px; }
.batch-state h2:focus { outline:none; }
.batch-state > p:not(.eyebrow) { max-width:510px;margin:0 auto 20px;color:var(--muted);font-size:13px;line-height:1.65; }
.batch-state-icon { display:grid;place-items:center;width:50px;height:50px;margin:0 auto 21px;background:var(--good-bg);color:var(--good);border-radius:50%;font-size:25px;font-weight:700; }
.batch-state-icon .ui-icon { width:25px;height:25px; }
.batch-state-warning { background:var(--orange-soft);color:var(--orange-text); }
.batch-state-neutral { background:var(--soft);color:var(--muted); }
.batch-state > .eyebrow { justify-content:center;margin:0;color:var(--orange-text);font-size:9px; }
.batch-state-actions { display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:22px; }
.batch-state button:disabled { opacity:.6;cursor:not-allowed; }
.batch-issue-table { overflow-x:auto;border:1px solid var(--line);border-radius:9px;background:var(--panel);max-width:700px;margin:25px auto 13px;text-align:left; }
.batch-issue-table table { border-collapse:collapse;width:100%;font-size:12px; }
.batch-issue-table caption { text-align:left;padding:15px;font-size:13px;font-weight:700; }
.batch-issue-table th { color:var(--muted);background:var(--soft);font-size:10px;font-weight:500; }
.batch-issue-table th,.batch-issue-table td { padding:12px 15px;border-top:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere; }
.batch-issue-table th:first-child { width:60px; }
.batch-issue-table td:first-child { color:var(--orange-text);font-weight:700; }
.batch-state .batch-state-note { font-size:11px; }
.batch-stack { position:relative;width:122px;height:98px;margin:8px auto 32px; }
.batch-stack i { position:absolute;display:grid;place-items:center;width:74px;height:86px;border:1px solid var(--line);border-radius:9px;background:var(--panel);box-shadow:0 4px 10px #1c241c0b; }
.batch-stack i:nth-child(1) { left:9px;top:10px;transform:rotate(-12deg);background:var(--soft); }
.batch-stack i:nth-child(2) { left:33px;top:6px;transform:rotate(12deg);background:var(--orange-soft); }
.batch-stack i:nth-child(3) { left:23px;top:0; }
.batch-stack .ui-icon { width:36px;height:36px;color:var(--orange-text);stroke-width:1.1; }
.batch-progress-track { max-width:510px;margin:35px auto 23px; }
.batch-progress-caption { display:flex;justify-content:space-between;align-items:baseline;font-size:12px;font-weight:700; }
.batch-progress-caption p { margin:0; }
.batch-progress-caption span { color:var(--orange-text); }
.batch-progress-track progress { appearance:none;width:100%;height:10px;margin:14px 0 0;border:0;border-radius:20px;background:var(--line);overflow:hidden; }
.batch-progress-track progress::-webkit-progress-bar { background:var(--line);border-radius:20px; }
.batch-progress-track progress::-webkit-progress-value { background:var(--accent);border-radius:20px; }
.batch-progress-track progress::-moz-progress-bar { background:var(--accent);border-radius:20px; }
.batch-progress-track > p { font-size:11px;color:var(--muted);margin:12px 0 0; }
.batch-cancel { min-width:110px;margin-bottom:18px; }
.batch-results { text-align:left; }
.batch-result-heading { display:flex;gap:16px;align-items:center;margin-bottom:28px; }
.batch-result-heading .batch-state-icon { flex:none;margin:0; }
.batch-result-heading .eyebrow { margin:0;font-size:9px;color:var(--orange-text); }
.batch-result-heading h2 { margin:5px 0 8px; }
.batch-result-heading p:last-child { margin:0;font-size:12px;color:var(--muted); }
.batch-result-stats { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 24px;border:1px solid var(--line);border-radius:10px;background:var(--panel); }
.batch-result-stats > div { display:flex;flex-direction:column-reverse;gap:3px;padding:20px 24px;border-right:1px solid var(--line); }
.batch-result-stats > div:last-child { border:0; }
.batch-result-stats dt { font-size:11px;color:var(--muted); }
.batch-result-stats dd { margin:0;font-size:34px;line-height:1.1;letter-spacing:-1px;font-weight:700; }
.batch-result-stats > div:first-child dd { color:var(--good); }
.batch-result-stats > div:not(:first-child) dd { color:var(--orange-text); }
.batch-download-card { display:flex;justify-content:space-between;align-items:center;gap:18px;padding:19px 21px;border:1px solid var(--line);border-radius:10px;background:var(--orange-soft); }
.batch-download-card b { font-size:13px;overflow-wrap:anywhere; }
.batch-download-card p { margin:5px 0 0;font-size:11px;color:var(--muted); }
.batch-download-card .btn { display:flex;align-items:center;gap:10px;flex:none; }
.batch-download-card .ui-icon { width:17px;height:17px;transform:rotate(90deg); }
.batch-result-issues { margin-top:22px;border:1px solid var(--line);border-radius:9px;padding:0 16px 15px; }
.batch-result-issues summary { min-height:46px;padding:14px 0;font-size:12px;font-weight:700;cursor:pointer; }
.batch-result-issues .batch-issue-table { margin:0 0 12px;max-width:none; }
.batch-result-issues .batch-issue-table th:first-child { width:65px; }
.batch-result-bottom { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px; }
.batch-result-bottom p { display:flex;align-items:center;gap:7px;margin:0;font-size:11px;color:var(--good); }
.batch-result-bottom .ui-icon { width:16px;height:16px; }
@media(max-width:1100px) {
  .batch-input,.batch-output { padding:24px; }
  .batch-style-card { padding:14px;gap:11px; }
  .batch-style-card img { width:55px;height:55px; }
  .batch-tabs button { font-size:10px; }
  .batch-state { padding:30px; }
}
@media(max-width:760px) {
  .batch-maker #batch-maker-h { font-size:28px;max-width:320px; }
  .batch-limit { display:inline-block;margin-top:15px; }
  .batch-input,.batch-output { padding:25px 20px; }
  .batch-output { border-top:1px solid var(--line); }
  .batch-tabs { grid-template-columns:.85fr 1.3fr 1.15fr; }
  .batch-tabs button { font-size:11px;min-height:48px; }
  .batch-source textarea,.batch-map-row select { font-size:16px; }
  .batch-source textarea { min-height:220px; }
  .batch-style-card img { width:66px;height:66px; }
  .batch-state { padding:30px 20px;overflow:visible; }
  .batch-state h2 { font-size:26px; }
  .batch-state > p:not(.eyebrow) { font-size:12px; }
  .batch-result-heading { align-items:flex-start;gap:11px; }
  .batch-result-heading .batch-state-icon { width:38px;height:38px;margin-top:4px; }
  .batch-result-stats > div { padding:16px 12px; }
  .batch-result-stats dd { font-size:28px; }
  .batch-result-stats dt { font-size:10px; }
  .batch-download-card { display:block;padding:17px; }
  .batch-download-card .btn { margin-top:15px;width:100%;justify-content:center; }
  .batch-result-bottom { flex-direction:column;align-items:stretch; }
  .batch-result-bottom .btn { margin-top:7px; }
  .batch-issue-table th,.batch-issue-table td { padding:10px;font-size:11px; }
  .batch-state-actions { flex-direction:column; }
  .batch-entry { align-items:center; }
}
@media(max-width:360px) {
  .batch-input,.batch-output,.batch-state { padding-left:16px;padding-right:16px; }
  .batch-tabs button { font-size:10px; }
  .batch-sequence { padding:16px; }
  .batch-sequence p { font-size:18px; }
  .batch-result-stats > div { padding:15px 8px; }
}
