/* Route 66 Drive-In — guest app and pit board.
   Layout follows the mockups: phone layout under 960px, sidebar layout at 960px and up. */
:root {
  color-scheme: light;
  --bg: #f3eee6;
  --bg-desk: #efe8dc;
  --surface: #fffcf8;
  --ink: #1c1612;
  --muted: #6b6259;
  --line: #e6dccf;
  --accent: #9c2f24;
  --accent-dark: #7d241c;
  --brass: #8a6433;
  --gold: #f0c37a;
  --sage: #1f6a45;
  --mint: #9ddec0;
  --warn: #8a4b12;
  --pit: #12100e;
  --pit-2: #1c1916;
  --pit-line: #34302b;
  --pit-ink: #f6f1e8;
  --pit-muted: #cbbba8;
  --pit-dim: #8c7f71;
  --shadow: 0 12px 30px rgba(48, 28, 12, 0.07);
  --shadow-lg: 0 16px 40px rgba(48, 28, 12, 0.08);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --plate: Oswald, "Arial Narrow", sans-serif;
  --nav: 58px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

body.guest {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

.serif { font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; }
.mono { font-family: var(--mono); }
.kicker {
  margin: 0;
  color: var(--brass);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.muted { color: var(--muted); }
.alert { color: var(--accent); font-weight: 650; margin: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shield ---------- */
.shield {
  flex: none;
  width: 34px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 15px;
  clip-path: polygon(50% 0, 100% 16%, 88% 72%, 50% 100%, 12% 72%, 0 16%);
}

/* ---------- buttons ---------- */
.btn {
  min-height: 54px;
  border-radius: 999px;
  border: 0;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-wide { width: 100%; }
.btn-add {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.btn-add:hover { background: var(--accent-dark); }
.eighty-six {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.link-btn { background: none; border: 0; padding: 0; text-align: inherit; }
.text-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- frame ---------- */
.app-frame { min-height: 100vh; padding-bottom: calc(var(--nav) + 18px + env(safe-area-inset-bottom)); }
.side { display: none; }
.screen { padding: 4px 18px 20px; min-width: 0; }
.rail { display: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px 10px;
  background: rgba(243, 238, 230, 0.94);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 22px; letter-spacing: -0.03em; }
.bag-pill {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  text-decoration: none;
}
.count-dot {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
.tab {
  min-height: var(--nav);
  display: grid;
  place-items: center;
  color: #f3eee6;
  text-decoration: none;
}
.tab.on { color: #f0c7a0; font-weight: 600; }

.footnote { color: var(--muted); font-size: 12.5px; line-height: 1.45; padding: 4px 18px 8px; }
.footnote p { margin: 0 0 6px; }
.footnote a { color: var(--accent); }

/* ---------- menu hero ---------- */
.hero {
  margin: 4px -4px 0;
  border-radius: 24px;
  background: var(--ink);
  padding: 7px;
  box-shadow: 0 18px 40px rgba(48, 28, 12, 0.18);
}
.hero-inner {
  border-radius: 18px;
  border: 2px dotted rgba(240, 195, 122, 0.75);
  padding: 20px 18px 18px;
  background: radial-gradient(circle at 85% 0%, rgba(156, 47, 36, 0.55), transparent 60%);
  display: grid;
  gap: 14px;
}
.hero-kicker {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
.hero h1 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.035em;
  font-size: 46px;
  line-height: 0.92;
  color: var(--pit-ink);
}
.hero-lede { margin: 10px 0 0; color: var(--pit-muted); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-open, .pill-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.pill-open { background: rgba(157, 222, 192, 0.14); color: var(--mint); }
.pill-open::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.pill-open.closed { background: rgba(240, 195, 122, 0.14); color: var(--gold); }
.pill-line { border: 1px solid #3a332c; color: #e8dccb; }

/* ---------- categories ---------- */
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 16px 18px 4px; margin: 0 -18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 15px;
  white-space: nowrap;
}
.chip.on { background: var(--ink); color: #f3eee6; border-color: var(--ink); }

/* ---------- food cards ---------- */
.menu-grid { display: grid; gap: 11px; padding: 12px 0; }
.food-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas:
    "mark copy action"
    "mark meta action";
  column-gap: 12px;
  row-gap: 5px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 11px;
  box-shadow: var(--shadow);
}
.food-card.sold { opacity: 0.72; }
.food-mark { grid-area: mark; width: 72px; height: 72px; padding: 0; border: 0; background: none; border-radius: 22px; }
.food-mark svg, .mark svg { width: 100%; height: 100%; display: block; }
.food-copy { grid-area: copy; min-width: 0; align-self: end; }
.food-name { margin: 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; font-size: 19px; line-height: 1.15; }
.food-name button { font: inherit; letter-spacing: inherit; }
.food-desc {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.food-meta { grid-area: meta; display: flex; gap: 10px; font-size: 14px; align-self: start; }
.food-meta .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.food-meta .prep { color: var(--muted); }
.food-action { grid-area: action; }

/* ---------- bag rail & cart ---------- */
.bag-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.bag-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bag-head h2 { margin: 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; font-size: 28px; }
.bag-head span { font-size: 14px; color: var(--muted); }
.bag-lines { display: grid; margin-top: 12px; }
.bag-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.bag-line span:last-child, .total-row span:last-child { font-variant-numeric: tabular-nums; }
.total-row { display: flex; justify-content: space-between; margin-top: 12px; font-size: 17px; font-weight: 700; }
.fine { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.bag-card .btn { margin-top: 16px; }

.page-head { padding: 8px 0 4px; }
.page-head h1, .display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.035em;
  font-size: 40px;
  line-height: 0.95;
}
.lede { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; text-wrap: pretty; }

.cart-list { display: grid; gap: 11px; margin-top: 16px; }
.cart-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 11px;
  box-shadow: var(--shadow);
}
.cart-row .mark { width: 64px; height: 64px; }
.cart-row h2 { margin: 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; font-size: 18px; line-height: 1.15; }
.cart-row .price { margin: 3px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 18px;
  display: grid;
  place-items: center;
}
.step:disabled { opacity: 0.4; cursor: not-allowed; }
.step-count { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-card { margin-top: 16px; }

/* ---------- item detail ---------- */
.detail { display: grid; gap: 14px; }
.detail-hero {
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.detail-hero .mark { width: min(70%, 220px); aspect-ratio: 1; }
.detail-price { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 6px 0 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts li { padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.facts li span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.facts li strong { font-size: 15px; }
.detail-buy { display: flex; gap: 12px; align-items: center; }
.detail-buy .btn { flex: 1; }

/* ---------- checkout ---------- */
.checkout-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.back { font-size: 22px; color: var(--muted); text-decoration: none; min-width: 44px; min-height: 44px; display: grid; place-items: center start; }
.checkout-top .bag-sum { font-size: 14px; color: var(--muted); }
.checkout-head h1 { margin: 10px 0 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.035em; font-size: 40px; line-height: 0.95; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.progress li { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.progress li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.progress li.on { color: var(--ink); font-weight: 700; }
.progress li.on::before { background: var(--ink); }
.progress li.done { color: var(--sage); }
.progress li.done::before { background: var(--sage); }

.panel-q { margin: 24px 0 0; font-size: 17px; color: var(--muted); }
.big-time { margin-top: 8px; display: flex; align-items: baseline; gap: 10px; }
.big-time strong { font-family: var(--serif); font-weight: 650; font-size: 76px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-time span { font-size: 22px; font-weight: 600; color: var(--brass); }
.time-date { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.slot {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.slot.on { background: var(--ink); border-color: var(--ink); color: #f3eee6; }
.other-time { display: grid; gap: 6px; margin-top: 10px; }
.other-time label { font-size: 14px; font-weight: 600; }

.hours-card { margin-top: 22px; padding: 14px 14px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.hours-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.hours-track { position: relative; height: 30px; margin-top: 10px; }
.hours-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e6dccf, #d9c6ad);
}
.hours-tick, .hours-dot { position: absolute; transition: left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hours-tick { top: 2px; width: 2px; height: 26px; background: var(--accent); transform: translateX(-1px); }
.hours-dot {
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
  transform: translateX(-7px);
  box-shadow: 0 2px 6px rgba(156, 47, 36, 0.4);
}
.hours-track.off .hours-tick, .hours-track.off .hours-dot { background: var(--muted); }
.hours-labels { position: relative; height: 16px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.hours-labels span:first-child { transform: none; }
.hours-labels span:last-child { transform: translateX(-100%); }
.preview { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.preview.bad { color: var(--accent); font-weight: 600; }

.dock {
  position: sticky;
  bottom: 18px;
  margin-top: 24px;
  z-index: 3;
}
.flow .tabbar { display: none; }
.flow.app-frame { padding-bottom: 12px; }

.car-stage {
  position: relative;
  border-radius: 22px;
  padding: 22px 18px 16px;
  background: var(--car, #9c2f24);
  transition: background 0.35s;
  box-shadow: inset 0 -30px 50px rgba(0, 0, 0, 0.18);
}
.car-caption { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--car-ink, #f3eee6); }
.plate {
  margin: 0 auto;
  width: 250px;
  max-width: 100%;
  border-radius: 12px;
  background: #fbf8f2;
  border: 2px solid var(--ink);
  padding: 7px 10px 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: rotate(-1.2deg);
  color: var(--ink);
}
.plate-top { display: flex; justify-content: space-between; gap: 14px; font-size: 10px; letter-spacing: 0.24em; font-weight: 700; color: var(--accent); }
.plate-text {
  font-family: var(--plate);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.plate-sub { font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; }

.fields { display: grid; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.input, textarea.input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 400;
}
textarea.input { padding: 12px 14px; min-height: 92px; resize: vertical; }
.input.plate-input { border-color: var(--ink); font-family: var(--plate); font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase; }
.colors { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--surface);
  font-size: 14px;
}
.swatch::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid var(--line);
}
.swatch.on { border-color: var(--ink); }

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.review-card h2 { margin: 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; font-size: 22px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kv div { padding: 11px 12px; border-radius: 12px; background: var(--bg); }
.kv span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.kv strong { display: block; margin-top: 2px; font-size: 15px; }
.review-grid { display: grid; gap: 14px; margin-top: 18px; }

/* ---------- ticket ---------- */
.ticket-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title plate" "info info"; align-items: end; gap: 0 12px; }
.th-title { grid-area: title; min-width: 0; }
.th-info { grid-area: info; }
.ticket-head .mini-plate { grid-area: plate; margin-bottom: 4px; }
.ticket-no { margin: 2px 0 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.035em; font-size: 40px; line-height: 1; }
.mini-plate {
  flex: none;
  white-space: nowrap;
  border-radius: 8px;
  background: #fbf8f2;
  border: 2px solid var(--ink);
  padding: 3px 9px 2px;
  text-align: center;
  transform: rotate(2deg);
  box-shadow: 0 6px 14px rgba(48, 28, 12, 0.15);
}
.mini-plate .plate-top { justify-content: center; font-size: 7px; }
.mini-plate .plate-top span:not(:nth-child(2)) { display: none; }
.mini-plate .plate-text { font-size: 21px; letter-spacing: 0.06em; line-height: 1.1; }
.mini-plate .plate-sub { display: none; }
.ticket-items { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.ticket-money { margin: 2px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }

.fire {
  margin-top: 14px;
  border-radius: 24px;
  background: var(--pit);
  color: var(--pit-ink);
  padding: 18px 16px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(18, 16, 14, 0.25);
  --status: #e8dccb;
  --glow: rgba(156, 47, 36, 0.35);
}
.fire.firing { --status: var(--gold); --glow: rgba(240, 160, 80, 0.45); }
.fire.ready { --status: var(--mint); --glow: rgba(80, 190, 140, 0.4); }
.fire::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -10%, var(--glow), transparent 60%);
  transition: background 0.6s;
}
.fire-body { position: relative; display: grid; gap: 16px; }
.fire-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fire-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--status);
}
.fire-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.fire-clock { font-family: var(--mono); font-size: 12px; color: var(--pit-muted); }
.fire-count { margin-top: 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fire-count strong { font-family: var(--mono); font-weight: 600; font-size: 54px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fire-count span { font-size: 15px; color: var(--pit-muted); }
.lane-track { position: relative; height: 66px; }
.lane-track .rail-bg { position: absolute; left: 0; right: 0; top: 26px; height: 8px; border-radius: 4px; background: #2a2622; }
.lane-track .cook {
  position: absolute;
  top: 26px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #9c2f24, #f0c37a);
  transition: left 0.5s, width 0.5s;
}
.lane-track .tag {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1.3;
  transition: left 0.5s;
}
.lane-track .tag b { font-family: var(--mono); font-weight: 400; display: block; }
.tag.t-fire { top: 0; color: var(--gold); }
.tag.t-arrive { top: 0; color: var(--pit-ink); }
.tag.t-ready { top: 40px; color: var(--mint); }
.lane-track .now { position: absolute; top: 18px; width: 2px; height: 24px; background: var(--pit-ink); transform: translateX(-1px); box-shadow: 0 0 8px #fff; }
.lane-track .ends { display: none; }
.fire-untimed { margin: 0; color: var(--pit-muted); font-size: 14px; }

.ticket-cols { display: grid; gap: 16px; margin-top: 16px; }
.steps-card { display: grid; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  color: var(--muted);
  font-size: 15px;
}
.steps li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d9cbb8;
  transition: all 0.3s;
}
.steps li.done { color: var(--ink); }
.steps li.done::before { border-color: var(--sage); background: var(--sage); }
.steps time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.steps-card .btn { margin-top: 12px; }
.here-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  min-height: 54px;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
}
.trail {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.trail h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; font-size: 20px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.tile { padding: 9px 2px; border-radius: 12px; background: var(--bg); }
.tile span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tile strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 14px; margin-top: 2px; }
.tile s { display: block; margin-top: 1px; font-family: var(--mono); font-size: 11px; color: var(--muted); text-decoration: none; }
.tile.fire-t s::before { content: "↺ "; }
.tile.fire-t { background: #f8e9df; }
.tile.fire-t span { color: var(--accent); }
.tile.ready-t { background: #e3efe7; }
.tile.ready-t span { color: var(--sage); }
.trail h3 { margin: 14px 0 4px; font-weight: 650; font-size: 14px; }
.changes { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; line-height: 1.4; }
.badge { margin: 12px 0 2px; color: var(--brass); font-weight: 650; font-size: 13px; }
.trail .fine { margin-top: 0; }
.trail .wording { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }

.empty-state {
  margin-top: 16px;
  padding: 22px;
  border-radius: 22px;
  border: 1px dashed #d9cbb8;
  display: grid;
  gap: 12px;
  justify-items: start;
}

/* ---------- find ---------- */
.find-card { margin-top: 18px; }

/* ================= desktop ================= */
@media (min-width: 960px) {
  body.guest { background: var(--bg-desk); }
  .app-frame {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 0 28px;
    padding: 0 28px 0 0;
  }
  .app-frame.has-rail { grid-template-columns: 250px minmax(0, 1fr) 320px; }
  .flow.app-frame { padding-bottom: 0; }
  .topbar, .tabbar, .footnote, .chips, .checkout-top, .dock-mobile { display: none !important; }
  .side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 4px 22px 20px;
  }
  .side .brand { margin-bottom: 18px; gap: 11px; }
  .side .shield { width: 38px; height: 43px; font-size: 16px; }
  .side-title { display: grid; }
  .side-title strong { font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; font-size: 22px; line-height: 1.1; }
  .side-title span { font-size: 13px; color: var(--muted); }
  .side-link, .side-cat {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 13px;
    text-decoration: none;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
  }
  .side-cat:hover, .side-link:hover { background: #f7f1e8; }
  .side-link.on, .side-cat.on { background: var(--surface); font-weight: 650; }
  .side-label { margin: 22px 12px 6px; color: var(--brass); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
  .side-foot { margin-top: auto; padding: 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
  .side-foot p { margin: 0 0 6px; }
  .side-foot a { color: var(--accent); }

  .screen { padding: 28px 0 32px; }

  .hero { margin: 0; border-radius: 28px; padding: 8px; box-shadow: 0 22px 44px rgba(48, 28, 12, 0.18); }
  .hero-inner {
    padding: 30px 32px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    background: radial-gradient(circle at 90% 0%, rgba(156, 47, 36, 0.6), transparent 55%);
  }
  .hero-kicker { font-size: 12px; }
  .hero h1 { margin-top: 8px; font-size: 68px; line-height: 0.9; letter-spacing: -0.04em; }
  .hero-lede { margin-top: 14px; font-size: 17px; max-width: 440px; }
  .hero-chips { display: grid; gap: 8px; justify-items: end; }
  .pill-open, .pill-line { padding: 8px 14px; font-size: 14px; }

  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px 0 0; }
  .food-card {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    grid-template-areas:
      "mark copy copy"
      "mark meta action";
    column-gap: 14px;
    row-gap: 4px;
    border-radius: 22px;
    padding: 14px;
  }
  .food-mark { width: 84px; height: 84px; }
  .food-name { font-size: 21px; }
  .food-desc { font-size: 14px; line-height: 1.4; -webkit-line-clamp: 3; }
  .food-meta { font-size: 15px; align-self: center; }
  .btn-add { min-height: 42px; padding: 0 18px; }
  .eighty-six { min-height: 42px; }

  .rail { display: block; padding: 28px 0 32px; }
  .rail .bag-card { position: sticky; top: 20px; }

  .page-head h1, .display { font-size: 56px; }
  .cart-page { max-width: 760px; }

  .checkout-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .checkout-head h1 { margin: 0; font-size: 56px; }
  .checkout-head .progress { grid-template-columns: repeat(3, 150px); gap: 8px; margin: 0; }
  .checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; margin-top: 24px; align-items: start; }
  .card-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
  .card-panel .panel-q { margin-top: 0; }
  .card-panel .big-time strong { font-size: 92px; letter-spacing: -0.045em; }
  .card-panel .big-time span { font-size: 24px; }
  .card-panel .slots { margin-top: 20px; }
  .card-panel .hours-card { margin-top: 20px; background: var(--bg); border: 0; }
  .card-panel .hours-tick { display: none; }
  .vehicle-panel { display: grid; gap: 14px; align-content: start; }
  .vehicle-panel .panel-q { margin: 0; }
  .vehicle-panel .car-stage { border-radius: 20px; padding: 26px 18px 16px; }
  .vehicle-panel .plate { width: 300px; padding: 8px 12px 7px; border-radius: 13px; }
  .vehicle-panel .plate-text { font-size: 50px; }
  .vehicle-panel .fields { margin-top: 0; grid-template-columns: 1fr 1fr; }
  .vehicle-panel .fields .wide { grid-column: 1 / -1; }
  .vehicle-panel .swatch { background: var(--bg); }
  .vehicle-panel .btn { margin-top: 6px; }
  .review-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; margin-top: 24px; }
  .review-card { border-radius: 24px; padding: 24px; }

  .ticket-page { display: grid; gap: 18px; align-content: start; }
  .ticket-head { grid-template-areas: "title plate" "info plate"; gap: 0 24px; }
  .ticket-no { margin-top: 4px; font-size: 72px; line-height: 0.95; letter-spacing: -0.04em; }
  .ticket-items { margin-top: 10px; font-size: 16px; }
  .ticket-money { margin-top: 3px; font-size: 15px; }
  .mini-plate { border-radius: 12px; padding: 6px 16px 5px; box-shadow: 0 10px 22px rgba(48, 28, 12, 0.16); }
  .mini-plate .plate-top { justify-content: space-between; gap: 20px; font-size: 9px; }
  .mini-plate .plate-top span { display: inline !important; }
  .mini-plate .plate-text { font-size: 40px; line-height: 1.2; letter-spacing: 0.05em; }
  .mini-plate .plate-sub { display: block; font-size: 9px; text-transform: none; }

  .fire { margin-top: 0; border-radius: 28px; padding: 26px 30px 24px; box-shadow: 0 22px 44px rgba(18, 16, 14, 0.25); }
  .fire::before { background: radial-gradient(circle at 85% -20%, var(--glow), transparent 55%); }
  .fire-body { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; }
  .fire-count { margin-top: 10px; display: block; }
  .fire-count strong { display: block; font-size: 76px; letter-spacing: -0.04em; }
  .fire-count span { display: block; margin-top: 4px; font-size: 16px; }
  .lane-track { height: 96px; }
  .lane-track .rail-bg, .lane-track .cook { top: 40px; height: 12px; border-radius: 6px; }
  .lane-track .cook { box-shadow: 0 0 18px rgba(240, 160, 80, 0.35); }
  .lane-track .tag { font-size: 12px; }
  .lane-track .tag b { font-size: 14px; }
  .tag.t-ready { top: 60px; }
  .lane-track .now { top: 30px; height: 32px; }
  .lane-track .ends { display: flex; position: absolute; left: 0; right: 0; bottom: 0; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }

  .ticket-cols { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; margin-top: 0; align-items: start; }
  .steps-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
  .steps li { min-height: 42px; grid-template-columns: 24px 1fr auto; font-size: 16px; }
  .steps li::before { width: 15px; height: 15px; }
  .steps time { font-size: 13px; }
  .steps-card .btn, .steps-card .here-bar { margin-top: 14px; }
  .trail { border-radius: 22px; padding: 20px; }
  .trail h2 { font-size: 22px; margin-bottom: 12px; }
  .tiles { gap: 8px; }
  .tile { padding: 11px 4px; }
  .tile strong { font-size: 16px; }
  .changes { font-size: 14.5px; line-height: 1.45; }

  .narrow { max-width: 720px; }
}

/* ================= pit board ================= */
body.pit {
  color-scheme: dark;
  margin: 0;
  min-height: 100vh;
  background: var(--pit);
  color: var(--pit-ink);
  font-family: var(--sans);
  line-height: 1.45;
}
body.pit .skip { position: absolute; left: -9999px; }
body.pit .skip:focus { left: 16px; top: 16px; background: var(--pit-ink); color: var(--pit); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.pit-wrap { max-width: 1320px; margin: 0 auto; }
.pit-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 20px;
  padding: 22px 16px 14px;
}
.pit-brand { display: flex; align-items: center; gap: 14px; }
.pit-brand .shield { width: 42px; height: 47px; font-size: 18px; background: var(--pit-ink); color: var(--pit); }
.pit-brand p { margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pit-muted); }
.pit-brand h1 { margin: 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; font-size: 32px; line-height: 1; }
.pit-clock { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: baseline; gap: 10px; }
.pit-clock strong { font-family: var(--mono); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pit-clock span { color: var(--pit-muted); font-size: 14px; }
.pit-nav { display: flex; gap: 4px; }
.pit-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--pit-ink);
  text-decoration: none;
}
.pit-nav a[aria-current="page"] { background: var(--pit-ink); color: var(--pit); }
.pit-chips { display: flex; gap: 8px; padding: 0 16px 6px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.pit-chips span { padding: 6px 10px; border-radius: 8px; background: var(--pit-2); border: 1px solid var(--pit-line); color: var(--pit-muted); }
.pit-chips b { font-weight: 400; color: var(--pit-ink); }
.pit-chips b.warn { color: var(--gold); }
.pit-chips b.ok { color: var(--mint); }
.pit-status { margin: 0; padding: 6px 16px 0; color: var(--pit-dim); font-size: 13px; min-height: 1.4em; }

.pit-lock {
  margin: 24px 16px;
  max-width: 460px;
  background: var(--pit-2);
  border: 1px solid var(--pit-line);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 12px;
}
.pit-lock h2 { margin: 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.02em; font-size: 26px; }
.pit-lock p { margin: 0; color: var(--pit-muted); font-size: 14px; }
.pit-lock label { font-size: 14px; font-weight: 600; }
.pit-input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--pit-line);
  background: var(--pit);
  color: var(--pit-ink);
  padding: 0 14px;
  font-size: 16px;
}
.pit-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
}
.pit-btn:hover { background: var(--accent-dark); }
.pit-btn.dark { background: var(--ink); }
.pit-btn.outline { background: transparent; border: 1px solid var(--pit-line); color: var(--pit-muted); font-weight: 400; font-size: 13px; min-height: 40px; }
.pit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.board { display: grid; gap: 14px; padding: 14px 16px 18px; align-items: start; }
.lane { background: var(--pit-2); border: 1px solid var(--pit-line); border-radius: 18px; padding: 16px; }
.lane.firing { box-shadow: inset 0 1px 0 rgba(240, 195, 122, 0.15); }
.lane h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.lane.firing h2 { color: var(--gold); }
.lane.ready h2 { color: var(--mint); }
.lane h2 span { font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--pit-dim); }
.lane-note { margin: -6px 0 12px; font-size: 13px; color: var(--pit-dim); }
.lane .empty { margin: 0; color: #b7aa9c; font-size: 14px; }

.ticket-card {
  background: #fffdf8;
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 15px;
  margin-bottom: 10px;
  border-left: 6px solid #d9cbb8;
}
.ticket-card.firing { border-left-color: #e0a74a; }
.ticket-card.overdue { border-left-color: var(--accent); }
.ticket-card.late { border-left-color: var(--warn); }
.ticket-card.ready { border-left-color: var(--sage); }
.tc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tc-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tc-who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: right; }
.tc-who::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--swatch, #d9cbb8); border: 1px solid #d9cbb8; }
.tc-flag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
}
.tc-flag.warn { background: var(--warn); }
.tc-flag.ok { background: var(--sage); }
.tc-plate { margin: 4px 0 2px; font-family: var(--plate); font-weight: 600; font-size: 34px; letter-spacing: 0.05em; line-height: 1.1; overflow-wrap: anywhere; }
.tc-items { margin: 0; font-size: 14px; line-height: 1.4; }
.tc-note { margin: 8px 0 0; padding: 6px 10px; border-radius: 10px; background: #f8e9df; font-size: 13px; }
.tc-owner { margin: 8px 0 0; font-size: 13px; line-height: 1.35; color: #5c5148; }
.tc-bar { margin-top: 10px; height: 6px; border-radius: 3px; background: #efe6d9; overflow: hidden; }
.tc-bar div { height: 100%; background: linear-gradient(90deg, #9c2f24, #e0a74a); border-radius: 3px; transition: width 0.5s; }
.tc-times { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tc-bar + .tc-times { margin-top: 8px; padding-top: 0; border-top: 0; }
.tc-times strong { font-family: var(--mono); color: var(--ink); }
.tc-times strong.red { color: var(--accent); }
.tc-times strong.green { color: var(--sage); }
.tc-times .moved { flex-basis: 100%; color: var(--accent); }
.tc-times .moved strong { color: var(--accent); }
.ticket-card .pit-btn { width: 100%; margin-top: 12px; }
.pit-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 4px 16px 26px; color: var(--pit-muted); font-size: 13px; }
.pit-foot p { margin: 0; }

.syscheck {
  margin: 8px 16px 32px;
  border-radius: 14px;
  overflow: hidden;
  background: #100e0c;
  border: 1px solid var(--pit-line);
  display: grid;
}
.sys-side { padding: 24px 22px; background: var(--pit-2); border-bottom: 1px solid var(--pit-line); display: flex; flex-direction: column; gap: 18px; }
.sys-side .eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.sys-side h2 { margin: 6px 0 0; font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; font-size: 34px; line-height: 1; }
.sys-side > p { margin: 0; color: var(--pit-muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: 11.5px; }
.flags span { white-space: nowrap; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--pit-line); color: #e8dccb; }
.filter-box { padding: 14px; border-radius: 14px; background: var(--pit); border: 1px solid var(--pit-line); display: grid; gap: 9px; }
.filter-box .eyebrow { color: var(--pit-muted); letter-spacing: 0.12em; }
.filter-note { font-family: var(--mono); font-size: 13px; padding: 10px; border-radius: 9px; background: var(--pit-2); color: var(--pit-ink); word-break: break-all; }
.filter-result { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--pit-muted); }
.verdict { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; }
.verdict.ok { background: rgba(157, 222, 192, 0.15); color: var(--mint); }
.verdict.idle { background: transparent; border: 1px solid var(--pit-line); color: var(--pit-dim); }
.drill-box .pit-btn { width: 100%; }
.sys-actions { margin-top: auto; display: grid; gap: 8px; }
.sys-actions p { margin: 0; color: var(--pit-dim); font-size: 12px; line-height: 1.45; }
.terminal {
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 100% 0%, rgba(156, 47, 36, 0.16), transparent 50%), #100e0c;
  min-width: 0;
}
.terminal .cmd { color: var(--pit-dim); word-break: break-all; }
.probe-lines { display: grid; gap: 8px; margin-top: 18px; }
.probe-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 11px;
  background: var(--pit-2);
  border: 1px solid var(--pit-line);
  animation: rise 0.3s ease-out;
}
.probe-line .k { color: #e8dccb; }
.probe-line .v { color: var(--gold); grid-column: 1; overflow-wrap: anywhere; }
.probe-line .held { grid-column: 2; grid-row: 1 / span 2; padding: 2px 9px; border-radius: 999px; background: rgba(157, 222, 192, 0.15); color: var(--mint); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.probe-line .held.broke { background: var(--accent); color: #fff; }
.probe-line .held.info { background: transparent; border: 1px solid var(--pit-line); color: var(--pit-dim); }
.term-idle { margin: auto; text-align: center; color: var(--pit-dim); font-family: var(--sans); font-size: 15px; padding: 24px 0; }
.term-done { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.term-done .path { color: var(--pit-dim); }
.term-done .big { font-size: 26px; font-weight: 600; color: var(--mint); letter-spacing: -0.02em; }
.term-done .big.bad { color: #f19a8f; }
.term-done .side-r { text-align: right; color: var(--pit-muted); }
.term-error { margin-top: 18px; padding: 12px 14px; border-radius: 11px; border: 1px solid #5a2a24; background: rgba(156, 47, 36, 0.12); color: #f2c9c2; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .probe-line { animation: none; } * { transition: none !important; } }

@media (min-width: 760px) {
  .pit-head { grid-template-columns: auto 1fr auto; padding: 22px 32px 14px; }
  .pit-clock { grid-column: auto; grid-row: auto; justify-self: center; }
  .pit-chips, .pit-status, .pit-foot { padding-left: 32px; padding-right: 32px; }
  .board { padding: 14px 32px 18px; }
  .pit-lock { margin: 24px 32px; }
  .syscheck { margin: 8px 32px 40px; grid-template-columns: 340px minmax(0, 1fr); }
  .sys-side { border-bottom: 0; border-right: 1px solid var(--pit-line); padding: 28px 26px; }
  .terminal { padding: 24px 26px; font-size: 13.5px; min-height: 560px; }
  .probe-line { grid-template-columns: 220px minmax(0, 1fr) auto; }
  .probe-line .v { grid-column: auto; }
  .probe-line .held { grid-column: auto; grid-row: auto; }
}
@media (min-width: 1000px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
