:root {
  --bg: #0d1512;
  --panel: #131d19;
  --panel2: #18241f;
  --line: #24322c;
  --text: #e8f0ec;
  --muted: #8fa39b;
  --dim: #74877e;
  --accent: #35c28f;
  --accent2: #ffd166;
  --entree: #ff7a6b;
  --chip: #1e2b25;
  --chip-active: #2c443a;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Space Grotesk", "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Light theme — opt-in via html.light (toggle, persisted in localStorage).
   Dark remains the default. */
html.light {
  --bg: #f5f7f5;
  --panel: #ffffff;
  --panel2: #eef2ef;
  --line: #dbe3dd;
  --text: #1c2620;
  --muted: #5a6e65;
  --dim: #5f7168;
  --accent: #0f7a58;
  --accent2: #7d5805;
  --entree: #c23f2d;
  --chip: #e9efeb;
  --chip-active: #d7e4dc;
}
html.light .offline-banner { background: #f6e7bd; color: #6b4e0a; }
/* Light active hall option: white text passes AA on the darker light accent. */
html.light .hall-opt.active { color: var(--text); }
html.light .cat-badge { color: #33443c; background: #d9e4dd; }
html.light .cat-badge.entree { color: #8c2b20; background: #f8e1dd; }
html.light .cat-badge.side { color: #155e8c; background: #dcedf9; }
html.light .cat-badge.grain { color: #7a5a12; background: #f5ebd4; }
html.light .cat-badge.salad { color: #2f7a2a; background: #dff1db; }
html.light .cat-badge.dessert { color: #7a3a8c; background: #efe0f5; }
html.light .cat-badge.beverage { color: #1a6b66; background: #dcf0ee; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
/* Subtle grain over the flat surfaces (pointer-events: none, ~2% opacity). */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 192px 192px;
}
html.light body::after { opacity: .015; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); /* opaque — scrolled content must not show through */
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}
.topbar-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 16px; /* uniform: every header row = 48px desktop / 42px mobile */
  gap: 10px;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; position: relative; /* anchors the dropdown */ }
.meal-seg { flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  font-size: 1.5rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand h1 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 0; letter-spacing: -.3px; }
.brand-sub { font-size: .75rem; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 40px;
  min-height: 36px;
  align-self: stretch; /* grow to the row's height (= chip/seg height) instead of a fixed 40px */
  display: grid; place-items: center;
  padding: 0; /* UA button padding varies by engine — zero it so centering is exact */
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
}
/* Meal button: shows the active meal + date; tapping opens the overflow
   menu (meal picker + secondary actions). Like the other topbar buttons it
   stretches to the row's height, so the header row reads as one uniform
   band instead of a 34px button floating in a 42px row. */
.icon-btn.meal-btn {
  width: auto;
  min-height: 44px; /* = hall pill height, so the title row matches the rows below */
  padding: 0 12px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.icon-btn.meal-btn .meal-date { color: var(--muted); font-weight: 500; }
@media (max-width: 480px) {
  /* Single row: title + meal button (the overflow menu's trigger).
     Placed after the base rules so it actually wins the cascade. */
  .topbar-inner { flex-wrap: nowrap; padding: 2px 12px; gap: 6px; min-height: 40px; /* every header row = 42px on phones */ }
  /* Fill the row height: stretch the actions box to the topbar height, then
     stretch its buttons to the box (no more tiny 20px buttons). */
  .topbar-actions { width: auto; min-width: 0; justify-content: flex-end; align-self: stretch; align-items: stretch; }
  .brand-mark {
    display: grid; /* shown at every size */
    /* Compact the tile on small phones so the header stays one tight row. */
    width: 34px; height: 34px; border-radius: 10px; font-size: 1rem;
  }
  .brand-mark svg { width: 18px; height: 18px; }
  .brand-sub { display: none; } /* date is redundant on phones — the meal button carries it */
  .brand-full { display: none; } /* wide screens show "Eat@State - Simplified" */
  .brand h1 { font-size: .95rem; white-space: nowrap; }
  /* Keep the base align-self: stretch: topbar buttons and the search button
     grow to their row's height (no more tiny centered 20px buttons). */
  .icon-btn { width: 36px; min-height: 0; font-size: 1rem; }
  .icon-btn.meal-btn { width: auto; padding: 0 9px; min-height: 40px; } /* mobile row: 40px component + 7px padding = 54px */
}
@media (max-width: 360px) {
  /* Extra-small (SE/5): icon-only brand so the meal tabs always fit one row. */
  .brand h1 { display: none; }
  .brand-mark { display: grid; width: 34px; height: 34px; font-size: 1.2rem; }
}
[hidden] { display: none !important; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #06231a;
  padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; } /* author display rules (e.g. .icon-btn grid) beat the UA [hidden] default */
.icon-btn { transition: background .15s ease, color .15s ease, border-color .15s ease; }
.icon-btn:active { background: var(--panel2); color: var(--text); transform: translateY(1px); }
.icon-btn svg { width: 1.15em; height: 1.15em; display: block; }
.icon-btn.spinning svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- overflow ("more") menu ---------- */
.more-wrap { position: relative; }
.icon-btn.menu-open { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--chip-active); }
.more-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 212px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  padding: 6px;
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
html.light .more-menu { box-shadow: 0 18px 40px rgba(28, 45, 38, .22), inset 0 1px 0 rgba(255, 255, 255, .6); }
/* Left layout (trigger at the left edge): anchor the menu to the trigger's
   LEFT instead, or it overflows off-screen the other way. */
.topbar-inner.flip .more-menu { right: auto; left: 0; transform-origin: top left; }
.more-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: none; border-radius: 8px; background: transparent;
  color: var(--text); font-family: var(--font-sans); font-size: .85rem; font-weight: 500;
  text-align: left; cursor: pointer;
}
.menu-item:hover { background: var(--chip); }
.menu-item:active { background: var(--chip-active); }
.mi-ico { display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.mi-ico svg { width: 16px; height: 16px; display: block; }
.mi-label { white-space: nowrap; }
.mi-state {
  margin-left: auto; font-size: .7rem; color: var(--dim); white-space: nowrap;
}
/* Theme chips reuse the meal .seg/.seg-btn look; full row width in the menu. */
.theme-seg { flex: 1 1 100%; width: 100%; }
.theme-seg .seg-btn svg { width: 18px; height: 18px; display: block; margin: 0 auto; }
/* Day picker (lookahead): Today + Tomorrow, full row width, same look. */
.day-seg { flex: 1 1 100%; width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
.day-seg .seg-btn { padding: 7px 2px; font-variant-numeric: tabular-nums; }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-bottom));
  transform: translateX(-50%); z-index: 400;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 16px; font-size: .85rem; color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4); white-space: nowrap;
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
#toast.show { opacity: 1; }

.offline-banner {
  background: #3a2f14;
  color: #ffd166;
  text-align: center;
  font-size: .78rem;
  padding: 5px 10px;
}

/* (The hall-row + view-tab rows now live inside <header class="topbar"> —
   one sticky element, so no dock offset / stickbar styling exists anymore.) */
/* Layout orientation (overflow menu → Layout, persisted): "left" mirrors
   the title row as well — brand to the right end, meal/date button left —
   so one setting flips the whole header for left-handed reach. */
.topbar-inner.flip .brand { order: 2; text-align: right; }
.topbar-inner.flip .topbar-actions { order: 1; }
.hall-row {
  position: relative;
  max-width: 860px; margin: 0 auto;
  padding: 2px 16px; /* uniform 48px header row (44px pill + 2px each side) */
  display: flex; align-items: center; gap: 10px;
}
/* Hall-position preference (overflow menu → Layout, persisted). Layout
   right (default) pins the pill to the row's right end for right-handed
   thumb reach; the open/close status chip takes the opposite (left) end.
   Layout left mirrors it: pill left, status right. One auto margin per
   layout does the pinning — no flex `order` juggling. */
.hall-row.align-right .hall-pill { margin-left: auto; }
.hall-row.align-right .hall-hint { order: -1; }
.hall-row:not(.align-right) .hall-status { order: 1; margin-left: auto; }
/* Active-hall pill: replaces the old 11-chip scroller row. Tap opens the
   hall picker sheet. Min 44px target. */
.hall-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 12px 6px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  font: inherit; font-size: .9rem; font-weight: 600;
  max-width: min(100%, 420px); /* bounded by the header row's own padding */
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.hall-pill:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--chip-active); }
.hall-pill:active { transform: translateY(1px); }
.hall-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Live open/close status for the selected hall — fills the empty space on
   the OTHER side of the pill (the pill's auto margin pushes it to its end).
   DOM order: status, then pill. Tap → dining-hours modal. Freezes (dimmed)
   while searching, like the pill. Truncates before it crowds the pill on
   long hall names. */
.hall-status {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--muted);
  font: inherit; font-size: .78rem; font-weight: 600;
  max-width: 45%; overflow: hidden; white-space: nowrap;
  flex: 0 1 auto; min-width: 0;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.hall-status:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.hall-status:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hall-status-ico { width: 14px; height: 14px; flex: 0 0 auto; color: var(--muted); }
.hall-status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-status.frozen { opacity: .4; pointer-events: none; }
.hall-pill-ico { width: 20px; height: 20px; flex: 0 0 auto; color: var(--muted); }
.hall-pill-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hall-pill-caret { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
/* Frozen while searching: results span every hall, so picking a hall would
   be misleading (see .search-scope-banner). Dimmed + inert rather than
   hidden — the previously-selected hall stays visible, and clearing the
   search snaps right back to it. */
.hall-pill.frozen { opacity: .4; pointer-events: none; }
/* One-time discoverability hint next to the pill (hidden once seen / on
   small screens where it crowds the bar). */
.hall-hint {
  font-size: .72rem; color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 480px) { .hall-hint { display: none; } }

/* Hall picker sheet: full-width rows (≥48px tall) instead of the old tiny
   chips — jump to any hall, see open/closed + scale at a glance. Recent
   halls (persisted, max 3) float to the top. */
.hall-card { max-width: 560px; }
.hall-sheet-title { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 2px; }
.hall-sheet-sub { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.hall-sheet-list { display: flex; flex-direction: column; gap: 6px; }
.hall-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.hall-opt:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--chip-active); }
.hall-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hall-opt.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--chip)); }
.hall-opt.closed { opacity: .65; }
.hall-opt-ico { width: 22px; height: 22px; flex: 0 0 auto; color: var(--muted); }
.hall-opt-main { flex: 1 1 auto; min-width: 0; }
.hall-opt-name { display: block; font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hall-opt-meta { display: block; font-size: .74rem; color: var(--muted); margin-top: 1px; }
/* Favorite star: toggle on every hall row. Muted outline when off,
   filled accent star when on. role=button span (the row itself is a
   <button>), so it needs its own focus ring + hover state. */
.hall-opt-star {
  flex: 0 0 auto; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; cursor: pointer;
}
.hall-opt-star svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }
.hall-opt-star:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.hall-opt-star:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Favorite = warm light-yellow star (reads as "marked", not as a CTA). */
.hall-opt-star.on svg { fill: #ffd54a; stroke: #f5c518; }
.hall-opt-check { width: 18px; height: 18px; flex: 0 0 auto; color: var(--accent); }
.hall-sheet-sep { display: flex; align-items: center; gap: 10px; margin: 6px 2px; font-size: .68rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.hall-sheet-sep::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

.controls {
  max-width: 860px; margin: 0 auto;
  padding: 2px 16px; /* uniform 48px header row (44px tabs + 2px); header border sits below */
  display: flex; align-items: center; gap: 8px;
}
/* View tabs (Categories / Stations / Nutrition): one segmented group sized
   and styled like the hall pill — same chip surface, 12px radius, same
   height — so the two sticky rows read as one component family. Fills the
   row: the pill row's right-weight is mirrored by a full-width tab row. */
.seg.view-seg { flex: 1 1 auto; max-width: 100%; border-radius: 12px; background: var(--chip); }
/* The "New" tab is the 4th in the row — slightly tighter so the four fit on
   one line at 390px without wrapping. */
.seg.view-seg .seg-btn.seg-new { padding: 6px 8px; font-size: .84rem; }
.seg.view-seg .seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 6px 10px; /* +3px seg inset +1px border = 44px, = pill height */
  font-size: .88rem;
  border: 1px solid transparent; /* room for the active outline, no size shift */
}
.seg.view-seg .seg-btn.active {
  background: color-mix(in srgb, var(--accent) 16%, var(--chip));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--text);
}
/* Filters FAB — floating bottom-right button opening the filters sheet.
   Bottom-right: the strong-hand corner (Tony's choice, 2026-09-19).
   Fades out when the footer scrolls into view (JS .away) so it never
   overlaps the footer links. */
#filters-fab-wrap {
  position: fixed; right: 16px;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 50;
  display: flex; align-items: center; gap: 10px;
  transition: opacity .18s ease, transform .18s ease;
}
#filters-fab-wrap.away { opacity: 0; transform: translateY(10px); pointer-events: none; }
#filters-hint {
  font-size: .8rem; font-weight: 600;
  color: var(--text);
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  display: none;
  animation: fadein .25s ease;
}
#filters-fab-wrap.hint #filters-hint { display: inline-block; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
#filters-fab {
  position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #06231a;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .05s ease, background .15s ease, opacity .15s ease;
}
#filters-fab:active { transform: translateY(1px); }
#filters-fab.disabled { opacity: .35; cursor: default; }
/* Light theme: the accent flips to a dark green, so the hard-coded dark
   icon (#06231a) vanishes against it — use white (Tony, 2026-09-19).
   Dark mode keeps #06231a on the light-green accent. */
html.light #filters-fab { color: #fff; }
#filters-fab .fab-ico, #filters-fab .fab-x { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .12s ease; }
#filters-fab svg { width: 24px; height: 24px; display: block; }
#filters-fab .fab-x { opacity: 0; }
#filters-fab.open .fab-ico { opacity: 0; }
#filters-fab.open .fab-x { opacity: 1; }
#filters-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent2);
  color: #241a02;
  font-size: .72rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
/* Light theme: --accent2 is a dark amber there, so dark badge text would
   vanish — white, same reasoning as the FAB icon. */
html.light #filters-badge { color: #fff; }
/* Search-mode indicator on the FAB itself: distinct color + a small
   magnifying-glass badge, so entering/leaving search is obvious at a
   glance without opening the sheet or noticing the in-content banner. */
#filters-fab.searching { background: #2f8fe0; color: #fff; }
#filters-search-badge {
  position: absolute; top: -2px; left: -2px;
  width: 20px; height: 20px; border-radius: 999px;
  background: #fff; color: #2f8fe0;
  display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
#filters-search-badge svg { width: 12px; height: 12px; display: block; }
@media (max-width: 400px) {
  #filters-fab-wrap { right: 12px; bottom: calc(12px + var(--safe-bottom)); }
  #filters-fab { width: 52px; height: 52px; }
}
/* Filters sheet sections. Chips reuse the existing .cat-chip/.diet-chip
   language; here they wrap freely (the sheet is full width). */
.filters-label {
  margin: 18px 0 8px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted);
}
.filters-label:first-child { margin-top: 2px; }
.filters-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters-chips .cat-chip, .filters-chips .diet-chip { flex: 0 0 auto; }
/* Collapsible filter-sheet sections (group-per-view / Sort by / Dietary).
   The header reuses .filters-label's type style but is now a clickable
   row with a chevron, matching the Categories/Stations/Nutrition section
   headers already used in the content area for a consistent affordance. */
.filters-section-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  border: none; background: transparent; padding: 0; cursor: pointer;
}
.filters-section-head .filters-label { margin: 18px 0 8px; }
.filters-section:first-child .filters-section-head .filters-label { margin-top: 2px; }
.filters-section-head .chev { color: var(--muted); transition: transform .15s ease; }
.filters-section-head .chev svg { width: 16px; height: 16px; display: block; }
.filters-section.collapsed .chev { transform: rotate(-90deg); }
.filters-section.collapsed .filters-section-body { display: none; }
.filters-foot {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 22px; min-height: 38px; /* reserves the actions row's height even when hidden, so the sheet doesn't resize on toggle */
}
.filters-foot-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.switch-foot { align-self: flex-start; }
.filters-reset {
  border: 1px solid var(--line); background: var(--chip);
  color: var(--muted); font-size: .85rem; font-weight: 500;
  border-radius: 10px; padding: 9px 14px;
  visibility: visible; opacity: 1;
}
.filters-foot.no-active .filters-reset { visibility: hidden; opacity: 0; pointer-events: none; }
.filters-reset:hover { color: var(--text); }
.filters-done {
  border: none; background: var(--accent); color: #fff;
  font-size: .85rem; font-weight: 600;
  border-radius: 10px; padding: 9px 20px;
  margin-left: auto;
}
.filters-done:hover { filter: brightness(1.08); }
/* Search now lives inside the filter sheet — see .search-sheet-input. */
@media (max-width: 640px) {
  /* Compact sticky stack: tighter padding/gaps. */
  .hall-row { padding: 2px 12px; }
  .hall-pill { min-height: 40px; padding: 5px 10px 5px 10px; font-size: .85rem; }
  .hall-status { min-height: 40px; padding: 5px 10px; font-size: .72rem; }
  .controls { padding: 2px 12px; gap: 6px; }
  .seg.view-seg { padding: 3px; }
  .seg.view-seg .seg-btn { min-height: 32px; padding: 5px 8px; font-size: .8rem; } /* = 40px, = pill height */
}
.seg {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  max-width: 100%;
}
.seg-btn {
  border: none; background: transparent;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
  transition: background .15s ease, color .15s ease, transform .05s ease;
}
.seg-btn:hover { color: var(--text); background: color-mix(in srgb, var(--chip-active) 45%, transparent); }
.seg-btn:active { transform: translateY(1px); }
.seg-btn.active {
  background: var(--chip-active);
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 400px) {
  .seg-btn { padding: 6px 8px; font-size: .78rem; }
}
.cat-chip {
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  text-transform: capitalize;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.cat-chip:hover { border-color: color-mix(in srgb, var(--accent2) 50%, var(--line)); color: var(--text); }
.cat-chip:active { transform: translateY(1px); }
.cat-chip .n { opacity: .6; font-size: .72rem; margin-left: 4px; }
.cat-chip.active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: color-mix(in srgb, var(--accent2) 12%, var(--chip));
}
/* Dietary filter chips — inside the filters sheet (all views). Same chip
   language as the category chips; the active state uses the primary accent
   (green) to read as a "mode" rather than a category selection (amber). */
.diet-chip {
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.diet-chip:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--text); }
.diet-chip:active { transform: translateY(1px); }
.diet-chip .n { opacity: .6; font-size: .72rem; margin-left: 4px; }
.diet-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--chip));
  font-weight: 600;
}
/* "From breakfast" visibility switch — in the filters sheet (Categories
   view). ON shows carried items; OFF hides them from this view. */
.switch {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--muted);
  font-size: .8rem; font-weight: 500;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.switch:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: var(--text); }
.switch:active { transform: translateY(1px); }
.switch.on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.sw-track {
  position: relative; flex: 0 0 auto;
  width: 30px; height: 17px; border-radius: 999px;
  background: var(--line);
  transition: background .18s ease;
}
.sw-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--muted);
  transition: transform .18s ease, background .18s ease;
}
.switch.on .sw-track { background: var(--accent); }
.switch.on .sw-track::after { transform: translateX(13px); background: #06231a; }

.search-wrap { position: relative; width: 100%; }
.search-sheet-input { margin: 4px 0 14px; }
.search-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--dim); font-size: 1.05rem; pointer-events: none;
}
.search-ico svg { width: 1.05em; height: 1.05em; display: block; }
#search {
  width: 100%;
  padding: 10px 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: .95rem;
  outline: none;
}
#search:focus { border-color: var(--accent); }
#search::placeholder { color: var(--dim); }
/* Hide the browser's native clear button (type="search") — the custom
   #search-clear button replaces it; otherwise both × icons show at once. */
#search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
#search::-moz-search-cancel-button { -moz-appearance: none; appearance: none; display: none; }
.search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: var(--chip-active); color: var(--muted);
}
.search-clear svg { width: 14px; height: 14px; display: block; margin: auto; }
.search-scope-banner {
  display: block; width: 100%; text-align: left;
  font: inherit; font-size: .82rem; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px; padding: 8px 12px;
  cursor: pointer;
}
.search-scope-banner:hover, .search-scope-banner:focus-visible {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.search-scope-wrap {
  display: flex; align-items: stretch; gap: 6px; margin-bottom: 14px;
}
.search-scope-wrap .search-scope-banner { margin-bottom: 0; flex: 1 1 auto; min-width: 0; }
.search-scope-clear {
  flex: 0 0 auto; width: 36px;
  font-size: 1.1rem; line-height: 1; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 10px; cursor: pointer;
}
.search-scope-clear:hover, .search-scope-clear:focus-visible {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.content {
  max-width: 860px; margin: 0 auto;
  padding: 14px 16px calc(12px + var(--safe-bottom)); /* tight gap to the footer */
}
/* FAB clearance: the floating filters button (52-56px, bottom-right)
   overlaps the last list rows while the footer is off-screen (.away only
   triggers once the footer arrives, and never while filters are active).
   The footer itself (~68px) already sits between the last row and the FAB,
   so a small gap keeps the final rows tappable and unoccluded. Verified:
   last row clears the FAB top by ~30px at max scroll with filters active. */
@media (max-width: 767px) {
  .content { padding-bottom: calc(28px + var(--safe-bottom)); }
}
.status {
  color: var(--muted); text-align: center; padding: 40px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.status::after {
  content: "";
  width: min(340px, 72%); height: 10px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--panel) 30%, var(--panel2) 50%, var(--panel) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }
.error { color: var(--entree); text-align: center; padding: 30px 0; }

.hall-closed {
  text-align: center; color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 18px;
}
.hall-closed .big { font-size: 1.6rem; color: var(--muted); }
.hall-closed .big svg { width: 2.2rem; height: 2.2rem; display: block; margin: 0 auto 8px; }
.hall-closed .hint { margin-top: 8px; font-size: .82rem; color: var(--dim); }

.station {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
html.light .station { box-shadow: 0 1px 2px rgba(28, 38, 32, .10), 0 1px 3px rgba(28, 38, 32, .06); }
/* Station headers reuse the shared cat-head/cat-head-label classes; the name +
   group pair can wrap on narrow widths, so allow wrapping here (cat-head
   defaults to no-wrap, which is fine for the single-label Categories/Nutrition). */
.station .cat-head { flex-wrap: wrap; }
.station.collapsed .chev { transform: rotate(-90deg); }
.station.collapsed .items { display: none; }
.station.collapsed .show-all { display: none; } /* "Show all" is a sibling of .items */
.station.collapsed .cat-head { margin-bottom: 2px; }
/* Station headers share the cat-head/cat-head-label classes with Categories
   and Nutrition (same font, accent color, left border, chevron). */
.station-group { font-size: .75rem; color: var(--dim); font-style: italic; }
.items {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: 26px;
}
@media (max-width: 560px) { .items { columns: 1; } }
.item {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  font-size: .9rem;
  font-weight: 500;
  display: block; width: 100%; text-align: left;
  background: none; border-left: none; border-right: none; border-top: none;
  color: var(--text);
  padding-left: 0;
  transition: background .15s ease;
}
.item:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.item:last-child { border-bottom: none; }
.item.entree { font-weight: 600; }
.item .cal { color: var(--dim); font-size: .74rem; margin-left: 6px; font-weight: 400; font-variant-numeric: tabular-nums; }
.protein-icons { margin-left: 6px; white-space: nowrap; }
.protein { font-size: .9em; margin-right: 2px; cursor: help; }
.cat-badge {
  display: inline-block;
  font-size: .58rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  border-radius: 4px; padding: 1px 6px; margin-left: 6px;
  vertical-align: 1px;
  color: #9fb3ab; background: var(--chip-active);
}
.cat-badge.entree { color: #ffb3ab; background: #3a1e1a; }
.cat-badge.side { color: #9ad4ff; background: #17283a; }
.cat-badge.grain { color: #ffd88a; background: #33270f; }
.cat-badge.salad { color: #a8e6a3; background: #16301a; }
.cat-badge.dessert { color: #f2b8ff; background: #2d1733; }
.cat-badge.beverage { color: #8fd6d0; background: #122e2c; }
/* Carried-over items (also listed in the same hall's breakfast): kept in the
   list but visually de-emphasized so new dishes read first. */
.item.carried { color: var(--dim); }
.item.carried .cal { color: var(--dim); }
.carried-tag {
  display: inline-block;
  font-size: .56rem; font-weight: 600;
  letter-spacing: .4px; text-transform: uppercase;
  border-radius: 4px; padding: 1px 5px; margin-left: 6px;
  vertical-align: 1px;
  color: var(--dim);
  border: 1px solid color-mix(in srgb, var(--dim) 45%, transparent);
  background: color-mix(in srgb, var(--dim) 8%, transparent);
}
html.light .carried-tag { border-color: #c9d4cf; background: #eef3f0; }
/* "New"/"Today" view: per-row "new"/"back" tags (the whole view is entrees,
   so the category badge is suppressed) + the view's header/count lines. */
.new-tag {
  display: inline-block;
  font-size: .56rem; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase;
  border-radius: 4px; padding: 1px 5px; margin-left: 6px;
  vertical-align: 1px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
/* "back" = a familiar dish returning — keep the accent; "new" = never seen
   this week — a warmer tint so the two buckets read apart at a glance. */
.new-tag.new-tag-new {
  color: #ffd54a;
  border-color: color-mix(in srgb, #f5c518 55%, transparent);
  background: color-mix(in srgb, #f5c518 12%, transparent);
}
html.light .new-tag.new-tag-new { color: #8a6d00; }
.new-view-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 2px 2px 10px;
}
.new-view-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.new-view-sub { font-size: .76rem; color: var(--muted); }
/* Subtitle + "?" sit on one line (right of the title; wraps below on
   narrow screens). */
.new-view-headrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
}
.new-view-info {
  flex: none; width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 50%; cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: none;
  position: relative;
  transition: color .15s;
}
/* Icon is 20px but the tap target isn't — pad the hit area to ~36px
   transparently (audit 2026-10-12, finding #2). */
.new-view-info::before {
  content: "";
  position: absolute;
  inset: -8px;
}
.new-view-info svg { width: 13px; height: 13px; }
.new-view-info:hover { color: var(--text); }
/* "How Spotlight works" modal body. */
.spotlight-info-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.spotlight-info-body { font-size: .85rem; line-height: 1.55; color: var(--text); }
.spotlight-info-body p { margin: 0 0 10px; }
.spotlight-info-body .new-tag { margin-left: 0; margin-right: 2px; font-size: .62rem; }
.spotlight-info-note { font-size: .76rem; color: var(--muted); margin-bottom: 0; }

.cat-section {
  margin-bottom: 12px;
  /* Section card: the header lives INSIDE the card, like a .station —
     shared background/border/radius, so header and list read as one unit. */
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}
html.light .cat-section { box-shadow: 0 1px 2px rgba(28, 38, 32, .10), 0 1px 3px rgba(28, 38, 32, .06); }
.cat-section > h2 {
  font-family: var(--font-display);
  font-size: .8rem; letter-spacing: .8px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px; padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.cat-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font-family: var(--font-display);
  font-size: .8rem; letter-spacing: .8px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px; padding: 2px 4px 2px 10px;
  border: none; border-left: 3px solid var(--accent);
  background: none; text-align: left; cursor: pointer;
  /* no border-radius: it would round the ends of the left border line */
  -webkit-appearance: none; appearance: none;
}
.cat-head:hover .cat-head-label { color: var(--text); }
.cat-head .chev {
  margin-left: auto; flex: 0 0 auto;
  width: 1rem; height: 1rem; display: inline-flex; color: var(--dim);
  transition: transform .18s ease;
}
.cat-section.collapsed .chev { transform: rotate(-90deg); }
.cat-section.collapsed .cat-list { display: none; }
.cat-section.collapsed .cat-head { margin-bottom: 0; }
.cat-list {
  list-style: none; margin: 0; padding: 0;
}
.cat-list .item { font-weight: 400; }
.cat-list .item .hall-tag {
  color: var(--dim); font-size: .72rem; margin-left: 6px;
  /* Search rows carry "hall · station" — keep it one line and truncate
     instead of wrapping, so the category badge after it stays aligned
     and row heights uniform. */
  display: inline-block; max-width: 46%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: baseline;
}
.empty { color: var(--muted); text-align: center; padding: 34px 0; }

.footer {
  text-align: center; color: var(--dim);
  font-size: .72rem;
  padding: 10px 16px calc(16px + var(--safe-bottom));
}
.footer a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.footer a:hover { color: var(--text); }
.footer a:active { color: var(--accent); }
.build-sha {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: .68rem;
  color: var(--dim, var(--muted));
  letter-spacing: .3px;
}

.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: end center; }
/* The dish-detail modal can open while the Filters sheet is already open
   (tapping a search result inside it) — it must stack above it regardless
   of DOM order, or the just-opened dish info renders invisibly behind the
   sheet. */
#modal { z-index: 310; }
.modal[hidden] { display: none; }
@media (min-width: 640px) { .modal { place-items: center; } }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-card {
  position: relative;
  width: 100%; max-width: 560px;
  max-height: 82vh; overflow-y: auto;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  padding: 22px 20px calc(28px + var(--safe-bottom));
  animation: slideup .22s ease-out;
}
@media (min-width: 640px) {
  .modal-card { border-radius: 18px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
}
@keyframes slideup { from { transform: translateY(28px); opacity: .4; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid;
  justify-content: center;
  align-items: center;
  padding: 0; /* UA button padding varies by engine — zero it so centering is exact */
  border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-size: 1.1rem;
}
.modal-close svg { width: 16px; height: 16px; display: block; }
.modal-share {
  position: absolute; top: 12px; right: 52px; /* left of the close button */
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; justify-content: center; align-items: center; padding: 0;
  border: 1px solid var(--line);
  background: var(--panel); color: var(--muted);
  transition: color .15s, border-color .15s;
}
.modal-share:hover { color: var(--text); border-color: var(--dim); }
.modal-share svg { width: 16px; height: 16px; display: block; }
.modal-cat { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.modal-cat .hall-tag { color: var(--dim); font-size: .75rem; }
.modal-card h2 { font-family: var(--font-display); margin: 0 0 4px; font-size: 1.45rem; font-weight: 700; letter-spacing: -.3px; }
.modal-meta { color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.modal-desc { color: var(--text); font-size: .92rem; line-height: 1.6; }
.modal-ingredients { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.modal-ingredients h3 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.modal-ingredients p { font-size: .8rem; line-height: 1.55; color: var(--muted); margin: 0; }

/* Vendor-declared allergens ("Contains: Milk, Wheat"). Same section anatomy
   as the ingredients block; the chips read as a warning, not a filter, so
   they use the warm accent rather than the green filter accent. */
.modal-allergens { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.modal-allergens h3 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.allergen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.allergen-chip {
  font-size: .76rem; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 10px;
  color: var(--accent2);
  background: color-mix(in srgb, var(--accent2) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent2) 34%, transparent);
}
/* Dietary flags in the dish modal — same shape as allergen chips, the
   positive color (var(--accent)) instead of the caution one. */
.diet-flag-chip {
  font-size: .76rem; font-weight: 600; line-height: 1;
  padding: 6px 10px; border-radius: 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
}

/* Nutrition panel (dish modal). Two columns of label/value rows; the serving
   size sits in the heading because the numbers are per-serving and mean
   nothing without it. */
.modal-nutrition { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.modal-nutrition h3 {
  margin: 0 0 8px; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .6px; color: var(--muted);
}
.nutr-serving { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .85; }
.nutr-grid {
  margin: 0; display: grid; gap: 2px 14px;
  grid-template-columns: 1fr auto 1fr auto;  /* two label/value pairs per row */
}
.nutr-grid dt { font-size: .8rem; color: var(--muted); padding: 3px 0; }
/* Sub-rows (saturated fat, added sugar): part of the parent's value. Parked
   in the parent's own column (Sat fat under Fat, right; Added sugar under
   Sugar, left) directly below it — smaller, dimmed, dash-prefixed so each
   reads as a child of the row above (the FDA label's "of which" treatment).
   NOTE: the elements carry ONLY the suffixed class (nutr-sub-l/-r) — the
   styling must target those, a bare .nutr-sub matches nothing. */
.nutr-grid .nutr-sub-l { grid-column: 1; }
.nutr-grid .nutr-sub-r { grid-column: 3; }
.nutr-grid dd.nutr-sub-l { grid-column: 2; }
.nutr-grid dd.nutr-sub-r { grid-column: 4; }
.nutr-grid .nutr-sub-l, .nutr-grid .nutr-sub-r {
  padding-left: 10px; font-size: .72rem;
  opacity: .62;  /* muted colors are near-identical in the light theme,
                   so dim by alpha to read clearly as subordinate */
}
.nutr-grid dt.nutr-sub-l::before, .nutr-grid dt.nutr-sub-r::before {
  content: "\2013";  /* en dash: marks the child relationship to the row above */
  margin-right: 5px;
}
.nutr-grid dt.nutr-sub-l, .nutr-grid dt.nutr-sub-r { color: var(--muted); }
.nutr-grid dd.nutr-sub-l, .nutr-grid dd.nutr-sub-r { font-weight: 500; color: var(--muted); }
.nutr-grid dd {
  margin: 0; padding: 3px 0; font-size: .8rem; font-weight: 600;
  color: var(--text); font-variant-numeric: tabular-nums; text-align: right;
}
@media (max-width: 380px) {
  .nutr-grid { grid-template-columns: 1fr auto; }  /* single pair per row */
  .nutr-grid .nutr-sub-l, .nutr-grid .nutr-sub-r,
  .nutr-grid dd.nutr-sub-l, .nutr-grid dd.nutr-sub-r { grid-column: auto; }
}

/* The macro tag on a row sits next to the calorie span and shares its look. */
.item .cal.macro { color: var(--muted); }

/* Dining hours modal */
.hours-body { margin-top: 6px; }
.hours-sec {
  font-family: var(--font-display);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); margin: 18px 0 8px; padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}
.hours-sec:first-child { margin-top: 4px; }
.hours-loc { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours-loc:last-child { border-bottom: none; }
.hours-loc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.hours-loc-name { font-weight: 600; font-size: .95rem; color: var(--text); }
.hours-loc-bld { font-size: .74rem; color: var(--dim); }
.hours-days { display: flex; flex-direction: column; gap: 3px; }
.hours-valid { font-size: .72rem; color: var(--accent2); margin: 2px 0 1px; }
.hours-day { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; }
/* The day name yields width first (shrinks, wraps) and the time slots get
   priority: they're the data, take the remaining column, and wrap within it
   (right-aligned, tabular). This keeps the 2-column look and avoids the
   orphaned-2nd-line imbalance when a long name + long slot list collide. */
.hours-day-name { color: var(--dim); flex: 0 1 auto; min-width: 0; max-width: 52%; }
.hours-day-slots { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; flex: 1 1 auto; min-width: 0; }
/* One slot = one unbreakable unit (breaks only at the comma between slots). */
.hours-slot { white-space: nowrap; }
.hours-day.closed .hours-day-slots { color: var(--dim); font-style: italic; }

/* About modal */
.about-head { display: flex; align-items: center; gap: 12px; }
.about-head .brand-mark { flex: 0 0 auto; } /* 42px tile (34px on phones) */
#about-title { font-size: 1.25rem; }
.about-tag { margin-bottom: 0; }
.about-sparty {
  display: block;
  width: 144px; height: 144px;
  margin: 14px auto 0;
  border-radius: 24px;
}
.about-build { margin: 16px 0; border-top: 1px solid var(--line); }
.about-build > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.about-build dt { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.about-build dd { margin: 0; font-size: .8rem; font-variant-numeric: tabular-nums; }
.about-build dd a { color: var(--accent); text-decoration: none; }
.about-build dd a:hover { text-decoration: underline; }
.about-feedback {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--accent); color: #06231a;
  font-size: .88rem; font-weight: 600; text-decoration: none;
  transition: filter .15s ease, transform .05s ease;
}
.about-feedback:hover { filter: brightness(1.08); }
.about-feedback:active { transform: translateY(1px); }
.about-feedback svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* food-kind emoji (app.js foodEmoji) — leading glyph on dish rows */
.dish-emoji { margin-right: 6px; }
#modal-title .dish-emoji.big { font-size: 1.6em; margin-right: 8px; }

/* "Show all N" progressive-disclosure row in Categories view. */
.show-all {
  width: 100%; border: none; background: none; cursor: pointer;
  padding: 8px 0 4px; margin-top: 2px;
  border-top: 1px dashed var(--line);
  color: var(--accent); font-size: .8rem; font-weight: 600; text-align: left;
  transition: color .15s ease;
}
.show-all:hover { color: var(--text); }
.show-all:active { transform: translateY(1px); }

/* ---------- touch targets (coarse pointers only) ----------
   Visual sizes stay as designed; on touch devices the *hit area* grows via
   a pseudo-element (clicks on it land on the element). Inset directions are
   asymmetric on purpose: extensions only reach into FREE space (row gaps,
   card padding, sheet padding) — never into an adjacent row, because
   adjacent rows split the band by DOM order and a zero-sum overlap gives
   nothing. Row-adjacent targets (list items, menu items) therefore only
   gain horizontally and stay ~33-36px tall (taller rows are a visual
   density choice, not a hit-area fix). Desktop mouse users keep the
   compact footprint. The hall pill is already ≥44px tall. */
@media (pointer: coarse) {
  .hall-pill, .seg-btn, .icon-btn, .menu-item,
  .cat-chip, .diet-chip, .switch, .show-all, .item,
  .cat-head, .filters-reset { position: relative; }
  /* .modal-close and .search-clear are already position:absolute —
     their ::after insets extend their hit areas without re-positioning. */
  .seg-btn::after { content: ""; position: absolute; inset: 0 -8px -15px; }     /* 29 → 44 (down into .content padding) */
  .icon-btn::after { content: ""; position: absolute; inset: -4px; }            /* 36 → 44 */
  .icon-btn.meal-btn::after { content: ""; position: absolute; inset: -5px; }   /* 34 → 44 */
  .menu-item::after { content: ""; position: absolute; inset: 0 -4px; }         /* 36 → 36 (rows are adjacent: horizontal only) */
  .item::after { content: ""; position: absolute; inset: 0 -4px 1px; }          /* 32 → ~33 (takes the divider; rows adjacent) */
  .show-all::after { content: ""; position: absolute; inset: 0 -4px -13px; }    /* 31 → 44 (down into card margin) */
  .cat-chip::after { content: ""; position: absolute; inset: 0 -6px; }          /* ~25 → ~31 */
  .diet-chip::after { content: ""; position: absolute; inset: 0 -6px; }         /* ~24 → ~30 */
  .switch::after { content: ""; position: absolute; inset: 0 -6px; }            /* ~33 → ~39 */
  .cat-head { padding: 8px 4px 6px 10px; }                                      /* 21 → 29 (bigger header on touch) */
  .cat-head::after { content: ""; position: absolute; inset: -10px -12px 0; }   /* → 39 (up into card padding; list rows untouched) */
  .filters-reset::after { content: ""; position: absolute; inset: -4px; }       /* ~40 → 48 */
  .modal-close::after { content: ""; position: absolute; inset: -8px; }         /* 32 → 48 */
  .search-clear::after { content: ""; position: absolute; inset: -10px; }       /* 24 → 44 */
}
