/* Pulse UI — restyled onto the Industry design system (steel-blue wireframe on a light
   technical ground). Same selectors as before — shell.js and every page's markup are
   untouched — only the tokens and component skins changed. specs/09-ux.md: one codebase,
   three layouts, CSS only. */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;700&family=Barlow+Condensed:wght@400;600&display=swap');

:root {
  --brand: #5980a6;
  --brand-600: #597ea3;
  --brand-700: #416180;
  --brand-soft: #d6ebff;
  --brand-tint-1: #eef6ff;
  --brand-tint-2: #d6ebff;
  --brand-tint-3: #b5d9fd;
  --bg: #f2f2f3;
  --card: transparent;
  --ink: #1d1f20;
  --line: color-mix(in srgb, #1d1f20 16%, transparent);
  --line-soft: color-mix(in srgb, #1d1f20 8%, transparent);
  --muted: color-mix(in srgb, #1d1f20 55%, transparent);
  --danger: #8c3b33;
  --ok: #3e6b4f;
  --amber: #8a6a2c;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --tap: 44px; /* glove-width tap target for the tablet at the machine */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* .row's display:flex would otherwise win */
body { margin: 0; font: 15px/1.55 var(--font-body), system-ui, sans-serif; background: var(--bg); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; }

header { background: var(--bg); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; }
.hrow { display: flex; align-items: center; gap: .75rem; padding: .35rem .75rem; min-height: 56px; }
.userblock { display: flex; flex-direction: column; line-height: 1.15; }
.userblock .muted { font-size: .72rem; text-transform: capitalize; }
.logo { font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem;
  display: inline-flex; align-items: center; gap: .5rem; }
.brandmark { width: 26px; height: 26px; border-radius: 0; object-fit: contain; }
.brandmark.fallback { background: var(--brand); color: var(--bg); display: inline-flex;
  align-items: center; justify-content: center; font-size: 1rem; line-height: 1; }
.sitename { color: var(--muted); font-size: .78rem; }
.spacer { flex: 1; }
.hamburger { font-size: 1.15rem; line-height: 1; padding: 0 .7rem; }
.screenname { font-weight: 600; font-family: var(--font-heading); }

/* ---- the left rail ------------------------------------------------------------------
   Thirteen entries in a horizontal strip wrapped to eight rows on a phone. A rail groups
   them by the state the material is in, and costs nothing on a phone because it is a
   drawer that is not there until it is asked for. */
.rail { background: var(--bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; }
.rail-head { padding: .8rem .9rem .6rem; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .15rem; }
.rail-nav { display: flex; flex-direction: column; padding: .4rem 0; overflow-y: auto; flex: 1; }
.rail-group { font-family: var(--font-heading); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding: .8rem .9rem .2rem; font-weight: 600; }
.rail a { display: flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.rail a:hover { background: var(--brand-tint-1); }
/* A left border reads as *where you are*. A pill reads as a filter you switched on. */
.rail a.active { border-left-color: var(--brand); background: var(--brand-tint-1); color: var(--brand-700);
  font-weight: 600; }
/* A module is a fold — Steel, Aluminium, Accounts. Its entries sit indented under it. */
.rail-module > summary { display: flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  border-left: 3px solid transparent; /* level with the links, which carry the active mark */
  font-family: var(--font-heading); font-weight: 600; cursor: pointer; list-style: none; }
.rail-module > summary::-webkit-details-marker { display: none; }
.rail-module > summary::after { content: "▸"; margin-left: auto; color: var(--muted); }
.rail-module[open] > summary::after { content: "▾"; }
.rail-module > summary:hover { background: var(--brand-tint-1); }
.rail-module > a, .rail-module > .rail-group { padding-left: 1.6rem; }
.rail-foot { border-top: 1px solid var(--line); padding: .6rem .9rem;
  display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.rail-stock { display: flex; flex-wrap: wrap; gap: .1rem .7rem; font-size: .78rem;
  font-variant-numeric: tabular-nums; }
.rail-stock:empty { display: none; }
.rail-stock .rs i { font-style: normal; color: var(--muted); margin-right: .3rem; }
.rail-scrim { display: none; }

@media (min-width: 901px) {
  body.has-rail { display: flex; align-items: flex-start; }
  body.has-rail > header { display: none; }
  .rail { position: sticky; top: 0; width: 232px; flex: none; height: 100vh; }
  body.has-rail > main { flex: 1; min-width: 0; max-width: 1400px; margin: 0; }
}

@media (max-width: 900px) {
  .rail { position: fixed; inset: 0 auto 0 0; width: min(300px, 85vw); z-index: 60;
    transform: translateX(-100%); transition: transform .18s ease; }
  body.nav-open .rail { transform: none; box-shadow: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent); }
  body.nav-open .rail-scrim { display: block; position: fixed; inset: 0; z-index: 55;
    background: color-mix(in srgb, #1d1f20 40%, transparent); }
}
@media (min-width: 901px) { .hamburger { display: none; } }

main { padding: 1.25rem 1rem; max-width: 1250px; margin: 0 auto; }

@media (min-width: 1200px) {
  main.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(21rem, 27rem);
    gap: 0 1rem; align-items: start; max-width: 1500px; }
  main.split > .side { position: sticky; top: 1rem; }
}
.side .card:last-child { margin-bottom: 0; }
.side table { font-size: .92rem; }
.side th, .side td { padding: .4rem .45rem; }

/* Blueprint object: transparent, hairline-bordered, square, with drawn corner marks —
   built as background layers rather than extra markup, so every existing .card in the
   app picks it up without touching the pages. */
.card {
  --cm: 6px; --cl: 11px; --corner: color-mix(in srgb, var(--ink) 45%, transparent);
  position: relative;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 0;
  padding: 1.1rem; margin-bottom: 1rem;
  background-image:
    linear-gradient(var(--corner), var(--corner)), linear-gradient(var(--corner), var(--corner)),
    linear-gradient(var(--corner), var(--corner)), linear-gradient(var(--corner), var(--corner)),
    linear-gradient(var(--corner), var(--corner)), linear-gradient(var(--corner), var(--corner)),
    linear-gradient(var(--corner), var(--corner)), linear-gradient(var(--corner), var(--corner));
  background-repeat: no-repeat;
  background-size: 1px var(--cl), var(--cl) 1px, 1px var(--cl), var(--cl) 1px,
                   1px var(--cl), var(--cl) 1px, 1px var(--cl), var(--cl) 1px;
  background-position:
    left -1px top calc(-1 * var(--cm)), left calc(-1 * var(--cm)) top -1px,
    right 0 top calc(-1 * var(--cm)), right calc(-1 * var(--cm)) top -1px,
    left -1px bottom calc(-1 * var(--cm)), left calc(-1 * var(--cm)) bottom 0,
    right 0 bottom calc(-1 * var(--cm)), right calc(-1 * var(--cm)) bottom 0;
}
.card h2, .card h3 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; }
th { color: var(--muted); font-family: var(--font-heading); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }

.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem;
  border: 1px solid var(--line); border-radius: 0; background: transparent; font-size: .85rem; font-weight: 500;
  text-transform: capitalize; }
.pill::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--amber); }
.pill.posted::before { background: var(--ok); }
.pill.part_cut::before { background: var(--amber); }
.pill.draft::before { background: var(--brand); }
.pill.reversed::before { background: var(--danger); }

input, select, button, textarea { font: inherit; padding: .48rem .7rem; min-height: var(--tap);
  border: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb, #1d1f20 3%, var(--bg)); color: var(--ink); }
form button[type=submit], form button:not([type]) { min-height: 48px; padding: .75rem 1.75rem;
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600; }
@media (max-width: 640px) { form button[type=submit], form button:not([type]) { width: 100%; } }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
button { background: var(--brand); color: var(--bg); border: 1px solid var(--brand); cursor: pointer; font-weight: 600; }
button:hover { background: var(--brand-600); }
button:active { background: var(--brand-700); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.secondary:hover { background: color-mix(in srgb, #1d1f20 6%, transparent); }
/* Marks the field that is actually wrong. A grid cell can be a select, so both. */
input.bad, select.bad { border-color: var(--danger); }
input.bad:focus, select.bad:focus { outline-color: var(--danger); }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .75rem; }

/* A row lays out in columns when it holds fields. A row of nothing but buttons keeps the
   plain flex above, so a button is as wide as its words — in the narrow side column the
   grid was giving "Undo this run" a quarter of the width and breaking it over three
   lines. */
form .row:has(label), .row:has(label) { display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem .75rem; align-items: end; }
/* A field says how many of the four columns it wants. This used to be inferred from a
   leftover `style="flex:..."` by string match, which meant flex:3 and flex:2 both landed
   on span 2 and no row could be checked for adding up. */
.row > label.wide { grid-column: span 2; }
.row > label.wider { grid-column: span 3; }

/* Five narrow fields — the waste classes, or a count beside the total it feeds. Numeric
   fields are capped at 10rem regardless, so five sit comfortably where four would push the
   fifth onto a line of its own. */
.row.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

fieldset, form > .row, .card > .row:has(label) { max-width: 62rem; }
.row > button { justify-self: start; align-self: end; }

/* The submit row is a direct child of the form, outside the fieldset, so it starts a
   border and a padding to the left of every field above it. Line it up with them. */
form > .row { margin-left: calc(1.1rem + 1px); }

@media (max-width: 1180px) {
  form .row, .row:has(label) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px)  {
  form .row, .row:has(label) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px)  {
  form .row, .row:has(label) { grid-template-columns: 1fr; }
  .row.cols-5 { grid-template-columns: 1fr; }
  .row > label.wide, .row > label.wider { grid-column: auto; }
}
.error { color: var(--danger); }
.muted, .hint { color: var(--muted); font-size: .9em; }

fieldset { border: 1px solid var(--line); border-radius: 0; margin: 0 0 1rem; padding: .9rem 1.1rem; }
legend { font-family: var(--font-heading); font-weight: 600; padding: 0 .4rem; color: var(--muted);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
label { display: flex; flex-direction: column; gap: .2rem; position: relative;
  font-size: .8rem; color: var(--muted); }
label input, label select, label output, label textarea { font-size: 15px; color: var(--ink); }

label > output { min-height: var(--tap); display: flex; align-items: center;
  padding: .48rem .7rem; border-radius: 0; border: 1px solid var(--line); background: var(--brand-tint-1);
  font-variant-numeric: tabular-nums; font-weight: 700; }
label > output.num { justify-content: flex-end; }

label > .hint { position: absolute; top: 100%; left: 0; right: 0; font-size: .72rem;
  line-height: 1.25; }
label > .hint:empty { display: none; }

/* The three numbers. Home only. */
.opbanner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 320px));
  gap: .6rem; margin-bottom: 1rem; }
.opbanner:empty { display: none; }
.stat { position: relative; border: 1px solid var(--line); border-radius: 0;
  padding: .5rem .8rem .6rem; text-decoration: none; color: inherit; transition: border-color .12s; }
.stat:hover { border-color: var(--brand); }
.stat .k { font-family: var(--font-heading); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat .v { font-size: 1.3rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat .v .u { font-size: .72rem; font-weight: 500; color: var(--muted); text-transform: none; }
.stat .s { font-size: .74rem; color: var(--muted); }
.stat.has-pending .v { color: var(--brand); }
/* Lighter -> darker accent tints, left to right — same hue, three steps of the ramp. */
.opbanner .stat:nth-child(1) { background: var(--brand-tint-1); }
.opbanner .stat:nth-child(2) { background: var(--brand-tint-2); }
.opbanner .stat:nth-child(3) { background: var(--brand-tint-3); }
@media (max-width: 640px) { th.opt, td.opt { display: none; } main { padding: .6rem .5rem; } }

.queue-badge { background: transparent; border: 1px solid var(--amber); color: var(--amber);
  font-weight: 600; font-size: .82rem; padding: .3rem .7rem; border-radius: 0; }
.queue-badge::before { content: "◷ "; }
.queue-badge:hover { background: color-mix(in srgb, var(--amber) 10%, transparent); }

.login-box { max-width: 360px; margin: 12vh auto; }
.login-box input { width: 100%; margin-bottom: .75rem; }
.login-box button { width: 100%; }

.toast { position: fixed; inset-inline: 1rem; bottom: calc(1rem + var(--tap)); z-index: 50;
         padding: .75rem 1rem; pointer-events: none; border-radius: 0;
         background: var(--ink); color: var(--bg);
         box-shadow: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent); }
@media (min-width: 641px) { .toast { bottom: 1rem; } }
.toast.warn { background: var(--amber); color: var(--bg); }
.toast.error { background: var(--danger); color: var(--bg); }

.warnings { border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent);
            padding: .6rem .8rem; border-radius: 0; margin-bottom: .75rem; }
.warnings .rule { font-weight: 600; font-family: var(--mono); font-size: .85em; color: var(--amber); }
.warnings p { margin: .2rem 0; }

/* ---- shared widgets (web/static/js/widgets), same tokens ---- */

.unit { position: absolute; right: .6rem; bottom: .62rem;
  color: var(--muted); font-size: .8rem; pointer-events: none; }
/* Short-value fields (gauge, width, thickness, rate — a handful of digits) filled the
   whole grid column, leaving the box mostly empty. Cap them so the box matches what it
   holds; the grid cell (and label above it) keeps its full column width and rhythm. */
input[data-num] { padding-right: 3rem; text-align: right; font-variant-numeric: tabular-nums; max-width: 10rem; }
/* The unit (.unit) is positioned off the label, not the input — shrink the label along
   with the input so "mm"/"kg" sits right after the box instead of floating at the far
   edge of the empty grid cell. */
label:has(> input[data-num]) { max-width: 10rem; }
form .row select, .row:has(label) select { max-width: 14rem; }
label > output { max-width: 10rem; }
.grid td input[data-num] { padding-right: .6rem; }

.lookup-list { list-style: none; margin: .15rem 0 0; padding: 0; position: absolute; top: 100%; z-index: 40;
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  max-height: 16rem; overflow: auto; min-width: 18rem; box-shadow: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent); }
.lookup-list li { display: flex; justify-content: space-between; gap: 1rem;
  padding: .4rem .6rem; cursor: pointer; min-height: var(--tap); align-items: center; }
.lookup-list li:hover, .lookup-list li.active { background: var(--brand-tint-1); }
.lookup-list em { color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; }

.running-total { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  border: 1px solid var(--line); border-left-width: 3px; border-radius: 0;
  padding: .6rem .9rem; margin: 0 0 1rem; background: var(--bg); }
.running-total[data-band="ok"]    { border-left-color: var(--ok); }
.running-total[data-band="warn"]  { border-left-color: var(--amber); background: color-mix(in srgb, var(--amber) 6%, transparent); }
.running-total[data-band="block"] { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 6%, transparent); }
.rt-cell { display: flex; flex-direction: column; }
.rt-cell label { flex: none; font-family: var(--font-heading); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); }
.rt-cell output { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 1rem;
  color: var(--muted); }
.rt-cell:nth-last-of-type(2) output, .rt-cell:last-of-type output {
  font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.running-total[data-band="warn"] .rt-cell:nth-last-of-type(2) output,
.running-total[data-band="warn"] .rt-cell:last-of-type output { color: var(--amber); }
.running-total[data-band="block"] .rt-cell:nth-last-of-type(2) output,
.running-total[data-band="block"] .rt-cell:last-of-type output { color: var(--danger); }
.rt-op { color: var(--muted); font-size: 1.1rem; }
.rt-note { font-size: .82rem; color: var(--muted); flex-basis: 100%; }
.running-total[data-band="warn"] .rt-note { color: var(--amber); font-weight: 600; }
.running-total[data-band="block"] .rt-note { color: var(--danger); font-weight: 600; }
.running-total[data-band="warn"] .rt-note::before { content: "WARN — "; letter-spacing: .04em; }
.running-total[data-band="block"] .rt-note::before { content: "STOP — "; letter-spacing: .04em; }
.running-total { position: sticky; top: 0; z-index: 20; }
@media (max-width: 900px) { .running-total { top: 56px; } }

.grid table { margin-bottom: .5rem; max-width: 46rem; table-layout: fixed; }
.grid th em { font-weight: 400; color: var(--muted); font-style: normal; text-transform: none; }
.grid td { padding: 0; }
.grid td input, .grid td select { border: 0; border-radius: 0; width: 100%; background: color-mix(in srgb, #1d1f20 2%, var(--bg)); }
.grid td input:hover, .grid td select:hover { background: var(--brand-tint-1); }
.grid td input:focus, .grid td select:focus { background: var(--bg); outline: 2px solid var(--brand); outline-offset: -2px; }
.grid th + th, .grid td + td { border-left: 1px solid var(--line-soft); }
.grid .grid-actions { width: 3rem; text-align: center; }
.grid .grid-actions button { min-height: 2rem; padding: 0 .5rem; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; flex: none; }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: transparent;
  color: var(--ink); border: 1px solid var(--line); border-radius: 0;
  padding: .15rem .6rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
button.chip { cursor: pointer; min-height: var(--tap); }
button.chip.on { background: var(--brand); color: var(--bg); border-color: var(--brand); }
.chip-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem;
  line-height: 1; padding: 0 .5rem; min-height: var(--tap); min-width: 2rem; }
.chip-x:hover { color: var(--danger); }
.chip { padding-right: 0; }

tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
tr.warn td { background: color-mix(in srgb, var(--amber) 6%, transparent); }

.grid-table td select { min-height: var(--tap); padding: .1rem .2rem; }
.grid-table td.num, .grid-table th.num { font-variant-numeric: tabular-nums; }
.grid-table th, .grid-table td { padding: .3rem .35rem; }

td.delta-bad { color: var(--danger); font-weight: 700; }
td.delta-soft { color: var(--amber); font-weight: 600; }
td.delta-ok { color: var(--ok); }

/* Segmented control — square, hairline-bordered, active segment a solid accent fill
   rather than a raised pill on a grey track. */
.tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 0;
  width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 1rem; }
.tabs button { background: transparent; color: var(--ink); border: 0; border-radius: 0;
  padding: .45rem 1rem; min-height: 40px; font-family: var(--font-heading); font-weight: 600; white-space: nowrap; }
.tabs button + button, .tabs a + a { border-left: 1px solid var(--line); }
.tabs button:hover:not(.active) { background: var(--brand-tint-1); }
.tabs button.active { background: var(--brand); color: var(--bg); font-weight: 600; }
.tabs .count { background: var(--brand-tint-2); color: var(--brand-700); border-radius: 0;
  padding: 0 .45em; font-size: .8em; font-weight: 600; margin-left: .3em; }
.tabs button.active .count { background: var(--bg); color: var(--brand-700); }
.tabs .count:empty { display: none; }

.tabs a { display: inline-flex; align-items: center; text-decoration: none;
  color: var(--ink); border-radius: 0; padding: .45rem 1rem; min-height: 40px;
  font-family: var(--font-heading); font-weight: 600; white-space: nowrap; }
.tabs a:hover:not(.active) { background: var(--brand-tint-1); }
.tabs a.active { background: var(--brand); color: var(--bg); font-weight: 600; }
main.split > .section-tabs { grid-column: 1 / -1; }

a { color: var(--brand-700); text-underline-offset: 3px; }
a:hover { color: var(--brand-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }

/* AF00 — the terminal at the scale (specs/aluminium/05-weighment.md §The form). The
   operator has little computer experience: large type, and choices as buttons, one at a
   time. */
.terminal { font-size: 1.1rem; }
.terminal .choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: .6rem; margin: .9rem 0; }
.terminal .choices button { min-height: 3.25rem; font-size: 1.05rem; }
.terminal .choices button.active { background: var(--brand); color: var(--bg); }
.terminal input[name="reading_kg"] { font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.terminal .running-total .rt-cell output { font-size: 1.35rem; }

/* The batch picker (A1.4) — every form's weight field once the scale is the source. */
.batch-picker ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.batch-picker li { border: 1px solid var(--line); padding: .5rem .7rem; cursor: pointer;
  display: grid; gap: .15rem; }
.batch-picker li.active { border-color: var(--brand); background: var(--brand-tint-1); }
.batch-picker li em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); }
.batch-picker li small { color: var(--muted); }
