/* source-sans-3-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./source-sans-3-cyrillic-ext-400-normal-BwJdxs7r.woff2) format('woff2'), url(./source-sans-3-cyrillic-ext-400-normal-BqOlcezh.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* source-sans-3-cyrillic-400-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./source-sans-3-cyrillic-400-normal-DjhbW-4D.woff2) format('woff2'), url(./source-sans-3-cyrillic-400-normal-DkNBMcYd.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* source-sans-3-greek-ext-400-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./source-sans-3-greek-ext-400-normal-CpIwTHMM.woff2) format('woff2'), url(./source-sans-3-greek-ext-400-normal-CN4VBqpr.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* source-sans-3-greek-400-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./source-sans-3-greek-400-normal-DZReXJla.woff2) format('woff2'), url(./source-sans-3-greek-400-normal-DyO2Yfz5.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* source-sans-3-vietnamese-400-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./source-sans-3-vietnamese-400-normal-CwtaIDr2.woff2) format('woff2'), url(./source-sans-3-vietnamese-400-normal-eMQk7hmk.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* source-sans-3-latin-ext-400-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./source-sans-3-latin-ext-400-normal-UNsKFIBq.woff2) format('woff2'), url(./source-sans-3-latin-ext-400-normal-D5P-Ud2J.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-sans-3-latin-400-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(./source-sans-3-latin-400-normal-DQi5PRDE.woff2) format('woff2'), url(./source-sans-3-latin-400-normal-RR2C27NP.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* source-sans-3-cyrillic-ext-600-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./source-sans-3-cyrillic-ext-600-normal-6AhwUnSr.woff2) format('woff2'), url(./source-sans-3-cyrillic-ext-600-normal-Cjpx_pje.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* source-sans-3-cyrillic-600-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./source-sans-3-cyrillic-600-normal-BnFu5nHC.woff2) format('woff2'), url(./source-sans-3-cyrillic-600-normal-CloKWf-q.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* source-sans-3-greek-ext-600-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./source-sans-3-greek-ext-600-normal-DynePNDL.woff2) format('woff2'), url(./source-sans-3-greek-ext-600-normal-CnpzyT-3.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* source-sans-3-greek-600-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./source-sans-3-greek-600-normal-BSO157bq.woff2) format('woff2'), url(./source-sans-3-greek-600-normal-B42bzTIr.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* source-sans-3-vietnamese-600-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./source-sans-3-vietnamese-600-normal-B2sTNYey.woff2) format('woff2'), url(./source-sans-3-vietnamese-600-normal-BzH4Q14_.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* source-sans-3-latin-ext-600-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./source-sans-3-latin-ext-600-normal-AEyhgUpm.woff2) format('woff2'), url(./source-sans-3-latin-ext-600-normal-D2VZAM8_.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-sans-3-latin-600-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./source-sans-3-latin-600-normal-DeckBYAU.woff2) format('woff2'), url(./source-sans-3-latin-600-normal-Ck0n4g8U.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* source-sans-3-cyrillic-ext-700-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./source-sans-3-cyrillic-ext-700-normal-BhUSqjb8.woff2) format('woff2'), url(./source-sans-3-cyrillic-ext-700-normal-COA7LiPB.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* source-sans-3-cyrillic-700-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./source-sans-3-cyrillic-700-normal-CIuudVLB.woff2) format('woff2'), url(./source-sans-3-cyrillic-700-normal-D_p3L75o.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* source-sans-3-greek-ext-700-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./source-sans-3-greek-ext-700-normal-Dd6uIcuy.woff2) format('woff2'), url(./source-sans-3-greek-ext-700-normal-KTP46hTS.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* source-sans-3-greek-700-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./source-sans-3-greek-700-normal-C8Tp2qRF.woff2) format('woff2'), url(./source-sans-3-greek-700-normal-C-sAg5NG.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* source-sans-3-vietnamese-700-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./source-sans-3-vietnamese-700-normal-Bgamivog.woff2) format('woff2'), url(./source-sans-3-vietnamese-700-normal-W-J7ohm4.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* source-sans-3-latin-ext-700-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./source-sans-3-latin-ext-700-normal-6Xi0A2be.woff2) format('woff2'), url(./source-sans-3-latin-ext-700-normal-C1ecyfgK.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-sans-3-latin-700-normal */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(./source-sans-3-latin-700-normal-CkzU-mV9.woff2) format('woff2'), url(./source-sans-3-latin-700-normal-B-h9tW5h.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* fraunces-vietnamese-600-normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fraunces-vietnamese-600-normal-BjlAJixd.woff2) format('woff2'), url(./fraunces-vietnamese-600-normal-DlAl5EAR.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* fraunces-latin-ext-600-normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fraunces-latin-ext-600-normal-BtzmzP0X.woff2) format('woff2'), url(./fraunces-latin-ext-600-normal-B0Dy4lqi.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* fraunces-latin-600-normal */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(./fraunces-latin-600-normal-BFCDtZfi.woff2) format('woff2'), url(./fraunces-latin-600-normal-DL5QCzvS.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* Two Plates. Tokens and component styles are taken from the approved mockups
   (docs/design/mockups.html); see docs/design/design-notes.md for the reasoning.
   Nothing here needs a Safari newer than 16: container queries are the newest
   feature used. text-wrap:balance is a nicety that older Safari simply ignores. */


/* ============ Design tokens ============ */
:root{
  /* surfaces */
  --paper:#F5EFE4;        /* app background: warm oat */
  --surface:#FFFDF8;      /* cards */
  --sunk:#ECE4D4;         /* wells, optional panel */
  --line:#D6CBB6;         /* hairlines */
  --line-strong:#8C8371;  /* control borders (3:1 on paper) */
  /* text */
  --ink:#1E2A24;          /* body text, 13.6:1 on paper */
  --ink-soft:#4A554E;     /* secondary text, 6.8:1 on paper */
  /* brand / action */
  --primary:#1F5A45;      /* forest green: buttons, current tab */
  --primary-ink:#FFFFFF;
  --primary-tint:#DCEADF;
  /* meal status */
  --cook:#9A3D1B;         /* terracotta: cook today */
  --cook-tint:#F7E1D3;
  --left:#4A4A20;         /* olive: leftovers */
  --left-tint:#EAE6CC;
  /* people */
  --dad:#274A7A;          /* slate blue */
  --dad-tint:#DFE8F4;
  --mum:#7A2E5B;          /* plum */
  --mum-tint:#F3E1EB;
  /* report status */
  --ok:#1C6240;
  --ok-tint:#DCEEDF;
  --watch:#7A4A00;        /* amber-brown text */
  --watch-tint:#FAE9C3;
  /* shape & type */
  --r-sm:10px; --r-md:14px; --r-lg:20px;
  --tap:56px;             /* default control height (min 48) */
  --font-body:"Source Sans 3",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-display:"Fraunces",Georgia,"Times New Roman",serif;
  --shadow:0 1px 2px rgba(60,45,20,.08),0 4px 14px rgba(60,45,20,.06);
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:400 19px/1.5 var(--font-body);font-variant-numeric:tabular-nums;overflow-x:hidden}
svg.ic{width:1.25em;height:1.25em;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.22em}
a{color:inherit}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:inherit;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}
h1,h2,h3,h4,p,dl,dd{margin:0}
h1[tabindex="-1"]:focus{outline:none}

/* ============ App shell ============ */
.app{container:app / inline-size;background:var(--paper);color:var(--ink);
  display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.app h1,.app h2,.app h3,.app h4,.app p{margin:0}
.app a{text-decoration:none}
.app :focus-visible,.app input:focus-visible~.box,.app input:focus-visible~.radio,.app input:focus-visible~.switch,.app input:focus-visible~span{outline:3px solid var(--ink);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.soft{color:var(--ink-soft);font-weight:400}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 8px}
.brand{font:600 22px/1 var(--font-display);letter-spacing:-.01em}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 14px;border-radius:99px;background:var(--surface);border:1px solid var(--line);font-size:16px;font-weight:700;white-space:nowrap}
.main{flex:1;display:flex;flex-direction:column;gap:22px;padding:12px 20px 32px}
.tabbar{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border-top:1px solid var(--line);position:sticky;bottom:0;z-index:5;padding-bottom:env(safe-area-inset-bottom)}
.tab{min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 4px;
  font-size:16px;font-weight:700;line-height:1.15;text-align:center;color:var(--ink-soft)}
.tab svg{width:26px;height:26px}
.tab[aria-current]{color:var(--primary);box-shadow:inset 0 4px 0 var(--primary);background:var(--primary-tint)}
.h1row h1{font:600 32px/1.15 var(--font-display);letter-spacing:-.01em;text-wrap:balance}
.sub{color:var(--ink-soft);margin-top:4px!important}
.eyebrow{font-size:16px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--cook)}
.sec-h{font:600 22px/1.2 var(--font-display);margin-bottom:10px!important}
.note{font-size:16px;color:var(--ink-soft)}
.note.center,.center{text-align:center}
.plain{font-size:18px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px}
.card h3{font:600 21px/1.25 var(--font-display)}
.est{font:400 16px var(--font-body);color:var(--ink-soft);white-space:nowrap}

/* buttons */
.btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:var(--tap);padding:10px 24px;border-radius:var(--r-md);
  font:700 19px/1.2 var(--font-body);text-align:center;cursor:pointer;border:2px solid transparent}
.btn.primary{background:var(--primary);color:var(--primary-ink);min-height:60px}
.btn.secondary{background:var(--surface);color:var(--primary);border-color:var(--primary)}
.btn.quiet{color:var(--primary);text-decoration:underline!important;text-underline-offset:4px}
.btn.disabled{color:var(--ink-soft);border-color:var(--line-strong);border-style:dashed;background:transparent;cursor:default}
.back{display:inline-flex;align-items:center;gap:4px;min-height:48px;padding:0 12px 0 0;font-weight:700;color:var(--primary)}
.back.inline{margin:-8px 0 -14px}

/* people + portions */
.split{display:flex;flex-wrap:wrap;gap:8px}
.who{display:inline-flex;align-items:baseline;gap:8px;padding:6px 14px;border-radius:99px;font-size:18px;white-space:nowrap}
.who b{font-size:16px;letter-spacing:.02em}
.who.p0{background:var(--dad-tint);color:var(--dad)} .who.p1{background:var(--mum-tint);color:var(--mum)}
.addon{display:flex;gap:8px;align-items:flex-start;font-size:17px;padding:8px 12px;border-radius:var(--r-sm);border:1.5px dashed currentColor}
.addon>span{color:var(--ink)} .addon svg{margin-top:3px}
.addon.p0{color:var(--dad)} .addon.p1{color:var(--mum)}
.avatar{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font:600 22px var(--font-display);color:#fff}
.p0 .avatar,.avatar.p0{background:var(--dad)} .p1 .avatar,.avatar.p1{background:var(--mum)}

/* badges */
.badge{display:inline-flex;align-items:flex-start;gap:6px;padding:4px 12px 4px 10px;border-radius:8px;font-size:16px;font-weight:700;line-height:1.3}
.badge.cook{background:var(--cook-tint);color:var(--cook)}
.badge.left{background:var(--left-tint);color:var(--left)}
.badge-x{font-weight:400}

/* ============ 1 Setup ============ */
.setup .setup-top{display:flex;align-items:center;justify-content:space-between;padding:14px 20px 0;min-height:62px}
.setup .setup-top .chip{margin-left:auto}
.prog{padding:10px 20px 0}
.prog-l{font-size:16px;font-weight:700;color:var(--ink-soft);margin-bottom:6px}
.prog-bar{height:10px;border-radius:99px;background:var(--sunk);border:1px solid var(--line);overflow:hidden}
.prog-bar i{display:block;height:100%;background:var(--primary);border-radius:99px}
.setup .main{padding-top:28px;gap:16px}
.q{font:600 30px/1.2 var(--font-display);letter-spacing:-.01em;text-wrap:balance}
.help{font-size:19px;color:var(--ink-soft);margin-bottom:6px!important}
.opts{display:flex;flex-direction:column;gap:12px}
.opt{display:flex;align-items:center;gap:16px;min-height:76px;padding:14px 18px;background:var(--surface);border:2px solid var(--line-strong);border-radius:var(--r-md);cursor:pointer}
.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt.on{border-color:var(--primary);border-width:3px;padding:13px 17px;background:var(--primary-tint)}
.radio{flex:none;width:30px;height:30px;border-radius:50%;border:2px solid var(--line-strong);background:var(--surface);display:grid;place-items:center}
.opt input:checked~.radio{border-color:var(--primary)}
.opt input:checked~.radio::after{content:"";width:16px;height:16px;border-radius:50%;background:var(--primary)}
.opt-t{display:flex;flex-direction:column;flex:1;min-width:0}
.opt-t b{font-size:20px} .opt-t span{font-size:17px;color:var(--ink-soft)}
.opt.tog{flex-wrap:wrap}
.switch{flex:none;width:64px;height:38px;border-radius:99px;background:var(--surface);border:2px solid var(--line-strong);padding:3px;display:flex}
.switch i{width:28px;height:28px;border-radius:50%;background:var(--line-strong)}
.opt input:checked~.switch{background:var(--primary);border-color:var(--primary);justify-content:flex-end}
.opt input:checked~.switch i{background:#fff}
.sw-l{flex:none;width:34px;font-weight:700;font-size:17px}
.field{display:flex;flex-direction:column;gap:8px}
.field-l{font-weight:700}
.input{display:block;width:100%;min-height:64px;padding:0 18px;font:400 24px/1.3 var(--font-body);color:var(--ink);background:var(--surface);border:2px solid var(--line-strong);border-radius:var(--r-md);-webkit-appearance:none;appearance:none}
.input:focus{border:3px solid var(--primary);padding:0 17px;outline:none}
.input::placeholder{color:var(--ink-soft);font-size:19px}
.stepper{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:12px}
.step-b{flex:none;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:2px solid var(--primary);color:var(--primary)}
.step-b svg{width:32px;height:32px}
.step-v{min-width:150px;text-align:center;line-height:1}
.step-v b{font:600 60px/1 var(--font-display)} .step-v span{font-size:22px;color:var(--ink-soft);margin-left:6px}
.gp{font-weight:700;color:var(--ink)}
.setup-foot{padding:16px 20px 22px;display:flex;flex-direction:column;gap:14px}
.disc{display:flex;gap:10px;font-size:16px;color:var(--ink-soft);margin:0}
.disc svg{margin-top:2px}

/* ============ 2 This week ============ */
.strip{display:none}
.today{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);overflow:hidden}
.today-h{padding:20px 20px 16px;border-bottom:1px solid var(--line)}
.today-h h2{font:600 28px/1.15 var(--font-display)}
.summ{margin-top:8px!important;color:var(--ink-soft)}
.meals{display:grid;grid-template-columns:1fr}
.meal{display:flex;flex-direction:column;gap:10px;padding:18px 20px;border-bottom:1px solid var(--line);align-items:flex-start}
.meal:last-child{border-bottom:0}
.meal-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;width:100%}
.mtype{font-size:16px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft)}
.dish{font:600 23px/1.22 var(--font-display);text-wrap:balance}
.meta{display:flex;align-items:center;gap:6px;font-size:17px;color:var(--ink-soft)}
.open{display:inline-flex;align-items:center;gap:2px;min-height:48px;margin:-6px 0 -12px;font-weight:700;color:var(--primary);text-decoration:underline;text-underline-offset:4px}
.notice{display:flex;gap:12px;align-items:center;padding:14px 16px;min-height:64px;border-radius:var(--r-md);background:var(--watch-tint);color:var(--watch);border:1px solid #E3C98C}
.notice>span{flex:1;color:var(--ink);font-size:17px} .notice>svg:first-child{width:28px;height:28px}
.days{display:flex;flex-direction:column;gap:10px}
.day{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.day summary,.sec summary,.more summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
.day summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 14px;min-height:72px;padding:14px 14px 14px 18px}
.day summary .chev{grid-column:2;grid-row:1 / span 2}
.day-n{display:flex;align-items:baseline;gap:10px;line-height:1.25}
.day-n b{font-size:19px} .day-n span{font-size:16px;color:var(--ink-soft)}
.day-d{grid-column:1;min-width:0;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.day-d:empty{display:none}
.dish-s{font:600 19px/1.25 var(--font-display)}
.chev{flex:none;width:26px!important;height:26px!important;color:var(--ink-soft);transition:transform .15s}
details[open]>summary .chev{transform:rotate(90deg)}
.day[open]>summary{border-bottom:1px solid var(--line)}
.day[open]>summary .day-d{display:none}
.mline{display:flex;align-items:flex-start;gap:12px;padding:14px 14px 14px 18px;border-bottom:1px solid var(--line);min-height:64px;flex-wrap:wrap}
.mline:last-child{border-bottom:0}
.mline .mtype{width:100%;min-width:0}
.mline-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.mline .chev{transform:none!important;margin-top:2px}
.gen{display:flex;flex-direction:column;gap:10px;margin-top:6px}
/* generating + states */
.gen-card,.state{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:24px 20px;display:flex;flex-direction:column;gap:14px}
.pot{width:64px;height:64px;border-radius:50%;background:var(--primary-tint);color:var(--primary);display:grid;place-items:center}
.pot svg{width:34px;height:34px}
.gen-card h2,.state h2{font:600 28px/1.2 var(--font-display);text-wrap:balance}
.indet{height:12px;border-radius:99px;background:var(--sunk);border:1px solid var(--line);overflow:hidden}
.indet i{display:block;width:38%;height:100%;border-radius:99px;background:var(--primary);animation:slide 2.2s ease-in-out infinite alternate}
@keyframes slide{from{transform:translateX(-20%)}to{transform:translateX(185%)}}
.gen-p{font-size:19px}
.stages{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.stages li{display:flex;align-items:center;gap:12px;min-height:44px;color:var(--ink-soft)}
.stages li em{font-style:normal}
.stages li.done{color:var(--ok)} .stages li.done span{color:var(--ink)}
.stages li.now{color:var(--ink);font-weight:700}
.stages svg{width:24px;height:24px}
.dot,.dot-now{flex:none;width:24px;height:24px;display:grid;place-items:center}
.dot::after{content:"";width:10px;height:10px;border-radius:50%;border:2px solid var(--line-strong)}
.dot-now::after{content:"";width:14px;height:14px;border-radius:50%;background:var(--primary);animation:pulse 1.2s ease-in-out infinite alternate}
@keyframes pulse{to{transform:scale(1.35);opacity:.6}}
.state.warn .pot{background:var(--watch-tint);color:var(--watch)}
.state p{font-size:19px}
.tech summary{min-height:48px;display:flex;align-items:center;color:var(--ink-soft);text-decoration:underline;cursor:pointer;font-size:16px}
.tech p{font:15px ui-monospace,Menlo,monospace!important;color:var(--ink-soft);overflow-wrap:anywhere}

/* ============ 3 Recipe ============ */
.r-head{display:flex;flex-direction:column;gap:12px}
.r-head h1{font:600 32px/1.15 var(--font-display);letter-spacing:-.01em;text-wrap:balance}
.r-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.r-meta .badge{min-height:36px}
.glance{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:12px 14px;min-height:60px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.r-cols{display:flex;flex-direction:column;gap:22px}
.ings,.method{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 16px 12px 20px;box-shadow:var(--shadow)}
.ings h2,.method h2,.serve h2{font:600 24px/1.2 var(--font-display);margin-bottom:4px}
.ings .note,.method .note{margin-bottom:8px}
.ing,.item,.stepr{display:flex;gap:14px;cursor:pointer;position:relative}
.ing input,.item input,.stepr input{position:absolute;opacity:0;width:1px;height:1px}
.box{flex:none;width:32px;height:32px;border-radius:8px;border:2px solid var(--line-strong);background:var(--surface);display:grid;place-items:center;color:transparent}
.box svg{width:24px;height:24px}
input:checked~.box{background:var(--primary);border-color:var(--primary);color:#fff}
.ing{align-items:flex-start;min-height:60px;padding:12px 0;border-top:1px solid var(--line)}
.ing-a{font-weight:700;font-size:20px;white-space:nowrap;margin-right:4px}
.ing-n{flex:1;min-width:0;font-size:19px;display:flex;flex-direction:column;line-height:1.3;padding-top:2px}
.ing-s{font-size:16px;color:var(--ink-soft);margin-top:2px}
.ing input:checked~.ing-n{color:var(--ink-soft);text-decoration:line-through;text-decoration-thickness:1.5px}
.steps{list-style:none;margin:0;padding:0}
.stepr{align-items:flex-start;padding:16px 0;border-top:1px solid var(--line);min-height:64px}
.num{flex:none;width:44px;height:44px;border-radius:50%;border:2px solid var(--primary);color:var(--primary);display:grid;place-items:center;font:600 22px var(--font-display);background:var(--surface)}
.st{font-size:22px;line-height:1.45;padding-top:5px}
.stepr input:checked~.num{background:var(--primary);color:transparent;position:relative}
.stepr input:checked~.num::after{content:"";position:absolute;width:20px;height:10px;border-left:3.5px solid #fff;border-bottom:3.5px solid #fff;transform:rotate(-45deg) translate(1px,-2px)}
.stepr input:checked~.st{color:var(--ink-soft)}
.serve{background:var(--surface);border:2px solid var(--ink);border-radius:var(--r-lg);padding:20px;display:flex;flex-direction:column;gap:14px}
.serve h2{display:flex;align-items:center;gap:10px}
.serve-first{font-size:19px}
.bigsplit{display:flex;gap:6px}
.bs{min-width:0;padding:14px 16px;display:flex;flex-direction:column;border-radius:var(--r-sm);color:#fff}
.bs.p0{background:var(--dad);border-radius:var(--r-md) 6px 6px var(--r-md)} .bs.p1{background:var(--mum);border-radius:6px var(--r-md) var(--r-md) 6px}
.bs span{font-weight:700;font-size:18px} .bs b{font:600 34px/1.1 var(--font-display);white-space:nowrap} .bs em{font-style:normal;font-size:16px;opacity:.95}

/* ============ 4 Report ============ */
.seg{display:grid;grid-template-columns:1fr 1fr;gap:0;background:var(--sunk);border:1px solid var(--line-strong);border-radius:var(--r-md);padding:4px}
.seg label{cursor:pointer}
.seg input{position:absolute;opacity:0;width:1px;height:1px}
.seg span{display:grid;place-items:center;min-height:52px;border-radius:10px;font-weight:700;font-size:20px;color:var(--ink-soft)}
.seg input:checked+span{background:var(--surface);color:var(--ink);box-shadow:var(--shadow);outline:2px solid var(--ink)}
.pcols,.tcols{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.pcol{display:flex;flex-direction:column;gap:18px;min-width:0}
.p-head{display:flex;gap:14px;align-items:center}
.p-head h2{font:600 26px/1.15 var(--font-display)} .p-head p{color:var(--ink-soft)}
.stats{padding:6px 18px!important;gap:0!important}
.stat,.more summary{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--line)}
.stat-i{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center}
.stat-i svg{width:24px;height:24px}
.stat.ok .stat-i,.okc{background:var(--ok-tint);color:var(--ok)}
.stat.watch .stat-i{background:var(--watch-tint);color:var(--watch)}
.stat-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.stat-t b{font-size:20px;line-height:1.3} .stat-t span{font-size:17px;color:var(--ink-soft)}
.lnk{display:inline-flex;align-items:center;min-height:48px;margin-bottom:-12px;font-weight:700;color:var(--primary);text-decoration:underline!important;text-underline-offset:4px;align-self:flex-start}
.more summary{border-bottom:0;min-height:64px;align-items:center}
.more[open] summary{border-bottom:1px solid var(--line)}
.mlist{display:flex;flex-direction:column;padding:4px 0 14px}
.mrow{padding:12px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}
.mrow-t{display:flex;justify-content:space-between;gap:10px;align-items:baseline;flex-wrap:wrap}
.mrow-t b{font-size:18px} .mrow-t span{font-size:16px;font-weight:700;display:inline-flex;gap:4px;align-items:center}
.mrow.ok .mrow-t span{color:var(--ok)} .mrow.watch .mrow-t span{color:var(--watch)} .mrow.plain .mrow-t span{color:var(--ink-soft)}
.mbar{height:10px;border-radius:99px;background:var(--sunk);overflow:hidden;border:1px solid var(--line)}
.mbar i{display:block;height:100%;border-radius:99px;background:var(--ok)}
.mrow.watch .mbar i{background:repeating-linear-gradient(135deg,var(--watch) 0 6px,#B98A2E 6px 10px)}
.mrow-v{font-size:16px;color:var(--ink-soft)}
.mlist .note{padding-top:12px}
.lgrid{--lg-label:92px;display:grid;grid-template-columns:var(--lg-label) repeat(7,minmax(0,1fr));gap:6px 4px;align-items:center;justify-items:center}
.lg-h{font-size:16px;font-weight:700;color:var(--ink-soft)}
.lg-l{justify-self:start;font-size:16px;font-weight:700}
.lg-c{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;border:2px solid var(--line-strong);flex:none}
.lg-c svg{width:18px;height:18px}
.lg-c.hit{background:var(--ok);border-color:var(--ok);color:#fff}
.lg-c.near{background:linear-gradient(90deg,var(--ok) 50%,transparent 50%);border-color:var(--ok)}
.legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:16px;color:var(--ink-soft)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend .lg-c{width:22px;height:22px} .legend .lg-c svg{width:14px;height:14px}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{background:var(--paper);border:1px solid var(--line);border-radius:var(--r-md);padding:14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.tile-k{font-size:16px;font-weight:700;color:var(--ink-soft);line-height:1.25}
.tile b{font:600 32px/1.1 var(--font-display)} .tile b small{font:400 16px var(--font-body);color:var(--ink-soft)}
.tile-s{font-size:16px;font-weight:700;color:var(--ok);display:flex;gap:4px;align-items:center;line-height:1.2}
.fdots{display:flex;gap:4px;margin:2px 0}
.fdots i{width:14px;height:14px;border-radius:50%;border:2px solid var(--line-strong)}
.fdots i.on{background:var(--ok);border-color:var(--ok)}
.topups{border:2.5px dashed var(--line-strong);border-radius:var(--r-lg);background:var(--sunk);padding:20px;display:flex;flex-direction:column;gap:16px;margin-top:10px}
.topups-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.topups-h h2{font:600 26px/1.2 var(--font-display)} .topups-h p{width:100%;color:var(--ink-soft)}
.tag{padding:4px 12px;border-radius:6px;background:var(--ink);color:var(--paper);font-size:16px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.tcol{display:flex;flex-direction:column;gap:10px;min-width:0}
.tcol h3{display:flex;align-items:center;gap:10px;font:600 21px var(--font-display)}
.tcol h3 .avatar{width:36px;height:36px;font-size:18px}
.tu{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);padding:16px;display:flex;flex-direction:column;gap:8px}
.tu-h{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;justify-content:space-between}
.tu-h b{font-size:20px} .dose{font-weight:700;font-size:18px}
.tu p{font-size:17px;color:var(--ink-soft)}
.tu .gp{display:flex;gap:8px;color:var(--ink);font-weight:700;padding-top:8px;border-top:1px solid var(--line)}
.tu .btn{justify-content:flex-start;padding:0;min-height:48px}

/* ============ 5 Shopping ============ */
.shop-prog{display:flex;flex-direction:column;gap:8px;font-size:19px}
.secs{display:flex;flex-direction:column;gap:12px}
.sec{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);break-inside:avoid}
.sec summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:10px 14px 10px 18px}
.sec summary>span{display:flex;flex-direction:column;line-height:1.3}
.sec summary b{font:600 22px/1.25 var(--font-display)} .sec summary .soft{font-size:16px}
.sec[open] summary{border-bottom:1px solid var(--line)}
.sec.cup{background:var(--sunk);border:2px dashed var(--line-strong)}
.item{align-items:center;min-height:64px;padding:10px 16px 10px 18px;border-bottom:1px solid var(--line)}
.item:last-child{border-bottom:0}
.it-main{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.it-name{font-size:19px} .it-buy{font-weight:700;font-size:17px}
.cup .it-buy{font-weight:400;font-size:16px;color:var(--ink-soft)}
.it-need{flex:none;font-size:16px;color:var(--ink-soft);text-align:right;white-space:nowrap}
.item input:checked~.it-main,.item input:checked~.it-need{color:var(--ink-soft);text-decoration:line-through;text-decoration-thickness:1.5px}
.item input:checked~.it-main .it-buy{font-weight:400}

/* ============ iPad-width layout (container, not viewport) ============ */
@container app (min-width:600px){
  .topbar{padding:20px 36px 8px} .brand{font-size:24px}
  .main{padding:16px 36px 44px;gap:26px}
  .h1row h1,.r-head h1{font-size:38px}
  .tab{flex-direction:row;gap:10px;font-size:18px;min-height:72px}
  /* setup */
  .setup .setup-top,.prog,.setup-foot{padding-left:max(36px,calc(50% - 280px));padding-right:max(36px,calc(50% - 280px))}
  .setup .main{padding:44px max(36px,calc(50% - 280px)) 32px}
  .q{font-size:38px} .help{font-size:20px}
  .opt{min-height:88px;padding:16px 22px} .opt.on{padding:15px 21px}
  /* week */
  .strip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
  .daychip{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:68px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--line);line-height:1.25}
  .daychip b{font-size:18px} .daychip span{font-size:16px;color:var(--ink-soft)}
  .daychip.c span{color:var(--cook);font-weight:700}
  .daychip[aria-current]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
  .daychip[aria-current] span{color:var(--paper)}
  .meals{grid-template-columns:1fr 1fr}
  .meal{padding:20px 22px}
  .meal:nth-child(odd){border-right:1px solid var(--line)}
  .meal:nth-last-child(-n+2){border-bottom:0}
  .today-h{padding:22px 22px 18px} .today-h h2{font-size:32px}
  .day summary{grid-template-columns:120px minmax(0,1fr) auto}
  .day summary .chev{grid-column:3;grid-row:1}
  .day-n{flex-direction:column;gap:0}
  .day-d{grid-column:2}
  .day.past summary,.day[open]>summary{grid-template-columns:minmax(0,1fr) auto}
  .day.past summary .chev,.day[open]>summary .chev{grid-column:2}
  .mline{flex-wrap:nowrap} .mline .mtype{width:120px;flex:none;padding-top:2px}
  .gen{align-items:center} .gen .btn{min-width:320px}
  /* recipe */
  .r-cols{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,5fr);align-items:start;gap:20px}
  .serve{padding:24px}
  .bs b{font-size:42px}
  /* report */
  .seg:not(.always){display:none}
  .pcols,.tcols{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
  .lgrid{--lg-label:84px}
  /* shopping */
  .secs{display:block;columns:2;column-gap:16px}
  .secs .sec{margin-bottom:14px}
  .sec.cup .items{display:grid;grid-template-columns:1fr 1fr}
  .sec.cup .item:nth-last-child(-n+2){border-bottom:0}
  .sec.cup .item:nth-child(odd){border-right:1px solid var(--line)}
}
@container app (max-width:599.98px){
  .show-0 [class*="for-"]:not(.for-0),.show-1 [class*="for-"]:not(.for-1),.show-2 [class*="for-"]:not(.for-2),.show-3 [class*="for-"]:not(.for-3){display:none}
}
@container app (max-width:360px){
  .main{padding-left:14px;padding-right:14px}
  .it-need{display:none}
  .lgrid{--lg-label:78px} .lg-c{width:24px;height:24px}
  .bs b{font-size:28px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Additions for the built app: things the static mockups did not need.
   Loaded after styles.css. */
:root{
  /* A third and fourth person, should the household ever grow (design notes §2). */
  --p2:#1F5560; --p2-tint:#DCECEE;
  --p3:#6B4423; --p3-tint:#F1E4D6;
}
:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
.who.p2{background:var(--p2-tint);color:var(--p2)} .who.p3{background:var(--p3-tint);color:var(--p3)}
.addon.p2{color:var(--p2)} .addon.p3{color:var(--p3)}
.p2 .avatar,.avatar.p2,.bs.p2{background:var(--p2)} .p3 .avatar,.avatar.p3,.bs.p3{background:var(--p3)}
.bs.p2,.bs.p3{border-radius:6px}

/* keep long lines readable on a laptop or a landscape iPad */
.topbar,.main,.setup-top,.prog,.setup-foot{width:100%;max-width:920px;margin-left:auto;margin-right:auto}
.tab{-webkit-tap-highlight-color:transparent}
@media (min-width:960px){.tabbar{padding-left:calc(50% - 460px);padding-right:calc(50% - 460px)}}
.setup .main{flex:1}

.btn{text-decoration:none;-webkit-tap-highlight-color:transparent}
button.btn.quiet,a.btn.quiet{text-decoration:underline;text-underline-offset:4px;background:transparent}
.btn:disabled{cursor:default}
.btn.primary:disabled{opacity:.75}
.btn.primary:active{background:#174635}
.btn.secondary:active,.step-b:active,.pick:active{background:var(--primary-tint)}
.inline-link{color:var(--primary);font-weight:700;text-decoration:underline!important;text-underline-offset:4px;display:inline-block;padding:12px 0;margin:-12px 0}
.btn-inline{flex:none;min-height:48px;padding:0 14px;border-radius:var(--r-sm);border:2px solid currentColor;font-weight:700;background:var(--surface);color:var(--ink)}

/* notices beyond the amber one */
.notice{margin:0}
.notice.ok{background:var(--ok-tint);color:var(--ok);border-color:#A9CDB4}
.notice.plain{background:var(--surface);color:var(--ink-soft);border-color:var(--line)}
.notice.offline{background:var(--sunk);color:var(--ink);border:2px dashed var(--line-strong);flex-wrap:wrap}
.tonight{display:flex;gap:10px;align-items:center;min-height:52px;margin-top:12px;padding:10px 12px;border-radius:var(--r-sm);background:var(--cook-tint);color:var(--cook)}
.tonight>span{flex:1;color:var(--ink);font-size:17px}

/* the week switch: the same control as the Dad / Mum switch, as real buttons */
.seg.always button{display:block;border-radius:10px}
.seg.always button>span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:56px;line-height:1.2;padding:4px 6px;text-align:center}
.seg.always small{font-size:16px;font-weight:400}
.seg.always button[aria-pressed="true"]>span{background:var(--surface);color:var(--ink);box-shadow:var(--shadow);outline:2px solid var(--ink)}

/* day strip chips are buttons in the app */
.daychip{width:100%;font:inherit;color:inherit;cursor:pointer}

/* generic fold-out (recipe on a leftovers day, "More options") */
.fold{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.fold>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:10px 14px 10px 18px}
.fold>summary>span{display:flex;flex-direction:column;line-height:1.3}
.fold>summary b{font:600 21px/1.25 var(--font-display)} .fold>summary .soft{font-size:16px}
.fold[open]>summary{border-bottom:1px solid var(--line)}
.fold>.r-cols,.fold-body{padding:16px}
.fold-body{display:flex;flex-direction:column;gap:18px}
.recipe .fold .ings,.recipe .fold .method{box-shadow:none}

/* confirm sheet (rendered at the end of <body>, outside the app container) */
.sheet-back{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:rgba(30,42,36,.55);display:flex;align-items:flex-end;justify-content:center;padding:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
.sheet{width:100%;max-width:520px;background:var(--surface);border-radius:var(--r-lg);padding:24px 20px;display:flex;flex-direction:column;gap:14px;box-shadow:0 10px 40px rgba(0,0,0,.3)}
.sheet h2{font:600 26px/1.2 var(--font-display)}
.sheet p{color:var(--ink-soft)}
.sheet .btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:10px 24px;border-radius:var(--r-md);font:700 19px/1.2 var(--font-body);border:2px solid transparent}
@media (min-width:600px){.sheet-back{align-items:center}}

.confirm{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--r-md);background:var(--sunk);border:1px solid var(--line)}

/* setup: errors, chips, date of birth, review */
.field-error{display:flex;gap:8px;padding:12px 14px;border-radius:var(--r-sm);background:var(--watch-tint);color:var(--ink);border:1px solid #E3C98C;font-weight:700}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.pick{display:inline-flex;align-items:center;gap:6px;min-height:52px;padding:8px 18px;border-radius:99px;background:var(--surface);border:2px solid var(--line-strong);font-size:19px;font-weight:700}
.pick.on{background:var(--primary-tint);border-color:var(--primary);border-width:3px;padding:7px 17px;color:var(--primary)}
.dob{display:flex;flex-direction:column;gap:14px}
.dob-row{display:grid;grid-template-columns:64px 60px minmax(0,1fr) 60px;align-items:center;gap:10px}
.dob-row label{font-weight:700}
.dob-v{display:flex;flex-direction:column;align-items:center;gap:2px}
.dob-v input{width:100%;min-height:60px;text-align:center;font:600 32px/1 var(--font-display);color:var(--ink);background:var(--surface);border:2px solid var(--line-strong);border-radius:var(--r-md);-webkit-appearance:none;appearance:none}
.dob-v input:focus{border-color:var(--primary);outline:3px solid var(--ink);outline-offset:2px}
.dob-v small{font-size:16px;color:var(--ink-soft)}
.step-b.small{width:60px;height:60px}
.step-b.small svg{width:28px;height:28px}
.review{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md)}
.review-row{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 16px;border-bottom:1px solid var(--line);width:100%}
.review-row:last-child{border-bottom:0}
.review-t{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.review-l{font-size:16px;color:var(--ink-soft)}
.review-c{flex:none;color:var(--primary);font-weight:700;text-decoration:underline;text-underline-offset:4px}

/* report extras */
.report-body{display:contents}
.tile-s.watch{color:var(--watch)}
.watchc{background:var(--watch-tint);color:var(--watch)}
.tu.none b{font-size:19px}

/* people */
.facts{display:flex;flex-direction:column}
.facts>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid var(--line)}
.facts dt{color:var(--ink-soft);font-size:17px;flex:none}
.facts dd{text-align:right;font-weight:700;min-width:0;overflow-wrap:anywhere}

@container app (min-width:600px){
  .dob-row{grid-template-columns:90px 72px minmax(0,1fr) 72px}
  .step-b.small{width:72px;height:72px}
}

/* Report: notes on the nutrient data, folded at the bottom */
.data-notes{margin:0;padding:4px 18px 16px 36px;color:var(--ink-soft);font-size:16px;line-height:1.45}
.data-notes li+li{margin-top:8px}
.report-body>.fold{margin-top:16px}

/* Sign-in screen and the account card on People (hosted build only) */
.state h1{font:600 28px/1.2 var(--font-display);text-wrap:balance}
.state h1:focus{outline:none}
.signin-notice{background:var(--watch-tint);color:var(--watch);border-radius:var(--r-sm);padding:12px 16px;font-weight:700}
.account{margin-top:8px}
.account h2{font:600 23px/1.25 var(--font-display)}
.account .note{overflow-wrap:anywhere}
.account .confirm{display:flex;flex-direction:column;gap:10px;padding-top:4px;border-top:1px solid var(--line)}
.account .confirm p{font-weight:700}
