.batch-page {
  --batch-paper: #fffefa;
  --batch-ink: #1e2821;
  --batch-pine: #194d39;
  --batch-moss: #e6efe8;
  --batch-line: #d4ddd4;
  --batch-muted: #59655d;
  --batch-sand: #b37d24;
  --batch-brick: #a24d3c;
  background: var(--batch-paper);
  color: var(--batch-ink);
}

.batch-skip {
  position: absolute;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--batch-pine);
  color: #fff;
}

.batch-skip:focus { transform: translateY(0); }

.batch-main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

.batch-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0 0 2.25rem;
  color: var(--batch-muted);
  font-size: .9rem;
}

.batch-breadcrumb a,
.batch-method a,
.batch-related a { color: var(--batch-pine); text-underline-offset: .18em; }

.batch-intro { max-width: 760px; margin-bottom: 1.6rem; }
.batch-kicker { margin: 0 0 .5rem; color: var(--batch-pine); font-size: .76rem; font-weight: 750; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
.batch-intro h1 { margin: 0 0 .7rem; color: var(--batch-ink); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; }
.batch-intro > p:last-child { max-width: 700px; margin: 0; color: var(--batch-muted); font-size: 1.08rem; line-height: 1.65; }

.batch-result {
  padding: clamp(1.15rem, 2.5vw, 2rem);
  border: 1px solid #c3d4c7;
  border-top: 5px solid var(--batch-pine);
  background: #f2f6f1;
}

.batch-result-top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.batch-result h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; }
.batch-unit-tag { padding: .35rem .6rem; border: 1px solid #bbcfbf; color: var(--batch-pine); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.batch-status { min-height: 1.5em; margin: .6rem 0 1.1rem; color: var(--batch-muted); font-size: .92rem; line-height: 1.5; }
.batch-result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #cbd8ce; border-bottom: 1px solid #cbd8ce; }
.batch-metric { min-width: 0; padding: 1rem .9rem 1rem 0; }
.batch-metric + .batch-metric { padding-left: 1rem; border-left: 1px solid #cbd8ce; }
.batch-metric span, .batch-metric small { display: block; color: var(--batch-muted); font-size: .82rem; line-height: 1.4; }
.batch-metric strong { display: block; margin: .2rem 0; font-variant-numeric: tabular-nums; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.15; overflow-wrap: anywhere; }
.batch-metric-focus strong { color: var(--batch-pine); }
.batch-quote-result { margin-top: 1rem; padding: .8rem .95rem; border-left: 3px solid var(--batch-sand); background: #fffefa; font-size: .92rem; line-height: 1.5; }
.batch-result-boundary { margin: .8rem 0 0; color: var(--batch-muted); font-size: .8rem; line-height: 1.5; }

.batch-example { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: 1.4rem; align-items: center; margin: 2.1rem 0; padding: 1.2rem 0; border-bottom: 1px solid var(--batch-line); }
.batch-example-copy h2 { margin: 0 0 .55rem; font-size: 1.35rem; line-height: 1.25; }
.batch-example-copy p:not(.batch-kicker) { margin: .45rem 0; color: var(--batch-muted); line-height: 1.6; }
.batch-example-note { padding-left: .8rem; border-left: 3px solid var(--batch-sand); font-size: .9rem; }
.batch-figure { margin: 0; }
.batch-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 548; object-fit: cover; }
.batch-figure figcaption { margin-top: .45rem; color: var(--batch-muted); font-size: .78rem; line-height: 1.45; }

.batch-form { display: grid; gap: 1rem; }
.batch-panel { padding: clamp(1rem, 2.3vw, 1.5rem); border: 1px solid var(--batch-line); background: #fff; }
.batch-rules { border-left: 4px solid var(--batch-pine); }
.batch-section-heading { margin-bottom: 1rem; }
.batch-section-heading h2 { margin: 0 0 .45rem; font-size: 1.32rem; line-height: 1.25; }
.batch-section-heading p:last-child { max-width: 760px; margin: 0; color: var(--batch-muted); font-size: .9rem; line-height: 1.55; }
.batch-rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; max-width: 720px; }
.batch-field { display: grid; gap: .25rem; min-width: 0; color: var(--batch-ink); font-size: .91rem; font-weight: 650; }
.batch-field > span { color: var(--batch-muted); font-size: .78rem; font-weight: 450; line-height: 1.35; }
.batch-field input { width: 100%; min-width: 0; min-height: 46px; padding: .65rem .72rem; border: 1px solid #9aa89d; border-radius: 2px; background: #fffefa; color: var(--batch-ink); font: inherit; font-size: 1rem; font-variant-numeric: tabular-nums; }
.batch-field input:focus-visible, .batch-confirm input:focus-visible, .batch-add:focus-visible, .batch-remove:focus-visible { outline: 3px solid #d7a844; outline-offset: 2px; }
.batch-field input[aria-invalid="true"] { border-color: var(--batch-brick); outline-color: var(--batch-brick); }
.batch-jobs-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.batch-add, .batch-remove { min-height: 42px; padding: .55rem .8rem; border: 1px solid var(--batch-pine); border-radius: 2px; background: #fff; color: var(--batch-pine); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.batch-add:hover, .batch-remove:hover:not(:disabled) { background: var(--batch-moss); }
.batch-add:disabled, .batch-remove:disabled { cursor: not-allowed; opacity: .48; }
.batch-jobs { display: grid; gap: .75rem; }
.batch-job-row { min-width: 0; margin: 0; padding: .8rem .9rem .7rem; border: 1px solid var(--batch-line); background: #fffefa; }
.batch-job-row legend { padding: 0 .35rem; color: var(--batch-pine); font-size: .9rem; font-weight: 750; }
.batch-job-fields { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: .8rem; }
.batch-remove { margin-top: .65rem; min-height: 36px; border-color: #b9c5bb; color: #47564b; font-size: .8rem; font-weight: 600; }
.batch-help { margin: .8rem 0 0; color: var(--batch-muted); font-size: .82rem; line-height: 1.5; }
.batch-combined-quote { max-width: 360px; }
.batch-confirm { display: flex; align-items: start; gap: .65rem; max-width: 780px; margin-top: 1rem; color: var(--batch-ink); font-size: .9rem; line-height: 1.5; }
.batch-confirm input { flex: 0 0 20px; width: 20px; height: 20px; margin: .05rem 0 0; accent-color: var(--batch-pine); }
.batch-error { margin: .8rem 0 0; padding: .7rem .8rem; border-left: 3px solid var(--batch-brick); background: #fbefec; color: #702f24; font-size: .88rem; line-height: 1.5; }

.batch-method { display: grid; grid-template-columns: minmax(220px, .6fr) minmax(0, 1.4fr); column-gap: 1.6rem; margin: 2.5rem 0; padding: 1.4rem 0; border-top: 1px solid var(--batch-line); border-bottom: 1px solid var(--batch-line); }
.batch-method > div { grid-row: span 3; }
.batch-method h2, .batch-faq h2 { margin: 0; font-size: 1.4rem; line-height: 1.25; }
.batch-method p { margin: 0 0 .75rem; color: var(--batch-muted); line-height: 1.6; }
.batch-faq { max-width: 860px; }
.batch-faq h2 { margin-bottom: .8rem; }
.batch-faq details { padding: .85rem 0; border-top: 1px solid var(--batch-line); }
.batch-faq summary { color: var(--batch-ink); font-weight: 700; cursor: pointer; line-height: 1.45; }
.batch-faq details p { margin: .55rem 0 0; color: var(--batch-muted); line-height: 1.55; }
.batch-related { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--batch-line); font-size: .87rem; line-height: 1.45; }

@media (max-width: 720px) {
  .batch-main { width: min(calc(100% - 28px), 600px); padding-top: .8rem; }
  .batch-breadcrumb { margin-bottom: 1.5rem; }
  .batch-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-metric { padding: .85rem .6rem .85rem 0; }
  .batch-metric + .batch-metric { padding-left: .7rem; }
  .batch-metric:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid #cbd8ce; }
  .batch-metric:nth-child(4) { border-top: 1px solid #cbd8ce; }
  .batch-example { grid-template-columns: 1fr; gap: .9rem; margin: 1.6rem 0; }
  .batch-figure img { aspect-ratio: 2 / 1; }
  .batch-jobs-heading { flex-direction: column; }
  .batch-add { width: 100%; }
  .batch-job-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .batch-job-fields .batch-field:first-child { grid-column: 1 / -1; }
  .batch-method { grid-template-columns: 1fr; gap: .7rem; }
  .batch-method > div { grid-row: auto; }
}

@media (max-width: 420px) {
  .batch-main { width: calc(100% - 24px); }
  .batch-intro h1 { font-size: 2rem; }
  .batch-intro > p:last-child { font-size: 1rem; }
  .batch-result { padding: 1rem .85rem; }
  .batch-result-top { align-items: center; }
  .batch-result h2 { font-size: 1.25rem; }
  .batch-unit-tag { padding: .3rem .45rem; font-size: .72rem; }
  .batch-metric span, .batch-metric small { font-size: .75rem; }
  .batch-metric strong { font-size: 1.45rem; }
  .batch-status { font-size: .86rem; }
  .batch-job-fields { grid-template-columns: 1fr; }
  .batch-job-fields .batch-field:first-child { grid-column: auto; }
  .batch-panel { padding: 1rem .85rem; }
  .batch-related { display: grid; grid-template-columns: 1fr; }
}
