@import url(/app/tokens.css);
/* Lobbe app. Warm, clean food-app look: off-white page, white rounded cards with soft shadows,
   one accent (tomato, white text on it 5.5:1). Mobile first, large type, generous spacing.
   No gradients, no icons, no emoji. */

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font:18px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
h1,h2,p,ul,ol{margin:0}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:8px}
h1:focus{outline:none}

.bar{max-width:640px;margin:0 auto;padding:var(--space-16) var(--gutter) 0}
.logo{display:inline-flex;align-items:center;min-height:44px}
.site-foot{max-width:640px;margin:0 auto;padding:var(--space-8) var(--gutter) var(--space-32);display:flex;flex-wrap:wrap;gap:var(--space-4) var(--space-16);font-size:var(--text-15)}
.site-foot a{display:inline-flex;align-items:center;min-height:44px;color:inherit;font-weight:600}
.banner{margin:0;padding:var(--space-4) var(--space-16);background:var(--ink);color:#fff;font-size:var(--text-13);line-height:1.5;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app{max-width:640px;margin:0 auto;padding:0 var(--gutter) var(--space-64)}
.loading{padding:var(--space-48) var(--gutter);text-align:center;color:var(--muted)}
.screen{padding-top:var(--space-12)}

h1{font:400 var(--text-34)/var(--leading-heading) var(--serif);letter-spacing:-.01em;margin:var(--space-8) 0 var(--space-8)}
.lede{color:var(--muted);font-size:var(--text-17);margin-bottom:var(--gutter)}
.section-title{font-size:var(--text-24);font-weight:600;margin:var(--space-32) 0 var(--space-16)}
.muted{color:var(--muted);font-size:var(--text-17)}
.note{display:block;color:var(--muted);font-size:var(--text-17);margin-top:2px}
.tag{display:inline-block;margin-top:var(--space-8);padding:2px var(--space-12);border:1px solid var(--line);border-radius:var(--radius-pill);font-size:var(--text-15);color:var(--muted);background:var(--page)}
.notice{padding:var(--space-24);background:var(--card);border-radius:var(--radius);display:grid;gap:var(--space-8)}

/* Home: the person steers (mood, time, kitchen); Lobbe shows 1 best match + 4 more. */
.home h1{font-size:var(--text-34);margin:2px 0 var(--space-12)}

.controls{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-16);margin-top:var(--space-8)}

.chip.small{min-height:44px;padding:0 var(--space-16);font-size:var(--text-15)}

.results{margin-top:var(--space-16)}

.fewer{font-size:var(--text-17);color:var(--muted);margin:0 0 var(--space-8)}
.widen{margin:0 0 var(--space-12)}
.chip.suggest{border-style:dashed;border-color:var(--accent);color:var(--accent-dark)}

/* One option card. The name link stretches over the whole card; ×, Yes/No and Start cooking sit above it. */
.opt{position:relative;display:flex;flex-direction:column;background:var(--card);border-radius:var(--radius-tile);box-shadow:var(--shadow);overflow:hidden;transition:opacity .2s ease,transform .2s ease}
.opt:hover{box-shadow:0 2px 4px rgb(60 40 20 / .07),0 12px 28px rgb(60 40 20 / .10)}

.opt h3{font-size:var(--text-17);line-height:1.25;font-weight:600;margin:0}
.opt.best h3{font-family:var(--serif);font-weight:400;font-size:var(--text-24)}

.mini{position:relative;z-index:2;min-height:36px;min-width:52px;padding:0 var(--space-12);border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-size:var(--text-15);font-weight:600}
.mini:hover{border-color:var(--ink)}
.skip{position:absolute;z-index:2;top:8px;right:8px;width:44px;height:44px;border-radius:50%;border:0;background:rgb(255 255 255 / .92);color:var(--ink);font-size:var(--text-24);line-height:1;display:grid;place-items:center}
.skip:hover{background:#fff}
.start{position:relative;z-index:2;margin-top:var(--space-8);min-height:56px;font-size:var(--text-17)}

@keyframes slide-in{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes shimmer{0%,100%{opacity:1}50%{opacity:.55}}

/* Sheets: Kitchen and More */

.sheet{position:fixed;z-index:21;left:0;right:0;bottom:0;max-height:86vh;overflow:auto;padding:var(--space-24) var(--gutter) calc(var(--space-16) + env(safe-area-inset-bottom));background:var(--page);border-radius:24px 24px 0 0;display:grid;gap:var(--space-12);box-shadow:0 -10px 30px rgb(0 0 0 / .15)}
.sheet h2{font:400 var(--text-24)/var(--leading-heading) var(--serif)}
.sheet-sub{font-size:var(--text-17);font-weight:600;margin:var(--space-12) 0 2px}
.sheet .small{font-size:var(--text-15)}
.sheet .button-primary{margin-top:var(--space-8)}
@media (min-width:700px){.sheet{left:50%;right:auto;bottom:50%;transform:translate(-50%,50%);width:min(560px,92vw);border-radius:var(--radius-tile)}}
.text-button.inline{min-height:44px;font-size:var(--text-15);padding:0}

.explore .opt h3{font-size:var(--text-17)}

/* Chips (used in Adjust): pills; selected = filled accent */
.chips{display:flex;flex-wrap:wrap;gap:var(--space-8)}
.chip{flex:none;min-height:48px;padding:0 var(--space-16);border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);font-size:var(--text-17);font-weight:600;white-space:nowrap}
.chip:hover{border-color:#cdbfae}
.chip.is-on{background:var(--accent);border-color:var(--accent);color:#fff}

/* Photos, or a plain gray block with the recipe name */
.media{position:relative;overflow:hidden;background:var(--placeholder)}
.media img{width:100%;height:100%;object-fit:cover;position:relative;z-index:1}
/* Designed card for meals without an allowlisted photo: warm tint, serif name, a small detail line. */
.media.is-empty{background:#F1E6DA}

.tags{display:flex;flex-wrap:wrap;gap:var(--space-8);margin-top:var(--space-12)}
.tags span{padding:var(--space-4) var(--space-12);border-radius:var(--radius-pill);background:var(--page);border:1px solid var(--line);font-size:var(--text-15);color:var(--muted);white-space:nowrap}
.meta{margin-top:var(--space-8);color:var(--muted);font-size:var(--text-17)}
.meta.big{font-size:var(--text-17);margin-top:var(--space-4)}
.need{margin-top:var(--space-8);font-size:var(--text-17)}
.empty{display:grid;gap:var(--space-16);justify-items:start;padding:var(--space-24);background:var(--card);border-radius:var(--radius);border:1px solid var(--line)}
.empty p{font-size:var(--text-17);font-weight:600}

.home-foot{margin-top:var(--space-48);padding-top:var(--gutter);border-top:1px solid var(--line);display:grid;gap:var(--space-12);font-size:var(--text-17);color:var(--muted)}
.home-foot nav{display:flex;flex-wrap:wrap;gap:var(--space-4) var(--space-24)}
.home-foot nav a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--ink)}
.home-foot p a{color:var(--ink);display:inline-block;min-height:44px;line-height:44px}

/* Buttons */
.button-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:64px;padding:var(--space-16) var(--space-24);border:0;border-radius:var(--radius-tile);background:var(--accent);color:#fff;font-size:var(--text-24);font-weight:600;text-decoration:none}
.button-primary:hover{background:var(--accent-dark)}
.button-primary:disabled{opacity:.45;cursor:not-allowed}
.button-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 var(--space-24);border-radius:var(--radius-pill);border:1px solid var(--ink);background:var(--card);font-weight:600;font-size:var(--text-17);text-decoration:none}
.text-button{min-height:48px;padding:0 var(--space-4);background:none;border:0;font-weight:600;text-decoration:underline;text-underline-offset:3px;font-size:var(--text-17)}
.back{display:inline-flex;align-items:center;min-height:48px;font-weight:600;font-size:var(--text-17);text-underline-offset:3px}

/* Recipe page */
.hero{aspect-ratio:4/3;border-radius:var(--radius);margin:var(--space-4) 0 0}

.credit{font-size:var(--text-13);color:var(--muted);margin-top:var(--space-8)}
.credit a{color:inherit}
.media.is-empty + .credit{display:none}
.recipe h1{margin-top:var(--gutter)}
.source{font-size:var(--text-17);color:var(--muted);margin-top:var(--space-12)}
.source a{color:var(--ink);font-weight:600}
.ingredients{list-style:none;padding:0;background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.ing{display:grid;gap:var(--space-4);padding:var(--space-16) var(--space-16);border-top:1px solid var(--line)}
.ing:first-child{border-top:0}
.ing-text{font-size:var(--text-17)}
.qty{font-weight:600}
.swap-link{justify-self:start;min-height:44px;padding:0;background:none;border:0;color:var(--accent-dark);font-size:var(--text-17);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.swap-panel{display:grid;gap:var(--space-8);margin:var(--space-4) 0 var(--space-8)}
.swap-opt{display:grid;gap:2px;text-align:left;min-height:56px;padding:var(--space-12) var(--space-16);border-radius:var(--radius-tile);border:1px solid var(--line);background:var(--page);font-size:var(--text-17)}
.swap-opt span{color:var(--muted);font-size:var(--text-17)}
.swap-opt em{font-style:normal;font-size:var(--text-15);color:var(--muted)}
.swap-opt.is-on{border-color:var(--accent);background:var(--accent-soft)}
.steps{padding:0;list-style:none;counter-reset:step;display:grid;gap:var(--space-24)}
.steps li{counter-increment:step;display:grid;grid-template-columns:44px minmax(0,1fr);gap:var(--space-16);font-size:var(--text-24);line-height:1.45}
.steps li::before{content:counter(step);display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;font-size:var(--text-17);font-weight:600;margin-top:-2px}
.steps .note{grid-column:2;font-size:var(--text-15)}
.cooked{margin-top:var(--space-48);display:grid;gap:var(--space-12)}
.result{padding:var(--space-24);background:var(--card);border:1px solid var(--line);border-radius:var(--radius);display:grid;gap:var(--space-8)}
.result-head{font:600 var(--text-24)/var(--leading-heading) var(--sans)}
.month{margin-top:var(--space-8);font-size:var(--text-17)}
.adjust{display:grid;gap:var(--space-16);padding:var(--space-16) var(--space-24);background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.field{display:grid;gap:var(--space-8)}
.label{font-weight:600;font-size:var(--text-17)}
.stepper{display:flex;align-items:center;gap:var(--space-16)}
.round{width:52px;height:52px;border-radius:50%;border:1px solid var(--ink);background:var(--card);font-size:var(--text-24);line-height:1}
.stepper output{font-size:var(--text-24);font-weight:600;min-width:2ch;text-align:center}
.money{display:flex;align-items:center;gap:var(--space-8);max-width:200px;padding:0 var(--space-16);border:1px solid var(--ink);border-radius:var(--radius-tile);min-height:56px;font-size:var(--text-24);font-weight:600;background:var(--card)}
.money input{width:100%;border:0;font:inherit;background:none;min-height:52px}
.money input:focus{outline:none}
.money:focus-within{outline:3px solid var(--accent);outline-offset:2px}
.result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-16)}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);margin:0;padding:var(--space-16) var(--gutter);border-radius:var(--radius-tile);background:var(--ink);color:#fff;font-size:var(--text-17);width:max-content;max-width:calc(100% - 40px);z-index:30}

.tag.draft{border-color:var(--ink);color:var(--ink);background:var(--card);font-weight:600}

/* Admin: recipes by tested status */

.button-secondary.small{min-height:44px;padding:0 var(--space-16);font-size:var(--text-15)}

/* My kitchen */
.kitchen .button-primary{margin-top:var(--space-32)}
.kitchen .text-button{display:block;margin:var(--space-12) auto 0}

/* Widths: Home and Explore use the screen; recipe, admin and other pages stay at a readable width */
#app,.bar{max-width:1200px}
.screen:not(.home):not(.explore):not(.landing):not(.picks){max-width:680px;margin-inline:auto}
@media (min-width:640px){
  #app,.bar{padding-inline:var(--space-32)}
  
  
  
}
/* Desktop: best match on the left, the other four as a 2×2 grid on the right, all above the fold */
@media (min-width:900px){
  
  
  
  
  
  
  
  
  
  
  
  
  
  .home h1{font-size:var(--text-34);margin-bottom:var(--space-8)}
  .results{margin-top:var(--space-12)}
  
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Phase 1: one question, comparison line, kitchen places and memory, cook mode, preview gate. */
.question{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-12);margin:0 0 var(--space-16);padding:var(--space-16) var(--space-16);background:var(--card);border-radius:var(--radius-tile);box-shadow:var(--shadow)}
.question-text{font-weight:600;font-size:var(--text-17)}
.question-actions{display:flex;gap:var(--space-8)}
.result .question-text{margin-top:var(--space-12)}
.result .question-actions{margin:var(--space-8) 0}
.compare{font-size:var(--text-15);color:var(--muted);margin:var(--space-8) 0 var(--space-12)}
.recipe .compare{margin-top:2px}
.place{font-size:var(--text-15);font-weight:600;color:var(--muted);margin:var(--space-16) 0 var(--space-8);text-transform:uppercase;letter-spacing:.04em}

.used-up{margin-top:var(--space-12);line-height:2}
.steps li.safety,.cook-step.safety{font-weight:600}
.steps li.safety::before{content:"Safety · ";color:var(--accent-dark)}
.cook{display:flex;flex-direction:column;min-height:calc(100dvh - 120px)}
.cook-what{font-weight:600;margin-top:var(--space-8)}
.dots{display:flex;gap:var(--space-8);list-style:none;padding:0;margin:var(--space-16) 0 var(--space-8)}
.dots li{flex:1;height:5px;border-radius:3px;background:var(--line)}
.dots li.is-done{background:var(--ink)}
.dots li.is-now{background:var(--accent)}
.cook-count{color:var(--muted);font-size:var(--text-15)}
.cook-step{font-size:var(--text-24);line-height:1.35;margin:var(--space-16) 0 var(--gutter);flex:1}
.cook-step:focus{outline:none}
.cook-step.safety::before{content:"Safety";display:block;font-size:var(--text-15);letter-spacing:.04em;text-transform:uppercase;color:var(--accent-dark);margin-bottom:var(--space-8)}
.cook-timer{margin-bottom:var(--space-12)}
.cook-timers .timer{display:flex;justify-content:space-between;align-items:center;gap:var(--space-12);padding:var(--space-12) var(--space-16);margin:0 0 var(--space-8);border-radius:var(--radius-tile);background:var(--card);box-shadow:var(--shadow)}
.cook-timers .timer.is-done{background:var(--accent-soft)}
.cook-nav{display:grid;grid-template-columns:1fr 2fr;gap:var(--space-12);margin:var(--space-8) 0 var(--space-12)}
.cook-nav button{min-height:56px}
.gate{display:grid;gap:var(--space-12);max-width:360px;margin:var(--space-8) 0 var(--gutter)}
.gate input{min-height:48px;padding:0 var(--space-16);border:1.5px solid var(--line);border-radius:var(--radius-tile);font:inherit;background:var(--card)}
/* First visit row; second meta line on cards. */

/* Photo review grid (preview only) and the recipe page photo credit. */
.photo-credit{margin-top:var(--space-32)}

/* ---------- UX redesign: Home, setup, picks, settings ---------- */
.eyebrow{font-size:var(--text-13);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-dark);margin:0}
.center{text-align:center}
.button-primary.big{min-height:64px;font-size:var(--text-24)}
/* Home: a warm welcome with one photo and one button */
.landing{padding-top:var(--space-8)}
.landing-grid{display:grid;gap:var(--space-24)}
.landing-copy{display:grid;gap:var(--space-16);align-content:start}
.landing h1{font-size:var(--text-34);margin:0}
.landing .lede{margin:0;font-size:var(--text-17)}
.returning h1{font-size:var(--text-34);margin:var(--space-4) 0 var(--space-16)}
@media (min-width:900px){
  .landing-grid{grid-template-columns:1.1fr 1fr;align-items:center;gap:var(--space-48)}
  .landing h1{font-size:var(--text-34)}
}
/* The featured pick: most space; Start cooking first */

.reason{font-size:var(--text-17);font-weight:600;margin:0}

.feature-links{display:flex;flex-wrap:wrap;gap:var(--space-4) var(--space-24);font-weight:600;margin:var(--space-8) 0 0}
.feature-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-underline-offset:3px}
.feature-links .button-primary{color:#fff}

/* Ingredient status: confirmed / check you have / missing */
.pick-status{font-weight:600;margin:2px 0 0;font-size:var(--text-17)}
.pick-status.is-ready{color:var(--color-text)}

.ing-tag{display:inline-block;margin-right:var(--space-8);padding:1px var(--space-8);border-radius:var(--radius-pill);font-size:var(--text-13);font-weight:600;letter-spacing:.02em;vertical-align:1px;border:1px solid var(--line);background:var(--page);color:var(--ink)}
.ing-tag.ok{border-color:#b9d8c5;background:#eef7f1;color:var(--color-text)}
.ing-tag.check{border-color:#ecd3a8;background:#fdf5e7;color:#7a4b00}
.ing-tag.missing{border-color:#efc2b4;background:var(--accent-soft);color:var(--accent-dark)}
/* Alternatives */

.alt{position:relative;display:grid;grid-template-columns:116px 1fr;gap:var(--space-12);align-items:center;background:var(--card);border-radius:var(--radius-tile);box-shadow:var(--shadow);overflow:hidden}

.alt h3{font-size:var(--text-17);line-height:1.25;margin:0}
.alt .pick-status{font-size:var(--text-15);font-weight:600;color:var(--muted)}
.alt .pick-status.is-ready{color:var(--color-text)}
@media (min-width:900px){.alt{grid-template-columns:1fr;align-items:stretch}}
/* Picks */
.picks .lede{margin-bottom:var(--space-12)}

.adjust{display:grid;gap:var(--space-8);padding:var(--space-16);margin:0 0 var(--space-16);background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.picks .question{margin-top:var(--space-4)}
.question .small{margin:0;flex-basis:100%}
.delivery{display:grid;gap:var(--space-4);margin:var(--space-16) 0 var(--space-8);padding:var(--space-16) var(--space-16);background:var(--card);border:1px solid var(--line);border-radius:var(--radius-tile)}
/* Setup: big tap targets, visible progress, Back and Next */
.setup{display:grid;gap:var(--space-12)}

.choices{display:grid;gap:var(--space-12)}
@media (min-width:700px){.choices{grid-template-columns:1fr 1fr}}
.choice{display:grid;gap:2px;justify-items:start;text-align:left;min-height:64px;padding:var(--space-16) var(--space-16);border-radius:var(--radius-tile);border:1.5px solid var(--line);background:var(--card);font-size:var(--text-17);font-weight:600}
.choice small{font-size:var(--text-15);font-weight:400;color:var(--muted)}
.choice:hover{border-color:#cdbfae}
.choice.is-on{border-color:var(--accent);box-shadow:inset 0 0 0 1.5px var(--accent);background:var(--accent-soft)}
.choice.is-on::after{content:"Selected";font-size:var(--text-13);font-weight:600;color:var(--accent-dark)}
.staples .chip{min-height:52px}

.settings .chips{margin-bottom:var(--space-4)}
.have-item{white-space:nowrap}
/* Home, picks and browse use more of a wide screen; setup, settings and recipes stay at a readable width. */
.screen.landing,.screen.picks,.screen.explore{max-width:1100px;margin-inline:auto}
@media (min-width:900px){.landing h1{font-size:var(--text-34)}.landing.returning h1{font-size:var(--text-34)}}

/* First-time Home: headline + CTA, then the live preview (one example meal). */

.offer{margin:calc(-1 * var(--space-4)) 0 0;font-size:var(--text-15);font-weight:600;color:var(--muted)}
.preview{display:grid;gap:var(--space-16);min-width:0}

.preview-title{margin:0;font-size:var(--text-13);font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

/* white on --accent is 4.3:1 at this size; the darker tomato passes 4.5:1 */

@media (min-width:900px){
  /* one composition: headline and preview start on the same line; no empty band above either */
  .landing:not(.returning) .landing-grid{grid-template-columns:1.05fr 1fr;align-items:start;gap:var(--space-64);padding-top:var(--space-24)}
  .landing:not(.returning) h1{font-size:var(--text-34)}
}

/* Header: Lobbe, Pricing, Sign in / Account (only where membership is on). */
.bar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-12)}
.top-nav{display:flex;gap:var(--space-8)}
.top-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--space-12);border-radius:var(--radius-pill);font-size:var(--text-17);font-weight:600;text-decoration:none}
.top-nav a:hover{background:var(--card)}
.top-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:5px}

/* Home: "Your kitchen tonight" under the intro; both columns size to their content. */

.chips.wrap{display:flex;flex-wrap:wrap;gap:var(--space-8)}

.landing-copy .button-primary.big{margin-top:var(--space-4)}

.preview-title{margin:0}
@media (min-width:900px){
  .landing:not(.returning) .landing-grid{grid-template-columns:1.1fr 1fr;align-items:start;gap:var(--space-48)}
  
  
}

/* Pricing, sign in, account. */
.plan-card{display:grid;gap:var(--space-12);padding:var(--space-24);border-radius:var(--radius-tile);background:var(--card);box-shadow:var(--shadow);margin-top:var(--space-8)}
.plan-name{margin:0;font:400 var(--text-34)/var(--leading-heading) var(--serif)}
.plan-price{margin:0;font-size:var(--text-17)}
.plan-price strong{font-size:var(--text-24)}
.plan-sub{margin:var(--space-8) 0 0;font-size:var(--text-17)}
.plan-list{display:grid;gap:var(--space-8);margin:0;padding-left:var(--gutter)}
.plan-cta{display:grid;gap:var(--space-8);margin-top:var(--space-8)}
.notice-line{margin:var(--space-8) 0 var(--space-12);padding:var(--space-12) var(--space-16);border-radius:var(--radius-tile);background:var(--accent-soft);font-weight:600}
.auth-form{display:grid;gap:var(--space-16);margin:var(--space-12) 0 var(--space-16)}
.auth-form input{width:100%;min-height:52px;padding:0 var(--space-16);border:1.5px solid var(--line);border-radius:var(--radius-tile);background:var(--card);font:inherit}
.auth-form input:focus-visible{border-color:var(--accent)}
.form-error{margin:0;color:#A3300B;font-weight:600;min-height:0}
.form-error:empty{display:none}
.account-list{display:grid;grid-template-columns:auto 1fr;gap:var(--space-12) var(--space-16);margin:var(--space-16) 0 var(--gutter)}
.account-list dt{font-weight:600}
.account-list dd{margin:0;display:grid;gap:var(--space-8);justify-items:start}

.needs-prompt{margin:calc(-1 * var(--space-8)) 0 var(--space-16)}
.center{text-align:center}

/* Paywall: landing with a marketing photo, and the sign-in / subscribe screen. */
.marketing-photo{margin:0}
.marketing-photo img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius-tile);box-shadow:var(--shadow)}
@media (min-width:900px){.marketing-photo img{aspect-ratio:1/1;max-height:520px}}
.gate .button-primary.big{margin-top:var(--space-8)}

/* Restaurant offers (members). */
.offer-card{display:grid;gap:var(--space-8);margin-top:var(--space-16);padding:var(--space-16);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}
.offer-gets{margin:0;font:600 var(--text-24)/var(--leading-heading) var(--sans)}
.offer-need{margin:0;font-weight:600}
.offer-facts{display:grid;grid-template-columns:auto 1fr;gap:var(--space-8) var(--space-16);margin:var(--space-4) 0}
.offer-facts dt{font-weight:600}
.offer-facts dd{margin:0}
.offer-terms summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.offer-code{padding:var(--space-16);border-radius:var(--radius-tile);background:var(--accent-soft);text-align:center}
.code-big{margin:var(--space-4) 0;font:600 var(--text-34)/var(--leading-body) var(--sans);letter-spacing:.14em}
.offer-used{font-weight:600;color:var(--muted)}
.test-label{margin:0;padding:var(--space-8) var(--space-12);border-radius:var(--radius-tile);background:var(--ink);color:#fff;font-size:var(--text-15);font-weight:600;justify-self:start}

/* review step and billing (legal disclosures) */
.review-list{display:grid;grid-template-columns:minmax(96px,auto) 1fr;gap:var(--space-12) var(--space-16);margin:var(--space-16) 0 var(--gutter)}
.review-list dt{font-weight:600}
.review-list dd{margin:0}
.review-list .plan-list{margin-top:var(--space-8)}
.review-form{display:grid;gap:var(--space-16)}
.lang-choice{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:var(--space-8) var(--space-16)}
.lang-choice legend{font-weight:600;margin-bottom:var(--space-8);padding:0}
.lang-choice label,.accept{display:flex;gap:var(--space-12);align-items:flex-start;min-height:44px}
.lang-choice input,.accept input{width:22px;height:22px;margin-top:2px;flex:none;accent-color:var(--ink)}
mark.todo{background:#FFE3CC;color:var(--ink);padding:0 var(--space-4);border-radius:4px}
.billing-actions{display:grid;gap:var(--space-12);justify-items:start;margin-bottom:var(--space-12)}
.billing-help{margin:0 0 var(--space-16)}
.billing-help summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.terms-links{margin:var(--space-12) 0 var(--space-16)}
.nowrap{white-space:nowrap}
@media (max-width:520px){.review-list{grid-template-columns:1fr;gap:var(--space-4)}.review-list dd{margin-bottom:var(--space-12)}}

/* ---------- member app polish (same tokens as the landing page) ---------- */
/* Early-release note: a product note, not a warning. Cream card, orange eyebrow, body text in ink. */

/* Home: one headline, the kitchen card with Find my dinner as its last step. */

.landing-copy{gap:var(--space-16)}

/* Returning home: Find my dinner is the main thing; tonight's pick is a compact card under it. */

/* Results: one meta line everywhere (time · equipment · estimated cost). */

.alt h3{font:400 var(--text-17)/var(--leading-heading) var(--serif)}

/* No suitable photo: a deliberate text-first card (cook time + equipment), tinted by appliance. */
.media.is-empty{background:var(--tf,#F1E6DA)}

.hero.is-empty{aspect-ratio:16/7}

/* Recipe page: tighter header. */
.recipe .meta.big{color:var(--ink);font-weight:600}
.recipe .start-recipe{margin:var(--space-16) 0 var(--space-16)}
.cost-note{margin-top:var(--space-16)}

/* Restaurant offers: empty and error states are separate, complete cards. */
.state-card{display:grid;gap:var(--space-12);justify-items:start;margin-top:var(--space-12);padding:var(--space-24) var(--gutter);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}
.state-card .state-title{margin:0;font:400 var(--text-24)/var(--leading-heading) var(--serif)}
.state-card p{margin:0}
.state-card.is-error{box-shadow:none;border:1.5px solid var(--line)}
.state-card .button-secondary{margin-top:var(--space-4)}

.offers-note{margin-top:var(--gutter)}
.alt{align-items:stretch}

.pricing > .muted.small{margin-top:var(--space-12)}

/* ================= Dinner (menu grid) and Recipe (cookbook spread) ================= */
#app{padding:0 var(--space-16) var(--space-64)}
.bar{max-width:1100px;padding:var(--space-8) var(--space-16) 0;display:flex;align-items:center;justify-content:space-between;gap:var(--space-8)}
.top-nav{gap:0;flex-wrap:wrap;justify-content:flex-end}
.top-nav a{padding:0 var(--space-8);font-size:var(--text-15)}
@media (max-width:359px){.top-nav a{padding:0 var(--space-8);font-size:var(--text-15)}}

/* Compact early-release note */

/* Dinner */
.screen.dinner{max-width:1040px;margin-inline:auto;padding-top:0}
.dinner h1{font:400 var(--text-34)/var(--leading-heading) var(--serif);letter-spacing:-.02em;margin:0 0 var(--space-12)}

.ts-label{font-size:var(--text-13);font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.ts-line{font-size:var(--text-17);font-weight:600}
.ts-have{font-size:var(--text-15);color:var(--muted)}

.dinner .adjust{margin:0 0 var(--gutter)}

/* The grid: flat; the photo panel is the only boxed surface. 2 columns on phones, 3 on desktop,
   1 at very narrow widths or with large text (the column minimum is in rem). */

.dish{min-width:0}

.dinner .question{margin-top:var(--space-24)}
.dinner .needs-prompt{margin-top:var(--space-16)}

/* Text-first tiles: a printed menu card on oat (name, time, appliance, match) */
.hero.is-empty{background:var(--oat)}

/* Recipe: one dish, then how to start */
.screen.recipe{max-width:980px;margin-inline:auto;padding-top:0}

.recipe .back-top{margin:0 0 var(--space-4);font-size:var(--text-17)}
.recipe .back-top::before{content:"←";margin-right:var(--space-8);text-decoration:none;display:inline-block}

.recipe .hero{height:clamp(240px,70vw,290px);aspect-ratio:auto;border-radius:var(--radius-tile);margin:0;background:var(--oat)}
.recipe .hero img{object-position:50% 55%}
.recipe-summary{display:grid;gap:var(--space-4);align-content:start}
.recipe .recipe-title{margin:0;font:600 var(--text-34)/var(--leading-body) var(--sans);letter-spacing:-.015em}
.recipe-meta{font-size:var(--text-17);font-weight:600}
.recipe-status{font-size:var(--text-15);font-weight:600;color:var(--muted)}
.recipe-status.is-ready{color:var(--ready)}
.recipe-status.is-missing{color:var(--deep)}
.recipe-cost{font-size:var(--text-15);color:var(--muted)}
.recipe .start-recipe{margin:var(--space-12) 0 0;width:100%}
@media (min-width:760px){
  
  .recipe .hero{height:auto;aspect-ratio:1}
  .recipe .start-recipe{width:auto;justify-self:start;padding-inline:var(--space-32)}
}
.recipe .section-title{margin:var(--space-32) 0 var(--space-12)}
.ing-group{margin:var(--space-16) 0 var(--space-8);font-size:var(--text-13);font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.recipe .ingredients{display:grid;gap:var(--space-8);padding:0;margin:0;border:0;background:none;border-radius:0}
.recipe .ing{padding:var(--space-12) var(--space-16);border:0;border-radius:var(--radius-tile);background:var(--oat)}
.recipe .ing-text{font-size:var(--text-17)}
.recipe .ing-text .qty{font-weight:600}
.recipe .ing-tag{margin:0 0 0 var(--space-8)}
.recipe .steps{gap:var(--space-16)}
.recipe .steps li{font-size:var(--text-17);grid-template-columns:36px minmax(0,1fr);gap:var(--space-12)}
.recipe .steps li::before{width:32px;height:32px;font-size:var(--text-15);background:var(--ink)}
.recipe .delivery{margin-top:var(--space-32)}
#app .screen.recipe{max-width:980px}
/* Inline links keep their look but get a 44 px tap area */
.needs-prompt a{display:inline-block;padding:var(--space-12) 0;margin:calc(-1 * var(--space-12)) 0}

/* revisions after the screenshot review */
.bar .logo img{width:72px;height:auto}
.top-nav{flex-wrap:nowrap}
.top-nav a{padding:0 var(--space-8);font-size:var(--text-15)}
@media (max-width:374px){.top-nav a{padding:0 var(--space-4);font-size:var(--text-15)}}

.recipe .hero.is-empty{height:clamp(170px,48vw,210px)}
@media (min-width:760px){.recipe .hero.is-empty{height:auto;aspect-ratio:1}}
/* Desktop: header and Dinner/Browse/Recipe share one 960 px column */
.bar{max-width:992px}
#app:has(.screen.dinner),#app:has(.screen.explore),#app:has(.screen.recipe){max-width:992px}
#app .screen.dinner,#app .screen.explore,#app .screen.recipe{max-width:960px}

/* ================= Finish the dinner experience ================= */
/* Dinner header: summary, one Edit action, then the time question right above the meals */
.dinner h1{margin:0 0 var(--space-12)}

.ts-line{font-size:var(--text-17)}
.ts-have{font-size:var(--text-15);line-height:1.4}

.dinner .adjust{margin:var(--space-16) 0 var(--space-8);padding:var(--space-16);border-radius:var(--radius-tile);background:var(--card);border:1px solid var(--line)}
.dinner .adjust .sheet-sub{margin:var(--space-16) 0 var(--space-8);font-size:var(--text-17)}
.dinner .adjust .sheet-sub:first-child{margin-top:0}
.dinner .adjust [data-adjust-done]{margin-top:var(--space-12);width:100%}

/* Ingredient tiles: one image mapping for the kitchen picker, "Still have these?" and the recipe */
.pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.6rem,1fr));gap:var(--space-8)}
.pick{position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--space-4);min-height:44px;padding:var(--space-8) var(--space-8) var(--space-8);border:1.5px solid var(--line);border-radius:var(--radius-tile);background:var(--card);text-align:center;line-height:1.2}
.pick-img{display:block;width:56px;height:56px;border-radius:var(--radius-tile);overflow:hidden;background:var(--oat)}
.pick-img img{width:100%;height:100%;object-fit:cover}

.pick-name{font-size:var(--text-15);font-weight:600;overflow-wrap:anywhere}

.pick.is-on{border-color:var(--ink);background:var(--peach)}

.still .pick:not(.is-on){background:var(--page);border-style:dashed}
.still .pick:not(.is-on) .pick-img{opacity:.45;filter:grayscale(1)}
.still .pick:not(.is-on) .pick-name{text-decoration:line-through;color:var(--muted)}

/* "Still have these?" check-in */
.still{margin:var(--space-16) 0 var(--space-4);padding:var(--space-16);border-radius:var(--radius-tile);background:var(--oat)}

.still .pick-img{width:48px;height:48px}

/* One continuous menu: groups with thin rules, flat grid, text tiles where a photo is missing */
.results{margin-top:var(--space-16)}

.dish-group{margin-top:var(--space-12)}
.dish-group + .dish-group{margin-top:var(--space-32);padding-top:var(--space-16);border-top:1px solid var(--line)}
.group-title{font:400 var(--text-24)/var(--leading-heading) var(--serif);color:var(--accent-dark);margin:0 0 var(--space-4)}

.dinner .empty{margin-top:var(--space-8);padding:var(--space-16);border-radius:var(--radius-tile);background:var(--card);border:1px solid var(--line)}
.dinner .empty h2{font:600 var(--text-17)/var(--leading-body) var(--sans);margin-bottom:var(--space-8)}
.dinner .empty .widen{margin-top:var(--space-12)}

/* Recipe: photo, title and essentials, Start cooking, then ingredient tiles and numbered steps */
.recipe .hero{height:clamp(220px,64vw,270px)}
@media (max-height:700px) and (max-width:759px){.recipe .hero{height:200px}}
.recipe .hero img{width:100%;height:100%;object-fit:cover;object-position:50% 50%}
.recipe-cost{font-size:var(--text-15);color:var(--ink)}
@media (min-width:760px){.recipe .hero{aspect-ratio:4/3;max-width:520px}}
.recipe .ingredients{grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr))}
.recipe .ing{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;column-gap:var(--space-12);padding:var(--space-8) var(--space-12) var(--space-8) var(--space-8);min-height:64px}

.ing-img{width:48px;height:48px;border-radius:var(--radius-tile);overflow:hidden;background:var(--card)}
.ing-img img{width:100%;height:100%;object-fit:cover}
.recipe .ing .swap-link,.recipe .ing .swap-panel{grid-column:1/-1}

.recipe .ing-text{font-size:var(--text-17);line-height:1.35}
.recipe .ing.is-missing{background:var(--peach)}
.recipe .cooked{margin-top:var(--space-24);padding-top:var(--space-16);border-top:1px solid var(--line)}

/* Mixed grid: text cards sit in the same columns as photo tiles, top-aligned */

/* Phone recipe hero: the photo's own 4:3 frame (about 268 px at 390), never taller than 270 px */
@media (max-width:759px){.recipe .hero{height:auto;aspect-ratio:4/3;max-height:270px}}
@media (max-height:700px) and (max-width:759px){.recipe .hero{max-height:200px}}
.account-list dd{min-width:0;overflow-wrap:anywhere}

/* Home for a returning cook: one card, one primary action */
.home-member{display:grid;gap:var(--space-16);max-width:560px}
.home-member h1{font-size:var(--text-34);margin:0}
.home-kitchen{display:grid;gap:var(--space-4);padding:var(--space-16);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow)}
.home-kitchen p{margin:0}
.home-kitchen .text-link{justify-self:start;margin-top:var(--space-8);font-weight:600}
.home-find{justify-self:stretch;text-align:center}
.free-more{margin-top:calc(-1 * var(--space-4))}

/* ---------- Dinner: one card for every section (2 / 3 / 4 columns), square image, aligned text ---------- */
#app:has(> .screen.dinner),#app:has(> .screen.explore){max-width:1120px;padding-inline:var(--gutter)}
.screen.dinner .still,.screen.dinner .adjust{max-width:640px}
.menu-grid{list-style:none;margin:var(--space-12) 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--space-12);row-gap:var(--space-24)}
@media (min-width:640px){.menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1024px){.menu-grid{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--space-16)}}
.menu-card{min-width:0}
.menu-link{display:grid;grid-template-rows:auto auto auto auto auto;gap:var(--space-4);color:inherit;text-decoration:none;border-radius:var(--radius-tile)}
.menu-link:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.menu-tile{position:relative;display:block;aspect-ratio:1;border-radius:var(--radius-tile);background:var(--placeholder);overflow:hidden;margin-bottom:var(--space-8)}
.menu-img{position:absolute;inset:0;display:grid;place-items:center}
.menu-img img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.menu-img.is-empty{color:#B9AC9C}
.menu-img .bowl{width:42%;height:auto}
@media (hover:hover){.menu-link:hover .menu-img img{transform:scale(1.03)}.menu-link:hover .menu-title{text-decoration:underline;text-underline-offset:3px}}

/* Two lines reserved for every title, one for time and method, two for pantry status, one for cost: rows line up. */
.menu-title{font:600 var(--text-17)/var(--leading-body) var(--sans);min-height:2.5em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.menu-meta{display:grid;font-size:var(--text-15);line-height:1.3;color:var(--muted)}
.menu-meta > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-status{font-size:var(--text-15);line-height:1.3;font-weight:600;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.menu-status.is-ready{color:var(--color-text)}.menu-status.is-missing{color:var(--accent-dark)}

.dish-group + .dish-group{margin-top:var(--space-32)}
.group-title{margin:var(--space-16) 0 0}

/* ---------- Recipe: big plate, method switch, ingredient grid, pinned Start cooking ---------- */
.recipe-hero{display:grid;place-items:center;aspect-ratio:4/3;max-height:62vh;border-radius:var(--radius-tile);background:var(--placeholder);overflow:hidden;margin:var(--space-4) 0 var(--space-16)}
.recipe-hero img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 6px 14px rgb(60 40 20 / .14))}
.recipe-hero.is-empty{aspect-ratio:16/7;color:#B9AC9C}
.recipe-hero .bowl{width:22%;max-width:110px}
.recipe-summary{display:grid;gap:var(--space-8);margin-bottom:var(--space-8)}
.recipe-title{margin:0}
.method-switch{display:flex;flex-wrap:wrap;gap:var(--space-8);margin:var(--space-4) 0}
.method{display:inline-flex;align-items:center;min-height:44px;padding:0 var(--space-16);border-radius:var(--radius-pill);border:1.5px solid var(--line);background:var(--card);color:var(--ink);font-weight:600;font-size:var(--text-15);text-decoration:none}
.method.is-on{border-color:var(--ink);background:var(--ink);color:#fff}
.recipe .ingredients{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-12);padding:0;margin:var(--space-8) 0 0;border:0;background:none}
@media (min-width:360px){.recipe .ingredients{grid-template-columns:repeat(3,minmax(0,1fr))}}
.recipe .ing{display:grid;grid-template-columns:1fr;grid-template-areas:none;align-content:start;justify-items:center;gap:var(--space-8);padding:var(--space-12) var(--space-8);border:0;border-radius:var(--radius-tile);background:var(--card);box-shadow:var(--shadow);text-align:center}
.recipe .ing.is-missing{box-shadow:inset 0 0 0 2px #efc2b4,var(--shadow)}
.recipe .ing:has(.swap-panel:not([hidden])){grid-column:1/-1;justify-items:stretch;text-align:left}
.recipe .ing-img{grid-area:auto;width:56px;height:56px;border-radius:var(--radius-tile);overflow:hidden;background:var(--placeholder)}
.recipe .ing > *{grid-column:1;grid-row:auto}
.recipe .ing-img img{width:100%;height:100%;object-fit:cover}

.recipe .ing-text{font-size:var(--text-15);line-height:1.3;display:grid;gap:var(--space-4);justify-items:center}
.recipe .ing .qty{display:block;font-weight:600}
.recipe .ing-tag{margin:2px 0 0}
.recipe .swap-link{font-size:var(--text-13)}
.start-bar{position:sticky;bottom:0;z-index:2;margin:var(--space-16) calc(-1 * var(--gutter)) 0;padding:var(--space-12) var(--gutter) calc(var(--space-12) + env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgb(251 247 242 / 0),var(--page) 28%)}
.start-bar .start-recipe{display:flex;justify-content:center;width:100%;margin:0}
.recipe .start-recipe{margin:0}

/* ---------- The sheet (phones) / centred dialog (desktop) ---------- */
body.sheet-open{overflow:hidden}
.under{position:fixed;left:0;right:0;z-index:1;pointer-events:none}
body.sheet-open header.bar{position:relative;z-index:2;background:var(--page)}
.under > *{max-width:1120px;margin-inline:auto;padding-inline:var(--gutter)}
.sheet-scrim{position:fixed;inset:0;z-index:3;background:rgb(31 27 23 / .38)}
#app.as-sheet{position:fixed;left:0;right:0;bottom:0;z-index:4;max-width:none;max-height:92vh;max-height:92dvh;overflow:auto;overscroll-behavior:contain;margin:0;padding:0 var(--gutter);background:var(--page);border-radius:var(--radius-tile) var(--radius-tile) 0 0;box-shadow:0 -8px 30px rgb(31 27 23 / .18)}
.as-sheet .sheet-bar{position:sticky;top:0;z-index:3;display:flex;justify-content:flex-end;margin:0 calc(-1 * var(--gutter));padding:var(--space-8) var(--space-12) 0;background:linear-gradient(to bottom,var(--page) 70%,rgb(251 247 242 / 0))}
.sheet-x{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--radius-pill);background:var(--card);color:var(--ink);box-shadow:var(--shadow);cursor:pointer}
.sheet-x:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.as-sheet .back-top{display:none}
.as-sheet .screen{padding-top:0}
@media (min-width:768px){
  #app.as-sheet{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(720px,calc(100vw - 48px));max-height:88vh;border-radius:var(--radius-tile)}
}
@media (prefers-reduced-motion:no-preference){#app.as-sheet{animation:sheet-up .22s ease-out}@keyframes sheet-up{from{transform:translateY(24px);opacity:.6}}}
@media (min-width:768px) and (prefers-reduced-motion:no-preference){#app.as-sheet{animation:none}}
/* Free recipes: the unlock panel on a recipe preview, and the membership offer after the free ones are used */
.unlock-panel{display:grid;gap:var(--space-12);margin-top:var(--space-8);padding:var(--space-24);background:var(--card);border:1px solid var(--line);border-radius:var(--radius)}
.unlock-panel .section-title{margin:0}
.unlock-panel p{margin:0}
.unlock-panel .button-primary{width:100%;text-align:center}
.screen.upgrade .plan-card{margin-top:var(--space-16)}
.terms-list{display:grid;gap:var(--space-4);margin:var(--space-16) 0;padding:var(--space-16) 0 0;border-top:1px solid var(--line)}
.terms-list dt{font-weight:600;margin-top:var(--space-8)}
.terms-list dd{margin:0;color:var(--muted)}
.plan-cta .button-primary{width:100%;text-align:center}
/* Kitchen in one screen (#/ first visit, #/start): equipment, use something up, usual ingredients; See meals stays in view */
.kitchen-setup{padding-bottom:var(--space-64)}
.ks-step{display:grid;gap:var(--space-12);margin-top:var(--space-24)}
.ks-label{margin:0;font-size:var(--text-17);font-weight:600}
.ks-label .muted{font-weight:400;font-size:var(--text-15);margin-left:var(--space-4)}
.ks-step .muted.small{margin:calc(-1 * var(--space-4)) 0 0}
.ks-preset{border-style:dashed}
.ks-picked{margin-top:var(--space-16)}
.ks-bar{display:flex;align-items:center;gap:var(--space-12)}
.ks-bar .button-primary{flex:1;text-align:center}
.ks-bar .text-button{flex:none;min-height:44px;padding:0 var(--space-8)}
/* Dinner: the few choices first, then the rest; one-line "Still have …?"; undo after a kitchen change */
.dish-group.lead{margin-top:var(--space-8)}

.still-line{margin:var(--space-12) 0 var(--space-4);padding:var(--space-12) var(--space-16);border-radius:var(--radius-tile);background:var(--oat);display:grid;gap:var(--space-8)}
.still-q{margin:0;font-weight:600}
.still-actions{display:flex;flex-wrap:wrap;gap:var(--space-8);align-items:center}
/* Recipe: I have this / I don't have this beside each needed ingredient */
.ing-mine{display:flex;flex-wrap:wrap;justify-content:center;gap:2px var(--space-12);font-size:var(--text-15)}
.ing-mine .text-button{min-height:36px;font-size:var(--text-15);color:var(--deep)}

/* ===== redesign (tokens only: tests/design-tokens.test.mjs checks this layer) ===== */
body{font:var(--weight-regular) var(--text-17)/var(--leading-body) var(--sans);color:var(--color-text);background:var(--color-page)}
#app{max-width:1120px;margin:0 auto;padding:0 var(--gutter) var(--space-64)}
.screen{padding-top:0}
h1,.dinner h1,.home-member h1,.recipe .recipe-title{font:var(--weight-regular) var(--text-34)/var(--leading-heading) var(--serif);letter-spacing:0;margin:var(--space-32) 0 var(--space-16)}
.group-title,.section-title,.ks-label,.plan-name{font:var(--weight-regular) var(--text-24)/var(--leading-heading) var(--serif);color:var(--color-text);margin:0 0 var(--heading-gap)}
.lede{font-size:var(--text-17);color:var(--color-muted);margin:0 0 var(--space-24)}
.hint{font-size:var(--text-13);color:var(--color-muted);margin:0 0 var(--space-12)}
:focus-visible{outline:2px solid var(--color-accent);outline-offset:var(--space-4)}

/* Header: logo left, account icon (or Skip) right; Dinner / Kitchen tabs; one quiet early-release line */
.bar{max-width:1120px;margin:0 auto;padding:var(--space-8) var(--gutter) 0;display:flex;align-items:center;justify-content:space-between;gap:var(--space-8)}
.bar .logo img{width:72px;height:auto}
.bar-right{display:flex;align-items:center;min-height:44px}
.account-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--radius-pill);color:var(--color-text)}
.account-icon[aria-current]{color:var(--color-accent)}
.bar-skip{padding:0 var(--space-4)}
.tabs{max-width:1120px;margin:0 auto;padding:0 var(--gutter);display:flex;justify-content:flex-start;gap:var(--space-24);border-bottom:1px solid var(--color-line)}
.tabs a{display:inline-flex;align-items:center;min-height:44px;padding:0;font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans);color:var(--color-muted);text-decoration:none;border-radius:0;border-bottom:2px solid transparent}
.tabs a[aria-current]{color:var(--color-text);border-bottom-color:var(--color-accent)}
.release-line{max-width:1120px;margin:0 auto;padding:var(--space-8) var(--gutter) 0;font-size:var(--text-13);color:var(--color-muted)}
.release-line a{color:inherit}
.site-foot{max-width:1120px;margin:0 auto;padding:var(--space-24) var(--gutter) var(--space-32);display:flex;flex-wrap:wrap;gap:0 var(--space-24);font-size:var(--text-15)}
.site-foot a{font-weight:var(--weight-strong);text-decoration:none}

/* Buttons: one primary per screen; everything else is a text button */
.button-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:var(--space-48);padding:0 var(--space-24);border:0;border-radius:var(--radius-pill);background:var(--color-accent);color:#fff;font:var(--weight-strong) var(--text-17)/var(--leading-heading) var(--sans);text-decoration:none}
.button-primary:hover{background:var(--color-accent-pressed)}
.text-button,.text-button.inline{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans);color:var(--color-text);text-decoration:none;cursor:pointer}
.chips{display:flex;flex-wrap:wrap;gap:var(--space-8)}
.chip{display:inline-flex;align-items:center;min-height:var(--control);padding:0 var(--space-16);border-radius:var(--radius-pill);border:1px solid var(--color-line);background:var(--color-surface);font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans);color:var(--color-text);text-decoration:none}
.chip.is-on{background:var(--color-accent);border-color:var(--color-accent);color:#fff}
.mini{min-height:var(--control);padding:0 var(--space-12);border-radius:var(--radius-pill);border:1px solid var(--color-line);background:var(--color-surface);font:var(--weight-strong) var(--text-13)/var(--leading-body) var(--sans)}

/* Dinner: one kitchen line, one segmented time control, then sections of the same card */
.kitchen-line{display:flex;align-items:center;gap:var(--space-12);margin:0 0 var(--space-16);font-size:var(--text-15)}
.kl-text{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:var(--control);border-radius:var(--radius-pill);background:var(--color-surface);box-shadow:inset 0 0 0 1px var(--color-line)}
.seg-opt{min-width:0;padding:0 var(--space-4);border:0;border-radius:var(--radius-pill);background:none;font:var(--weight-strong) var(--text-15)/var(--leading-heading) var(--sans);color:var(--color-text);white-space:nowrap}
.seg-opt[aria-checked="true"]{background:var(--color-accent);color:#fff}
.still-line{display:grid;gap:var(--space-8);margin:0 0 var(--space-16);padding:var(--space-12) var(--space-16);border-radius:var(--radius-tile);background:var(--color-tile)}
.still-q{margin:0;font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans)}
.still-actions{display:flex;flex-wrap:wrap;gap:var(--space-8);align-items:center}
.results{margin-top:var(--section-gap)}
.dish-group{margin:0}
.dish-group + .dish-group{margin-top:var(--section-gap);padding:0;border:0}
.menu-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--space-12);row-gap:0}
@media (min-width:640px){.menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1024px){.menu-grid{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--space-16)}}
/* subgrid: image, title, meta and status line up across each row */
.menu-card{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;margin:0 0 var(--space-32);min-width:0}
.menu-link{grid-row:1 / -1;display:grid;grid-template-rows:subgrid;row-gap:var(--space-4);color:inherit;text-decoration:none;border-radius:var(--radius-tile)}
.menu-tile{display:block;aspect-ratio:1;margin:0 0 var(--space-8);border-radius:var(--radius-tile);background:var(--color-tile);box-shadow:var(--shadow-tile);overflow:visible}
.menu-img{display:block;width:100%;height:100%}
.menu-img img{width:100%;height:100%;object-fit:contain;filter:var(--food-shadow)}
.menu-title{align-self:start;font:var(--weight-strong) var(--text-17)/var(--leading-heading) var(--sans);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.menu-meta{font-size:var(--text-13);line-height:var(--leading-body);color:var(--color-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-status{font:var(--weight-strong) var(--text-13)/var(--leading-body) var(--sans);color:var(--color-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (hover:hover){.menu-link:hover .menu-title{text-decoration:underline;text-underline-offset:var(--space-4)}}
.needs-prompt,.kept{margin-top:var(--space-24)}
.dinner .empty,.empty{display:grid;gap:var(--space-12);justify-items:start;padding:var(--space-16);border-radius:var(--radius-tile);background:var(--color-surface);box-shadow:var(--shadow-tile)}
.empty h2{font:var(--weight-strong) var(--text-17)/var(--leading-heading) var(--sans)}
.question{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-8) var(--space-12);margin-top:var(--space-24);padding:var(--space-12) var(--space-16);border-radius:var(--radius-tile);background:var(--color-tile);box-shadow:none}
.question-text{font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans)}

/* Kitchen screen (#/ first visit, #/start, the Edit sheet): sections 48 px apart, See meals pinned full width */
.kitchen-setup{padding-bottom:var(--space-64)}
.ks-step{display:block;margin-top:var(--section-gap)}
.ks-step:first-of-type{margin-top:var(--space-32)}
.ks-presets{margin-bottom:var(--space-16)}
.ks-picked{margin-top:var(--space-24)}
.search{display:block;margin-top:var(--space-16)}
.search input{width:100%;height:var(--control);padding:0 var(--space-16);border:1px solid var(--color-line);border-radius:var(--radius-pill);background:var(--color-surface);font:var(--weight-regular) var(--text-15)/var(--leading-body) var(--sans);color:var(--color-text)}
.search-results{list-style:none;margin:var(--space-8) 0 0;padding:0;display:grid;gap:var(--space-4)}
.search-item{width:100%;min-height:44px;padding:0 var(--space-12);border:0;border-radius:var(--radius-tile);background:var(--color-surface);text-align:left;font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans);color:var(--color-text)}
.search-item[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--color-text)}

/* Ingredient tiles: three columns, square cutout tile, label below; selected = 2 px text-colour outline + small check */
.pick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-16) var(--space-12)}
.pick{position:relative;display:grid;gap:var(--space-8);min-height:0;padding:0;border:0;background:none;text-align:center;color:var(--color-text)}
.pick-img{display:block;width:auto;height:auto;aspect-ratio:1;border-radius:var(--radius-tile);background:var(--color-tile);box-shadow:var(--shadow-tile);overflow:visible}
.pick-img img{width:100%;height:100%;object-fit:contain;filter:var(--food-shadow)}
.pick.is-on .pick-img{outline:2px solid var(--color-text);outline-offset:-2px}
.pick-name{font:var(--weight-strong) var(--text-13)/var(--leading-body) var(--sans)}
.pick-check{display:none;position:absolute;top:var(--space-8);right:var(--space-8);width:20px;height:20px;border-radius:var(--radius-pill);background:var(--color-text)}
.pick-check::after{content:"";position:absolute;left:7px;top:3px;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.pick.is-on .pick-check{display:block}

/* Sticky action (See meals, Start cooking): full width, above the safe area */
.start-bar{position:sticky;bottom:0;z-index:2;margin:var(--space-24) calc(-1 * var(--gutter)) 0;padding:var(--space-12) var(--gutter) calc(var(--space-12) + env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgb(251 247 242 / 0),var(--color-page) 30%)}
.start-bar .button-primary{width:100%;margin:0}

/* One toast: 13 px, above the safe area and above any pinned action (--toast-lift, set by main.js) */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--toast-lift, env(safe-area-inset-bottom)) + var(--space-8));z-index:30;display:flex;align-items:center;gap:var(--space-12);width:max-content;max-width:calc(100vw - var(--gutter) * 2);margin:0;padding:var(--space-8) var(--space-8) var(--space-8) var(--space-16);border-radius:var(--radius-pill);background:var(--color-text);color:#fff;font:var(--weight-regular) var(--text-13)/var(--leading-body) var(--sans);box-shadow:var(--shadow-tile)}
.toast:not(:has(button)){padding-right:var(--space-16)}
.toast-undo{min-height:32px;padding:0 var(--space-12);border:0;border-radius:var(--radius-pill);background:#fff;color:var(--color-text);font:var(--weight-strong) var(--text-13)/var(--leading-heading) var(--sans)}

/* Recipe: cutout hero on the flat tile, plain-text statuses, ingredients as rows (a picture only where one is approved) */
.recipe-hero{display:block;aspect-ratio:1;max-height:56vh;margin:var(--space-8) auto var(--space-16);border-radius:var(--radius-tile);background:var(--color-tile);box-shadow:var(--shadow-tile)}
.recipe-hero img{width:100%;height:100%;object-fit:contain;filter:var(--food-shadow)}
.recipe-status,.recipe-status.is-ready,.recipe-status.is-missing{font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans);color:var(--color-text)}
.recipe-meta,.recipe-cost{font-size:var(--text-15);color:var(--color-muted)}
.recipe .ingredients{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-8);margin:0;padding:0}
.recipe .ing{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:var(--space-4);padding:var(--space-12) var(--space-16);border-radius:var(--radius-tile);background:var(--color-surface);box-shadow:var(--shadow-tile);text-align:left}
.recipe .ing:has(.ing-img){grid-template-columns:var(--space-48) minmax(0,1fr);column-gap:var(--space-12);align-items:center}
.recipe .ing:has(.ing-img) > :not(.ing-img){grid-column:2}
.recipe .ing.is-missing{box-shadow:inset 0 0 0 2px var(--color-text)}
.recipe .ing-img{grid-column:1;grid-row:1 / span 3;width:var(--space-48);height:var(--space-48);border-radius:var(--radius-tile);background:var(--color-tile);overflow:visible}
.recipe .ing-img img{width:100%;height:100%;object-fit:contain}
.recipe .ing-text{display:block;font-size:var(--text-15);line-height:var(--leading-body);justify-items:start}
.ing-tag,.ing-tag.missing,.ing-tag.check{display:inline;margin:0 0 0 var(--space-8);padding:0;border:0;background:none;font:var(--weight-strong) var(--text-13)/var(--leading-body) var(--sans);color:var(--color-text)}
.ing-mine{display:flex;flex-wrap:wrap;gap:0 var(--space-16)}
.ing-mine .text-button{min-height:var(--control);font-size:var(--text-13)}
.method{min-height:var(--control);padding:0 var(--space-12);border-radius:var(--radius-pill);border:1px solid var(--color-line);background:var(--color-surface);font:var(--weight-strong) var(--text-13)/var(--leading-body) var(--sans)}
.method.is-on{background:var(--color-accent);border-color:var(--color-accent);color:#fff}
.unlock-panel{display:grid;gap:var(--space-12);margin-top:var(--space-24);padding:var(--space-24) var(--space-16);border:0;border-radius:var(--radius-tile);background:var(--color-surface);box-shadow:var(--shadow-tile)}
#app.as-sheet{padding:0 var(--gutter);border-radius:var(--radius-tile) var(--radius-tile) 0 0}
.as-sheet h1{margin-top:var(--space-8)}
.home-kitchen{display:grid;gap:var(--space-4);padding:var(--space-16);border-radius:var(--radius-tile);background:var(--color-surface);box-shadow:var(--shadow-tile)}
.home-member{display:grid;gap:var(--space-16)}
.ing-group{margin:var(--space-16) 0 var(--space-8);font:var(--weight-strong) var(--text-13)/var(--leading-body) var(--sans);letter-spacing:0;text-transform:none;color:var(--color-muted)}
.eyebrow{font:var(--weight-strong) var(--text-13)/var(--leading-body) var(--sans);letter-spacing:0;text-transform:none;color:var(--color-muted)}
/* One accent: only the primary button and active (selected) states. Everything else in text colour. */
.chip.suggest{border-style:dashed;border-color:var(--color-text);color:var(--color-text)}
.swap-link{color:var(--color-text);text-decoration:none;font-weight:var(--weight-strong)}
.steps li.safety::before,.cook-step.safety::before{background:var(--color-text);color:#fff}
/* Variety pass: category headers in the ingredient picker, category beside search results */
.cat-label{margin:var(--space-16) 0 var(--space-8);font:var(--weight-strong) var(--text-13)/var(--leading-body) var(--sans);color:var(--color-muted)}
.search-cat{font-weight:var(--weight-regular);font-size:var(--text-13);color:var(--color-muted)}
.ks-simple{margin-top:var(--space-12)}

/* ===== minimal v2 (owner-approved 2026-11-27; mockups in .agents/approvals/design) =====
   Black and soft off-white, one family (Figtree). Food floats on the page with a soft shadow, no tiles or cards.
   Pills: white with a grey outline, solid black when selected. Navigation: a floating black pill at the bottom. */
h1,.dinner h1,.home-member h1,.recipe .recipe-title{font:var(--weight-heavy) var(--text-34)/var(--leading-heading) var(--sans);letter-spacing:-.02em}
.group-title,.section-title,.ks-label,.plan-name{font:var(--weight-bold) var(--text-17)/var(--leading-heading) var(--sans)}
.dish-group .group-title{display:flex;align-items:center;gap:var(--space-12);margin:0 0 var(--space-24)}
.dish-group .group-title::after{content:"";flex:1;border-top:1px solid var(--color-line)}
.results{margin-top:var(--space-32)}

/* Dinner cards: the cutout floats on the page; name; then time on the left and price on the right */
.menu-tile{background:none;box-shadow:none;border-radius:0;margin:0 0 var(--space-12)}
.menu-img img{transform:scale(.92)}
.menu-title{font:var(--weight-bold) var(--text-17)/var(--leading-heading) var(--sans)}
.menu-meta{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-8);font-size:var(--text-15)}
.mm-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-price{flex:none;font-weight:var(--weight-bold);color:var(--color-text);font-variant-numeric:tabular-nums}
.menu-status{font-size:var(--text-15)}

/* Time filter as separate pills */
.seg{display:flex;flex-wrap:nowrap;gap:var(--space-8);height:auto;background:none;box-shadow:none;border-radius:0;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg-opt{flex:none;height:var(--control);padding:0 var(--space-16);border:1.5px solid var(--color-line);background:var(--color-surface);color:var(--color-text)}
.seg-opt[aria-checked="true"]{background:var(--color-text);border-color:var(--color-text);color:#fff}
.chip{border-width:1.5px}
.kitchen-line{color:var(--color-muted)}
.kitchen-line .text-button{text-decoration:underline;text-underline-offset:var(--space-4)}

/* Navigation: Dinner / Kitchen as a floating black pill at the bottom (hidden where a pinned action or cook mode owns the bottom) */
.tabs{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--space-16) + env(safe-area-inset-bottom));z-index:20;width:max-content;max-width:calc(100vw - var(--gutter) * 2);margin:0;padding:var(--space-4);gap:var(--space-4);border:0;border-radius:var(--radius-pill);background:var(--color-text);box-shadow:var(--shadow-float)}
.tabs[hidden],body:has(.screen.cook) .tabs,body:has(.start-bar) .tabs,body:has(#app.as-sheet) .tabs{display:none}
.tabs a{min-height:var(--control);padding:0 var(--space-24);border:0;border-radius:var(--radius-pill);color:#fff;font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans)}
.tabs a[aria-current]{background:var(--color-surface);color:var(--color-text);border:0;text-decoration:none}
.tabs a:hover{background:rgb(255 255 255 / .14);color:#fff}
.tabs a[aria-current]:hover{background:var(--color-surface);color:var(--color-text)}
#app{padding-bottom:calc(var(--space-64) + var(--space-48))}
body:has(.tabs:not([hidden])) .toast{bottom:calc(var(--space-64) + var(--space-16) + env(safe-area-inset-bottom))}
.account-icon{background:var(--color-surface);box-shadow:var(--shadow-tile)}

/* Buttons: primary black; secondary white with a grey outline */
.button-secondary{border:1.5px solid var(--color-line);background:var(--color-surface);color:var(--color-text)}

/* Cook mode: one step, the ring timer, Back / Next */
.cook-step{font:var(--weight-regular) var(--text-24)/1.35 var(--sans);letter-spacing:-.01em;flex:none}
.ring-timer{display:grid;justify-items:center;gap:var(--space-12);margin:var(--space-16) 0 var(--space-24)}
.ring{position:relative;width:min(220px,60vw);aspect-ratio:1}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring-track{fill:none;stroke:var(--color-tile);stroke-width:22}
.ring-prog{fill:none;stroke:var(--color-text);stroke-width:22;stroke-linecap:round;transition:stroke-dashoffset .5s linear}
.ring-ticks line{stroke:#fff;stroke-opacity:.16;stroke-width:1.2}
.ring-centre{position:absolute;inset:0;display:grid;place-content:center;justify-items:center}
.ring-time{font:var(--weight-regular) var(--text-64)/1 var(--sans);letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.ring-label{margin-top:var(--space-4);font:var(--weight-strong) var(--text-15)/var(--leading-body) var(--sans);color:var(--color-muted)}
.is-done .ring-label{color:var(--color-text)}
.ring-actions{display:flex;align-items:center;gap:var(--space-16)}
.ring-button{display:inline-flex;align-items:center;gap:var(--space-8);min-height:var(--space-48);padding:0 var(--space-32);border:0;border-radius:var(--radius-pill);background:var(--color-tile);color:var(--color-text);font:var(--weight-bold) var(--text-17)/1 var(--sans);cursor:pointer}
.ring-button svg{width:var(--space-16);height:var(--space-16);fill:currentColor}
.is-done .ring-button{background:var(--color-text);color:#fff}
.cook-nav button{min-height:var(--space-48)}
@media (prefers-reduced-motion:reduce){.ring-prog{transition:none}}
/* Sign-up consent: two required boxes (14 or older; Terms of use and Privacy policy) */
.consent{display:grid;gap:var(--space-12);margin:var(--space-8) 0 var(--space-16)}
.check{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-12);align-items:start;font-size:var(--text-15);line-height:var(--leading-body)}
.consent .check input[type=checkbox]{display:block;width:20px;height:20px;min-height:0;margin:2px 0 0;padding:0;border:0;box-shadow:none;accent-color:var(--color-text);align-self:start}
.check a{color:var(--color-text);font-weight:var(--weight-strong)}
/* Cards, simplified for Safari (2026-11-27): no subgrid and no reserved status lines. Each card stacks photo, name
   (always two lines tall so rows line up), then time and price. The time wraps instead of running into the next column. */
.menu-card{display:block;grid-row:auto;margin:0 0 var(--space-24);min-width:0}
.menu-link{display:flex;flex-direction:column;gap:var(--space-4);min-width:0}
.menu-tile{margin:0 0 var(--space-4)}
.menu-title{min-height:2.4em;line-height:1.2}
.menu-meta{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--space-8);row-gap:0;min-width:0;max-width:100%;overflow:hidden;white-space:normal}
.menu-meta > span{overflow:visible;text-overflow:clip}
.mm-text{flex:1 1 auto;min-width:0;white-space:normal}
.menu-price{flex:none;margin-left:auto;white-space:nowrap}
.menu-status{min-height:0;white-space:normal;display:block}
.menu-status:empty{display:none}
