/* ═══════════════════════════════════════════════════════════════════
   PACKLIST — order operations
   Cool-gray floor, tangerine action, status pills with real presence.
   Type: Commissioner (interface) + Sometype Mono (codes, counts, money).
   ═══════════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

:root {
  --ink: #191e26;
  --slate: #38414e;
  --dim: #66707f;
  --faint: #97a0ad;
  --line: #d7dce3;
  --line-soft: #e5e9ee;
  --panel: #ffffff;
  --floor: #edf0f3;
  --well: #e4e8ec;

  --tang: #f26d1b;
  --tang-deep: #9c4308;
  --tang-hot: #d8570a;
  --tang-tint: #fce4d4;
  --tang-ring: rgba(242, 109, 27, 0.35);

  --ok: #2e9962;

  --pend-bg: #fce4d4; --pend-fg: #9c4308; --pend-dot: #f26d1b;
  --proc-bg: #d9e9f9; --proc-fg: #1d5c96; --proc-dot: #2e7cc3;
  --ship-bg: #e2e0f7; --ship-fg: #4a3fa3; --ship-dot: #6759ce;
  --deliv-bg: #d9f0e2; --deliv-fg: #1f6b43; --deliv-dot: #2e9962;
  --cancel-bg: #f3dcdc; --cancel-fg: #8e3434; --cancel-dot: #c05353;
  --none-bg: #e4e8ec; --none-fg: #4a5462; --none-dot: #8892a0;

  --sans: "Commissioner", system-ui, -apple-system, sans-serif;
  --mono: "Sometype Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(25, 30, 38, 0.05), 0 8px 24px -18px rgba(25, 30, 38, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--slate);
  background: var(--floor);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--tang-tint); color: var(--tang-deep); }

:focus-visible {
  outline: 2px solid var(--tang);
  outline-offset: 2px;
  border-radius: 4px;
}

a { color: inherit; }
button { font: inherit; color: inherit; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; z-index: 60; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ─────────────── top bar ─────────────── */
.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.75rem;
  padding: 0.65rem clamp(1rem, 3.5vw, 2.25rem);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: baseline; gap: 0.6rem;
  text-decoration: none; white-space: nowrap;
}
.brand-mark { color: var(--tang); align-self: center; display: grid; }
.brand-word {
  font-family: var(--mono); font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.04em; color: var(--ink);
}
.brand-sub {
  font-size: 0.78rem; color: var(--faint); letter-spacing: 0.02em;
}
.bar-nav { display: flex; gap: 0.35rem; margin-left: auto; }
.bar-nav a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--dim); padding: 0.4rem 0.7rem; border-radius: 7px;
  border-bottom: 2px solid transparent;
}
.bar-nav a:hover { color: var(--ink); background: var(--well); }
.bar-nav a[aria-current="page"] {
  color: var(--tang-deep);
  background: var(--tang-tint);
}
.who { display: flex; align-items: center; gap: 0.6rem; }
.who-name { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.who-role {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--dim); background: var(--well);
  padding: 0.18em 0.6em; border-radius: 99px;
}

/* ─────────────── buttons ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 0.68em 1.15em; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-hot { background: var(--tang); color: #fff; }
.btn-hot:hover { background: var(--tang-hot); }
.btn-ghost { background: transparent; color: var(--dim); border-color: transparent; }
.btn-ghost:hover { background: var(--well); color: var(--ink); }
.btn-line { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--faint); background: var(--floor); }
.btn-wide { width: 100%; }
.btn-sm { font-size: 0.85rem; padding: 0.5em 0.85em; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--tang-deep); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px;
}
.linklike:hover { color: var(--tang-hot); }

/* ─────────────── layout ─────────────── */
main { flex: 1; width: 100%; }
.wrap {
  width: min(1160px, 100% - clamp(2rem, 7vw, 4.5rem));
  margin-inline: auto;
  padding-block: clamp(1.25rem, 3vw, 2.25rem) 3rem;
}
.wrap-narrow { width: min(680px, 100% - clamp(2rem, 7vw, 4.5rem)); }

.viewhead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap;
}
.viewhead h1 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 700;
  color: var(--ink); letter-spacing: -0.015em; line-height: 1.15;
}
.viewhead-sub { color: var(--dim); font-size: 0.92rem; margin-top: 0.25rem; max-width: 56ch; }

.backlink {
  display: inline-block; margin-bottom: 1rem;
  font-size: 0.9rem; font-weight: 600; color: var(--dim);
  text-decoration: none;
}
.backlink::before { content: "← "; }
.backlink:hover { color: var(--tang-deep); }

.panel {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.sect {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim);
}
.sect-sub { font-size: 0.85rem; color: var(--faint); margin-top: 0.15rem; }

/* ─────────────── THE RAIL — the pipeline, read left to right ─────────────── */
.rail {
  display: flex; align-items: stretch; gap: 0;
  margin-bottom: 1.5rem;
}
.rail-step {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: 0.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0.9rem 1.1rem 0.85rem;
  box-shadow: var(--shadow);
  cursor: pointer; text-align: left;
  position: relative;
  transition: transform 140ms ease, border-color 140ms ease;
  animation: rail-in 340ms ease backwards;
}
.rail-step:nth-child(3) { animation-delay: 60ms; }
.rail-step:nth-child(5) { animation-delay: 120ms; }
.rail-step:nth-child(7) { animation-delay: 180ms; }
@keyframes rail-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.rail-step:hover { transform: translateY(-2px); border-color: var(--faint); }
.rail-step::before {
  content: ""; position: absolute; inset: 0.9rem auto 0.9rem 0;
  width: 4px; border-radius: 0 3px 3px 0; background: var(--dot, var(--none-dot));
}
.rail-count {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700;
  color: var(--ink); line-height: 1.05;
}
.rail-label {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--fg, var(--dim));
}
.rail-value {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 0.78rem; color: var(--faint); margin-top: 0.2rem;
}
.rail-arrow {
  flex: 0 0 auto; align-self: center;
  color: var(--faint); padding-inline: 0.35rem;
  display: grid; place-items: center;
}
.rail-arrow svg { display: block; }

/* ─────────────── STATUS PILLS — the signature, everywhere a status shows ─────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.38em 0.85em 0.34em; border-radius: 99px;
  background: var(--none-bg); color: var(--none-fg);
  white-space: nowrap;
}
.pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--none-dot); flex: 0 0 auto;
}
.pill-pending { background: var(--pend-bg); color: var(--pend-fg); }
.pill-pending::before { background: var(--pend-dot); }
.pill-processing { background: var(--proc-bg); color: var(--proc-fg); }
.pill-processing::before { background: var(--proc-dot); }
.pill-shipped { background: var(--ship-bg); color: var(--ship-fg); }
.pill-shipped::before { background: var(--ship-dot); }
.pill-delivered { background: var(--deliv-bg); color: var(--deliv-fg); }
.pill-delivered::before { background: var(--deliv-dot); }
.pill-cancelled { background: var(--cancel-bg); color: var(--cancel-fg); }
.pill-cancelled::before { background: var(--cancel-dot); }

/* ─────────────── dashboard grid ─────────────── */
.dash-grid {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 1.1rem; align-items: start;
}
.dash-side { display: grid; gap: 1.1rem; }
/* wide inner content (tables) must scroll inside its panel, never stretch the column */
.dash-grid > *, .dash-side > *, .od-grid > *, .od-main > *, .od-side > * { min-width: 0; }

.stack { display: flex; flex-direction: column; margin-top: 0.8rem; }
.stack-tight { margin-top: 0.6rem; }

.orderline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.35rem 1rem; align-items: center;
  padding: 0.7rem 0.35rem;
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
  border-radius: 6px;
}
.stack > .orderline:first-child { border-top: 0; }
.orderline:hover { background: var(--floor); }
.orderline-main { min-width: 0; }
.orderline-num {
  display: block;
  font-family: var(--mono); font-weight: 600; font-size: 0.92rem;
  color: var(--ink); letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.orderline-meta {
  display: block; font-size: 0.82rem; color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.orderline-total {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: 0.92rem; color: var(--ink); text-align: right;
}
.orderline-age { font-size: 0.78rem; color: var(--faint); grid-column: 2 / 4; text-align: right; }

.tally { margin-top: 0.8rem; display: grid; gap: 0.55rem; }
.tally div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line-soft); padding-top: 0.55rem;
}
.tally div:first-child { border-top: 0; padding-top: 0; }
.tally dt { font-size: 0.85rem; color: var(--dim); }
.tally dd {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.tally .tally-hot dd { color: var(--tang-deep); }

/* ─────────────── filter bar (orders) ─────────────── */
.filterbar { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.fpill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  padding: 0.45em 0.95em; border-radius: 99px;
  background: var(--panel); color: var(--dim);
  border: 1px solid var(--line); cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.fpill:hover { border-color: var(--faint); }
.fpill .n { font-variant-numeric: tabular-nums; color: var(--faint); }
.fpill[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.fpill[aria-pressed="true"] .n { color: var(--tang); }

/* ─────────────── manifest tables ─────────────── */
.table-scroll {
  overflow-x: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.manifest { width: 100%; border-collapse: collapse; min-width: 640px; }
.manifest th {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint);
  text-align: left; padding: 0.8rem 1rem 0.55rem;
  border-bottom: 1px solid var(--line);
}
.manifest td {
  padding: 0.72rem 1rem; border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem; vertical-align: middle;
}
.manifest tbody tr:last-child td { border-bottom: 0; }
.manifest tbody tr { cursor: pointer; }
.manifest tbody tr:hover td { background: var(--floor); }
.manifest tbody tr.no-link { cursor: default; }
.manifest tbody tr.no-link:hover td { background: transparent; }
.manifest .num {
  text-align: right; font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.manifest .cell-num {
  font-family: var(--mono); font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.manifest .cell-strong { font-weight: 600; color: var(--ink); }
.manifest .cell-dim { color: var(--dim); font-size: 0.88rem; }
.manifest .cell-mono { font-family: var(--mono); font-size: 0.88rem; color: var(--dim); }

/* ─────────────── order detail ─────────────── */
.od-head {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  margin-bottom: 0.3rem;
}
.od-head h1 {
  font-family: var(--mono); font-weight: 700; letter-spacing: 0.01em;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--ink);
}
.od-sub { color: var(--dim); font-size: 0.92rem; margin-bottom: 1.3rem; }
.od-sub a { color: var(--tang-deep); font-weight: 600; text-decoration: none; }
.od-sub a:hover { text-decoration: underline; text-underline-offset: 3px; }

.od-grid {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 1.1rem; align-items: start;
}
.od-main, .od-side { display: grid; gap: 1.1rem; }

.items-table { min-width: 520px; }
.itemline-name { font-weight: 600; color: var(--ink); }

.totals { display: grid; gap: 0.45rem; margin-top: 0.8rem; }
.totals div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.totals dt { font-size: 0.88rem; color: var(--dim); }
.totals dd { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--slate); }
.totals .grand { border-top: 1px solid var(--line); padding-top: 0.55rem; margin-top: 0.25rem; }
.totals .grand dt { font-weight: 600; color: var(--ink); }
.totals .grand dd { font-weight: 700; font-size: 1.15rem; color: var(--ink); }

.kv { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.kv div { display: grid; gap: 0.05rem; }
.kv dt {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint);
}
.kv dd { font-size: 0.93rem; color: var(--slate); overflow-wrap: anywhere; }
.kv dd.mono { font-size: 0.86rem; }

.note-card p { margin-top: 0.6rem; font-size: 0.93rem; color: var(--slate); }

/* ship panel */
.ship-panel { border-left: 4px solid var(--tang); }
.ship-panel .sect { color: var(--tang-deep); }
.shipment-card { border-left: 4px solid var(--deliv-dot); }
.shipment-card .sect { color: var(--deliv-fg); }

/* ─────────────── forms ─────────────── */
.formpanel { margin-bottom: 1.25rem; }
.formpanel .sect + .field, .formpanel .sect-sub + .field-row { margin-top: 0.9rem; }
.field { display: grid; gap: 0.3rem; margin-top: 0.85rem; }
.field label {
  font-size: 0.82rem; font-weight: 600; color: var(--slate);
  letter-spacing: 0.01em;
}
.field input, .field select {
  font: inherit; color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.55em 0.75em; width: 100%;
}
.field input:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--tang);
  box-shadow: 0 0 0 3px var(--tang-ring);
}
.mono-input, .field select { font-variant-numeric: tabular-nums; }
.mono-input { font-family: var(--mono); font-size: 0.95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.8rem; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.check {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.8rem; font-size: 0.9rem; color: var(--slate); cursor: pointer;
}
.check input { accent-color: var(--tang); width: 1rem; height: 1rem; }
.subset { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 0.9rem 1rem 1rem; margin-top: 1rem; }
.subset legend {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim);
  padding-inline: 0.4em;
}
.hint { font-size: 0.82rem; color: var(--faint); }
.form-actions { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.form-err {
  margin-top: 0.8rem; font-size: 0.9rem; font-weight: 600;
  color: #a13030; background: #f7e3e3;
  border-radius: 8px; padding: 0.55em 0.8em;
}
.total-preview {
  margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: baseline;
  font-weight: 600; color: var(--ink);
}
.total-preview output { font-weight: 700; font-size: 1.2rem; }

/* ─────────────── states: loading, empty, error ─────────────── */
.state { padding: 2.2rem 1rem; text-align: center; }
.state-line {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim);
}
.state-loading .state-line::after {
  content: "…"; display: inline-block; width: 1.2em; text-align: left;
  animation: working 1.1s steps(4, end) infinite;
}
@keyframes working {
  0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; }
}
.state-belt {
  width: 120px; height: 4px; border-radius: 3px; margin: 0 auto 0.9rem;
  background: var(--well); position: relative; overflow: hidden;
}
.state-belt::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 34px;
  border-radius: 3px; background: var(--tang);
  animation: belt 1.05s ease-in-out infinite alternate;
}
@keyframes belt { from { left: 0; } to { left: 86px; } }
.state-empty-mark {
  width: 44px; height: 44px; margin: 0 auto 0.8rem; color: var(--faint);
}
.state-empty-mark svg { width: 100%; height: 100%; }
.state-head { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.state-sub { color: var(--dim); font-size: 0.9rem; margin-top: 0.25rem; max-width: 44ch; margin-inline: auto; }
.state .btn { margin-top: 1rem; }
.state-error .state-head { color: #a13030; }

.empty-inline {
  padding: 1.4rem 0.5rem; text-align: center;
  color: var(--dim); font-size: 0.9rem;
}
.empty-inline strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 0.15rem; }

/* ─────────────── the gate ─────────────── */
.gate {
  min-height: calc(100vh - 140px);
  display: grid; place-items: center; align-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem 2rem;
  position: relative; overflow: hidden;
}
.gate::before {
  content: "PACKLIST →"; position: absolute;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(6rem, 18vw, 15rem); letter-spacing: 0.02em;
  color: var(--well); white-space: nowrap;
  top: 4%; left: 50%; transform: translateX(-50%) rotate(-3.5deg);
  user-select: none; pointer-events: none; z-index: 0;
}
.gate-card {
  position: relative; z-index: 1;
  width: min(440px, 100%);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(1.4rem, 4vw, 2.1rem);
  box-shadow: 0 2px 4px rgba(25, 30, 38, 0.05), 0 24px 60px -30px rgba(25, 30, 38, 0.45);
}
.gate-eyebrow {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--tang-deep);
}
.gate-h {
  font-size: clamp(1.55rem, 4vw, 1.95rem); font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.12;
  margin-top: 0.5rem;
}
.gate-lede { color: var(--dim); font-size: 0.93rem; margin-top: 0.7rem; }
.gate-card form { margin-top: 1.1rem; }
.gate-card .btn-wide { margin-top: 1.1rem; }
.demo-slot {
  margin-top: 1.4rem; background: var(--floor);
  border: 1px dashed var(--line); border-radius: var(--r);
  padding: 0.9rem 1rem 1rem;
}
.ds-tag {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--dim);
}
.ds-rows { margin-top: 0.55rem; display: grid; gap: 0.3rem; }
.ds-rows div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; }
.ds-rows dt { color: var(--faint); }
.ds-rows dd { color: var(--ink); font-size: 0.85rem; }
.demo-slot .btn-wide { margin-top: 0.8rem; }
.gate-alt { margin-top: 1.3rem; text-align: center; font-size: 0.92rem; color: var(--dim); }
.gate-foot {
  position: relative; z-index: 1;
  margin-top: 1.4rem; font-size: 0.82rem; color: var(--faint); text-align: center;
}

/* ─────────────── toast ─────────────── */
.toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 70;
  background: var(--ink); color: #fff;
  border-left: 4px solid var(--tang);
  border-radius: var(--r); padding: 0.7rem 1.1rem;
  font-size: 0.92rem; font-weight: 500;
  box-shadow: 0 14px 40px -12px rgba(25, 30, 38, 0.6);
  max-width: min(480px, calc(100vw - 2rem));
}
.toast--err { border-left-color: #d16060; }

/* ─────────────── footer ─────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 1.3rem clamp(1rem, 3.5vw, 2.25rem) 1.6rem;
  font-size: 0.85rem; color: var(--dim);
}
.foot-brand { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.foot-dim { color: var(--faint); font-size: 0.8rem; margin-top: 0.25rem; max-width: 72ch; }

/* ─────────────── responsive ─────────────── */
@media (max-width: 940px) {
  .dash-grid, .od-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.7rem; }
  .rail-arrow { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .bar { flex-wrap: wrap; gap: 0.5rem 1rem; padding-block: 0.6rem; }
  .brand-sub { display: none; }
  .bar-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .who { margin-left: auto; }
  .who-name { display: none; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .orderline { grid-template-columns: minmax(0, 1fr) auto; }
  .orderline .pill { grid-row: 2; justify-self: start; }
  .orderline-age { grid-column: auto; }
  .viewhead { align-items: flex-start; flex-direction: column; }
  .gate::before { font-size: 34vw; top: 2%; }
}

/* ─────────────── reduced motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
