/* =====================================================================
   Grub — the look (phase 2, approved 21 Oct 2026).
   =====================================================================
   A white table and loud food. Vivid tiles that keep black type in every
   theme, cut-out plates that break out of the top of them, black for
   anything you press (light in the dark themes). Plum is the dark mode
   Jon chose; a plain dark is there for anyone who would rather.
   The source of truth is grub/design/prototype/src.html.
   ===================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(fonts/bricolage-grotesque.woff2?v=1) format('woff2-variations'), url(fonts/bricolage-grotesque.woff2?v=1) format('woff2');
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url(fonts/figtree.woff2?v=1) format('woff2-variations'), url(fonts/figtree.woff2?v=1) format('woff2');
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Shrikhand';
  src: url(fonts/shrikhand.woff2?v=1) format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --canvas: #ffffff; --fill: #f2f2ef; --ink: #101010; --ink-2: #3b3b38; --slate: #75756e; --line: #e9e9e5;
  --act: #101010; --act-ink: #ffffff;
  --nav-bg: #ffffff; --nav-ink: #101010; --nav-on: #101010; --nav-on-ink: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 16px 34px -20px rgba(0, 0, 0, .35);
  --go: #12a150; --wait: #f5a00b; --stop: #ef3e2d; --rest: #8b6cff;
  --tile-clean: #f3f3f0; --plate-shadow: rgba(0, 0, 0, .3); --scrim: rgba(16, 16, 16, .34);
  /* tiles stay light enough for black type in every theme */
  --tomato: #ff7b5c; --sunflower: #ffd23f; --eucalyptus: #84d69f; --jade: #5fe0bb; --saffron: #ffa841;
  --lilac: #bba6ff; --sky: #8ecbff; --bubblegum: #ff9fc5; --peach: #ffb48d; --butter: #ffe777;
  --ff-display: 'Bricolage Grotesque', 'Avenir Next Condensed', 'Avenir Next', system-ui, sans-serif;
  --ff-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ff-mark: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}

/* Plum: the dark mode Jon chose, and what Automatic uses after dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --canvas: #1b1626; --fill: #2a2236; --ink: #f5f2f8; --ink-2: #d6d0e0; --slate: #a79fb6; --line: #3a3048;
    --act: #f5f2f8; --act-ink: #140f1c;
    --nav-bg: #2a2236; --nav-ink: #f5f2f8; --nav-on: #f5f2f8; --nav-on-ink: #140f1c;
    --shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 18px 34px -20px rgba(0, 0, 0, .9);
    --go: #2fce77; --wait: #ffb52e; --stop: #ff5a48; --rest: #a48cff;
    --tile-clean: #2a2236; --plate-shadow: rgba(0, 0, 0, .45); --scrim: rgba(8, 5, 12, .6);
    --tomato: #f26c4d; --sunflower: #f2c42e; --eucalyptus: #72c58d; --jade: #4fd0ab; --saffron: #f29a33;
    --lilac: #aa94f5; --sky: #7bbcf2; --bubblegum: #f28db6; --peach: #f2a47c; --butter: #f2d965;
    color-scheme: dark;
  }
}
:root[data-theme="plum"] {
  --canvas: #1b1626; --fill: #2a2236; --ink: #f5f2f8; --ink-2: #d6d0e0; --slate: #a79fb6; --line: #3a3048;
  --act: #f5f2f8; --act-ink: #140f1c;
  --nav-bg: #2a2236; --nav-ink: #f5f2f8; --nav-on: #f5f2f8; --nav-on-ink: #140f1c;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 18px 34px -20px rgba(0, 0, 0, .9);
  --go: #2fce77; --wait: #ffb52e; --stop: #ff5a48; --rest: #a48cff;
  --tile-clean: #2a2236; --plate-shadow: rgba(0, 0, 0, .45); --scrim: rgba(8, 5, 12, .6);
  --tomato: #f26c4d; --sunflower: #f2c42e; --eucalyptus: #72c58d; --jade: #4fd0ab; --saffron: #f29a33;
  --lilac: #aa94f5; --sky: #7bbcf2; --bubblegum: #f28db6; --peach: #f2a47c; --butter: #f2d965;
  color-scheme: dark;
}
/* Dark: the same, on charcoal instead of plum. */
:root[data-theme="dark"] {
  --canvas: #161618; --fill: #26262a; --ink: #f4f4f5; --ink-2: #d4d4d8; --slate: #a1a1aa; --line: #36363c;
  --act: #f4f4f5; --act-ink: #111113;
  --nav-bg: #26262a; --nav-ink: #f4f4f5; --nav-on: #f4f4f5; --nav-on-ink: #111113;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 18px 34px -20px rgba(0, 0, 0, .9);
  --go: #2fce77; --wait: #ffb52e; --stop: #ff5a48; --rest: #a48cff;
  --tile-clean: #26262a; --plate-shadow: rgba(0, 0, 0, .5); --scrim: rgba(0, 0, 0, .6);
  --tomato: #f26c4d; --sunflower: #f2c42e; --eucalyptus: #72c58d; --jade: #4fd0ab; --saffron: #f29a33;
  --lilac: #aa94f5; --sky: #7bbcf2; --bubblegum: #f28db6; --peach: #f2a47c; --butter: #f2d965;
  color-scheme: dark;
}

:root {
  /* what each tile colour means */
  --cu-italian: var(--tomato); --cu-australian: var(--eucalyptus); --cu-mexican: var(--sunflower); --cu-chinese: var(--jade);
  --cu-indian: var(--saffron); --cu-french: var(--lilac); --cu-british: var(--sky); --cu-american: var(--bubblegum);
  --cu-thai: var(--peach); --cu-japanese: var(--jade); --cu-korean: var(--jade); --cu-vietnamese: var(--jade);
  --cu-greek: var(--butter); --cu-middle-eastern: var(--butter); --cu-spanish: var(--peach); --cu-portuguese: var(--peach);
  --pr-chicken: var(--sunflower); --pr-beef: var(--tomato); --pr-lamb: var(--bubblegum); --pr-pork: var(--peach);
  --pr-seafood: var(--sky); --pr-egg: var(--butter); --pr-veg: var(--eucalyptus); --pr-other: var(--lilac);
  /* each person's own colour */
  --p-blue: var(--sky); --p-yellow: var(--sunflower); --p-green: var(--eucalyptus); --p-pink: var(--bubblegum);
  --p-purple: var(--lilac); --p-teal: var(--jade); --p-orange: var(--saffron); --p-lime: var(--butter);
  /* on a coloured tile type is always black, and the pill on it black with white words */
  --on-tile: #101010; --pill-on-tile: #101010; --pill-on-tile-ink: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100svh; background: var(--canvas); color: var(--ink); font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 10px; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the page ---------- */
#main { min-height: 100svh; }
/* The strip behind the clock. The page draws under the status bar
   (black-translucent, so iOS never tints it grey as content scrolls
   under), and this band keeps the clock on a steady colour. The clock is
   always white, so in Light the band is plum. */
:root { --statusbar: #1b1626; }
:root[data-theme="dark"] { --statusbar: #161618; }
body::before { content: ""; position: fixed; z-index: 92; top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top, 0px); background: var(--statusbar); pointer-events: none; }
.app { position: relative; max-width: 560px; margin: 0 auto; min-height: 100svh;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) calc(118px + env(safe-area-inset-bottom, 0px)); }
.app.pushed { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.mark { font-family: var(--ff-mark); font-size: 30px; line-height: 1; letter-spacing: -.01em; font-weight: 400; }
.mark-svg { display: block; height: 1.11em; width: auto; margin-top: -.14em; overflow: visible; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.hello { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--slate); }
.title { margin: 2px 0 0; font-family: var(--ff-display); font-size: 36px; font-weight: 800; font-stretch: 90%; letter-spacing: -.035em; line-height: 1; }
.top + .title { margin-top: 14px; }
.count { margin-top: 3px; font-size: 14px; font-weight: 600; color: var(--slate); }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--act); color: var(--act-ink); flex: none; }
.round.soft { background: var(--fill); color: var(--ink); }
.round:active, .btn:active, .chip:active, .scheme:active, .row:active { transform: scale(.97); }
.label { margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--ink); }
.linkbtn { height: 44px; font-size: 14.5px; font-weight: 700; color: var(--slate); }
.linkbtn.inline { height: auto; }

/* fields */
.search { margin-top: 16px; height: 48px; border-radius: 16px; background: var(--fill); display: flex; align-items: center; gap: 9px; padding: 0 15px; color: var(--slate); }
.search input, .field { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; font-weight: 500; color: var(--ink); }
.search input::placeholder, .field::placeholder, textarea::placeholder { color: var(--slate); opacity: 1; }
.search svg { color: var(--slate); }
.field.box { display: block; width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--fill); }
textarea.field.box { height: auto; min-height: 110px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.field.big { font-family: var(--ff-display); font-size: 22px; font-weight: 800; font-stretch: 92%; letter-spacing: -.02em; }
.field.code { text-align: center; letter-spacing: 6px; font-size: 22px; font-weight: 700; }

/* chips */
.chips { display: flex; gap: 7px; overflow-x: auto; margin: 12px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--fill); font-size: 13px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.chip svg.i { width: 15px; height: 15px; }
.chip.swatch { background: var(--c); color: var(--on-tile); }
.chip.swatch.dim { opacity: .45; }
.chip.on { background: var(--act); color: var(--act-ink); }
.chip.swatch.on { box-shadow: inset 0 0 0 2.5px var(--act); background: var(--c); color: var(--on-tile); }
.chip .n { opacity: .6; font-variant-numeric: tabular-nums; }
.chips .sep { flex: none; width: 1px; margin: 6px 3px; background: var(--line); }

/* ---------- tiles: the plate breaks out of the top edge ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 12px; margin-top: 56px; }
.tile { --tile-ink: var(--on-tile); --vp: var(--pill-on-tile); --vp-ink: var(--pill-on-tile-ink);
  position: relative; display: flex; flex-direction: column; padding: 0 13px 13px; border-radius: 28px; min-width: 0;
  background: var(--tile); color: var(--tile-ink); text-align: left; transition: transform .25s ease; }
.tile.clean, .hero.clean, .newtile.clean, .meal-hero.clean, .sit.clean, .ask-row.clean { --tile-ink: var(--ink); --vp: var(--act); --vp-ink: var(--act-ink); }
.tile:active { transform: scale(.97); }
.plate { display: block; width: 92%; height: auto; aspect-ratio: 1; margin: -26% auto 2px; transform: rotate(var(--rot, 0deg));
  filter: drop-shadow(0 12px 12px var(--plate-shadow)); transition: transform .6s cubic-bezier(.2, 1.5, .35, 1);
  animation: settle 1s cubic-bezier(.2, 1.25, .3, 1) backwards; animation-delay: calc(min(var(--i, 0), 12) * 45ms); }
.plate.own { border-radius: 50%; object-fit: cover; border: 5px solid #ffffff; background: #ffffff; width: 84%; }
@media (hover: hover) { .tile:hover .plate { transform: rotate(calc(var(--rot, 0deg) + 28deg)) translateY(-3px) scale(1.03); } }
@keyframes settle { from { transform: rotate(calc(var(--rot, 0deg) - 70deg)) scale(.92); } }
/* No cut-out yet: a clean tile in the meal's colour, the name doing the work. */
.tile.nophoto { padding-top: 16px; min-height: 172px; }
.tile.nophoto h3 { margin-top: 18px; font-size: 20px; }
.tile.nophoto .cuisine { margin-bottom: auto; padding-right: 30px; font-size: 12px; font-weight: 700; opacity: .62; }
.tile h3 { margin: 0; font-family: var(--ff-display); font-size: 17px; font-weight: 750; font-stretch: 92%; line-height: 1.08;
  letter-spacing: -.02em; min-height: 2.16em; text-wrap: balance; overflow-wrap: anywhere; }
.meta { margin-top: 4px; font-size: 12px; font-weight: 600; opacity: .72; font-variant-numeric: tabular-nums; }
.foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 24px; }
.verdict { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px;
  background: var(--vp); color: var(--vp-ink); font-size: 11.5px; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; }
.verdict i { width: 8px; height: 8px; border-radius: 50%; background: var(--vc); flex: none; }
.badges { display: inline-flex; gap: 4px; }
.badge { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.6px currentColor;
  font-size: 9px; font-weight: 800; letter-spacing: .02em; flex: none; }
.badge svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge.maybe { box-shadow: none; background-image: radial-gradient(circle, transparent 10.2px, currentColor 10.6px, currentColor 11.6px, transparent 12px); opacity: .75; }
/* diet badges sit stacked in the tile's top corner, so the bottom row never overflows */
.tile > .badges { position: absolute; z-index: 3; top: 10px; right: 10px; flex-direction: column; gap: 4px; }
.tile > .badges .badge { background-color: var(--tile); }
.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 50px var(--gutter) 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail .tile { flex: none; width: 156px; scroll-snap-align: start; }
.rail .tile.nophoto { min-height: 0; align-self: stretch; }
.rail:not(:has(.plate)) { padding-top: 14px; }
.more-btn { display: block; width: 100%; margin-top: 22px; height: 48px; border-radius: 16px; background: var(--fill); font-size: 14.5px; font-weight: 700; }

/* ---------- tonight ---------- */
.askbar { margin-top: 14px; width: 100%; height: 50px; border-radius: 16px; display: flex; align-items: center; gap: 10px; padding: 0 15px;
  background: var(--fill); color: var(--slate); font-size: 15px; font-weight: 600; text-align: left; }
.askbar svg, .askbox svg { color: var(--ink); }
.faces { display: flex; gap: 12px; margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 2px; overflow-x: auto; scrollbar-width: none; }
.faces::-webkit-scrollbar { display: none; }
.face { flex: none; display: grid; justify-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--slate); min-width: 48px; }
.face b, .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-display);
  font-size: 19px; font-weight: 800; background: var(--pc, var(--fill)); color: var(--on-tile); flex: none; }
.face.off b { opacity: .3; }
.face.off { text-decoration: line-through; }
.face.all b { background: var(--fill); color: var(--ink); font-family: var(--ff-body); font-size: 12px; }
.hero { position: relative; display: flow-root; margin-top: 80px; padding: 0 20px 20px; border-radius: 34px; background: var(--tile); color: var(--tile-ink);
  --tile-ink: var(--on-tile); --vp: var(--pill-on-tile); --vp-ink: var(--pill-on-tile-ink); }
.hero .plate { width: 84%; margin: -28% auto 4px; --rot: -8deg; cursor: pointer; }
@media (hover: hover) { .hero:hover .plate { transform: rotate(20deg) translateY(-4px) scale(1.02); } }
.hero.nophoto { margin-top: 22px; padding-top: 58px; }
.hero > .verdict { position: absolute; top: 16px; left: 16px; height: 30px; padding: 0 12px 0 10px; font-size: 12.5px; }
.hero h3 { margin: 0; font-family: var(--ff-display); font-size: 30px; font-weight: 800; font-stretch: 88%; letter-spacing: -.035em; line-height: .98; text-wrap: balance; cursor: pointer; }
.hero .why { margin: 9px 0 0; font-size: 15px; font-weight: 600; line-height: 1.38; }
.hero .meta { margin-top: 10px; font-size: 12.5px; display: flex; gap: 12px; align-items: center; justify-content: space-between; opacity: 1; }
.hero .meta > span:first-child { display: inline-flex; align-items: center; gap: 5px; opacity: .75; }
.hero .meta svg.i { width: 15px; height: 15px; }
.hero .late { margin-top: 8px; font-size: 13px; font-weight: 700; }
.who { display: flex; margin-top: 14px; flex-wrap: wrap; row-gap: 6px; }
.who b { width: 28px; height: 28px; margin-right: -6px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--pc); color: var(--on-tile); box-shadow: 0 0 0 2.5px var(--tile); position: relative; }
.who b.fix::after, .who b.out::after, .who b.rest::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px var(--tile); }
.who b.fix::after { background: var(--wait); }
.who b.out::after { background: var(--stop); }
.who b.rest::after { background: var(--rest); }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 16px; }
.btn { height: 52px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15.5px; font-weight: 700; padding: 0 18px; }
.btn.solid { background: var(--vp); color: var(--vp-ink); }
.btn.ghost { padding: 0 17px; box-shadow: inset 0 0 0 2px currentColor; }
.btn.wide { width: 100%; margin-top: 16px; background: var(--act); color: var(--act-ink); }
.btn.dark { background: var(--act); color: var(--act-ink); }
.btn.soft { height: 44px; padding: 0 16px; border-radius: 14px; background: var(--canvas); color: var(--ink); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.btn.fill { background: var(--fill); color: var(--ink); }
.btn.danger { background: var(--fill); color: var(--stop); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.sect { margin-top: 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sect h4 { margin: 0; font-family: var(--ff-display); font-size: 21px; font-weight: 800; font-stretch: 92%; letter-spacing: -.03em; }
.sect > button { font-size: 13.5px; font-weight: 700; color: var(--slate); display: inline-flex; gap: 5px; align-items: center; }
.sect > button svg.i { width: 16px; height: 16px; }
.planned { margin-top: 18px; }
.empty { margin-top: 26px; padding: 22px 20px; border-radius: 26px; background: var(--fill); }
.empty h3 { font-family: var(--ff-display); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.empty p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--slate); }

/* the "how was it" card */
.rate { margin-top: 16px; padding: 16px; border-radius: 24px; background: var(--fill); }
.rate small { display: block; font-size: 12.5px; font-weight: 700; color: var(--slate); }
.rate h3 { margin-top: 3px; font-family: var(--ff-display); font-size: 20px; font-weight: 800; font-stretch: 92%; letter-spacing: -.025em; line-height: 1.1; }
.rate .opts { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rate .opts button { height: 44px; border-radius: 14px; background: var(--canvas); font-size: 13px; font-weight: 700; text-align: center; box-shadow: inset 0 0 0 1px var(--line); }
.rate .linkbtn { height: 34px; margin-top: 4px; font-size: 13px; }

/* ---------- first open, sign-in and the gate ---------- */
#gate { position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: var(--canvas); color: var(--ink); -webkit-overflow-scrolling: touch;
  transition: opacity .25s ease; }
#gate.gone { opacity: 0; pointer-events: none; visibility: hidden; }
#gate .app { display: flex; flex-direction: column; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
.loading { min-height: 100svh; display: grid; place-items: center; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.setup-top { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.steps { flex: 1; display: flex; gap: 6px; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--fill); }
.steps i.on { background: var(--act); }
.skip { height: 44px; font-size: 14px; font-weight: 700; color: var(--slate); }
.q { margin: 24px 0 0; font-family: var(--ff-display); font-size: 35px; font-weight: 800; font-stretch: 88%; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.qsub { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; font-weight: 500; color: var(--slate); text-wrap: pretty; }
.setup-foot { margin-top: auto; padding-top: 26px; display: grid; gap: 4px; }
.setup-foot .btn.wide { margin-top: 0; }
.setup-foot .linkbtn { text-align: center; }
.err { min-height: 20px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--stop); }
.welcome .mark.big { margin-top: 6px; font-size: 64px; }
.welcome .q { font-size: 40px; margin-top: 14px; }
.welcome-plates { position: relative; height: 290px; margin: 8px calc(-1 * var(--gutter)) 0; overflow: hidden; }
.welcome-plates .plate { position: absolute; width: 196px; margin: 0; }
.welcome-plates .wp0 { left: -14px; top: 64px; }
.welcome-plates .wp1 { left: 50%; top: 0; margin-left: -103px; width: 206px; }
.welcome-plates .wp2 { right: -14px; top: 82px; }
.people { display: grid; gap: 8px; margin-top: 22px; }
.person { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 9px 12px 9px 9px; border-radius: 22px; background: var(--fill); font-size: 16px; font-weight: 700; }
.person b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: var(--on-tile);
  font-family: var(--ff-display); font-size: 18px; font-weight: 800; flex: none; }
.person small { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--slate); }
.person .x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--slate); }
.person .x + small, .person small + .x { margin-left: 0; }
.person input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 16px; font-weight: 700; }
.person.add { background: none; box-shadow: inset 0 0 0 2px var(--line); color: var(--slate); }
.person.add b { background: var(--fill); color: var(--ink); }
.person.off { opacity: .5; }
.who-tabs { display: flex; gap: 10px; margin: 20px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.who-tabs::-webkit-scrollbar { display: none; }
.who-tabs button { flex: none; display: grid; justify-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--slate); min-width: 50px; }
.who-tabs b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: var(--on-tile);
  font-family: var(--ff-display); font-size: 18px; font-weight: 800; opacity: .45; }
.who-tabs .on { color: var(--ink); }
.who-tabs .on b { opacity: 1; box-shadow: 0 0 0 3px var(--canvas), 0 0 0 5px var(--ink); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat { height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: var(--fill);
  font-size: 14px; font-weight: 700; color: var(--ink-2); }
.cat svg.i { width: 16px; height: 16px; stroke-width: 2.2; }
.cat.on { background: var(--act); color: var(--act-ink); }
.shops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.shop { min-height: 58px; padding: 6px 12px 6px 16px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--fill); font-size: 15px; font-weight: 700; text-align: left; }
.shop.on { box-shadow: inset 0 0 0 2px var(--ink); }
.shop.on .tick { background: var(--act); color: var(--act-ink); box-shadow: none; }
.mini-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 50px 0 18px; }
.mini-preview .tile { pointer-events: none; }
.choice { display: grid; gap: 8px; margin-top: 22px; }

/* ---------- pushed screens: back, the meal ---------- */
.navrow { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.back { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 12px 0 4px; margin-left: -6px; font-size: 16px; font-weight: 700; }
.navrow .acts { display: flex; gap: 8px; }
.meal-hero { position: relative; margin: 64px 0 0; height: 220px; border-radius: 32px; background: var(--tile); display: flow-root; }
.meal-hero.clean { box-shadow: inset 0 0 0 1px var(--line); }
.meal-hero .plate { width: 86%; max-width: 340px; margin: -58px auto 0; --rot: -6deg; }
.meal-hero .plate.own { width: 72%; max-width: 290px; margin-top: -40px; }
.meal-hero.nophoto { margin-top: 18px; height: 132px; display: flex; align-items: flex-end; padding: 18px 20px; color: var(--on-tile); }
.meal-hero.nophoto.clean { color: var(--ink); }
.meal-hero.nophoto .cuisine { font-family: var(--ff-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; opacity: .55; }
.meal-hero .photo { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .8); color: #101010; }
.meal-hero .photo svg.i { width: 19px; height: 19px; }
.meal-name { margin: 22px 0 0; font-family: var(--ff-display); font-size: 34px; font-weight: 800; font-stretch: 88%; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.meal-blurb { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.facts { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--slate); }
.facts > span:not(.badges) { display: inline-flex; align-items: center; gap: 5px; }
.facts svg.i { width: 16px; height: 16px; }
.facts .badges { color: var(--ink); }
.card { border-radius: 24px; background: var(--fill); }
.verdict-card { margin-top: 18px; padding: 16px; }
.verdict.solo { background: var(--act); color: var(--act-ink); }
.vhead { margin: 10px 0 0; font-family: var(--ff-display); font-size: 21px; font-weight: 800; font-stretch: 92%; letter-spacing: -.025em; line-height: 1.1; }
.plist { margin-top: 12px; display: grid; gap: 2px; }
.prow { display: grid; grid-template-columns: 36px minmax(0, 1fr) 10px; gap: 12px; align-items: center; padding: 6px 0; }
.prow b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pc); color: var(--on-tile); font-size: 14px; font-weight: 800; }
.prow strong { display: block; font-size: 14.5px; font-weight: 700; }
.prow small { display: block; font-size: 13px; color: var(--slate); font-weight: 500; }
.prow > i { width: 10px; height: 10px; border-radius: 50%; background: var(--d); }
.fixbox { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.fixlist { display: grid; gap: 4px; }
.fixrow { display: flex; align-items: center; gap: 10px; min-height: 40px; text-align: left; }
.fixrow .tick { width: 24px; height: 24px; }
.fixrow span { font-size: 14.5px; font-weight: 700; }
.fixrow small { display: block; font-size: 12.5px; font-weight: 600; color: var(--slate); }
.fixbox .done { font-size: 13px; font-weight: 600; color: var(--slate); }
.notice { margin-top: 12px; padding: 13px 15px; border-radius: 18px; background: var(--fill); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.notice b { color: var(--ink); }
.sub-h { margin: 26px 2px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--ff-display); font-size: 21px; font-weight: 800; font-stretch: 92%; letter-spacing: -.03em; }
.sub-h > span { margin-right: auto; margin-left: 8px; font-family: var(--ff-body); font-size: 13px; font-weight: 700; color: var(--slate); letter-spacing: 0; }
.sub-h > button { font-family: var(--ff-body); font-size: 13.5px; font-weight: 700; color: var(--slate); letter-spacing: 0; }
.ing-list { padding: 4px 16px; }
.irow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; }
.irow + .irow { border-top: 1px solid var(--line); }
.irow > span { font-size: 15px; font-weight: 600; min-width: 0; }
.irow small { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--slate); }
.irow small.was { display: block; margin: 1px 0 0; }
.role { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--canvas); color: var(--slate); white-space: nowrap; flex: none; }
.role.main { background: var(--act); color: var(--act-ink); }
.role.mine { box-shadow: inset 0 0 0 1.5px var(--ink); }
.steps-list { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.45; }
.steps-list li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill);
  font-family: var(--ff-display); font-size: 15px; font-weight: 800; }
.feel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feel button { min-height: 64px; border-radius: 18px; background: var(--fill); display: grid; place-items: center; align-content: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 6px; }
.feel button.on { background: var(--act); color: var(--act-ink); }
.actionbar { position: sticky; bottom: 0; z-index: 5; margin: 24px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: 1fr auto; gap: 8px; background: var(--canvas); box-shadow: 0 -1px 0 var(--line); }
.app.with-actionbar { padding-bottom: 0; }
.btn.wide-dark { background: var(--act); color: var(--act-ink); }
.actionbar .btn.soft { height: 52px; width: 56px; padding: 0; border-radius: 18px; }

/* ---------- week ---------- */
.days { margin-top: 18px; display: grid; gap: 10px; }
.day { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; }
.dte { display: grid; justify-items: center; line-height: 1; padding-top: 20px; }
.dte small { font-size: 12px; font-weight: 700; color: var(--slate); }
.dte b { margin-top: 3px; font-family: var(--ff-display); font-size: 22px; font-weight: 800; }
.day.today .dte small, .day.today .dte b { color: var(--ink); }
.day.today .dte b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sits { display: grid; gap: 8px; min-width: 0; }
.sit { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 22px; width: 100%;
  background: var(--tile); color: var(--on-tile); text-align: left; min-height: 80px; }
.sit img, .ask-row img { width: 64px; height: 64px; filter: drop-shadow(0 6px 6px var(--plate-shadow)); }
.sit img.own, .ask-row img.own { border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.thumb-none { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .08);
  font-family: var(--ff-display); font-size: 22px; font-weight: 800; }
.clean .thumb-none { background: var(--canvas); }
.sit strong, .ask-row strong { display: block; font-family: var(--ff-display); font-size: 17px; font-weight: 800; font-stretch: 92%; letter-spacing: -.02em; line-height: 1.08; overflow-wrap: anywhere; }
.sit small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; opacity: .72; }
.sit .pins { display: flex; }
.sit .pins i { width: 22px; height: 22px; margin-left: -5px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800;
  background: var(--pc); color: var(--on-tile); box-shadow: 0 0 0 2px var(--tile); }
.sit.takeaway { background: var(--fill); color: var(--ink); }
.tk { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); font-size: 11px; font-weight: 800; }
.plan-empty { width: 100%; min-height: 80px; border-radius: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: inset 0 0 0 2px var(--line);
  color: var(--slate); font-size: 14.5px; font-weight: 700; }
.plan-more { justify-self: start; height: 32px; padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--slate); display: inline-flex; align-items: center; gap: 5px; }
.plan-more svg.i { width: 15px; height: 15px; }

/* ---------- the list ---------- */
.appear { display: flex; padding: 4px; border-radius: 999px; background: var(--fill); }
.appear button { flex: 1; height: 38px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-align: center; }
.appear button[aria-pressed="true"] { background: var(--act); color: var(--act-ink); }
.shop-h { margin: 24px 2px 4px; display: flex; align-items: baseline; justify-content: space-between; font-family: var(--ff-display); font-size: 22px;
  font-weight: 800; font-stretch: 92%; letter-spacing: -.03em; }
.shop-h span { font-family: var(--ff-body); font-size: 13px; font-weight: 700; color: var(--slate); letter-spacing: 0; }
.aisle { margin: 12px 4px 6px; font-size: 13px; font-weight: 700; color: var(--slate); }
.checklist { padding: 2px 14px; }
.crow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; width: 100%; text-align: left; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow .box { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--slate) 55%, transparent); }
.crow .box svg.i { width: 15px; height: 15px; }
.crow span { font-size: 15px; font-weight: 600; min-width: 0; }
.crow small { display: block; font-size: 12px; font-weight: 600; color: var(--slate); }
.crow em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.crow.done span, .crow.done em { opacity: .4; text-decoration: line-through; }
.crow.done .box { background: var(--go); color: #ffffff; box-shadow: none; }
.addline { margin-top: 14px; }
.list-foot { margin-top: 22px; display: grid; gap: 8px; }

/* ---------- ask grub ---------- */
.askbox { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--fill); }
.askbox svg.i { margin-top: 3px; }
.askbox textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; font-size: 16px; font-weight: 600; line-height: 1.35; min-height: 44px; field-sizing: content; }
.heard { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.heard small { width: 100%; font-size: 12.5px; font-weight: 700; color: var(--slate); }
.heard .chip em { font-style: normal; font-weight: 600; opacity: .7; }
.heard .chip b { margin-left: 2px; opacity: .55; font-weight: 700; font-size: 15px; }
.ask-list { display: grid; gap: 8px; }
.ask-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 10px; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 22px;
  background: var(--tile); color: var(--on-tile); text-align: left; width: 100%; }
.ask-row small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; opacity: .72; }
.ask-row em { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; font-weight: 700; }
.ask-row .vdot { width: 10px; height: 10px; border-radius: 50%; background: var(--vc); box-shadow: 0 0 0 2px var(--tile), 0 0 0 3px rgba(0, 0, 0, .18); }
.plus-card { margin-top: 26px; padding: 20px; border-radius: 26px; background: var(--ink); color: var(--canvas); }
.plus-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--sunflower); color: var(--on-tile); font-size: 12px; font-weight: 800; }
.plus-card h3 { margin: 12px 0 0; font-family: var(--ff-display); font-size: 24px; font-weight: 800; font-stretch: 90%; letter-spacing: -.03em; }
.plus-card p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; opacity: .82; }
.plus-card .btn { width: 100%; margin-top: 14px; background: var(--sunflower); color: var(--on-tile); }
.plus-card small { display: block; margin-top: 8px; text-align: center; font-size: 12.5px; opacity: .72; }
.tries { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- you and settings ---------- */
.profile { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: var(--fill); width: 100%; text-align: left; }
.profile .av { width: 54px; height: 54px; font-size: 22px; }
.profile .who-name { font-family: var(--ff-display); font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.profile .sub { font-size: 13px; color: var(--slate); font-weight: 600; }
.profile .chev { margin-left: auto; color: var(--slate); }
.set-h { margin: 24px 2px 9px; font-size: 14px; font-weight: 700; }
.schemes { display: grid; gap: 8px; }
.scheme { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; background: var(--fill); text-align: left; width: 100%; }
.scheme[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.swatches { display: flex; }
.swatches i { width: 28px; height: 28px; margin-right: -9px; border-radius: 9px; background: var(--c); box-shadow: 0 0 0 2px var(--fill), inset 0 0 0 1px var(--line); }
.scheme b { display: block; font-size: 15.5px; font-weight: 700; }
.scheme b + span { display: block; margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--slate); }
.tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); flex: none; }
.tick svg.i { width: 15px; height: 15px; }
.tick.on, .scheme[aria-pressed="true"] .tick { background: var(--act); color: var(--act-ink); box-shadow: none; }
.rows { border-radius: 20px; background: var(--fill); overflow: hidden; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 13px 16px; font-size: 15px; font-weight: 600; width: 100%; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
.row small { font-size: 13px; font-weight: 600; color: var(--slate); text-align: right; }
.row .lbl small { display: block; text-align: left; margin-top: 2px; }
.row.danger { color: var(--stop); }
.row .av { width: 34px; height: 34px; font-size: 14px; }
.row .grow { flex: 1; min-width: 0; }
.version { margin-top: 26px; text-align: center; font-size: 12px; font-weight: 600; color: var(--slate); }

/* the tastes page: the four levels */
.dial { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--canvas); flex: none; }
.dial button { width: 34px; height: 30px; border-radius: 999px; font-size: 15px; line-height: 1; filter: grayscale(1); opacity: .45; text-align: center; }
.dial button.on { background: var(--act); filter: none; opacity: 1; }
.dial button.on.inherited { background: var(--line); }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 14px 2px 4px; font-size: 12.5px; line-height: 1.35; color: var(--slate); }
.legend > span { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; }
.legend b { display: block; color: var(--ink); font-weight: 700; font-size: 13.5px; }

/* allergy honesty: a guide, never a promise */
.note { margin: 28px 2px 0; display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--slate); }
.note svg.i { width: 16px; height: 16px; margin-top: 1px; }
.caution { margin-top: 14px; display: flex; gap: 11px; padding: 15px 16px; border-radius: 20px; background: var(--fill); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.caution svg.i { width: 20px; height: 20px; color: var(--wait); margin-top: 1px; }
.caution p { margin: 0; }
.caution b { color: var(--ink); }

/* ---------- add a meal ---------- */
.newtile { margin-top: 16px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px;
  border-radius: 26px; background: var(--tile); color: var(--tile-ink); --tile-ink: var(--on-tile); }
.photo-slot { position: relative; width: 96px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 4px;
  border: 2px dashed currentColor; font-size: 11px; font-weight: 700; text-align: center; opacity: .75; overflow: hidden; }
.photo-slot svg.i { width: 24px; height: 24px; }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; }
.field-label { font-size: 12px; font-weight: 700; opacity: .65; }
.newtile .field { display: block; width: 100%; height: 40px; margin-top: 2px; padding: 0; color: inherit; font-family: var(--ff-display); font-size: 21px; font-weight: 800; font-stretch: 92%; letter-spacing: -.03em; }
.newtile .field::placeholder { color: inherit; opacity: .45; }
.newtile .meta { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; opacity: .85; }
.newtile select { appearance: none; -webkit-appearance: none; border: 0; background: rgba(0, 0, 0, .08); color: inherit; border-radius: 999px; height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 700; }
.ings { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ing { height: 34px; padding: 0 6px 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; background: var(--fill);
  font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ing small { font-size: 11px; font-weight: 600; color: var(--slate); }
.ing .x { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--slate); }
.ing .x svg.i { width: 13px; height: 13px; }
.ing.add { padding: 0 12px; box-shadow: inset 0 0 0 1.5px var(--line); background: none; color: var(--slate); }
.ing.add svg.i { width: 14px; height: 14px; }
.diet { margin-top: 10px; border-radius: 22px; background: var(--fill); }
.diet-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: center; padding: 13px 16px; width: 100%; text-align: left; }
.diet-row + .diet-row { border-top: 1px solid var(--line); }
.diet-row b { font-size: 15.5px; font-weight: 700; }
.diet-row span { grid-column: 1; font-size: 12.5px; line-height: 1.4; color: var(--slate); }
.diet-row span.warn { color: var(--ink-2); }
.diet-row span.warn::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--wait); vertical-align: 1px; }
.switch { grid-row: 1 / span 2; grid-column: 2; width: 51px; height: 31px; border-radius: 999px; background: var(--line); position: relative; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--go); }
.switch.on::after { transform: translateX(20px); }

/* ---------- the floating tab bar ---------- */
.tabbar { position: fixed; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; gap: 2px; padding: 7px; border-radius: 28px; background: var(--nav-bg); color: var(--nav-ink); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.tabbar:empty, body.pushed .tabbar, body.gated .tabbar { display: none; }
.tabbar button { position: relative; width: 60px; height: 52px; border-radius: 21px; display: grid; place-items: center; align-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 650; text-align: center; }
.tabbar button[aria-current="page"] { background: var(--nav-on); color: var(--nav-on-ink); }
.tabbar .dot { position: absolute; top: 8px; right: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--stop); box-shadow: 0 0 0 2px var(--nav-bg); }
.tabbar button[aria-current="page"] .dot { box-shadow: 0 0 0 2px var(--nav-on); }

/* ---------- sheets, toasts, the offline line ---------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 88svh; display: flex; flex-direction: column;
  background: var(--canvas); color: var(--ink); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .35);
  transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .9, .3, 1), visibility 0s .32s; }
.sheet.open { transform: translateY(0); visibility: visible; transition: transform .32s cubic-bezier(.2, .9, .3, 1); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; margin: 9px auto 0; background: var(--line); flex: none; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px var(--gutter) 18px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet-body h2 { margin-right: 46px; font-family: var(--ff-display); font-size: 26px; font-weight: 800; font-stretch: 90%; letter-spacing: -.03em; line-height: 1.05; }
.sheet-body h2 + p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.sheet-body .rows, .sheet-body .search { margin-top: 14px; }
.sheet-foot { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -1px 0 var(--line); }
.sheet-foot .btn { width: 100%; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--ink); z-index: 2; }
.sheet-close svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.sheet .opt-rows { margin-top: 14px; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(10px); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px; background: var(--act); color: var(--act-ink); font-size: 14px; font-weight: 700; text-align: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.pushed .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.offline-bar { position: fixed; z-index: 85; top: calc(8px + env(safe-area-inset-top, 0px)); left: 50%; transform: translate(-50%, -160%); max-width: calc(100% - 32px);
  padding: 9px 14px; border-radius: 999px; background: var(--act); color: var(--act-ink); font-size: 13px; font-weight: 700; text-align: center;
  box-shadow: var(--shadow); transition: transform .3s ease; }
.offline-bar.show { transform: translate(-50%, 0); }

@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .plate, .tile, .sheet, .toast { animation: none !important; transition: none !important; }
}

/* ---------- who's cooking ---------- */
.cooking { margin-top: 16px; padding: 14px; border-radius: 22px; background: var(--fill); display: grid; gap: 12px; }
.cook-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.cook-who strong { display: block; font-family: var(--ff-display); font-size: 18px; font-weight: 800; font-stretch: 92%; letter-spacing: -.025em; line-height: 1.1; }
.cook-who small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--slate); }
.cooking .pins, .cook-day .pins, .nextup .pins { display: flex; flex: none; }
.cooking .pins i, .cook-day .pins i { width: 34px; height: 34px; margin-right: -8px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-family: var(--ff-display); font-size: 14px; font-weight: 800; background: var(--pc); color: var(--on-tile); box-shadow: 0 0 0 2.5px var(--fill); }
.cooking .pins i:last-child, .cook-day .pins i:last-child { margin-right: 0; }
.cooking .pins i.nobody { background: var(--canvas); color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--line); }
.cooking .pins i.nobody svg.i { width: 17px; height: 17px; }
.cook-acts { display: flex; gap: 8px; }
.cook-acts .btn.soft { flex: 1; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 13.5px; }
.cook-day { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cook-day .pins i { width: 22px; height: 22px; margin-right: -6px; font-size: 10.5px; box-shadow: 0 0 0 2px var(--canvas); }
.cook-day.due { color: var(--slate); }
.cook-day.due .pins { opacity: .55; }
.nextup { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--fill);
  font-size: 13.5px; font-weight: 700; color: var(--ink); }
.nextup svg.i { width: 15px; height: 15px; color: var(--slate); }
.row .sub-note { display: block; font-size: 12.5px; font-weight: 600; color: var(--slate); text-align: left; }
.cook-person + .cook-person { border-top: 1px solid var(--line); }
.cook-person .diet-row b { display: flex; align-items: center; gap: 12px; }
.cook-person .diet-row .av { width: 34px; height: 34px; font-size: 14px; line-height: 1; color: var(--on-tile); grid-column: auto; }
.cook-person .switch { grid-row: 1; }
.cook-person.off .diet-row b { color: var(--slate); }
.cook-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px 62px; }
.cook-opts .chip { height: 32px; font-size: 13px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.cook-opts .chip.on { background: var(--act); color: var(--act-ink); box-shadow: none; }
.cook-opts .wk { display: flex; gap: 4px; }
.cook-opts .day-chip { width: 32px; padding: 0; justify-content: center; }
.plus-card.small { margin-top: 18px; padding: 16px 18px; }
.plus-card.small h3 { font-size: 20px; }
