/* Ravolio — fresh concept. One accent (tomato) for actions, green only for "you have it". */
:root {
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --surface-2: #EEEDE8;
  --surface-3: #E5E3DC;
  --ink: #1A1A18;
  --ink-2: #53524D;
  --ink-3: #85847E;
  --line: #E2E0D9;
  --line-2: #CFCDC5;
  --brand: #A9442D; --brand-ink: #1E1A16;
  --accent: #D9481F;
  --accent-hover: #C23E18;
  --accent-ink: #FFFFFF;
  --have: #1D7A4C;
  --have-soft: #E1F0E7;
  --shadow: 0 1px 2px rgb(20 20 18 / .04), 0 4px 16px rgb(20 20 18 / .06);
  --shadow-lg: 0 24px 64px rgb(20 20 18 / .18);
  --c0: #C4532B; --c1: #B9811A; --c2: #2B6D8E; --c3: #A9840F; --c4: #3B874A;
  --c5: #2A8577; --c6: #C98500; --c7: #B04876; --c8: #6A55A6;
  --r-sm: 12px; --r: 22px; --r-lg: 24px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211; --surface: #1B1B19; --surface-2: #252522; --surface-3: #30302C;
    --ink: #F1F0EB; --ink-2: #B8B6AF; --ink-3: #8A8882; --line: #2D2C29; --line-2: #3D3C38;
    --brand: #FF9B77; --brand-ink: #F0EBE4; --accent: #F0683E; --accent-hover: #FF7B52; --accent-ink: #1A0D08;
    --have: #5CC98F; --have-soft: #18352A;
    --shadow: 0 1px 2px rgb(0 0 0 / .3); --shadow-lg: 0 24px 64px rgb(0 0 0 / .55);
    --c0: #E98762; --c1: #DDB056; --c2: #6BB2D4; --c3: #D6B54A; --c4: #7CC48A;
    --c5: #6CC7B6; --c6: #EDB54A; --c7: #E383AD; --c8: #A895E3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121211; --surface: #1B1B19; --surface-2: #252522; --surface-3: #30302C;
  --ink: #F1F0EB; --ink-2: #B8B6AF; --ink-3: #8A8882; --line: #2D2C29; --line-2: #3D3C38;
  --brand: #FF9B77; --brand-ink: #F0EBE4; --accent: #F0683E; --accent-hover: #FF7B52; --accent-ink: #1A0D08;
  --have: #5CC98F; --have-soft: #18352A;
  --shadow: 0 1px 2px rgb(0 0 0 / .3); --shadow-lg: 0 24px 64px rgb(0 0 0 / .55);
  --c0: #E98762; --c1: #DDB056; --c2: #6BB2D4; --c3: #D6B54A; --c4: #7CC48A;
  --c5: #6CC7B6; --c6: #EDB54A; --c7: #E383AD; --c8: #A895E3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
button, input, select { font: inherit; color: inherit; }
button, a, .chip, .card { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1360px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--brand-ink); text-decoration: none; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; flex: none; transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand-mark { transform: rotate(-12deg); } }
.brand-mark .dough { fill: var(--brand); }
.brand-mark .seam { fill: none; stroke: var(--bg); stroke-width: 1.30208; }
.brand-word { font: 500 21px/1 "Unbounded", var(--font); letter-spacing: -.03em; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.nav-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 15px;
  transition: background .15s, color .15s;
}
.nav-btn:hover { background: var(--surface-2); color: var(--ink); }
.nav-btn.icon-only { width: 40px; padding: 0; justify-content: center; }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.badge.pop { animation: pop .35s var(--ease); }
.lang select {
  appearance: none; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; letter-spacing: .02em;
}
.lang select:hover { border-color: var(--line-2); color: var(--ink); }

/* ---------- layout ---------- */
.layout {
  max-width: 1360px; margin: 0 auto; padding: 24px 24px 80px;
  display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 36px; align-items: start;
}

/* ---------- kitchen (product picker) ---------- */
.kitchen {
  position: sticky; top: 88px; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px);
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 20px 0; overflow: hidden;
}
.k-head { display: flex; align-items: center; justify-content: space-between; }
.k-head h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.k-close, .k-foot { display: none; }
.search { position: relative; display: flex; align-items: center; }
.search > .ic { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--bg); font-size: 16px; outline: none;
  transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { border-color: var(--ink); background: var(--surface); }
.search input::-webkit-search-cancel-button { display: none; }
.sugg {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; max-height: 360px; overflow: auto;
}
.sugg-h { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px 4px; }
.sugg-i {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-align: left;
}
.sugg-i[aria-selected="true"], .sugg-i:hover { background: var(--surface-2); }
.sugg-i .n { margin-left: auto; color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.sugg-i .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--ink-3)); flex: none; }
.sugg-i.on { color: var(--have); }
.sugg-empty { padding: 12px 10px; color: var(--ink-3); font-size: 14px; }

.have { display: flex; flex-wrap: wrap; gap: 6px; }
.have:empty { display: none; }
.have-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.have-clear { font-size: 13px; color: var(--ink-3); padding: 6px 8px; border-radius: 8px; }
.have-clear:hover { color: var(--ink); background: var(--surface-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: 15px; font-weight: 450; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.chip:hover { background: var(--surface-3); }
.chip:active { transform: scale(.97); }
.chip .n { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--have-soft); color: var(--have); font-weight: 550; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.chip .ic { width: 16px; height: 16px; margin-left: -4px; }
.chip.got { background: var(--have); color: #fff; padding: 0 6px 0 14px; font-weight: 550; animation: pop .3s var(--ease); }
:root[data-theme="dark"] .chip.got { color: #0C1F15; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.got { color: #0C1F15; } }
.chip.got .x { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; }
.chip.got .x:hover { background: rgb(0 0 0 / .14); }
.chip.got .x .ic { width: 15px; height: 15px; margin: 0; }

.groups-wrap { margin: 0 -20px; border-bottom: 1px solid var(--line); }
.groups { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 20px; }
.groups::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 10px 10px 12px; font-size: 14px; font-weight: 500; color: var(--ink-3);
  transition: color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink);
  transform: scaleX(0); transition: transform .22s var(--ease);
}
.tab[aria-selected="true"]::after { transform: none; }
.pick {
  flex: 1; overflow: auto; margin: -14px -20px 0; padding: 14px 20px 20px;
  display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start;
}

/* ---------- results ---------- */
.results { min-width: 0; outline: none; }
.verdict { padding: 8px 0 26px; }
.eyebrow { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 8px; }
.verdict h1 {
  font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; font-weight: 700; letter-spacing: -.035em; max-width: 18ch;
  text-wrap: balance;
}
.verdict h1 .num { color: var(--have); font-variant-numeric: tabular-nums; }
.verdict h1 #vNum { display: inline-block; text-align: right; }
.verdict { overflow: clip; }
.verdict h1 .soft { color: var(--ink-3); }
.verdict .sub { margin-top: 12px; font-size: 18px; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }

.boost { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; }
.boost-h { font-size: 14px; color: var(--ink-3); margin-right: 4px; }
.boost .chip { background: var(--surface); border-color: var(--line); }
.boost .chip:hover { border-color: var(--ink-3); background: var(--surface); }
.boost .plus { color: var(--have); font-weight: 600; font-variant-numeric: tabular-nums; }

.filters-wrap { position: sticky; top: calc(64px + var(--net-h, 0px)); z-index: 6; margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
  background: transparent; transition: background-color .2s, box-shadow .2s; }
/* the strip covers the page only while it is stuck under the header, so the light drawings show through at rest */
.filters-wrap.stuck { background: var(--bg); box-shadow: 0 -3px 0 var(--bg), 0 1px 0 var(--line); }   /* the 3 px above close a sub-pixel seam under the search bar */
.filters-wrap > .more-f { flex: none; }
.filters-hs { flex: 1; min-width: 0; }
.filters {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 12px 0;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s, border-color .15s;
}
.filter:hover { border-color: var(--line-2); color: var(--ink); }
.filter .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); }
.filter .n { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 13px; }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter[aria-pressed="true"] .n { color: inherit; opacity: .65; }
.filter.sep { margin-left: 6px; }

.lane { margin-top: 22px; }
.lane + .lane { margin-top: 44px; content-visibility: auto; contain-intrinsic-size: auto 640px; }
.card { contain: layout style; }
.lane-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.lane-h h2 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; }
.lane-h .n { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lane-h .mark { width: 10px; height: 10px; border-radius: 50%; align-self: center; flex: none; }
.lane.ready .mark { background: var(--have); }
.lane.one .mark { background: transparent; box-shadow: inset 0 0 0 2px var(--have); }
.lane.two .mark { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); }
.lane.rest .mark { background: transparent; box-shadow: inset 0 0 0 2px var(--line-2); }
.lane-empty {
  padding: 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: 15px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.more {
  margin-top: 14px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 550; font-size: 15px; color: var(--ink);
}
.more:hover { border-color: var(--ink-3); }

/* ---------- recipe card ---------- */
.card {
  --cat: var(--c0);
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 176px; padding: 16px 16px 14px;
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s, transform .18s var(--ease), box-shadow .18s;
  animation: rise .35s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 8) * 22ms);
}
@media (hover: hover) and (pointer: fine) { .card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); } }
.card-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); min-height: 20px; white-space: nowrap; min-width: 0; }
.card-top .cu { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-top .cat { flex: none; }
.cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--cat); }
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat); }
.card-top .fav { margin-left: auto; color: var(--accent); width: 18px; height: 18px; }
.card-top .fav svg { fill: currentColor; }
/* a card with an approved review photo: a low band on top */
.card-ph { display: block; aspect-ratio: 16 / 10; margin: -16px -16px 2px; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; overflow: hidden; background: var(--surface-2); }
.card-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-top .rate { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; flex: none; }
.card-top .rate .ic { width: 13px; height: 13px; color: #E0A43A; }
.card-top .rate .ic svg { fill: currentColor; stroke: none; }
.card-top .rate + .fav { margin-left: 6px; }
.card-title {
  font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty;
  min-height: 2.5em;   /* every title takes two lines: products start at the same height in a row, no hole under a short name */
}
.ings { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.ing { display: inline-flex; align-items: center; gap: 5px; }
.ing::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; }
.ing.y { color: var(--have); }
.ing.y::before { background: var(--have); }
.ing.n { color: var(--ink); font-weight: 550; }
.ing.n::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.ing.b { color: var(--ink-3); }

.meter { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.segs { display: flex; gap: 3px; flex: 1; max-width: 120px; }
.segs i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); }
.segs i.y { background: var(--have); }
.meter b { font-weight: 550; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meter .chk { margin-left: auto; color: var(--accent); font-weight: 550; white-space: nowrap; }
.meter .ok { color: var(--have); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.meter .ok .ic { width: 16px; height: 16px; }
.need { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 550; }

/* ---------- empty state ---------- */
.starters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 40px; }
.starter {
  display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 18px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .18s var(--ease), box-shadow .18s;
}
@media (hover: hover) and (pointer: fine) { .starter:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); } }
.starter b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.starter span { color: var(--ink-2); font-size: 14px; }
.starter em { font-style: normal; margin-top: 6px; color: var(--have); font-size: 14px; font-weight: 550; }
.section-h { font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 4px; }
.row-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: 15px; border: 1px solid var(--line); background: var(--surface);
}
.ghost:hover { color: var(--ink); border-color: var(--line-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
  border-radius: 14px; font-weight: 600; font-size: 16px; transition: background .15s, transform .1s, border-color .15s;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn:hover { border-color: var(--line-2); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.pri:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
/* deleting the account: the accent colour as an outline, so it reads as serious without shouting */
.btn.danger { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn.danger:hover { background: var(--accent); color: var(--accent-ink); }
.auth .acct-del { color: var(--ink-3); }
.btn.wide { width: 100%; }
.btn.on { color: var(--accent); }
.btn.on svg { fill: currentColor; }

/* ---------- drawer (recipe, lists) ---------- */
dialog { padding: 0; border: 0; color: var(--ink); background: var(--surface); max-width: none; max-height: none; }
dialog::backdrop { background: rgb(14 14 12 / .42); }
.drawer {
  position: fixed; inset: 0 0 0 auto; height: 100%; height: 100dvh; width: min(640px, 100vw); margin: 0;
  box-shadow: var(--shadow-lg); border-radius: 22px 0 0 22px; overflow: hidden;
}
.drawer.narrow { width: min(460px, 100vw); }
.drawer[open] { display: flex; flex-direction: column; animation: slideIn .32s var(--ease); }
.drawer[open]::backdrop { animation: fade .25s ease; }
.drawer.closing { animation: slideOut .22s ease-in forwards; }
.d-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px 14px 24px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.d-bar.scrolled { border-color: var(--line); }
.d-bar .d-mini { font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-bar.scrolled .d-mini { opacity: 1; }
#side .d-bar .d-mini { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }   /* a panel title in the bar reads as a title, not a caption */
.d-bar .spacer { flex: 1; }
.round { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; }
.round:hover { background: var(--surface-2); color: var(--ink); }
.round.on { color: var(--accent); }
.round.on svg { fill: currentColor; }
.d-body { flex: 1; overflow: auto; padding: 4px 32px 40px; overscroll-behavior: contain; }
.d-foot { padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; background: var(--surface); }
.d-foot .btn.pri { flex: 1; }

.r-head { padding: 8px 0 24px; }
.r-head h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 12px; text-wrap: balance; }
.r-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: 14px; }
.r-status {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-bottom: 26px;
  background: var(--surface-2); font-size: 15px; color: var(--ink-2);
}
.r-status.ok { background: var(--have-soft); color: var(--have); font-weight: 550; }
.r-status .segs { max-width: 72px; }
.r-status.ok .grow { font-weight: 450; }
.r-status .grow { flex: 1; }
.r-status button { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.r-status button:hover { text-decoration: underline; }
.r-sec { margin-top: 30px; }
.r-sec h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; margin-bottom: 10px; }
/* "Optional" and "From the pantry": smaller than "Ingredients", but a real heading with a line above, not a faint caption */
.r-sec h3.mid { font-size: 17px; color: var(--ink); font-weight: 650; letter-spacing: -.01em; margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.r-sec h3.big { font-size: 20px; color: var(--ink); letter-spacing: -.02em; font-weight: 650; margin-bottom: 14px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.st { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.st.y { background: var(--have); color: #fff; }
.st.y .ic { width: 14px; height: 14px; }
.st.y .ic svg { stroke-width: 2.6; }
.st.n { box-shadow: inset 0 0 0 1.5px var(--accent); }
.st.o { box-shadow: inset 0 0 0 1.5px var(--line-2); }
button.st { padding: 0; border: 0; background-color: transparent; cursor: pointer; position: relative; transition: transform .15s var(--ease), background-color .2s; }
button.st.y { background-color: var(--have); }
button.st::after { content: ""; position: absolute; inset: -11px; }   /* a 44 px finger target around the 22 px circle */
@media (hover: hover) { button.st:not(.y):hover { box-shadow: inset 0 0 0 1.5px var(--have); } }
button.st:active { transform: scale(.9); }
.rows .nm { font-size: 16px; line-height: 1.4; }
.rows .nm small { display: block; color: var(--ink-3); font-size: 14px; }
.rows .q { color: var(--ink-2); font-size: 15px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pantry-line { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { margin: 0; }
.step {
  width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; text-align: left; padding: 14px 0;
  border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; transition: color .2s;
}
.step .no {
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .2s, color .2s;
}
/* a done step: crossed out, the number becomes a tick */
.step .no b { font-weight: inherit; }
.step .no .ic { display: none; width: 14px; height: 14px; }
.step .no .ic svg { stroke-width: 2.6; }
.step[aria-pressed="true"] .no b { display: none; }
.step[aria-pressed="true"] .no .ic { display: inline-flex; }
.step .tx { text-decoration: line-through; text-decoration-color: transparent; text-decoration-thickness: 1.5px; transition: text-decoration-color .25s, color .25s; }
.step[aria-pressed="true"] .tx { color: var(--ink-3); text-decoration-color: currentColor; }
.step[aria-pressed="true"] .no { background: var(--have); color: #fff; }
.src { margin-top: 30px; color: var(--ink-3); font-size: 13px; }
.src a { color: inherit; }

.side-h { font-size: 24px; font-weight: 700; letter-spacing: -.025em; padding: 4px 0 18px; }
.side-empty { color: var(--ink-2); font-size: 16px; line-height: 1.55; padding: 24px 18px; text-align: center; border-radius: 14px; background: var(--surface-2); }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.li label { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; min-width: 0; }
.li input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; margin: 0; cursor: pointer; transition: background .15s, border-color .15s; }
.li input:checked { background: var(--have); border-color: var(--have); }
.li input:checked::after { content: ""; width: 10px; height: 6px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.li .t { font-size: 16px; min-width: 0; overflow: hidden; }
.li input:checked + .t { color: var(--ink-3); text-decoration: line-through; }
.li .from { color: var(--ink-3); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-row { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fav-row b { font-weight: 600; font-size: 16px; }
.fav-row:hover b { color: var(--accent); }

/* ---------- cook mode ---------- */
.cook {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; margin: 0; background: var(--bg);
}
.cook[open] { display: flex; flex-direction: column; animation: fade .2s ease; }
.c-top { display: flex; align-items: center; gap: 12px; padding: 16px 24px; max-width: 980px; width: 100%; margin: 0 auto; }
.c-top .t { flex: 1; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-prog { display: flex; gap: 4px; max-width: 980px; width: 100%; margin: 0 auto; padding: 0 24px; }
.c-prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .3s; }
.c-prog i.d { background: var(--have); }
.c-prog i.c { background: var(--ink); }
.c-main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 980px; width: 100%; margin: 0 auto; padding: 24px; overflow: auto; }
.c-n { color: var(--ink-2); font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.c-text { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.32; font-weight: 500; letter-spacing: -.02em; text-wrap: pretty; animation: rise .3s var(--ease); }
.c-ings { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px; }
.c-ings span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.c-nav { display: flex; gap: 12px; max-width: 980px; width: 100%; margin: 0 auto; padding: 16px 24px calc(20px + env(safe-area-inset-bottom)); }
.c-nav .btn { height: 60px; font-size: 18px; border-radius: 18px; }
.c-nav .btn.pri { flex: 1; }
.c-nav .btn:disabled { opacity: .35; pointer-events: none; }
.c-done { text-align: center; }
.c-done .c-text { font-size: clamp(32px, 5vw, 56px); font-weight: 700; }
.c-done p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }

/* ---------- misc ---------- */
.toast {
  display: flex; align-items: center; gap: 14px;
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 15px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toastIn .3s var(--ease); max-width: calc(100vw - 32px);
}
/* placeholder while the data loads: the shape of the page that comes, so nothing jumps when it arrives */
.skeleton { display: grid; gap: 14px; padding-top: 8px; }
.skeleton b, .skeleton i { display: block; background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite alternate; }
.sk-quick { display: none; }
.sk-line { height: 14px; border-radius: 7px; }
.sk-title { height: 44px; width: min(560px, 70%); border-radius: 12px; }
.sk-sub { width: min(380px, 50%); margin-bottom: 14px; }
.sk-pills { display: flex; gap: 8px; overflow: hidden; }
.sk-pills b { height: 36px; flex: none; border-radius: 999px; }
.sk-pick { flex-wrap: wrap; padding-top: 6px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; margin-top: 12px; }
.sk-grid i { height: 176px; border-radius: var(--r); }
@media (max-width: 860px) {
  .skeleton { gap: 12px; padding-top: 4px; }
  .sk-quick { display: grid; gap: 10px; margin-bottom: 8px; }
  .sk-quick .sk-pills b { height: 34px; }
  .sk-title { height: 26px; width: 120px; border-radius: 8px; }
  .sk-sub { display: none; }
  .sk-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 4px; }
  .sk-grid i { height: 118px; }
}
.dock { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes slideOut { to { transform: translateX(40px); opacity: 0; } }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
@keyframes sheetOut { to { transform: translateY(40px); opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes pulse { to { opacity: .45; } }

/* ---------- new parts ---------- */
.toast[hidden] { display: none; }
.t-undo { color: var(--accent); font-weight: 650; padding: 4px 6px; margin: -4px -6px -4px 0; border-radius: 8px; }
:root[data-theme="dark"] .t-undo { color: #C23E18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-undo { color: #C23E18; } }
.t-undo:hover { text-decoration: underline; }

.staples { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.staples input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--surface-3); flex: none; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .25s var(--ease); }
.staples input:checked + .sw { background: var(--have); }
.staples input:checked + .sw::after { transform: translateX(14px); }
.staples input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }

.fsep { flex: none; width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line); }
.filter .ic { width: 16px; height: 16px; }
.filter.more-f.on { border-color: var(--ink); color: var(--ink); }
.filter.more-f .n { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 0 6px; font-size: 12px; opacity: 1; }

.card.fresh { animation: freshRing .9s ease-out; }
@keyframes freshRing { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--have) 55%, transparent); border-color: var(--have); } 100% { box-shadow: 0 0 0 10px transparent; } }

.r-skel { display: grid; gap: 12px; padding-top: 8px; }
.r-skel i { height: 44px; border-radius: 12px; background: var(--surface-2); animation: pulse 1s ease-in-out infinite alternate; }
.r-skel i:first-child { height: 52px; margin-bottom: 18px; }
.r-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.r-sec-h h3.big { margin-bottom: 10px; }
.r-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.seg.sv { align-items: center; }
.seg.sv button { width: 36px; padding: 0; font-size: 18px; font-weight: 500; }
.seg.sv button:disabled { opacity: .35; }
.seg.sv .svn { min-width: 84px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.r-note { margin: -4px 0 12px; color: var(--ink-3); font-size: 14px; }
.rows li.sub { display: block; padding: 14px 0 4px; border: 0; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.rows li.sub + li { border-top: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 550; color: var(--ink-2); transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; height: 38px; font-size: 14px; }

.fl-sec { padding: 18px 0; border-top: 1px solid var(--line); }
.fl-sec:first-of-type { border-top: 0; padding-top: 0; }
.fl-sec h3 { font-size: 16px; font-weight: 650; margin-bottom: 12px; }
.fl-hint { color: var(--ink-3); font-size: 14px; margin: -6px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.sub { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--bg); }
.search.small { margin-bottom: 12px; }
.search.small input { height: 42px; }
.chip.ex[aria-pressed="true"] { background: color-mix(in oklab, var(--accent) 14%, var(--surface)); color: var(--accent); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.roulette {
  position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; gap: 14px; text-align: center;
  background: color-mix(in oklab, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .2s ease;
}
.roulette.out { opacity: 0; transition: opacity .25s; }
.rl-h { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.rl-card {
  width: min(420px, calc(100vw - 32px)); min-height: 120px; padding: 22px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
}
.rl-card b { font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; text-wrap: balance; }

.c-text.fwd { animation: stepFwd .32s var(--ease); }
.c-text.back { animation: stepBack .32s var(--ease); }
@keyframes stepFwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-28px); } }
.step .no { transition: background .25s, color .25s, transform .25s var(--ease); }
.step[aria-pressed="true"] .no { transform: scale(1.06); }

/* ---------- sideways rows: fades and arrows where there is more to see ---------- */
.hs-wrap { position: relative; }
.hs { overscroll-behavior-x: contain; }
.hs.dragging { cursor: grabbing; user-select: none; }
.hs.dragging * { pointer-events: none; }
.hs-wrap > .hs { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl, 0px), #000 calc(100% - var(--fr, 0px)), transparent 100%); }
.hs-wrap.can-l > .hs { --fl: 48px; }
.hs-wrap.can-r > .hs { --fr: 48px; }
.hs-btn {
  position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  display: none; align-items: center; justify-content: center; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.hs-btn .ic { width: 18px; height: 18px; }
.hs-btn.l { left: 0; transform: translateX(-4px); }
.hs-btn.r { right: 0; transform: translateX(4px); }
.groups-wrap .hs-btn.l { left: 8px; }
.groups-wrap .hs-btn.r { right: 8px; }
@media (hover: hover) and (pointer: fine) {
  .hs-btn { display: inline-flex; }
  .hs-wrap.can-l > .hs-btn.l, .hs-wrap.can-r > .hs-btn.r { opacity: 1; pointer-events: auto; transform: none; }
  .hs-btn:hover { border-color: var(--line-2); }
}

/* ---------- language box ---------- */
.langbox {
  width: min(380px, calc(100vw - 32px)); border-radius: 22px; padding: 18px; box-shadow: var(--shadow-lg); margin: auto;
}
.langbox[open] { animation: langRise .34s var(--ease); }
.langbox[open]::backdrop { animation: fade .25s ease; }
.langbox.closing { animation: langOut .2s ease-in forwards; }
@keyframes langRise { from { transform: translateY(24px) scale(.98); opacity: 0; } }
@keyframes langOut { to { transform: translateY(12px); opacity: 0; } }
.lb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lb-head h2 { font-size: 18px; font-weight: 650; letter-spacing: -.02em; padding-left: 6px; }
.lang-list { display: grid; gap: 4px; }
.lang-row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 12px; border-radius: 14px; text-align: left;
  font-size: 16px; transition: background .15s;
  animation: rise .35s var(--ease) both;
}
.lang-row:nth-child(2) { animation-delay: 40ms; } .lang-row:nth-child(3) { animation-delay: 80ms; } .lang-row:nth-child(4) { animation-delay: 120ms; }
.drawer .lang-row { animation: none; }
.lang-row:hover { background: var(--surface-2); }
.lang-row .code { width: 38px; height: 28px; border-radius: 8px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 650; letter-spacing: .04em; color: var(--ink-2); flex: none; transition: background .2s, color .2s; }
.lang-row .nm { flex: 1; font-weight: 500; }
.lang-row[aria-checked="true"] { background: var(--have-soft); }
.lang-row[aria-checked="true"] .code { background: var(--have); color: #fff; }
.lang-row[aria-checked="true"] .ic { color: var(--have); animation: tickIn .3s var(--ease); }
.lang-pick > summary { list-style: none; cursor: pointer; background: var(--surface-2); }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick > summary .code { background: var(--surface); }
.lang-pick > summary .chev { transition: transform .2s var(--ease); color: var(--ink-2); }
.lang-pick[open] > summary .chev { transform: rotate(180deg); }
.lang-pick > .lang-list { margin-top: 6px; }
.lang-btn { gap: 6px; font-weight: 600; font-size: 14px; letter-spacing: .02em; }

/* ---------- settings ---------- */
.set-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0; text-align: left; font-size: 15px; color: var(--ink); }
.set-row[aria-checked="true"] .sw { background: var(--have); }
.set-row[aria-checked="true"] .sw::after { transform: translateX(14px); }
.seg.col { flex-direction: column; }
.seg.col button { flex: none; justify-content: flex-start; text-align: left; padding: 0 14px; height: 42px; font-size: 14px; }  /* flex:none: .seg.wide gives buttons flex:1, which squeezed the column to 21 px */
.set-actions { display: grid; gap: 8px; }
.set-actions .btn { justify-content: flex-start; font-weight: 500; font-size: 15px; height: 44px; }
.set-actions .btn[data-armed="1"] { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: .45; pointer-events: none; }
.fl-hint.about { margin: 4px 0 0; line-height: 1.5; }

/* ---------- product chip fills from the tap point (as on the live site) ---------- */
.chip.fx-in, .chip.fx-out { position: relative; overflow: hidden; isolation: isolate; background: var(--surface-2); }
.chip.fx-in { animation: chipPress .22s ease-out; }
@keyframes chipPress { from { transform: scale(.96); } }
.chip.fx-out::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; background: var(--have-soft); transform: scale(22); animation: chipUnfill .42s cubic-bezier(.4,0,.6,1) .3s forwards;
}
@keyframes chipUnfill { to { transform: scale(0); } }
.chip.got.landed { animation: landRing .4s ease-out; }
@keyframes landRing { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--have) 45%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.chip-ghost > .chip { box-shadow: 0 6px 18px rgb(20 20 18 / .18); }
.chip.fx-in::before {
  content: ""; position: absolute; z-index: -1; left: var(--fx-x, 50%); top: var(--fx-y, 50%); width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; background: var(--have-soft); transform: scale(0); will-change: transform;
  animation: chipFill .5s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes chipFill { to { transform: scale(22); } }
.chip .ic { animation: tickIn .35s var(--ease) both; }
.have .chip .ic, .dock .chip .ic, .boost .chip .ic { animation: none; }
@keyframes tickIn { from { transform: scale(.3) rotate(-35deg); opacity: 0; } 60% { transform: scale(1.15) rotate(4deg); opacity: 1; } }

/* match bars fill in on new cards only */
.segs i.y { transform-origin: left center; animation: segIn .5s var(--ease) both; animation-delay: calc(min(var(--i, 0), 8) * 22ms + 60ms); }
.segs i.y:nth-child(2) { animation-delay: calc(min(var(--i, 0), 8) * 22ms + 90ms); }
.segs i.y:nth-child(3) { animation-delay: calc(min(var(--i, 0), 8) * 22ms + 120ms); }
.segs i.y:nth-child(4) { animation-delay: calc(min(var(--i, 0), 8) * 22ms + 150ms); }
.segs i.y:nth-child(n+5) { animation-delay: calc(min(var(--i, 0), 8) * 22ms + 180ms); }
.card.kept .segs i, .r-status .segs i { animation: none; }
@keyframes segIn { from { transform: scaleX(0); } }
.st.y.just { animation: tickIn .3s var(--ease); }   /* only the line just tapped, not every tick on each repaint */

/* ---------- theme change: the new theme spreads as a circle from the button ---------- */
html.theme-reveal::view-transition { pointer-events: none; }
html.theme-reveal::view-transition-image-pair(root) { isolation: auto; }
html.theme-reveal::view-transition-old(root), html.theme-reveal::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* the circle itself is animated from app.js (changeTheme) with plain pixel values, which the GPU can run on its own */

/* ---------- roulette: a reel running left to right ---------- */
.roulette { gap: 18px; }
.rl-view {
  position: relative; width: 100vw; overflow: hidden; padding: 56px 0; margin: -40px 0;  /* room for the winner's glow */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.rl-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.roulette .rl-card { width: 240px; min-height: 132px; flex: none; padding: 18px; align-items: flex-start; justify-content: flex-start; text-align: left; box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.roulette .rl-card b { font-size: 18px; }
.roulette .rl-card.win { transform: scale(1.06); border-color: color-mix(in oklab, var(--have) 55%, var(--line));
  box-shadow: 0 0 18px 1px color-mix(in oklab, var(--have) 36%, transparent), 0 0 40px 6px color-mix(in oklab, var(--have) 14%, transparent), var(--shadow-lg); }
.rl-pin { position: absolute; left: 50%; top: 42px; width: 0; height: 0; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--accent); border-bottom: 0; }

/* ---------- quiet background art: food line drawings, barely there ---------- */
.backdrop-art { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop-art::before {
  content: ""; position: absolute; inset: -10%;
  background:
    radial-gradient(40% 35% at 88% 6%, color-mix(in oklab, var(--brand) 9%, transparent), transparent 70%),
    radial-gradient(35% 30% at 4% 96%, color-mix(in oklab, var(--have) 7%, transparent), transparent 70%);
}
.backdrop-art::after {
  content: ""; position: absolute; inset: 0; background: var(--ink); opacity: .085;
  -webkit-mask: url("bg.svg") 0 0 / 520px 520px repeat; mask: url("bg.svg") 0 0 / 520px 520px repeat;
}
:root[data-theme="dark"] .backdrop-art::after { opacity: .07; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .backdrop-art::after { opacity: .07; } }

.lane-random { margin-left: auto; align-self: center; }
/* ---------- intro without the quick start ---------- */
.verdict.intro { padding-bottom: 30px; }
.verdict.intro h1 { font-size: clamp(26px, 2.7vw, 38px); max-width: 22ch; }
.verdict.intro .sub { font-size: 16px; }

/* ---------- chosen products: two rows, the rest behind "Show all" ---------- */
.have-bar { display: flex; align-items: center; gap: 4px; margin-bottom: -6px; font-size: 13px; color: var(--ink-2); }
.have-bar[hidden] { display: none; }
.hb-n { margin-right: auto; font-weight: 550; }
.hb-btn { padding: 4px 8px; border-radius: 8px; color: var(--ink-2); font-size: 13px; }
.hb-btn:hover { background: var(--surface-2); color: var(--ink); }
.have { max-height: 78px; overflow: hidden; transition: max-height .35s var(--ease); align-content: flex-start; flex: none; }
.have.open { max-height: 162px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.chip-ghost { position: fixed; z-index: 120; pointer-events: none; transform-origin: center; will-change: transform, opacity; }
.chip-ghost > .chip { animation: none; box-shadow: var(--shadow); }

.results.enter .verdict, .results.enter .boost, .results.enter .row-actions, .results.enter .filters-wrap, .results.enter .lane-h {
  animation: enterUp .42s cubic-bezier(.16,1,.3,1) both;
}
.results.enter .boost, .results.enter .row-actions { animation-delay: 40ms; }
.results.enter .filters-wrap { animation-delay: 70ms; }
.results.enter .lane-h { animation-delay: 90ms; }
@keyframes enterUp { from { opacity: .15; transform: translateY(4px); } }
/* ---------- shelf chips keep their width when ticked, so nothing below them moves ---------- */
.pick .chip[aria-pressed="true"] { font-weight: 450; }
.pick .chip:not([aria-pressed="true"]) { padding-inline: 23px; }
.pick .chip .ic { animation: none; }
.pick .chip.fx-in .ic { animation: tickIn .4s var(--ease) both; }
/* mode switch: a short fade, no slide, cards appear with the header instead of after it */
.results.enter .boost, .results.enter .filters-wrap, .results.enter .lane-h { animation: none; }
.results.enter #rbody { animation: enterUp .42s cubic-bezier(.16,1,.3,1) 60ms both; }

/* ---------- first screen on phones: the product picker right on the page ---------- */
.quick { display: grid; gap: 12px; padding: 14px 0 22px; }
.quick h2 { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.quick-search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; text-align: left;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-3); font-size: 16px;
}
.quick-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.quick-chips::-webkit-scrollbar { display: none; }
.quick-chips .chip { flex: none; background: var(--surface); border-color: var(--line); }
.quick-chips .plus { color: var(--have); font-weight: 600; font-variant-numeric: tabular-nums; }
.quick-chips .chip .ic { width: 16px; height: 16px; margin-left: -4px; animation: none; }

/* ---------- motion audit 15.11: things that used to appear, leave or move in one frame ---------- */
.sugg:not([hidden]) { animation: suggIn .14s var(--ease); }
@keyframes suggIn { from { opacity: 0; transform: translateY(-4px); } }
.have-bar:not([hidden]) { animation: fade .25s ease; }
.lane { scroll-margin-top: 130px; }
.filter { animation: fade .2s ease both; }
.toast.out { animation: toastOut .18s ease-in forwards; }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 8px); } }
.cook.closing { animation: fadeOut .18s ease-in forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.c-main { justify-content: flex-start; padding-top: clamp(24px, 12vh, 120px); }
.c-nav .btn { transition: opacity .2s, background .15s, transform .1s, border-color .15s; }
.round.on.just .ic svg { animation: pop .35s var(--ease); }
.badge { transition: max-width .2s var(--ease), opacity .2s, margin .2s; max-width: 48px; }
.badge[hidden] { display: inline-block; max-width: 0; min-width: 0; padding: 0; opacity: 0; margin-left: -8px; overflow: hidden; }
@property --fl { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fr { syntax: "<length>"; inherits: false; initial-value: 0px; }
.hs-wrap > .hs { transition: --fl .2s, --fr .2s; }
@media (min-width: 861px) { .kitchen { height: calc(100vh - 112px); height: calc(100dvh - 112px); } }
html:not(.theme-reveal)::view-transition-old(root), html:not(.theme-reveal)::view-transition-new(root) { animation-duration: .16s; }
.step.just .no { animation: pop .3s var(--ease); }

/* ---------- tablet / phone ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 320px minmax(0, 1fr); gap: 24px; }
  .starters { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .top-in { padding: 0 16px; height: 58px; gap: 4px; }
  .nav-label { display: none; }
  .nav-btn { width: 40px; padding: 0; justify-content: center; }
  .nav-btn .badge { position: absolute; top: 2px; right: -2px; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; padding: 0 5px; }
  .layout { display: block; padding: 12px 16px calc(32px + env(safe-area-inset-bottom)); }
  .filters-wrap { top: calc(58px + var(--net-h, 0px) + var(--pbar-h, 0px)); margin: 0 -16px 6px; padding-left: 16px; background: var(--bg); }   /* on a phone the strip is always solid: nothing shows through under the search bar (the 3 px cover above comes only when stuck) */
  .filters { padding: 10px 16px 10px 0; }
  .lane-random { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .lane-random .t { display: none; }
  .verdict { padding: 14px 0 20px; }
  .verdict .sub { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .card { min-height: 0; }
  .starters { margin-bottom: 32px; }

  .kitchen {
    position: fixed; inset: 0; top: 0; z-index: 40; max-height: none; height: 100dvh; border-radius: 0; border: 0;
    padding: 16px 16px 0; visibility: hidden; opacity: 0; transform: translateY(24px);
    transition: transform .3s var(--ease), opacity .2s, visibility 0s .3s;
  }
  .kitchen.open { visibility: visible; opacity: 1; transform: none; transition: transform .3s var(--ease), opacity .2s; }
  .k-close { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; margin-right: -8px; }
  .k-close:hover { background: var(--surface-2); }
  .k-head h2 { font-size: 24px; }
  .lane { scroll-margin-top: 120px; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); touch-action: none; }
  .have { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; flex: none; }
  .have::-webkit-scrollbar { display: none; }
  .have .chip, .have-clear { flex: none; }
  .boost { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 22px; padding: 0 16px; }
  .boost::-webkit-scrollbar { display: none; }
  .boost .chip { flex: none; }
  .boost-h { flex: none; }
  .r-status { flex-wrap: wrap; }
  .r-status .grow { flex-basis: calc(100% - 130px); }
  .r-status button { width: 100%; text-align: left; padding-top: 4px; }
  .hide-s { display: none; }
  .d-foot .btn { padding: 0 14px; }
  .r-sec-h { flex-wrap: wrap; }
  .verdict.intro { padding: 10px 0 18px; }
  .verdict.intro h1 { font-size: 24px; }
  .verdict.intro .sub { font-size: 15px; margin-top: 8px; }
  .lang-btn { width: auto; padding: 0 10px; }
  .langbox { margin: auto auto 0; width: 100vw; max-width: none; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .roulette .rl-card { width: 200px; }
  .groups-wrap { margin: 0 -16px; }
  .groups { padding: 0 16px; }
  .pick { margin: -14px -16px 0; padding: 14px 16px 20px; }
  .k-foot { display: block; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-top: 1px solid var(--line); background: var(--surface); }

  .dock {
    display: flex; flex-direction: column; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .dock-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .dock-chips::-webkit-scrollbar { display: none; }
  .dock-chips { max-height: 40px; opacity: 1; transition: max-height .32s var(--ease), opacity .25s, margin .32s var(--ease); }
  .dock-chips:empty { max-height: 0; opacity: 0; margin-bottom: -8px; }
  .dock-chips .chip { height: 32px; font-size: 14px; }
  .dock-btn {
    display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 16px;
    background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; text-align: left;
  }
  .dock-btn .ic { width: 22px; height: 22px; }

  .drawer, .drawer.narrow {
    inset: auto 0 0 0; width: 100vw; height: calc(100dvh - 24px); border-radius: 22px 22px 0 0;
  }
  .drawer[open] { animation: sheetIn .32s var(--ease); }
  .drawer.closing { animation: sheetOut .22s ease-in forwards; }
  .d-body { padding: 0 20px 32px; }
  .d-bar { padding: 10px 10px 10px 20px; }
  .c-top, .c-main, .c-nav, .c-prog { padding-left: 16px; padding-right: 16px; }
  .c-nav .btn { height: 56px; }
}
/* phones: the language and theme live in Settings, so the top bar keeps the brand and four buttons and never sticks out
   past the screen edge (with the account button it did, and the page could be dragged sideways) */
@media (max-width: 480px) {
  .theme-quick, .top-nav .lang-btn { display: none; }
}
html, body { overflow-x: clip; }
@media (max-width: 400px) {
  .theme-quick { display: none; }
  .brand-word { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .skeleton i, .r-skel i { animation: none !important; }
}

/* ---------- own items, own recipes, reviews ---------- */
:root { --star: #D9940A; }
:root[data-theme="dark"] { --star: #EDB23C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --star: #EDB23C; } }
.li-add { display: flex; gap: 8px; margin-bottom: 8px; }
.li-add .search { flex: 1; margin: 0; }
.li-add .btn { height: 42px; padding: 0 16px; font-size: 15px; }
.ra-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.saved-tabs { margin-bottom: 18px; }
.own-new { margin-bottom: 6px; }
.own-st { color: var(--ink-3); font-size: 13px; }
.own-form { display: flex; flex-direction: column; gap: 20px; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fld input, .fld select, .fld textarea, .rev-form textarea, .rev-form .inp {
  width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .15s, background .15s;
}
.fld textarea, .rev-form textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .rev-form textarea:focus, .rev-form .inp:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.fld-2 { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; }
.own-rows { display: flex; flex-direction: column; gap: 8px; }
.own-ing { display: grid; grid-template-columns: minmax(0, 1fr) 84px 100px 36px; gap: 6px; align-items: center; }
.own-steps { counter-reset: st; }
.own-step { display: grid; grid-template-columns: 22px minmax(0, 1fr) 36px; gap: 6px; align-items: start; }
.own-step .no { height: 44px; display: grid; place-items: center; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.own-step .no::before { counter-increment: st; content: counter(st); }
.own-step .round { margin-top: 4px; }
.round.sm { width: 36px; height: 36px; }
.round.sm .ic { width: 17px; height: 17px; }
.ghost.sm { height: 36px; font-size: 14px; padding: 0 12px; gap: 6px; align-self: flex-start; }
.ghost.sm .ic { width: 17px; height: 17px; }
.own-who { display: grid; gap: 8px; }
.own-who .who { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, box-shadow .15s; }
.own-who .who b { font-weight: 600; font-size: 15px; }
.own-who .who small { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
.own-who .who:hover { border-color: var(--line-2); }
.own-who .who[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.own-msg { color: var(--accent); font-size: 14px; }
.own-msg:empty { display: none; }

.rev .r-sec-h { align-items: baseline; }
.rev-avg { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.rev-avg .n { color: var(--ink-3); }
.stars { display: inline-flex; gap: 1px; color: var(--line-2); }
.stars .ic { width: 16px; height: 16px; }
.stars .on, .rev-rate .on { color: var(--star); }
.stars .on svg, .rev-rate .on svg { fill: currentColor; }
.rev-empty { color: var(--ink-2); line-height: 1.5; }
.rev-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rev-top { display: flex; align-items: center; gap: 10px; }
.rev-who { color: var(--ink-3); font-size: 13px; margin-right: auto; }
.rev-item p { margin-top: 6px; line-height: 1.5; white-space: pre-line; }
.rev-photos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rev-ph { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; padding: 0; }
.rev-ph img, .rev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) { .rev-ph:hover img { transform: scale(1.04); } }
.rev-ph img { transition: transform .25s var(--ease); }
.rev-form { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.rev-form h4 { font-size: 15px; font-weight: 600; margin: 0; }
.rev-form textarea { background: var(--surface); }
.rev-rate { display: flex; gap: 2px; color: var(--ink-3); margin: -4px 0 0 -6px; }
.rev-rate button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; transition: color .15s; }
.rev-rate button:hover { background: var(--surface-3); }
.rev-rate .ic { width: 26px; height: 26px; }
.rev-rate .on .ic { animation: pop .3s var(--ease); }
.rev-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rev-bar .btn { margin-left: auto; height: 42px; font-size: 15px; }
.rev-file { cursor: pointer; position: relative; }
.rev-file:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.rev-prev { display: flex; gap: 8px; }
.rev-prev:empty { display: none; }
.rev-thumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; animation: pop .3s var(--ease); }
.rev-thumb .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; display: grid; place-items: center; }
.rev-thumb .x .ic { width: 13px; height: 13px; }
.rev-note { color: var(--ink-3); font-size: 13px; margin-top: 10px; line-height: 1.45; }
.r-cover { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; margin: 4px 0 18px; padding: 0; background: var(--surface-2); }
.r-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-box { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 90vh; margin: auto; overflow: visible; }
.photo-box::backdrop { background: rgb(0 0 0 / .82); }
.photo-box img { max-width: 94vw; max-height: 90vh; border-radius: 14px; display: block; }
.photo-box[open] { animation: fadeUp .22s var(--ease); }
.photo-box.closing { opacity: 0; transition: opacity .18s; }
@keyframes fadeUp { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .own-ing { grid-template-columns: minmax(0, 1fr) 76px 76px 36px; gap: 5px; }
  .fld-2 { grid-template-columns: minmax(0, 1fr) 110px; }
  .ra-btns .ghost { height: 38px; font-size: 14px; padding: 0 12px; }
}

/* own recipe: amount field fits its short label; "who sees it" are two checkboxes */
.own-ing [name=ia] { padding: 0 8px; text-align: center; }
.own-ing select { padding: 0 6px; }
.own-who .who { flex-direction: row; align-items: flex-start; gap: 12px; }
.own-who .who .tx { display: flex; flex-direction: column; gap: 3px; }
.own-who .who .box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; transition: background .15s, border-color .15s; }
.own-who .who .box .ic { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); }
.own-who .who[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.own-who .who[aria-checked="true"] .box { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.own-who .who[aria-checked="true"] .box .ic { opacity: 1; transform: none; }
.own-who .who[aria-checked="true"] .box .ic svg { stroke-width: 2.6; }

/* cook mode: timers */
.c-tbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.c-tbtns .ghost { height: 44px; font-size: 16px; }
.c-timers { display: flex; flex-wrap: wrap; gap: 8px; max-width: 980px; width: 100%; margin: 12px auto 0; padding: 0 24px; }
.c-timers[hidden] { display: none; }
/* several ways to cook: a switch above the steps, and the first screen of the cook mode */
.meth { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 14px; }
.meth-l { color: var(--ink-3); font-size: 14px; }
.meth .seg { flex-wrap: wrap; }
.meth .seg button { white-space: nowrap; }
.c-way .c-sub { color: var(--ink-3); font-size: 16px; line-height: 1.45; margin-top: 12px; max-width: 46ch; }
.c-ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.c-ways .btn { height: 56px; padding: 0 22px; font-size: 17px; border-radius: 16px; }
.c-ways .btn.on { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
/* the timers never squeeze into the step text: they keep their height and scroll themselves when there are many */
.c-timers { flex: none; max-height: 30vh; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 2px; }
.c-tbtns .ghost.on { border-color: var(--accent); color: var(--accent); }
.tm-exact { flex-basis: 100%; margin: 0; color: var(--ink-3); font-size: 14px; }
.tm-exact .link { color: var(--accent); font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tmr { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tmr .tl { color: var(--ink-3); font-size: 14px; }
.tmr .tc { font-variant-numeric: tabular-nums; font-size: 17px; min-width: 4ch; }
.tmr.paused .tc { color: var(--ink-3); }
.tmr.done { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, var(--surface)); }
.tmr.done .tc { color: var(--accent); }
.tmr.done .ic:first-child { color: var(--accent); animation: ring .5s ease-in-out 4; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.c-rate { justify-content: center; margin: 22px 0 0; }
.c-rate button { width: 54px; height: 54px; }
.c-rate .ic { width: 36px; height: 36px; }
.c-rate button:hover { color: var(--star); }

/* bug reports */
.bug-mine { margin-top: 24px; }
.bug-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bug-item p { line-height: 1.45; white-space: pre-line; }
.bug-item small { color: var(--ink-3); font-size: 13px; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.bug-item small .ic { width: 14px; height: 14px; }
.bug-reply { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
@media (max-width: 860px) {
  .own-ing { grid-template-columns: minmax(0, 1fr) 66px 76px 36px; }
  .c-timers { padding: 0 16px; }
}

/* own recipe steps: the time that becomes a timer is marked softly behind the text */
.hl-wrap { position: relative; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.hl-wrap:focus-within { background: var(--surface); }
.hl-wrap .hl, .hl-wrap textarea { font: inherit; font-size: 15px; line-height: 1.45; padding: 10px 12px; border: 1px solid transparent; letter-spacing: normal; }
.hl-wrap .hl { position: absolute; inset: 0; overflow: hidden; white-space: pre-wrap; overflow-wrap: break-word; color: transparent; pointer-events: none; }
.hl-wrap .hl mark { color: transparent; background: color-mix(in oklab, var(--star) 26%, transparent); border-radius: 4px; box-shadow: 0 0 0 2px color-mix(in oklab, var(--star) 26%, transparent); }
.fld .hl-wrap textarea { position: relative; background: transparent; border-color: var(--line-2); display: block; }
.fld .hl-wrap textarea:focus { background: transparent; }
.tm-hint { grid-column: 2; display: inline-flex; align-items: flex-start; line-height: 1.4; gap: 6px; font-size: 13px; color: var(--ink-3); margin-top: -2px; }
.tm-hint[hidden] { display: none; }
.tm-hint .ic { width: 15px; height: 15px; color: var(--star); }

/* a reply or a decision from the moderator */
.ndot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); animation: pop .35s var(--ease); }
.nav-btn, #side [data-act=open-bug], #side [data-act=saved-tab] { position: relative; }
#side [data-act=open-bug] .ndot, #side [data-act=saved-tab] .ndot { top: 8px; right: 10px; box-shadow: none; }
.new-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 650; vertical-align: 1px; }

/* text editor for the owner (?edit=1) */
#editBar { position: fixed; inset: auto 12px 12px 12px; margin: 0; width: auto; max-width: 980px; margin-inline: auto; border: 1px solid var(--line-2);
  border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); padding: 10px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; z-index: 1000; }

#editBar b { font-size: 15px; }
#editBar .eb-lang { font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
#editBar .eb-n { color: var(--ink-3); font-size: 14px; margin-right: auto; }
#editBar .seg button { display: inline-flex; align-items: center; gap: 6px; }
#editBar .seg .ic { width: 16px; height: 16px; }
#editBar .btn { text-decoration: none; height: 40px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
#editPop { position: fixed; margin: 0; z-index: 1001; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
#editPop[hidden] { display: none; }
#editPop .ep-h { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; font-size: 13px; }
#editPop .ep-h span { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#editPop textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ink); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.45; resize: vertical; }
#editPop textarea:focus { outline: none; }
#editPop .ep-note { color: var(--ink-3); font-size: 13px; line-height: 1.4; }
#editPop .ep-a { display: flex; gap: 8px; align-items: center; }
#editPop .ep-a .spacer { flex: 1; }
#editPop .btn { height: 38px; font-size: 14px; padding: 0 12px; border-radius: 11px; }
body.editing .ed-hover { outline: 2px dashed var(--accent) !important; outline-offset: 3px; cursor: text !important; border-radius: 6px; }
body.editing { padding-bottom: 80px; }

/* offline: a thin bar right under the header */
.net { position: sticky; top: 64px; z-index: 7; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px;
  background: var(--ink); color: var(--bg); font-size: 14px; line-height: 1.4; text-align: center; }
.net[hidden] { display: none; }
.net .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 860px) { .net { top: 58px; font-size: 13px; padding: 8px 16px; } }

/* documents: links in Settings and a quiet line at the bottom of the page */
.doc-links { display: flex; flex-direction: column; gap: 10px; }
.doc-links a { color: var(--ink); font-size: 15px; text-underline-offset: 3px; }
.foot { max-width: 1320px; margin: 0 auto; padding: 28px 32px 40px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; color: var(--ink-3); font-size: 14px; border-top: 1px solid var(--line); }
.foot span { font-weight: 600; color: var(--ink-2); }
.foot a, .foot button { color: var(--ink-3); text-decoration: none; font-size: 14px; }
.foot a:hover, .foot button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .foot { padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); } .layout:has(+ .foot) { padding-bottom: 24px; } }

.docs-sec { margin-top: 18px; }
.docs-sec h3 { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.docs-sec .doc-links a { color: var(--ink-3); font-size: 14px; }

/* Android app without a connection: dish search waits for the internet */
.app-off { max-width: 460px; margin: 12vh auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--ink-2); line-height: 1.55; }
.app-off .ic { width: 34px; height: 34px; color: var(--ink-3); }

/* phones: search and the chosen products stay at the top while the page scrolls (no bar at the bottom) */
.pbar { display: none; }
@media (max-width: 860px) {
  .pbar { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(58px + var(--net-h, 0px)); z-index: 8;
    margin: -12px -16px 4px; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .pbar-search { position: relative; }
  .pbar-search .ph { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pbar-n:empty { display: none; }
  .pbar-n { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--have); color: #fff; font-size: 14px; font-weight: 650; display: inline-grid; place-items: center; }
  .pbar .dock-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; max-height: 40px; opacity: 1; transition: max-height .32s var(--ease), opacity .25s, margin .32s var(--ease); }
  .pbar .dock-chips::-webkit-scrollbar { display: none; }
  .pbar .dock-chips:empty { max-height: 0; opacity: 0; margin-bottom: -8px; }
  .pbar .dock-chips .chip { height: 32px; font-size: 14px; }
  .quick { padding-top: 10px; }
  .quick h2 { font-size: 15px; color: var(--ink-3); font-weight: 600; letter-spacing: 0; }
}
/* cards: "and N more" after the products listed */
.ing.etc { color: var(--ink-3); }
.ing[hidden] { display: none; }
.ing.etc::before { display: none; }
/* own recipe: matching products under the field */
.own-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 2px; }
.own-sugg button { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.own-sugg button:hover { border-color: var(--ink-3); }
/* very narrow phones (320 px): the header fits without sideways scrolling */
@media (max-width: 359px) {
  .top-in { padding: 0 10px; gap: 2px; }
  .top-nav { gap: 0; }
  .nav-btn { width: 36px; }
  .brand-word { font-size: 18px; }
}
#rTitle:focus { outline: none; }

/* shopping list: an amount next to each item; footer buttons wrap on phones */
.li .li-q { appearance: auto; width: 84px; height: 38px; flex: none; display: block; margin: 0; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 15px; text-align: center; cursor: text; }
.li-q::placeholder { color: var(--ink-3); }
.li-add { flex-wrap: wrap; }
.li-add .search { flex: 1 1 100%; }
.li-add .li-q { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; }
.d-foot:has([data-act=bought]) { flex-wrap: wrap; }
.d-foot .btn.pri[data-act=bought] { flex: 1 1 100%; }
.d-foot [data-act=list-share], .d-foot [data-act=list-clear] { flex: 1; }
.li-in { padding: 14px 16px; margin: 4px 0 10px; border-radius: 14px; background: var(--have-soft); }
.li-in p { margin: 0; font-weight: 600; }
.li-in .li-in-items { font-weight: 400; color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.li-in-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.li-in-btns .btn { height: 44px; font-size: 15px; }
/* a step or ingredient line the admin's recipe check points at */
.steps li.hl, .rows li.hl { background: color-mix(in oklab, var(--accent) 14%, transparent); border-radius: 12px; box-shadow: inset 3px 0 0 var(--accent); }
.rows li.hl { padding-left: 8px; padding-right: 8px; }

/* first visit: header and search are already there; the rest settles in order — chips, title, filters, cards */
@keyframes bootIn { from { opacity: 0; transform: translateY(10px); } }
html.boot .quick h2, html.boot .quick-chips .chip, html.boot .verdict, html.boot .filters-wrap, html.boot .lane-h, html.boot .boost,
html.boot .kitchen .k-head, html.boot .kitchen .search, html.boot .kitchen .staples, html.boot .groups-wrap, html.boot .pick .chip,
html.boot .pbar-search .ph { animation: bootIn .5s cubic-bezier(.2, .7, .2, 1) both; }
html.boot .quick-chips .chip:nth-child(n+2), html.boot .pick .chip:nth-child(n+2) { animation-delay: 30ms; }
html.boot .quick-chips .chip:nth-child(n+3), html.boot .pick .chip:nth-child(n+3) { animation-delay: 60ms; }
html.boot .quick-chips .chip:nth-child(n+4), html.boot .pick .chip:nth-child(n+4) { animation-delay: 90ms; }
html.boot .quick-chips .chip:nth-child(n+5), html.boot .pick .chip:nth-child(n+5) { animation-delay: 120ms; }
html.boot .quick-chips .chip:nth-child(n+6), html.boot .pick .chip:nth-child(n+6) { animation-delay: 150ms; }
html.boot .kitchen .search, html.boot .verdict { animation-delay: 60ms; }
html.boot .kitchen .staples, html.boot .boost { animation-delay: 110ms; }
html.boot .groups-wrap, html.boot .filters-wrap { animation-delay: 150ms; }
html.boot .lane-h { animation-delay: 190ms; }
html.boot .card { animation-name: bootIn; animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); animation-delay: calc(170ms + min(var(--i, 0), 6) * 35ms); }
/* the kind of dish: one chip, and a small menu in the site's style */
.cat-pick .ic { width: 14px; height: 14px; margin-right: -4px; opacity: .7; transition: transform .2s var(--ease); }
.cat-pick[aria-expanded="true"] .ic { transform: rotate(180deg); }
.cat-menu { position: fixed; z-index: 60; min-width: 248px; max-height: min(70vh, 460px); overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.cat-menu button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 15px; color: var(--ink); text-align: left; }
.cat-menu button:hover, .cat-menu button:focus-visible { background: var(--surface-2); outline: none; }
.cat-menu .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); flex: none; }
.cat-menu .nm { flex: 1; }
.cat-menu .n { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.cat-menu .ic { width: 16px; height: 16px; color: var(--have); margin-left: 2px; }
.cat-menu button[aria-checked="true"] { font-weight: 600; }
.cat-menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }
/* "From the pantry" is a list like the others, a little quieter */
.rows.pantry .st { opacity: .5; }
.rows.pantry .nm { color: var(--ink-2); }

/* photo viewer: arrows, counter, a close button */
.photo-box .ph-frame { position: relative; }
.ph-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(20 20 18 / .55); color: #fff; backdrop-filter: blur(6px); }
.ph-btn:hover { background: rgb(20 20 18 / .75); }
.ph-btn .ic { width: 22px; height: 22px; }
.ph-x { top: 10px; right: 10px; }
.ph-prev { left: 10px; top: 50%; translate: 0 -50%; }
.ph-next { right: 10px; top: 50%; translate: 0 -50%; }
.ph-n { position: absolute; bottom: 10px; left: 50%; translate: -50% 0; padding: 4px 10px; border-radius: 999px; background: rgb(20 20 18 / .55); color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
/* the recipe cover: several photos change slowly */
.r-cover { position: relative; }
.r-cover img { transition: opacity 1.2s ease; }
.r-cover img:not(:first-child) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r-cover img:not(.on) { opacity: 0; }
/* hover preview of a card (computers only) */
.card-tip { position: fixed; z-index: 55; width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; pointer-events: none; }
.card-tip.sm { width: 260px; }
.card-tip img { display: block; width: 100%; height: 150px; object-fit: cover; }
.card-tip .tip-b { padding: 14px 16px; display: grid; gap: 6px; }
.card-tip b { font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.card-tip .meta { color: var(--ink-3); font-size: 13px; }
.card-tip .tip-step { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.card-tip .tip-step:empty { display: none; }

/* accounts (the server): the author's picture, the official account's tick, sign-in */
.rev-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rev-who .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rev-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.rev-off { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
.rev-off .ic { width: 11px; height: 11px; }
.rev-off svg { stroke-width: 3; }
.rev-tr { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.rev-in { margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.rev-in p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.g-btn { min-height: 44px; }
.g-btn iframe { color-scheme: light; }   /* Google draws the button in a light frame: without this a dark page shows white corners around it */
.rev-acct { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rev-acct .link { font-size: 13px; }

/* the account button in the top bar: "Sign in" when signed out; the initial or photo when signed in */
.acct-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.acct-btn.on .acct-ic { background: var(--accent); color: #fff; overflow: hidden; }
.acct-ic b { font-size: 12px; font-weight: 700; line-height: 1; }
.acct-ic img { width: 100%; height: 100%; object-fit: cover; }
.acct-btn .nav-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the sign-in window: e-mail + password, or Google */
.auth-box { width: min(420px, calc(100vw - 32px)); margin: auto; border-radius: 20px; box-shadow: var(--shadow); }
.auth-box[open] { animation: rise .22s var(--ease); }
.auth-box[open]::backdrop { animation: fade .25s ease; }
.auth { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.auth-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-h h2 { font-size: 20px; margin: 0; }
.auth .fl-hint { margin: -4px 0 0; }
.auth .fl-hint a { color: var(--ink-2); }
.auth .own-msg:empty { display: none; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth .g-btn { display: flex; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .auth-box[open], .auth-box[open]::backdrop { animation: none; } }

/* moderation: the author sees where their review stands; others can report it */
.rev-st { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.rev-st.wait { color: var(--ink-2); }
.rev-st.ok { color: var(--have); }
.rev-st.no { color: var(--accent); }
.rev-item.pending .stars { opacity: .6; }
.rev-ph.cut { opacity: .35; }
.rev-rep { margin-left: auto; font-size: 13px; color: var(--ink-3); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rev-why { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.rev-why p { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-2); }
.rev-why .chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; color: var(--ink); cursor: pointer; }
@media (hover: hover) { .rev-why .chip:hover { border-color: var(--ink-3); } }
.rev-why .link { font-size: 13px; color: var(--ink-3); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.rev-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.fl-sub { margin: 14px 0 8px; font-size: 13px; color: var(--ink-3); }

.rev-edit { margin-left: auto; font-size: 13px; color: var(--ink-2); background: none; border: 0; padding: 4px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rev-edit + .round { margin-left: 4px; }
.rev-item.just { animation: revIn .9s var(--ease); border-radius: 12px; }
@keyframes revIn { 0% { opacity: 0; transform: translateY(8px); background: color-mix(in oklab, var(--have) 18%, transparent); } 40% { opacity: 1; transform: none; } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .rev-item.just { animation: none; } }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-links .link { font-size: 14px; }
.auth .code-in { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

/* the site's own drop-down menu (category, unit) instead of the system list */
.sel-menu {
  position: fixed; inset: auto; margin: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-lg); animation: selIn .16s var(--ease) both; transform-origin: top center;
}
.sel-menu.up { transform-origin: bottom center; }
.sel-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none;
  min-height: 44px; padding: 0 12px; border-radius: 10px; text-align: left; font-size: 15px; color: var(--ink);
}
.sel-opt:hover, .sel-opt:focus-visible { background: var(--surface-2); outline: none; }
.sel-opt[aria-selected="true"] { font-weight: 600; }
.sel-opt .ic { width: 18px; height: 18px; color: var(--accent); }
@keyframes selIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.sel-menu.up { animation-name: selUp; }
@keyframes selUp { from { opacity: 0; transform: translateY(4px) scale(.98); } }
.fld-2 { align-items: end; }

/* the account page: picture, name */
.acct-pic { display: flex; align-items: center; gap: 16px; }
.acct-big { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; flex: none; overflow: hidden; background: var(--accent); color: #fff; }
.acct-big img { width: 100%; height: 100%; object-fit: cover; }
.acct-big b { font-size: 30px; font-weight: 700; line-height: 1; }
.acct-pic-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.acct-pic-btns .rev-file { cursor: pointer; }
.acct-name { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.auth .ac-no { color: var(--accent); }
.auth .acct-via { margin: 4px 0 0; }
.acct-pic-btns .link { font-size: 14px; color: var(--ink-2); }

/* a form error right under its field */
.fld-err { margin: -4px 0 0; font-size: 14px; color: var(--accent); }

/* phones: "Ingredients" on its own line, the portion and unit switches under it, full width and on one edge
   (side by side they wrapped, and the heading floated above the middle of two rows) */
@media (max-width: 600px) {
  .r-sec-h { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 10px; }
  .r-sec-h h3.big { margin-bottom: 0; }
  .r-tools { justify-content: stretch; }
  .r-tools .seg { flex: 1 1 100%; }
  .r-tools .seg:not(.sv) button { flex: 1; }
  .r-tools .seg.sv { justify-content: space-between; }
  .r-tools .seg.sv .svn { flex: 1; }
}

/* an ingredient line with a product is pressed as a whole to mark it "at home" */
.rows li:has(> .st[data-act]) { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { .rows li:has(> .st[data-act]):hover .nm { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; } }
.rows li:has(> .st[data-act]):active { background: var(--surface-2); }

/* a photo of a basic dish from Wikimedia Commons, with its author and licence */
.r-cover.ed { margin: 4px 0 18px; aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
.r-cover.ed img { aspect-ratio: 16 / 9; border-radius: 18px; background: var(--surface-2); }
.r-cover.ed figcaption { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
.r-cover.ed figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* phones: the card photo is lower (16:10 took most of the screen per card) */
@media (max-width: 600px) { .card-ph { aspect-ratio: 5 / 2; } }

/* the timer sound switch next to the running timers: ring / ring and ticking / silent */
.tm-snd { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 550; }
.tm-snd:hover { color: var(--ink); border-color: var(--line-2); }
.tm-snd .ic { width: 18px; height: 18px; }

/* the dish photo in the own-recipe form */
.own-ph { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.own-ph img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.own-ph-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.own-ph-btns .link { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: 14px; }

/* a phone on its side: little height, so the cook mode gives it to the step text (smaller header, buttons and gaps) */
@media (max-height: 500px) and (orientation: landscape) {
  .c-top { padding-top: 6px; padding-bottom: 6px; }
  .c-top .round { width: 36px; height: 36px; }
  .c-timers { margin-top: 6px; max-height: 26vh; }
  .tm-exact { display: none; }
  .c-main { padding-top: 10px; padding-bottom: 6px; }
  .c-n { margin-bottom: 6px; font-size: 13px; }
  .c-text { font-size: 20px; line-height: 1.35; }
  .c-tbtns { margin-top: 10px; }
  .c-tbtns .ghost { height: 36px; font-size: 14px; }
  .c-nav { padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .c-nav .btn { height: 44px; font-size: 16px; border-radius: 14px; }
  .c-ways { margin-top: 12px; } .c-ways .btn { height: 44px; }
  .c-way .c-sub { margin-top: 6px; font-size: 14px; }
  .c-main.c-done { justify-content: flex-start; }
  .c-done .c-text { font-size: 24px; }
  .c-done p { margin-top: 4px; }
  .c-done .c-rate { margin-top: 8px; }
  .c-done ~ .c-nav, .c-main.c-done + .c-nav { padding-top: 4px; }
}

/* phone, more compact top: the first dish shows sooner; the way choice is big blocks across the width */
@media (max-width: 860px) {
  .verdict { padding: 6px 0 12px; }
  .verdict h1 { font-size: 25px; line-height: 1.12; max-width: none; }
  .verdict .sub { font-size: 14px; margin-top: 4px; }
  .quick { padding: 8px 0 10px; gap: 8px; }
  .lane-h { margin-bottom: 10px; }
  .c-ways { flex-direction: column; gap: 10px; }
  .c-ways .btn { width: 100%; height: 64px; justify-content: flex-start; padding: 0 22px; font-size: 18px; border-radius: 18px; }
  .c-way + .c-nav .btn:disabled { visibility: hidden; }
}
