/* V4 — Gut Lab: customer web. Tokens in tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 15px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: var(--bench);
  /* graph paper */
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-attachment: fixed;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--protein); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.hand { font-family: var(--font-hand); font-weight: 700; text-transform: uppercase; line-height: .9; letter-spacing: .02em; }
.label { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.mask > span { display: block; }
.h1 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: .95; }

/* ---------- Buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: var(--lab); font-weight: 500; transition: background .2s, translate .2s; }
.btn:hover { background: var(--moss); }
.btn:active { translate: 0 1px; }
.btn--ghost { background: var(--lab); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: #fff; }
.btn--block { width: 100%; }
.btn svg { width: 17px; height: 17px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--lab); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--lab); }
.tgl { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--lab); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.tgl[aria-pressed="true"] { background: var(--ink); color: var(--lab); box-shadow: none; }
.tgl .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--header-h); display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter); background: color-mix(in oklab, var(--bench) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top__logo img { height: 38px; }
.top__spacer { flex: 1; }
.store-chip { display: none; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--lab); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.store-chip.show { display: inline-flex; }
.store-chip small { font: 500 12px var(--font-mono); color: var(--muted); }
.bag-btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 14px; border-radius: 12px; background: var(--ink); color: var(--lab); font-weight: 500; }
.bag-btn__dish { position: relative; width: 28px; height: 28px; }
.bag-btn__dish svg { width: 28px; height: 28px; }
.bag-btn__count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--leaf); color: var(--ink); font: 600 12px/26px var(--font-mono); text-align: center; }

/* ---------- Petri dish (signature) ---------- */
.petri { display: block; position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--agar) 64%, color-mix(in oklab, var(--agar) 85%, #fff) 70%, var(--agar) 72%); box-shadow: inset 0 0 0 1px #ffffffaa, inset 0 0 0 7px color-mix(in oklab, #fff 55%, transparent), inset 0 0 0 8px var(--line), 0 10px 30px -16px #28463870; }
.petri img { position: absolute; inset: 4%; width: 92%; height: 92%; object-fit: cover; border-radius: 50%; }
.petri::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, #ffffff70 0%, transparent 32%, transparent 70%, #ffffff40 100%); pointer-events: none; }

/* Plant-diversity dish (home hero + bag) */
.culture { position: relative; }
.culture svg { width: 100%; height: auto; display: block; overflow: visible; }
.culture .rim { fill: var(--agar); stroke: var(--line-strong); stroke-width: 1.5; }
.culture .rim2 { fill: none; stroke: #ffffffcc; stroke-width: 6; }
.culture .slot { fill: color-mix(in oklab, var(--ink) 7%, transparent); }
.culture .colony { stroke: #ffffff; stroke-width: 1.5; cursor: pointer; }
.culture .colony--new { stroke: var(--ink); stroke-width: 2; }
.culture__center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.culture__center b { display: block; font: 600 clamp(48px, 12vw, 92px)/.9 var(--font-ui); letter-spacing: -.05em; }
.culture__center small { font: 500 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.culture__tip { position: absolute; z-index: 5; pointer-events: none; padding: 6px 9px; border-radius: 7px; background: var(--ink); color: var(--lab); font: 500 12px var(--font-mono); opacity: 0; translate: -50% calc(-100% - 10px); white-space: nowrap; }
.note { position: absolute; font: 700 26px/.9 var(--font-hand); text-transform: uppercase; color: var(--moss); rotate: -4deg; white-space: nowrap; }
.note svg { position: absolute; overflow: visible; }
.note path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Home ---------- */
.hero { padding: 26px var(--gutter) 10px; display: grid; gap: 24px; }
.hero__title { font-size: clamp(48px, 13vw, 112px); }
.hero__title em { font-style: normal; color: var(--leaf-ink); }
.hero__lede { margin: 0; font-size: 18px; color: var(--muted); max-width: 36ch; }
.hero__lede b { color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__dish { position: relative; width: min(100%, 520px); justify-self: center; }
.facts { display: flex; gap: 22px; flex-wrap: wrap; }
.fact b { display: block; font: 600 26px var(--font-ui); letter-spacing: -.03em; }
.fact span { font: 500 11px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sec { padding: 34px var(--gutter) 6px; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec__title { font-size: clamp(30px, 7vw, 48px); }
.panel { background: var(--lab); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ktable { width: 100%; border-collapse: collapse; }
.ktable th { text-align: left; font: 500 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.ktable td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ktable tr:last-child td { border-bottom: 0; }
.ktable tbody tr { cursor: pointer; transition: background .2s; }
.ktable tbody tr:hover { background: #fff; }
.ktable .k { font-weight: 600; font-size: 16px; }
.ktable .k small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.ktable .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.queue { width: 90px; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--ink) 8%, transparent); overflow: hidden; }
.queue i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--leaf-ink); }
.queue--busy i { background: var(--fat); }
.queue--steady i { background: var(--carbs); }
.hide-sm { display: none; }
.tops { display: grid; gap: 12px; }
.loyal { margin: 30px var(--gutter) 40px; padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: var(--lab); display: grid; gap: 14px; }
.loyal .h1 { font-size: 38px; }
.loyal p { margin: 0; color: color-mix(in oklab, var(--lab) 70%, transparent); max-width: 40ch; }
.loyal .bar { height: 10px; border-radius: 5px; background: #ffffff22; overflow: hidden; }
.loyal .bar i { display: block; height: 100%; width: 0; background: var(--leaf); border-radius: 5px; }
.footer { padding: 28px var(--gutter) 48px; font: 400 12px var(--font-mono); color: var(--muted); }

/* ---------- Menu ---------- */
.menu { display: grid; grid-template-columns: minmax(0, 1fr); }
.menu > * { min-width: 0; }
.menu-head { padding: 18px var(--gutter) 10px; display: grid; gap: 12px; }
.menu-head .h1 { font-size: clamp(40px, 10vw, 76px); }
.menu-head__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters { display: none; }
.filters__group { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.filters__group:first-child { padding-top: 4px; }
.filters__h { display: flex; justify-content: space-between; align-items: baseline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.range { display: grid; gap: 6px; }
.range input { width: 100%; accent-color: var(--ink); }
.range__v { font: 600 14px var(--font-mono); }
.free { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.free label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.free input { width: 16px; height: 16px; accent-color: var(--fat); }
.tools { position: sticky; top: var(--header-h); z-index: 30; display: flex; gap: 8px; align-items: center; padding: 10px var(--gutter); background: color-mix(in oklab, var(--bench) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tools::-webkit-scrollbar { display: none; }
.tools .seg { flex: none; }
.count { margin-left: auto; flex: none; font: 500 12px var(--font-mono); color: var(--muted); white-space: nowrap; }
.count b { color: var(--ink); font-weight: 600; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; padding: 14px var(--gutter) 40px; }
.dish { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--lab); box-shadow: var(--shadow); text-align: left; transition: box-shadow .3s, translate .3s var(--ease-out); }
.dish:hover { box-shadow: var(--shadow-lift); translate: 0 -2px; }
.dish .petri { width: 112px; }
.dish__body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dish__name { font-weight: 600; font-size: 16px; letter-spacing: -.01em; line-height: 1.2; }
.dish__badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: 6px; font: 600 11px var(--font-mono); letter-spacing: .02em; background: color-mix(in oklab, var(--ink) 6%, transparent); }
.badge--live { background: color-mix(in oklab, var(--leaf) 30%, transparent); color: var(--leaf-ink); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-ink); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.badge--plants { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge--diet { background: var(--ink); color: var(--lab); }
.macro { display: grid; gap: 4px; }
.macro__bar { display: flex; gap: 2px; height: 7px; border-radius: 4px; overflow: hidden; }
.macro__bar i { display: block; height: 100%; }
.macro__bar .p { background: var(--protein); } .macro__bar .c { background: var(--carbs); } .macro__bar .f { background: var(--fat); }
.macro__nums { display: flex; gap: 8px; white-space: nowrap; font: 500 11px var(--font-mono); color: var(--muted); }
.macro__nums b { font-weight: 600; color: var(--ink); }
.macro__nums .k { margin-left: auto; color: var(--ink); }
.allergens { font: 400 11px/1.4 var(--font-mono); color: var(--muted); }
.allergens b { font-weight: 600; color: var(--fat); text-transform: uppercase; letter-spacing: .04em; margin-right: 3px; }
.dish__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.price { font: 600 15px var(--font-mono); }
.add { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--lab); transition: background .2s, rotate .3s var(--ease-out); }
.add:hover { background: var(--moss); rotate: 90deg; }
.add svg { width: 16px; height: 16px; }
.dish--sold { opacity: .55; }
.dish--sold .add { display: none; }
.dish__sold { font: 600 11px var(--font-mono); color: var(--fat); text-transform: uppercase; }
.estimate { font: 400 10px var(--font-mono); color: var(--faint); }
.empty { padding: 50px var(--gutter); text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* Filter sheet (mobile) */
.scrim { position: fixed; inset: 0; z-index: 60; background: #1B2A2340; backdrop-filter: blur(2px); opacity: 0; pointer-events: none; }
.scrim.open { pointer-events: auto; }
.sheet { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: var(--lab); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); visibility: hidden; box-shadow: 0 -20px 60px #1B2A2330; }

/* ---------- Item: lab report ---------- */
.item { padding: 14px var(--gutter) 120px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.item > * { min-width: 0; }
.item__left { padding: 18px 0; overflow-x: clip; }
.back { display: inline-flex; gap: 8px; align-items: center; font: 500 12px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.back svg { width: 15px; height: 15px; }
.stage { position: relative; width: min(72%, 460px); margin: 0 auto; }
.stage .petri { width: 100%; }
.stage__orbit { position: absolute; inset: -6%; pointer-events: none; }
.stage__orbit span { position: absolute; left: 50%; top: 50%; padding: 4px 8px; border-radius: 999px; background: var(--lab); box-shadow: var(--shadow); font: 500 11px var(--font-mono); white-space: nowrap; translate: -50% -50%; }
.stage__orbit span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--leaf)); margin-right: 6px; }
.report { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.report > * { min-width: 0; }
.report .h1 { font-size: clamp(36px, 8vw, 60px); }
.report__desc { margin: 0; color: var(--muted); font-size: 16px; max-width: 46ch; }
.card { background: var(--lab); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; }
.card__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.rings { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.ring { position: relative; display: grid; place-items: center; text-align: center; }
.ring svg { width: 100%; height: auto; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.ring .bg { stroke: color-mix(in oklab, var(--ink) 8%, transparent); }
.ring__v { position: absolute; inset: 0; display: grid; place-content: center; }
.ring__v b { font: 600 18px var(--font-mono); letter-spacing: -.02em; }
.ring__v small { font: 500 10px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ring--kcal b { font-size: 26px; }
.fibre { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 14px; font: 500 12px var(--font-mono); }
.fibre__track { display: block; height: 8px; border-radius: 4px; background: color-mix(in oklab, var(--ink) 8%, transparent); overflow: hidden; }
.fibre__track i { display: block; height: 100%; width: 0; background: var(--leaf-ink); border-radius: 4px; }
.plants { display: flex; flex-wrap: wrap; gap: 6px; }
.plant { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: color-mix(in oklab, var(--leaf) 16%, var(--lab)); font-size: 13px; }
.plant i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--leaf-ink)); }
.plant--new { background: var(--ink); color: var(--lab); }
.amatrix { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.amatrix span { display: grid; place-items: center; text-align: center; min-height: 46px; padding: 4px; border-radius: 8px; font: 500 10px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .02em; background: color-mix(in oklab, var(--ink) 4%, transparent); color: var(--faint); }
.amatrix span.on { background: var(--fat); color: #fff; font-weight: 600; }
.amatrix span.on.added { box-shadow: 0 0 0 2px var(--ink); }
.opts { display: grid; gap: 4px; }
.opt { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 10px; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 10px; text-align: left; transition: background .2s; }
.opt:hover { background: #fff; }
.opt__box { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; }
.opt__box svg { width: 13px; height: 13px; opacity: 0; color: var(--lab); }
.opt[aria-pressed="true"] .opt__box { background: var(--ink); box-shadow: none; }
.opt[aria-pressed="true"] .opt__box svg { opacity: 1; }
.opt--removal[aria-pressed="true"] .opt__box { background: var(--fat); }
.opt--removal[aria-pressed="true"] .opt__name { text-decoration: line-through; color: var(--muted); }
.opt__name { font-size: 14px; }
.opt__delta { font: 500 11px var(--font-mono); color: var(--protein); }
.opt__price { font: 500 12px var(--font-mono); color: var(--muted); min-width: 52px; text-align: right; }
.opt__qty { font: 600 11px var(--font-mono); color: var(--leaf-ink); }
.addbar { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--bench) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.addbar .btn { flex: 1; height: 50px; }
.qty { display: inline-flex; align-items: center; height: 50px; padding: 4px; border-radius: 12px; background: var(--lab); box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; }
.qty button:hover { background: #fff; }
.qty svg { width: 15px; height: 15px; }
.qty output { min-width: 22px; text-align: center; font: 600 15px var(--font-mono); }

/* ---------- Bag ---------- */
.drawer { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 90vh; display: flex; flex-direction: column; background: var(--lab); border-radius: var(--r-lg) var(--r-lg) 0 0; visibility: hidden; box-shadow: 0 -20px 60px #1B2A2330; }
.bagbox { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.bagbox__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.bagbox__head .h1 { font-size: 30px; }
.bagbox__list { flex: 1; overflow-y: auto; padding: 0 18px; }
.bline { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bline .petri { width: 54px; }
.bline__name { font-weight: 600; font-size: 14px; }
.bline__mods { font: 400 11px var(--font-mono); color: var(--muted); }
.bline__mods .out { color: var(--fat); }
.bline__right { display: grid; justify-items: end; gap: 6px; }
.mini-qty { display: inline-flex; align-items: center; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.mini-qty button { width: 26px; height: 26px; display: grid; place-items: center; }
.mini-qty svg { width: 12px; height: 12px; }
.mini-qty output { font: 600 12px var(--font-mono); min-width: 14px; text-align: center; }
.profile { margin: 12px 18px 0; padding: 14px; border-radius: var(--r-md); background: color-mix(in oklab, var(--leaf) 12%, var(--lab)); display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.profile .culture { width: 72px; }
.profile__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.profile__nums b { display: block; font: 600 17px var(--font-mono); }
.profile__nums > span > span { font: 500 10px var(--font-mono); color: var(--muted); text-transform: uppercase; }
.profile p { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.bagbox__foot { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.sumrow { display: flex; justify-content: space-between; font: 400 13px var(--font-mono); color: var(--muted); }
.sumrow--total { color: var(--ink); font-size: 16px; font-weight: 600; }
.empty-bag { padding: 30px 0; text-align: center; color: var(--muted); }

/* ---------- Checkout ---------- */
.co { padding: 18px var(--gutter) 60px; display: grid; gap: 16px; max-width: 1180px; margin: 0 auto; }
.co .h1 { font-size: clamp(40px, 9vw, 72px); }
.co__main, .co__side { display: grid; gap: 14px; align-content: start; }
.timegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.timegrid button { height: 52px; border-radius: 10px; background: var(--bench); text-align: center; font: 600 14px var(--font-mono); transition: background .2s, color .2s; }
.timegrid button small { display: block; font: 400 10px var(--font-mono); color: var(--muted); }
.timegrid button[aria-pressed="true"] { background: var(--ink); color: var(--lab); }
.timegrid button[aria-pressed="true"] small { color: var(--leaf); }
.timegrid button:disabled { opacity: .35; text-decoration: line-through; cursor: default; }
.timegrid .load { display: block; height: 3px; margin: 3px 12px 0; border-radius: 2px; background: var(--leaf-ink); }
.field { display: grid; gap: 4px; margin-top: 10px; }
.field span { font: 500 11px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input { height: 46px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--bench); font-size: 15px; }
.field input:focus { outline: 2px solid var(--protein); }
.social { display: grid; gap: 8px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 500 11px var(--font-mono); margin: 4px 0; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pay { display: grid; gap: 6px; }
.pay button { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 14px; border-radius: 12px; background: var(--bench); text-align: left; }
.pay button[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.pay button span { flex: 1; font-weight: 500; }
.pay button small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.pay .radio { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); flex: none; }
.pay button[aria-pressed="true"] .radio { box-shadow: inset 0 0 0 5px var(--ink); }
.pay .mark { font: 600 11px var(--font-mono); padding: 3px 7px; border-radius: 5px; background: var(--ink); color: var(--lab); }
.rrow { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.rrow small { display: block; font: 400 11px var(--font-mono); color: var(--muted); }
.rrow .mono { white-space: nowrap; }
.rsep { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.rtotal { font-size: 18px; font-weight: 600; }

/* ---------- Tracking: assay ---------- */
.track { padding: 16px var(--gutter) 60px; display: grid; gap: 16px; max-width: 1240px; margin: 0 auto; }
.track__side { display: grid; gap: 14px; align-content: start; }
.orderno { font: 600 clamp(70px, 22vw, 150px)/.85 var(--font-mono); letter-spacing: -.06em; }
.orderno span { display: inline-block; }
.assay { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.step:last-child { border-bottom: 0; }
.step__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--ink) 6%, transparent); font: 600 12px var(--font-mono); }
.step__ic svg { width: 16px; height: 16px; }
.step.done .step__ic { background: var(--leaf-ink); color: #fff; }
.step.now .step__ic { background: var(--ink); color: var(--lab); }
.step__t { font-weight: 600; }
.step__s { font-size: 13px; color: var(--muted); }
.step__time { font: 500 12px var(--font-mono); color: var(--muted); }
.step__bar { grid-column: 2 / -1; height: 4px; border-radius: 2px; background: color-mix(in oklab, var(--ink) 7%, transparent); overflow: hidden; display: none; }
.step.now .step__bar { display: block; }
.step__bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--lab); box-shadow: var(--shadow); }
.map__svg { width: 100%; height: 100%; display: block; }
.map__bg { fill: var(--lab); }
.map__parks { fill: color-mix(in oklab, var(--leaf) 22%, var(--lab)); }
.map__bld { fill: color-mix(in oklab, var(--ink) 5%, var(--lab)); }
.map__minor, .map__ped, .map__major { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map__minor { stroke: color-mix(in oklab, var(--ink) 11%, var(--lab)); stroke-width: 6; }
.map__ped { stroke: color-mix(in oklab, var(--ink) 7%, var(--lab)); stroke-width: 4; }
.map__major { stroke: color-mix(in oklab, var(--ink) 18%, var(--lab)); stroke-width: 10; }
.map__labels text { font: 500 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); text-anchor: middle; }
.map__route-base { fill: none; stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 7; }
.map__route { fill: none; stroke: var(--protein); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.map__pin--store circle { fill: var(--ink); }
.map__pin--store .chev path { fill: none; stroke: var(--lab); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.map__pin--dest path { fill: var(--fat); stroke: var(--lab); stroke-width: 2; }
.map__pin--dest circle { fill: var(--lab); }
.map__dot { fill: var(--protein); stroke: var(--lab); stroke-width: 3; }
.map__pulse { fill: color-mix(in oklab, var(--protein) 35%, transparent); }
.map__bike { color: var(--lab); }
.map__card { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--lab); box-shadow: var(--shadow-lift); }
.map__card b { display: block; font: 600 15px var(--font-mono); }
.map__card small { font-size: 12px; color: var(--muted); }
.map__card .av { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--lab); font: 600 12px var(--font-mono); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 90px; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--lab); font-size: 14px; box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.fly { position: fixed; z-index: 95; pointer-events: none; border-radius: 50%; overflow: hidden; background: var(--agar); }
.fly img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 68px; }
  .hide-sm { display: table-cell; }
  .tops { grid-template-columns: repeat(3, 1fr); }
  .timegrid { grid-template-columns: repeat(8, 1fr); }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; column-gap: 56px; max-width: 1400px; margin: 0 auto; padding-top: 40px; }
  .sec, .loyal, .footer { max-width: 1400px; margin-left: auto; margin-right: auto; }
  .loyal { grid-template-columns: 1fr 1.2fr auto; align-items: center; padding: 30px 36px; }
  .menu { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
  .menu-head, .tools, .results { padding-left: 0; padding-right: 0; }
  .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; grid-row: 1 / span 3; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--lab); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
  .filter-open { display: none; }
  .tools { top: var(--header-h); }
  .item { grid-template-columns: .9fr 1.1fr; column-gap: 56px; max-width: 1320px; margin: 0 auto; align-items: start; padding-bottom: 60px; }
  .item > .back { grid-column: 1 / -1; }
  .item__left { position: sticky; top: calc(var(--header-h) + 30px); padding: 30px 0; }
  .stage { width: min(84%, 460px); }
  .addbar { position: sticky; bottom: 16px; border-radius: 16px; border: 0; box-shadow: var(--shadow-lift); padding: 8px; background: var(--lab); }
  .drawer { left: auto; top: 0; width: 440px; max-height: none; border-radius: 0; }
  .co { grid-template-columns: 1.3fr 1fr; column-gap: 24px; align-items: start; }
  .co > .back, .co > .h1 { grid-column: 1 / -1; }
  .co__side { position: sticky; top: calc(var(--header-h) + 16px); }
  .track { grid-template-columns: 1fr 1.15fr; column-gap: 32px; align-items: start; }
  .track > .seg { grid-column: 1 / -1; justify-self: start; }
  .track__map { position: sticky; top: calc(var(--header-h) + 16px); }
  .track__map .map { aspect-ratio: auto; height: calc(100vh - var(--header-h) - 60px); min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.dish > a { display: block; align-self: start; }
.plant--out { opacity: .5; text-decoration: line-through; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

@media (max-width: 480px) { .ring__v b { font-size: 14px; } .ring--kcal b { font-size: 19px; } .amatrix { grid-template-columns: repeat(4, 1fr); } }
