:root {
  --paper: #f3efe4;
  --ink: #1a1814;
  --muted: #5e584e;
  --line: #ddd4c4;
  --card: #fffcf7;
  --green: #1d5c40;
  --green-dark: #143f2c;
  --warn: #8d4b12;
  --bad: #8e2f2f;
  --soft: #efe8d8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a { color: var(--green-dark); }

.wrap {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.brand span,
.muted { color: var(--muted); }

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a,
.nav button.link {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 2px;
  font: inherit;
  cursor: pointer;
}

.nav a[aria-current="page"] {
  color: var(--green-dark);
  box-shadow: inset 0 -2px 0 var(--green);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

.nav-check {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nav-bars,
.nav-bars::before,
.nav-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.15s ease, top 0.15s ease, background 0.15s ease;
}

.nav-bars::before,
.nav-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }

.nav-toggle:has(.nav-check:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.nav-toggle:has(.nav-check:checked) .nav-bars { background: transparent; }
.nav-toggle:has(.nav-check:checked) .nav-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle:has(.nav-check:checked) .nav-bars::after { top: 0; transform: rotate(-45deg); }

h1 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

h2 {
  font-size: 18px;
  margin: 22px 0 10px;
}

.lead { margin: 0 0 16px; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 0 0 12px;
}

.card.late { border-color: var(--warn); }

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.kicker {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.status {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 13px;
}

.status.ok { color: var(--green-dark); border-color: #b7d2c4; background: #e7f3ec; }
.status.wait { color: #3d4d84; border-color: #c9d0e6; background: #eef1f8; }
.status.bad { color: var(--bad); border-color: #e4c4c4; background: #f8ecec; }
.status.warn { color: var(--warn); border-color: #e6d0b8; background: #f8f1e8; }

label { display: block; font-size: 14px; margin: 12px 0 4px; }

input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
}

textarea { min-height: 72px; resize: vertical; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button.secondary, a.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}

button.warm {
  background: white;
  color: var(--warn);
  border-color: #e0c2a4;
}

button.ghost, a.ghost {
  background: white;
  color: var(--bad);
  border-color: #e4c4c4;
}

.promises, .actions, .split {
  display: grid;
  gap: 8px;
}

.promises { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.promises button { width: 100%; min-height: 72px; font-size: 18px; }
.desk-now .who {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}
.desk-now .dest { font-size: 20px; font-weight: 700; margin: 4px 0; }
.actions { grid-template-columns: 1fr 1fr; }
.split { grid-template-columns: 1fr 1fr; }

.full { width: 100%; }

.stack { display: grid; gap: 8px; margin-top: 12px; }
.calls { margin-top: 8px; }

.drive-now h1 { margin-bottom: 4px; }
.drive-now .dest, .drive-next .dest {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 6px 0;
}
.drive-now .go, .drive-now .stack button[type="submit"]:not(.secondary):not(.ghost) {
  width: 100%;
  min-height: 72px;
  font-size: 22px;
}
.drive-now .go { font-size: 20px; }
.drive-now input { font-size: 22px; min-height: 58px; }
.drive-next { padding: 12px; }
.drive-next .dest { font-size: 18px; }
.drive-next .go, .drive-next .stack button[type="submit"]:not(.secondary):not(.ghost) {
  width: 100%;
  min-height: 56px;
}

.flash {
  background: #e7f3ec;
  border: 1px solid #b7d2c4;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.errors {
  background: #f8ecec;
  border: 1px solid #e4c4c4;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.demo {
  margin-top: 18px;
  font-size: 14px;
}

.demo code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
}

dl { margin: 8px 0 0; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0 0 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.stat b {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
}

table.lines { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.lines th, table.lines td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines .num { text-align: right; white-space: nowrap; }
.total { font-size: 20px; }

.wrap:has(.tablet) { width: min(1100px, calc(100% - 24px)); }

.answer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.answer .when {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 4px 0 8px;
}

.answer .place {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  margin: 0;
}

.answer-bad { border-color: #e4c4c4; background: #f8ecec; }
.answer-late { border-color: #e6d0b8; background: #f8f1e8; }
.answer form { margin-top: 8px; }

.answer:has(> form) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: center;
}

.answer:has(> form) > :not(form) { grid-column: 1; }

.answer:has(> form) > form {
  grid-column: 2;
  grid-row: 1 / -1;
  margin: 0;
}

.tablet {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.order-form h1 { margin-bottom: 12px; }

.order-form label { margin-top: 8px; }

.order-form input {
  font-size: 22px;
  min-height: 58px;
  padding: 12px 14px;
}

.order-form .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-form button[type="submit"] {
  width: 100%;
  min-height: 68px;
  margin-top: 16px;
  font-size: 22px;
}

.orders .card { padding: 10px 12px; }
.orders .card p { margin: 4px 0; }
.orders h2 { margin-top: 0; }

.past-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.past-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.past-list time,
.past-list .past-addr { color: var(--muted); }

.past-list time { flex: none; font-variant-numeric: tabular-nums; }

.past-list strong { flex: none; max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.past-list .past-addr {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.past-list .status { flex: none; }

.past-list form { margin: 0; flex: none; }

.past-list button.ghost {
  min-height: 32px;
  padding: 2px 8px;
  font-size: 13px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.market {
  background: #f4f6f5;
  font-family: Inter, "Avenir Next", "Segoe UI", sans-serif;
}

body.market .wrap { width: min(1080px, calc(100% - 32px)); }

.staff-link {
  align-self: center;
  text-decoration: none;
  font-weight: 600;
}

.decide { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.decide form { margin: 0; }
.public-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
body.market .top { flex-wrap: wrap; }
.join { margin: 28px 0 8px; }

.apply { max-width: 860px; margin: 8px auto 32px; }
.apply .lead { color: var(--muted); }
.dish-head, .dish-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(72px, 0.7fr) auto;
  gap: 8px;
  align-items: center;
}
.dish-head { margin-top: 8px; font-size: 13px; color: var(--muted); }
.dish-row { margin-bottom: 8px; }
.dish-row input { margin: 0; }
.dish-row button { min-height: 44px; padding: 0 12px; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero {
  padding: 28px 0 8px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.hero p { color: var(--muted); margin: 0 auto 18px; max-width: 520px; }

.mode {
  display: inline-flex;
  background: white;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.06);
  margin-bottom: 14px;
}

.mode button, .cats button, .filters button {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
}

.mode button.on, .cats button.on, .filters button.on {
  background: var(--green);
  color: white;
}

.finder {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(26, 24, 20, 0.08);
}

.finder input {
  flex: 1;
  width: auto;
  min-width: 0;
  border: 0;
  min-height: 52px;
  font-size: 18px;
  box-shadow: none;
}

.finder button {
  border: 0;
  background: var(--green);
  color: white;
  border-radius: 12px;
  min-height: 52px;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cats::-webkit-scrollbar { display: none; }

.cats button {
  background: white;
  box-shadow: 0 4px 14px rgba(26, 24, 20, 0.05);
  flex: 0 0 auto;
}

.filters { display: flex; gap: 8px; margin: 8px 0 18px; }
.filters button { background: white; }

.offer {
  background: white;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.05);
  margin-bottom: 22px;
}

.offer h2, .market h2 { margin-bottom: 6px; }

.place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spot {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(26, 24, 20, 0.08);
}

.cover {
  min-height: 168px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: white;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cover-pizza { background: linear-gradient(145deg, #c4522a, #f2c14e); }
.cover-kebab { background: linear-gradient(145deg, #1d5c40, #e0b15a); }

.spot-body { padding: 14px 16px 16px; }
.spot-title { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.spot-title strong { font-size: 22px; letter-spacing: -0.03em; }
.spot-title span, .spot-meta { color: var(--muted); margin: 4px 0; }
.spot[hidden] { display: none; }
.empty { margin-top: 12px; }

.place-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  min-height: 180px;
}

.place-card strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 4px 0;
}

.menu-group { margin-top: 22px; }
.menu-group h2 { margin-bottom: 4px; }

.dish {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.dish p { margin: 2px 0 0; color: var(--muted); }
.dish b { white-space: nowrap; }

.soon {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0;
}

body.venue-page .wrap { width: min(1120px, calc(100% - 32px)); }

.banner {
  min-height: 240px;
  border-radius: 20px;
  margin: 8px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 14px 18px 18px;
  color: white;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.5), rgba(20, 16, 12, 0.05) 62%);
}

.banner > * { position: relative; z-index: 1; }

.back {
  margin: 0;
  background: white;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}

.venue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.menu-col { min-width: 0; }

.venue-head {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  margin: 0;
  color: white;
}

.banner .kicker,
.banner .venue-head p { color: rgba(255, 255, 255, 0.92); margin: 0; }

.mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: white;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(26, 24, 20, 0.12);
  flex: 0 0 auto;
}

.venue-head h1 { font-size: clamp(32px, 4vw, 44px); margin: 0; color: white; }

.meta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.meta-row .mode { margin: 0; }
.meta-row p { margin: 0; color: var(--muted); }
.hours-line { font-size: 14px; }

#open-facts {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cart-clear {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
}
.cart-tools { display: flex; gap: 8px; align-items: center; }
.dish-find { display: flex; gap: 8px; align-items: center; }
.dish-find input { flex: 1; width: auto; min-width: 0; }

.item-detail {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plus.in {
  background: var(--green);
  color: white;
  font-size: 16px;
}

.choice:has(input:checked) {
  border-color: var(--green);
  background: #e7f3ec;
}

.sheet { max-height: min(92vh, 760px); overflow: auto; }
#picker-add { position: sticky; bottom: 0; }

button.ghost, button.step {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 40px;
}

button[hidden] { display: none !important; }

.app-note h2 { margin: 0 0 6px; font-size: 18px; }
.app-note p { margin: 0 0 8px; }
.app-note button { width: 100%; margin-top: 4px; }
.app-note button[hidden] { display: none !important; }

a.card.settings-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.menu-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 0;
  overflow: hidden;
  background: #f4f6f5;
  padding: 14px 0 8px;
}

#menu-cats {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 0 4px;
}

#menu-cats.can-scroll {
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent);
}

.menu-nav input {
  border-radius: 14px;
  min-height: 48px;
  box-shadow: 0 8px 20px rgba(26, 24, 20, 0.05);
}

.menu-group { scroll-margin-top: 128px; }
.menu-group h2 { margin-top: 18px; }

button.item {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 12px;
  background: white;
  color: var(--ink);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(26, 24, 20, 0.06);
  padding: 12px;
  margin: 0 0 10px;
  min-height: 0;
}

.item-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.item-detail { color: var(--muted); font-size: 14px; }
.item-price { font-weight: 700; }

.thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px;
}

.plus {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: white;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
}

.cart-panel {
  position: sticky;
  top: 16px;
  z-index: 3;
  margin-top: 0;
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(26, 24, 20, 0.08);
  padding: 16px 16px 14px;
}

#cart-fee {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.cart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cart-head h2 { margin: 0; }
.sheet-x { display: none; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line strong, .cart-line .muted { display: block; }
.cart-sum { font-size: 20px; font-weight: 700; margin: 8px 0 6px; }
.cart-line .qty { margin: 0; }
.cart-panel > button { width: 100%; }

.cart-bar, .scrim { display: none; }

.sheet {
  border: 0;
  border-radius: 20px;
  padding: 0;
  width: min(480px, calc(100% - 24px));
  box-shadow: 0 24px 60px rgba(26, 24, 20, 0.24);
}

.sheet::backdrop { background: rgba(26, 24, 20, 0.45); }
.sheet-body { padding: 16px 16px 18px; }
.sheet-hero { height: 168px; }
.sheet-body h2 { margin-top: 0; }
.sheet textarea { width: 100%; margin-bottom: 12px; }

.choice {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 8px;
}

.choice b { margin-left: auto; }

.qty { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
#picker-add, #checkout { width: 100%; }

@media (max-width: 900px) {
  .venue-layout { display: block; }
  body.venue-page .top { flex-direction: row; align-items: center; padding: 10px 0 8px; }
  .banner { min-height: 0; padding: 12px 14px 16px; }
  .mark { width: 56px; height: 56px; font-size: 22px; }
  .venue-head h1 { font-size: 28px; }
  .venue-head > div > p:last-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .meta-row p { margin: 4px 0; }
  .menu-nav { padding: 6px 0 4px; }
  .menu-nav input { min-height: 44px; }
  .thumb { width: 84px; height: 84px; }
  .cart-panel { display: none; }
  body.cart-open .cart-panel {
    display: block;
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-height: 78vh;
    overflow: auto;
    border-radius: 18px 18px 0 0;
  }
  body.cart-open .sheet-x { display: inline-flex; }
  body.cart-open .cart-bar { display: none; }
  body.cart-open .scrim { display: block; position: fixed; inset: 0; background: rgba(26, 24, 20, 0.4); z-index: 25; }
  .cart-bar:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 20;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 56px;
    border-radius: 16px;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(26, 24, 20, 0.2);
  }
  body.has-bar { padding-bottom: 84px; }
}

@media (max-width: 800px) {
  .tablet, .order-form .pair, .promises, .place-grid { grid-template-columns: 1fr; }
  .dish-head { display: none; }
  .dish-row { grid-template-columns: 1fr 1fr; }
  .dish-row button { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .split, .stats { grid-template-columns: 1fr; }
  .top {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    position: relative;
    z-index: 20;
  }
  .brand { margin-right: auto; }
  #alert-arm { order: 2; min-height: 40px; padding: 8px 10px; font-size: 14px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .top .nav,
  .top .public-links { display: none; }
  .top:has(.nav-check:checked) .nav,
  .top:has(.nav-check:checked) .public-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    z-index: 30;
    min-width: min(240px, calc(100vw - 28px));
    margin: 0;
    padding: 8px;
    background: #fffcf7;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(26, 24, 20, 0.14);
  }
  .top:has(.nav-check:checked) .nav a,
  .top:has(.nav-check:checked) .nav button.link,
  .top:has(.nav-check:checked) .public-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    box-shadow: none;
  }
  .top:has(.nav-check:checked) .nav form { margin: 0; }
}

@media print {
  .top, .no-print, button { display: none !important; }
  body { background: white; }
  .wrap { width: auto; margin: 0; }
  a { color: inherit; text-decoration: none; }
}
