/* Forkful side panel.
   Calm and native: one white sheet, hairlines instead of boxes, one green for the thing to press.
   Colour is kept for what carries meaning: the dish pictures, the aisle dots, and the bar that moves while Forkful works.
   Type: Bricolage Grotesque for the wordmark and headings, Figtree for everything else. */
@font-face { font-family: 'Bricolage'; src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FFFFFF; --tint: #F4F7F2; --soft: #E9EFE7; --line: #E1E7DF;
  --ink: #10231A; --muted: #56655B;
  --brand: #0F8648; --brand-deep: #0B6B39; --brand-t: #E1F4E8;
  --lingon: #FF5A4E; --lingon-t: #FFE7E3; --red: #B8322A;
  --sol: #FFD23F; --sol-t: #FFF5D1; --sol-ink: #6B4F00;
  --skog: #17A85A; --skog-t: #DDF5E6;
  --hav: #3B7BF6; --hav-t: #E2ECFF;
  --ljung: #8A63E6; --ljung-t: #EFE8FF;
  --rose: #F0508A; --rose-t: #FFE6EF;
  --lera: #F08A2E; --lera-t: #FFEDDA;
  --display: 'Bricolage', 'Figtree', system-ui, sans-serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 16px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; min-height: 28px; }
.brand .langsw { margin-left: auto; }
.brand .chip { margin-left: 2px; }
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.langsw button { all: unset; cursor: pointer; padding: 3px 8px; font: 600 11px/1.4 var(--sans, inherit); color: var(--muted); letter-spacing: .02em; }
.langsw button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.langsw button:focus-visible { outline: 2px solid var(--brand-deep, #0B6B39); outline-offset: -2px; }

.card.next h3 { margin: 0 0 4px; }
.card.next p { margin: 0 0 10px; }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font: 800 23px/1 var(--display); letter-spacing: -0.045em; display: inline-flex; align-items: baseline; }
.wordmark .berry { display: inline-block; width: .56em; height: .56em; border-radius: 50%; background: var(--lingon); margin: 0 .045em 0 .05em; position: relative; }
.wordmark .berry::after { content: ''; position: absolute; left: 52%; top: -.2em; width: .22em; height: .22em; background: var(--skog); border-radius: 0 100% 0 100%; }
.tabs { display: flex; gap: 2px; margin-top: 6px; }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 2.5px solid transparent; padding: 9px 2px 8px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

main { flex: 1; padding: 16px 16px 124px; }
h1 { font: 700 26px/1.1 var(--display); letter-spacing: -0.03em; margin: 0 0 3px; }
h2 { font: 700 16px/1.25 var(--display); letter-spacing: -0.01em; margin: 24px 0 8px; }
h3 { font-size: 14px; font-weight: 700; margin: 14px 0 5px; }
.sub { color: var(--muted); margin: 0 0 14px; }
.lead { color: var(--muted); margin: 6px 0 16px; font-size: 15.5px; line-height: 1.4; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---- buttons, chips, controls ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; line-height: 1.25; }
.btn:hover { background: var(--tint); }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn.small { padding: 5px 11px; font-size: 13.5px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--tint); color: var(--ink); }
.btn.danger { color: var(--red); }
.btn.block { display: flex; width: 100%; padding: 14px 18px; font-size: 16px; font-weight: 700; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.link { border: 0; background: none; padding: 0; color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(11, 107, 57, .35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.link.plus { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 12px 0; }
.link.more { display: block; margin: 6px auto 8px; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 14px 16px 12px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%); pointer-events: none; }
.sticky > div { max-width: 528px; margin: 0 auto; pointer-events: auto; }
.sticky .btn.block { box-shadow: 0 6px 18px rgba(15, 134, 72, .26); }
.sticky .note { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px 10px; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.sticky .note:empty { display: none; }
.sticky .note .promise { flex-basis: 100%; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--brand-t); color: var(--brand-deep); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip.honey { background: var(--sol-t); color: var(--sol-ink); }
.chip.red { background: var(--lingon-t); color: var(--red); }
.chip.plain { background: var(--soft); color: var(--muted); }
button.chip { border: 0; font-size: 13px; padding: 6px 12px; }
button.chip.toggle { background: #fff; color: var(--ink); border: 1px solid var(--line); }
button.chip.toggle:hover { background: var(--tint); }
button.chip.toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
button.chip.add { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px 6px 9px; font-weight: 500; }
button.chip.add .sign { color: var(--brand); font-weight: 800; width: 11px; text-align: center; }
button.chip.add[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; font-weight: 600; padding-left: 12px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--soft); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 8px; padding: 7px 8px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 35, 26, .12); }
.setting .seg button { padding: 5px 11px; font-size: 13px; }

.stepper { display: inline-flex; align-items: center; background: var(--soft); border-radius: 999px; padding: 2px; }
.stepper button { border: 0; background: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 17px; line-height: 1; box-shadow: 0 1px 2px rgba(16, 35, 26, .1); }
.stepper button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.switch { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #C9D1C7; position: relative; margin: 0; cursor: pointer; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 35, 26, .2); transition: transform .15s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }

label.field { display: block; font-weight: 700; margin: 20px 0 8px; }
label.field small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin: 1px 0 7px; }
input[type="text"], input[type="search"], textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; }
input[type="text"]:focus, textarea:focus { border-color: var(--brand); outline: none; }
textarea { min-height: 80px; resize: vertical; }
.setting { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.setting:last-child { border-bottom: 0; padding-bottom: 2px; }
.setting:first-child { padding-top: 2px; }

.icon { border: 0; background: none; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); display: grid; place-items: center; flex: none; }
.icon:hover { background: var(--soft); color: var(--ink); }
.icon svg { display: block; }
.icon.swap[aria-pressed="true"] { background: var(--ink); color: #fff; }
.icon.x { width: 30px; height: 30px; }
.icon.x svg { width: 16px; height: 16px; }

/* ---- surfaces ---- */
.card { background: var(--tint); border-radius: 16px; padding: 14px; margin: 0 0 12px; }
.card.flat { background: #fff; border: 1px solid var(--line); }
.card.warn { background: var(--sol-t); }
.card.bad { background: var(--lingon-t); }
.card.good { background: var(--skog-t); }
.tip { display: flex; gap: 10px; align-items: flex-start; background: var(--hav-t); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.tip button { border: 0; background: none; font-weight: 700; color: #1F4FBF; padding: 0 2px; }

/* ---- dish pictures ---- */
.plate { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 18px; background: var(--soft); }
.plate svg { width: 90%; height: 90%; display: block; }
.plate.s { width: 48px; height: 48px; border-radius: 14px; }
.plate.l { width: 112px; height: 112px; border-radius: 30px; }
.plate.xl { width: 100%; height: auto; aspect-ratio: 5 / 4; border-radius: 22px; }
.plate.p-fish { background: var(--hav-t); } .plate.p-veg { background: var(--skog-t); } .plate.p-chicken { background: var(--sol-t); } .plate.p-mince { background: var(--lingon-t); }
.plate.p-sausage { background: var(--rose-t); } .plate.p-pork { background: var(--ljung-t); } .plate.p-beef { background: var(--lera-t); }

/* ---- onboarding ---- */
.onboard .hero { padding: 10px 0 2px; }
.onboard .hero .wordmark { font-size: 40px; }
.onboard .hero h1 { margin-top: 16px; max-width: 13em; }
.hero-plates { display: flex; margin: 16px 0 4px; padding-left: 2px; }
.hero-plates .plate { width: 74px; height: 74px; border-radius: 22px; margin-right: -12px; box-shadow: 0 0 0 4px #fff; }
.hero-plates .plate:nth-child(odd) { transform: rotate(-4deg); }
.hero-plates .plate:nth-child(even) { transform: rotate(3deg) translateY(4px); }
.promises { list-style: none; padding: 0; margin: 16px 0 4px; display: grid; gap: 7px; }
.promises li { display: flex; gap: 9px; align-items: flex-start; }
.promises svg { color: var(--brand); flex: none; margin-top: 1px; }

/* ---- Ask Forkful AI ---- */
.ask { background: var(--tint); border-radius: 18px; padding: 12px; margin: 0 0 8px; }
.ask-label { display: flex; align-items: center; gap: 6px; font: 700 14.5px/1 var(--display); color: var(--brand-deep); margin: 1px 2px 9px; }
.spark { display: inline-grid; color: var(--brand); flex: none; }
.ask-form { display: flex; align-items: center; gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 14px; }
.ask-form:focus-within { border-color: var(--brand); }
.ask-input[type="text"] { border: 0; background: none; padding: 7px 0; border-radius: 0; min-width: 0; flex: 1; }
.ask-send { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.ask-send:hover { background: var(--brand-deep); }
.ask-send:disabled { opacity: .5; }
.ask-eg { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 1px; scrollbar-width: none; }
.ask-eg::-webkit-scrollbar { display: none; }
.ask-eg .chip { flex: none; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.ask-said { display: flex; align-items: flex-start; gap: 6px; padding: 11px 2px 1px; font-weight: 600; animation: drop .25s ease-out; }
.ask-said .ask-q { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-bottom: 1px; }
.ask-said.miss { font-weight: 500; }
.ask-said.busy { align-items: center; gap: 9px; color: var(--muted); font-weight: 500; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: bob 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.opts { background: #fff; border-radius: 14px; padding: 1px 10px; margin-top: 10px; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.opt:first-child { border-top: 0; }
.opt-main { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; border-radius: 12px; }
.opt-text { display: block; min-width: 0; }
.opt-text b { display: block; font-weight: 650; line-height: 1.25; }
.opt-blurb { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.3; margin-top: 1px; }
.opt-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.place { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0 4px 58px; }
.place-title { font-size: 13px; color: var(--muted); margin-right: 2px; }
.card .place { padding: 0; margin-top: 8px; }

/* ---- week ---- */
.week-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.week-head .sub { margin: 0; }
.dinner { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dinner-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; border-radius: 14px; }
.dinner-text { display: block; min-width: 0; flex: 1; }
.day { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.name { display: block; font-size: 16px; font-weight: 650; line-height: 1.22; letter-spacing: -0.005em; margin-top: 1px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--muted); font-size: 13px; margin-top: 3px; }
.dinner.arrive { animation: drop .4s cubic-bezier(.2, .9, .3, 1.15); }
.dinner .ideas { flex-basis: 100%; }
.ideas { background: var(--tint); border-radius: 14px; padding: 10px 12px; margin-top: 8px; animation: drop .2s ease-out; }
.ideas-title { margin: 0 0 2px; font-weight: 700; font-size: 14px; }
.ideas-title + .opt { border-top: 0; }
.ideas-acts { margin-top: 6px; }
.dinner.skel .plate { background: var(--soft); }
.bar { display: block; height: 10px; border-radius: 5px; margin: 6px 0; background: linear-gradient(90deg, var(--soft) 25%, #F6F9F5 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.bar.w1 { width: 18%; } .bar.w2 { width: 68%; height: 13px; } .bar.w3 { width: 38%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.composing { margin: 2px 0 4px; }
.composing-text { display: flex; align-items: center; gap: 7px; font-weight: 650; }
.composing .progress { margin: 10px 0 4px; }
.add-dinner .ideas { margin: 0 0 12px; }
.week-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; }

.rate { background: var(--sol-t); }
.rate-row { display: flex; align-items: center; gap: 5px; padding: 7px 0; border-top: 1px solid rgba(107, 79, 0, .14); }
.verdict { border: 0; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.verdict[aria-pressed="true"] { background: var(--brand); color: #fff; }
.verdict.no[aria-pressed="true"] { background: var(--red); }

.occ-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.occ-strip::-webkit-scrollbar { display: none; }
.occ { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; text-align: left; min-width: 104px; }
.occ:hover { background: var(--tint); }
.occ b { display: block; font-weight: 650; white-space: nowrap; }
.occ span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.occ.soon { background: var(--sol-t); border-color: transparent; }
.occ.soon span { color: var(--sol-ink); }
.occ[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.occ[aria-pressed="true"] span { color: #C8D6CC; }
.occ-card { margin-top: 8px; }
.occ-name { font: 700 18px/1.2 var(--display); letter-spacing: -0.02em; }

/* ---- one dinner ---- */
.back { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 4px 8px 4px 0; margin: -4px 0 10px -6px; font-weight: 600; color: var(--muted); border-radius: 8px; }
.back:hover { color: var(--ink); }
.detail-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.detail-hero h1 { font-size: 22px; margin: 2px 0 5px; }
.blurb { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.facts-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
button.chip.fav { padding: 3px 10px 3px 7px; font-size: 12.5px; font-weight: 600; }
.fav svg { width: 15px; height: 15px; }
button.chip.fav[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.ing { list-style: none; padding: 0; margin: 0 0 8px; }
.ing li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ing .amt { width: 84px; flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 1px 0 14px 34px; line-height: 1.5; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 12.5px/24px var(--sans); text-align: center; }
.detail-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---- list ---- */
/* the List screen: three numbered steps */
.steps-nav { display: flex; gap: 6px; margin: 2px 0 20px; }
.steps-nav button { flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; border: 0; background: var(--tint); border-radius: 999px; padding: 7px 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.steps-nav button:hover { background: var(--soft); }
.steps-nav .step-n { display: inline; width: auto; height: auto; background: none; color: var(--brand-deep); font: 800 13.5px/1 var(--display); }
.step { margin: 0 0 26px; scroll-margin-top: 120px; }
.step-head { display: flex; align-items: center; gap: 10px; margin: 0 0 3px; }
.step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 14px/1 var(--display); display: grid; place-items: center; }
.step-head h2 { margin: 0; font-size: 19px; }
.step-hint { color: var(--muted); margin: 0 0 12px 36px; font-size: 14px; line-height: 1.35; }
.step .seg { margin: 0 0 2px; }
.check .athome { color: #66736A; font-size: 12.5px; white-space: nowrap; }
.aisle.cupboard { --dot: #C3CCC0; }
.cup-hint { margin: 0 0 6px 18px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.link.untick { display: inline-block; margin: 12px 0 0; font-size: 13.5px; }
button.chip.add .onlist { font-size: 11.5px; font-weight: 600; opacity: .82; margin-left: 2px; }
.takeaway { margin-top: 2px; }
.take-title { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.shelf-tabs { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 -16px 10px; padding: 0 16px; }
.shelf-tabs::-webkit-scrollbar { display: none; }
.shelf-tabs button { flex: none; border: 0; background: none; padding: 5px 0 7px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.shelf-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.staple-chips { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; justify-content: start; gap: 6px; overflow-x: auto; margin: 0 -16px 10px; padding: 1px 16px; scrollbar-width: none; }
.staple-chips::-webkit-scrollbar { display: none; }
.add-form { display: flex; gap: 8px; margin: 0 0 18px; }
.add-form .add-input { border-radius: 999px; padding: 8px 14px; }
.add-form .btn { flex: none; }
.aisle { --dot: #B9C2B6; margin: 0 0 4px; }
.aisle-head { display: flex; align-items: center; gap: 8px; padding: 14px 0 6px; font: 700 14.5px/1.2 var(--display); letter-spacing: -0.005em; }
.aisle-head::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.aisle-head .count { margin-left: auto; font: 600 12.5px var(--sans); color: var(--muted); }
.a-produce { --dot: var(--skog); } .a-bread { --dot: var(--lera); } .a-meat { --dot: var(--lingon); } .a-fish { --dot: var(--hav); }
.a-dairy { --dot: #7FB2FF; } .a-pantry { --dot: var(--sol); } .a-frozen { --dot: #8AD4E6; } .a-drinks { --dot: var(--rose); } .a-home { --dot: var(--ljung); }
.check { display: flex; align-items: center; gap: 6px; min-height: 44px; border-top: 1px solid var(--line); }
.check-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 44px; cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; border: 2px solid #C3CCC0; border-radius: 50%; margin: 0; flex: none; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .12s, border-color .12s; }
.check-main:hover input { border-color: var(--brand); }
.check input:checked { background: var(--brand); border-color: var(--brand); }
.check input:checked::after { content: ''; width: 9px; height: 4.5px; border-left: 2.2px solid #fff; border-bottom: 2.2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check .sv { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.check.done .sv { color: #66736A; }
.check .amt { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check.done .grow { text-decoration: line-through; color: #66736A; }
.check.done .amt { color: #66736A; }

details.group { margin: 0 0 6px; }
details.group > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 0; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary h2 { margin: 0; }
details.group > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-left: auto; margin-right: 6px; transition: transform .15s; }
details.group[open] > summary::after { transform: rotate(-135deg); }

/* ---- basket ---- */
.summary { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.labels { margin: 0 0 8px; }
.label { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.label.guess { background: var(--sol-t); margin: 0 -10px 6px; padding: 12px 10px; border-radius: 12px; border-top-color: transparent; }
.label.guess + .label { border-top-color: transparent; }
.label.skipped { opacity: .55; }
.what { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.thumb { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); flex: none; }
.label .term { color: var(--muted); font-size: 12.5px; }
.label .prod { font-weight: 650; font-size: 15px; line-height: 1.25; margin-top: 1px; }
.label .prod.missing { font-weight: 600; color: var(--red); }
.label .info { color: var(--muted); font-size: 13px; margin-top: 1px; }
.label .flag { display: inline-block; background: var(--sol-t); color: var(--sol-ink); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 600; margin: 5px 4px 0 0; }
.label.guess .flag { background: #fff; }
.label .tools { grid-column: 1 / 3; display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.tag { align-self: start; background: var(--sol); color: var(--ink); font-family: var(--display); font-weight: 800; line-height: 1; padding: 6px 8px 5px 9px; border-radius: 10px; display: inline-flex; align-items: flex-start; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag b { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.tag sup { font-size: 11px; margin: 1px 0 0 2px; }
.alts { grid-column: 1 / 3; display: grid; margin-top: 10px; border-radius: 12px; overflow: hidden; background: var(--tint); }
.alts button { text-align: left; border: 0; border-bottom: 1px solid #fff; background: none; padding: 9px 12px; font-weight: 600; }
.alts button:last-child { border-bottom: 0; }
.alts button:hover { background: var(--soft); }
.alts span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

.compare { margin: 4px 0 12px; }
.cmp-title { font: 700 16px/1.25 var(--display); display: block; margin-bottom: 4px; }
.cmp-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.cmp-shop { width: 82px; font-weight: 700; flex: none; }
.cmp-shop .chip { display: inline-flex; margin-top: 3px; padding: 1px 8px; font-size: 12px; }
.cmp-shop small, .cmp-total small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.cmp-total { font: 700 16px/1.2 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-total small { font-family: var(--sans); letter-spacing: 0; }
.cmp-note { color: var(--muted); font-size: 13.5px; }
.cmp-row.best .cmp-total { color: var(--brand-deep); }
.small-spin { width: 18px; height: 18px; border-width: 3px; margin: 0; }

.progress { height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; margin: 14px 0 10px; }
.progress i { display: block; height: 100%; min-width: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--lingon), var(--sol) 55%, var(--skog)); background-size: 360px 100%; transition: width .3s ease-out; }
.now { margin: 0 0 14px; min-height: 1.45em; }
.feed { display: grid; gap: 6px; }
.feed-row { display: flex; gap: 10px; align-items: center; background: var(--tint); border-radius: 12px; padding: 8px 12px; font-size: 14px; min-height: 44px; }
.feed-row:first-child { animation: drop .25s cubic-bezier(.2, .9, .3, 1.2); }
.feed-row .mark { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.feed-row.check .mark { background: var(--sol); color: var(--ink); }
.feed-row.miss .mark { background: var(--red); }
.feed-row .thumb { width: 28px; height: 28px; border-radius: 6px; }
.feed-row b { font-weight: 700; }
.feed-row .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

.done-hero { position: relative; margin: 6px 0 8px; }
.tick { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; margin-bottom: 12px; animation: pop .35s cubic-bezier(.2, .9, .3, 1.4); box-shadow: 34px -8px 0 -21px var(--sol), 50px 14px 0 -23px var(--lingon), 70px -4px 0 -22px var(--hav), 88px 18px 0 -24px var(--skog); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.big { font: 700 24px/1.12 var(--display); letter-spacing: -0.03em; }
.stat { display: inline-block; background: var(--sol-t); color: var(--sol-ink); border-radius: 999px; padding: 3px 11px; font-weight: 700; font-size: 13px; margin-top: 8px; }
.audit { background: #fff; border: 1px solid var(--line); }
.audit h3:first-child { margin-top: 0; }
.audit h3.warn { color: var(--red); }
.audit ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.fail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid rgba(184, 50, 42, .18); }
.fail-row .grow { flex-basis: 100%; }
.tech { margin-top: 8px; font-size: 13px; }
.tech summary { cursor: pointer; font-weight: 600; }
.tech pre { white-space: pre-wrap; word-break: break-word; background: rgba(255, 255, 255, .65); border-radius: 10px; padding: 8px 10px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 180px; overflow: auto; }
.cover-card { background: #fff; border: 1px solid var(--line); }
.cover-card.all-in { background: var(--skog-t); border-color: transparent; }
.cover-sum { display: flex; gap: 10px; align-items: flex-start; }
.cover-line { display: block; font-size: 14px; margin-top: 1px; }
.cover-row { border-top: 1px solid var(--line); padding: 8px 0; margin-top: 8px; }
.cover-row + .cover-row { margin-top: 0; }
.cover-head { display: flex; align-items: center; gap: 9px; }
.cover-mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--brand); flex: none; margin-top: 1px; }
.has-gaps > .cover-sum .cover-mark, .cover-row.gap .cover-mark { background: var(--sol); color: var(--ink); }
.cover-n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cover-miss { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 4px 0 0 29px; font-size: 14px; }
.cover-more { margin-top: 8px; }
.cover-more summary { cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.all-in .cover-more .cover-row { border-top-color: rgba(16, 35, 26, .1); }

.facts { margin: 0; padding-left: 18px; }
.facts li { margin: 4px 0; }
.picks { display: grid; gap: 2px; margin-top: 6px; }
.share h3, .fb h3 { margin: 0 0 3px; font: 700 16px/1.25 var(--display); }
.share p, .fb p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.fb textarea { min-height: 70px; margin: 8px 0; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 10; max-width: 88%; text-align: center; box-shadow: 0 8px 22px rgba(16, 35, 26, .25); }
.spin { width: 32px; height: 32px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--brand); margin: 0 auto 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- all dinners ---- */
.book { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 6px; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; color: var(--ink); }
.book:hover { background: var(--tint); }
.book b { display: block; font-weight: 650; }
.book .small { display: block; }
.book > svg { flex: none; color: var(--muted); }
.book-plates { display: flex; flex: none; }
.book-plates .plate { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 0 0 2px #fff; }
.book-plates .plate + .plate { margin-left: -12px; }
.browse h1 { margin: 0 0 2px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin: 8px -16px 6px; scrollbar-width: none; position: sticky; top: 0; z-index: 3; background: #fff; }
.cats::-webkit-scrollbar { display: none; }
.cats .chip { flex: none; padding: 8px 14px; font-size: 14px; }
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; align-items: start; }
.dishcard { display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); border-radius: 22px; }
.dishcard:hover .plate { filter: brightness(.97); }
.dishcard-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 8px; font-weight: 650; line-height: 1.25; }
.dishcard-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.dishcard-meta .chip svg { width: 14px; height: 14px; }
.more-row { display: flex; justify-content: center; margin: 18px 0 4px; }
.browse-ask { margin-top: 18px; text-align: center; }
@media (min-width: 520px) { .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.link.add-all { display: inline-block; margin: 2px 0 10px; font-size: 14px; }

/* learning from a past order */
.order-import { margin-top: 12px; }
.order-import textarea { width: 100%; }
.order-found { max-height: 300px; overflow: auto; margin: 6px 0 12px; border-bottom: 1px solid var(--line); }

/* one line under the week about how it was put together */

/* the price comparison: the offer before it is run, and the verdict in words when it is done */
.compare.offer { display: flex; align-items: center; gap: 12px; }
.compare.offer p { margin: 0; }
.compare.offer .cmp-title { margin-bottom: 2px; }
.compare.offer button { flex: none; }
.cmp-verdict { margin: 2px 0 8px; font-weight: 600; }

/* handing over to the household: a check, a log-in, a refusal */
.handover .card.warn { margin: 0 0 12px; }
.login-hint { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
/* rarely needed things, folded away at the end of the Household tab */
details.data-more { margin: 18px 0 6px; border-top: 1px solid var(--line); padding-top: 10px; }
details.data-more > summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
details.data-more[open] > summary { margin-bottom: 6px; }

/* the days the household cooks: seven buttons, the filled ones have a dinner, the dashed ones are free */
.daystrip { margin: 0 0 12px; }
.daystrip-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.daystrip-days { display: flex; gap: 4px; }
.daybtn { flex: 1 1 0; min-width: 0; height: 34px; padding: 0; border-radius: 999px; border: 1px dashed #AEB9AB; background: #fff; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.daybtn:hover { border-color: var(--brand); color: var(--ink); }
.daybtn[aria-pressed="true"] { border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.days-setting { display: block; }
.days-setting .daystrip-days { margin-top: 8px; }
button.chip.toggle.free { border-style: dashed; border-color: #AEB9AB; color: var(--muted); }
button.chip.toggle.free::before { content: '+'; color: var(--brand); font-weight: 800; }
.place.again { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }

/* the way in to the basket: the list priced at every shop, side by side */
.cmp-said { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: 15.5px; line-height: 1.35; margin: 4px 0 12px; }
.cmp-said svg { flex: none; margin-top: 2px; }
.shoprows { border-bottom: 1px solid var(--line); }
.shoprow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.shoprow-name { display: flex; align-items: center; gap: 8px; font: 700 17px/1.2 var(--display); }
.shoprow-name .chip { font: 600 12px var(--sans); padding: 2px 9px; }
.shoprow-kr { justify-self: end; font: 700 17px/1.2 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 20px; }
.shoprow.best .shoprow-kr { color: var(--brand-deep); }
.shoprow-sub { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--muted); font-size: 13px; min-height: 18px; }
.shoprow-act { justify-self: end; }
.shoprow-kr .spin { display: block; margin: 0; }

details.compare.fold > summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; }
details.compare.fold > summary::-webkit-details-marker { display: none; }
details.compare.fold > summary .cmp-verdict { margin: 0; }
details.compare.fold > summary .link { flex: none; font-size: 13.5px; }
details.compare.fold[open] > summary { margin-bottom: 8px; }
.group-hint { margin: 0 0 8px; }

/* a recipe written for the household by Forkful AI says so */
.own-note { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; line-height: 1.4; background: var(--hav-t); margin: 0 0 10px; }
.own-note svg { flex: none; margin-top: 2px; }
.btn.write { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }

/* The phone's Basket page: the week goes to the computer in three steps. */
.carry-steps { margin: 18px 0 14px; }
.carry-steps li { padding-bottom: 20px; }
.carry-steps li b { display: block; font-size: 16.5px; line-height: 1.3; }
.carry-steps .carry-hint { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin: 2px 0 0; }
.carry-steps .btn, .carry-steps a.link { margin-top: 10px; }

/* A shop Forkful is paused at: named, with no price and no button. */
.shoprow.paused { opacity: .62; }
.shoprow.paused .shoprow-sub { grid-column: 1 / -1; }

/* Under the week's dinners: what the week gives the household, as four short facts. */
.weekfacts { margin: 18px 0 20px; padding: 14px 0 2px; border-top: 1px solid var(--line); }
.weekfacts h2 { font-size: 15px; margin: 0 0 8px; }
.weekfacts dl { margin: 0; }
.wf-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 5px 0; align-items: baseline; }
.wf-row dt { color: var(--muted); font-size: 13.5px; }
.wf-row dd { margin: 0; font-size: 14.5px; line-height: 1.35; }
.so-far { margin: 0 0 10px; font-weight: 600; }

/* What a household with a diet should look at, before the products go in. */
.card.audit.diet { border-color: var(--honey, #E9B44C); background: #FFF9EA; margin: 12px 0; }
.card.audit.diet .diet-title { display: block; margin-bottom: 6px; }

.ing .was { color: var(--muted); font-size: 12.5px; }

.card.replanned { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.occ-diet { margin: 0 0 10px; color: var(--ink); }

.cmp-how { margin: 2px 0 8px; }
.cmp-how summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; }
.cmp-how p { margin: 6px 0 0; line-height: 1.45; }

.write-note { margin: 6px 0 0; }

/* A phone's notch and home bar. */
body.web { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
body.web .sticky { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
body.web input[type="text"], body.web textarea { font-size: 16px; } /* smaller text makes an iPhone zoom in */

/* the comparison, asked for from the view where the shop is chosen */
.cmp-ask { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.cmp-ask p { margin: 0; }

/* The first screen: the whole shop being done, step by step. The one dark surface in the panel. */
.onboard .hero h1 { font-size: 34px; line-height: 1.04; letter-spacing: -0.03em; max-width: 9em; }
.onboard .hero .lead { margin: 10px 0 0; font-size: 16px; }
.run { list-style: none; margin: 18px 0 8px; padding: 18px 16px 16px; background: var(--ink); color: #fff; border-radius: 24px; display: grid; gap: 14px; }
.run li { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; font-weight: 600; font-size: 15px; line-height: 1.35; animation: run-in .45s ease both; animation-delay: calc(var(--i) * .75s + .25s); }
.run .dot { width: 22px; height: 22px; border-radius: 50%; background: #22B866; color: #06301A; display: grid; place-items: center; }
.run .dot svg { width: 14px; height: 14px; stroke-width: 2.6; }
.run .you { color: var(--sol); padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }
.run .you .dot { background: var(--sol); color: var(--sol-ink); }
.run-plates { display: flex; gap: 6px; margin-top: 9px; }
.run-plates .plate { width: 42px; height: 42px; border-radius: 13px; }
.run-shops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.run-shops span { font: 600 11.5px/1.5 var(--sans); padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .13); }
.run-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); margin-top: 10px; overflow: hidden; }
.run-bar i { display: block; height: 100%; background: #22B866; transform-origin: left; transform: scaleX(0); animation: run-fill 1.3s ease-out forwards; animation-delay: calc(3 * .75s + .55s); }
.run.still li { animation: none; }
.run.still .run-bar i { animation: none; transform: none; }
/* a step is hidden until its turn, then slides into place: it never stands half-faded, so its text is always fully legible */
@keyframes run-in { from { visibility: hidden; transform: translateY(8px); } to { visibility: visible; transform: none; } }
@keyframes run-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .run li { animation: none; } .run-bar i { animation: none; transform: none; } }
