/* Fonts are served from mabelmatic.com (no third parties; they work offline). SIL Open Font License, see fonts/. */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-latin-wdth-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/instrument-serif-latin-ext-400-normal.woff2) format('woff2'); 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; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url(fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); 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; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url(fonts/instrument-serif-latin-ext-400-italic.woff2) format('woff2'); 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; }
/*
  VOICE   warm, confident 1958 appliance ad; calm in the kitchen
  IDEA    a kitchen console with a station-style split-flap board
  PICTURE the painted kitchen and dusk dining room; food paintings; flip tiles
  COLOUR  enamel teal, warm cream, tomato for the one action, brass accents (fixed palette in light and dark)
  TYPE    Instrument Serif headlines, Archivo (wide for labels, condensed for times)
  LAYOUT  one phone column; art screens full-bleed; Cook mode full teal
*/
:root {
  color-scheme: light;
  --cream: #FFF4D8; --cream-2: #FCE7B8; --art-cream: #FEE4AB; --paper: #FFFBF3;
  --ink: #1C2526; --muted: #5A4E3E; --soft: #8A8F88;
  --teal: #2A7276; --teal-hi: #348589; --teal-lo: #22605F; --teal-ink: #23656A; --teal-night: #004141;
  --tomato: #C8432C; --tomato-dk: #8E2C1B; --brass: #E9A23B; --brass-lt: #F3C978;
  --line: rgba(28,37,38,.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Archivo, system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; }
body { background: #E9DCC0; color: var(--ink); font: 16px/1.5 var(--sans); overflow-x: clip; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }

#app { position: relative; max-width: 440px; min-height: 100dvh; margin: 0 auto; overflow: hidden; background: linear-gradient(var(--cream), var(--cream-2)); box-shadow: 0 0 60px rgba(28,37,38,.18); }
.screen { position: relative; min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--safe-t); }
.screen.enter { animation: enter .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.grain { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .6; }

.serif { font-family: var(--serif); font-weight: 400; }
.lbl { font-family: var(--sans); font-stretch: 125%; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.cond { font-family: var(--sans); font-stretch: 75%; font-weight: 700; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
h1.title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 11vw, 44px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
h1.title em { color: var(--tomato); }

/* top bar for planning screens */
.bar { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 20px 0; }
.round { width: 44px; height: 44px; flex: none; border-radius: 99px; border: 1px solid rgba(28,37,38,.2); background: transparent; display: grid; place-items: center; }
.round svg { width: 18px; height: 18px; }
.progress { display: flex; gap: 6px; margin-top: 8px; }
.progress i { height: 2px; flex: 1; border-radius: 2px; background: rgba(28,37,38,.15); }
.progress i.on { background: var(--ink); }
.body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 20px 20px 0; }
.foot { position: sticky; bottom: 0; padding: 12px 16px calc(16px + var(--safe-b)); background: linear-gradient(rgba(252,231,184,0), var(--cream-2) 30%); z-index: 3; }

/* buttons */
.cta { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 58px; padding: 0 8px 0 24px; border: none; border-radius: 99px; background: var(--ink); color: var(--cream); font-family: var(--sans); font-stretch: 125%; font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 14px 28px rgba(28,37,38,.22); transition: transform .12s; }
.cta:active { transform: translateY(2px) scale(.99); }
.cta .dot { width: 42px; height: 42px; border-radius: 99px; background: var(--tomato); display: grid; place-items: center; }
.cta.light { background: var(--paper); color: var(--ink); }
.cta[disabled] { opacity: .5; }
.link { display: block; text-align: center; padding: 14px 0 4px; color: var(--teal-ink); background: none; border: 0; width: 100%; }

/* enamel teal card */
.enamel { border-radius: 24px; background: linear-gradient(160deg, var(--teal-hi), var(--teal) 55%, var(--teal-lo)); color: #F5EEE1; padding: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 18px 36px rgba(31,84,88,.24); }
.enamel .lbl { color: rgba(245,238,225,.75); }
.ghost { width: 44px; height: 44px; flex: none; border-radius: 99px; border: 1px solid rgba(245,238,225,.4); background: transparent; color: #F5EEE1; font-size: 20px; display: grid; place-items: center; }

/* rows, chips, switches */
.row { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 5px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.row .name { flex: 1; font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.row .sub { font-size: 12.5px; color: var(--muted); }
.row.off .name { color: var(--soft); }
.check { width: 24px; height: 24px; flex: none; border-radius: 99px; border: 1px solid rgba(28,37,38,.3); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check svg { width: 12px; height: 12px; opacity: 0; }
.row.on .check { background: var(--tomato); border-color: var(--tomato); }
.row.on .check svg { opacity: 1; }
.thumb { width: 42px; height: 42px; flex: none; display: grid; place-items: center; }
.thumb img { width: 42px; height: 42px; object-fit: contain; transition: opacity .2s, filter .2s; }
.row.off .thumb img { opacity: .45; filter: grayscale(.7); }
.thumb .ph { width: 30px; height: 30px; border-radius: 99px; border: 1px dashed rgba(28,37,38,.25); }
.tabs { display: flex; gap: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs button { flex: none; border: 0; background: none; padding: 0 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--soft); }
.tabs button.on { color: var(--ink); border-color: var(--tomato); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 4px; border-radius: 99px; border: 1px solid rgba(28,37,38,.14); }
.seg button { height: 44px; border: 0; border-radius: 99px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.seg button.on { background: var(--ink); color: var(--cream); }
.switch { position: relative; width: 52px; height: 32px; flex: none; border: 0; border-radius: 99px; background: rgba(28,37,38,.18); transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 99px; background: var(--paper); box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: left .2s; }
.switch[aria-checked=true] { background: var(--teal); }
.switch[aria-checked=true]::after { left: 23px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid rgba(245,238,225,.4); background: transparent; color: #F5EEE1; font-size: 13.5px; font-weight: 600; }
.chip.on { background: #F5EEE1; color: var(--teal-lo); }
.field { height: 44px; width: 100%; border-radius: 12px; border: 1px solid rgba(28,37,38,.2); background: var(--paper); padding: 0 12px; font: 16px var(--sans); color: var(--ink); }

/* split-flap tiles */
.board { display: flex; align-items: center; gap: 5px; }
.fl { position: relative; width: var(--w, 54px); height: var(--h, 78px); perspective: 420px; font-family: var(--sans); font-stretch: 70%; font-weight: 700; font-size: var(--fs, 58px); color: var(--fink, var(--ink)); border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 20px rgba(10,40,42,.3); }
.fl .h { position: absolute; left: 0; right: 0; height: calc(var(--h, 78px) / 2 - .5px); overflow: hidden; text-align: center; line-height: var(--h, 78px); backface-visibility: hidden; }
.fl .t { top: 0; border-radius: 8px 8px 0 0; background: linear-gradient(var(--t1, #FFFBF3), var(--t2, #F1E7D3)); transform-origin: 50% 100%; }
.fl .b { bottom: 0; border-radius: 0 0 8px 8px; background: linear-gradient(var(--b1, #E9DEC7), var(--b2, #F4EBDA)); transform-origin: 50% 0; }
.fl .b span { display: block; margin-top: calc(var(--h, 78px) / -2 - .5px); }
.fl .fold, .fl .drop { visibility: hidden; }
.fl.go .fold { visibility: visible; animation: fold var(--sp, .22s) ease-in forwards; }
.fl.go .drop { visibility: visible; transform: rotateX(90deg); animation: drop var(--sp, .22s) ease-out var(--sp, .22s) forwards; }
@keyframes fold { to { transform: rotateX(-90deg); } }
@keyframes drop { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
.colon { display: flex; flex-direction: column; gap: calc(var(--h, 78px) / 5); padding: 0 3px; }
.colon i { width: 6px; height: 6px; border-radius: 9px; background: var(--dot, currentColor); }
.board.teal .fl { --t1: #2F8486; --t2: #287375; --b1: #1F6163; --b2: #297375; --fink: #FFF3D6; }

/* art screens */
.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.home-head { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 22px; }
.hero-title { position: relative; text-align: center; padding: 18px 60px 0; }
.floor { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px calc(84px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.floor-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 18px; background: rgba(255,248,226,.78); border: 1px solid rgba(90,78,62,.16); backdrop-filter: blur(6px); }
.nav { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px 10px calc(14px + var(--safe-b)); background: linear-gradient(rgba(254,228,171,0), var(--art-cream) 40%); z-index: 4; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 48px; justify-content: center; color: var(--muted); font-size: 8.5px; }
.nav a.on { color: var(--tomato); }
.nav svg { width: 22px; height: 22px; }

/* plan ready (dusk) */
.dusk { background: var(--teal-night); color: #FFF3D6; }
.glow { position: absolute; left: 24%; top: 47%; width: 54%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,214,140,.42), rgba(255,214,140,0)); animation: glow 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 50% { opacity: .55; } }
.notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.notes li { font-size: 13.5px; line-height: 1.4; padding-left: 16px; position: relative; }
.notes li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 9px; background: var(--brass); }
.notes li.warn::before { background: var(--tomato); }

/* timeline */
.lane { display: flex; align-items: center; gap: 8px; height: 32px; }
.lane img, .lane .ph { width: 30px; height: 30px; object-fit: contain; flex: none; }
.lane .ph { border-radius: 99px; border: 1px dashed rgba(28,37,38,.25); }
.lane .nm { width: 84px; flex: none; font-size: 8px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { position: relative; flex: 1; height: 100%; }
.track::before { content: ''; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: var(--line); }
.track b { position: absolute; top: 11px; height: 9px; border-radius: 9px; background: var(--teal); transform-origin: left; animation: grow .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { transform: scaleX(0); } }
.step { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.step .tm { width: 46px; flex: none; font-size: 16px; }
.step .tx { flex: 1; font-size: 14.5px; line-height: 1.3; }
.step .tg { font-size: 8px; letter-spacing: .14em; }
.who { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 700; color: var(--teal-ink); }

/* cook mode */
.cook { background: radial-gradient(120% 70% at 50% 0%, var(--teal-hi) 0%, var(--teal) 45%, #1F5A5C 100%); color: #F5EEE1; padding: calc(16px + var(--safe-t)) 20px calc(20px + var(--safe-b)); }
.cook .round { border-color: rgba(245,238,225,.35); color: #F5EEE1; }
.cook .lbl { color: rgba(245,238,225,.82); }
.cook .gold { color: var(--brass-lt); }
.pill { min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid rgba(245,238,225,.35); background: transparent; color: #F5EEE1; font-size: 12.5px; font-weight: 600; }
.pill.on { background: #F5EEE1; color: var(--teal-lo); }
.now { animation: swap .45s cubic-bezier(.2,.8,.2,1); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.plate { width: 92px; height: 92px; flex: none; border-radius: 99px; background: radial-gradient(circle at 50% 40%, #FFF3D6, #F2DDB0); box-shadow: inset 0 -4px 10px rgba(120,80,30,.18), 0 14px 26px rgba(10,40,42,.35); display: grid; place-items: center; }
.plate img { width: 78px; height: 78px; object-fit: contain; }
.plate .ph { width: 54px; height: 54px; border-radius: 99px; border: 1px dashed rgba(90,78,62,.35); }
.done { margin-top: 22px; height: 72px; border: 0; border-radius: 99px; background: #F5EEE1; color: var(--ink); display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 28px; box-shadow: 0 18px 34px rgba(10,40,42,.35); font-family: var(--sans); font-stretch: 125%; font-size: 15px; font-weight: 800; letter-spacing: .22em; transition: transform .12s; }
.done:active { transform: scale(.98); }
.done .dot { width: 52px; height: 52px; border-radius: 99px; background: var(--tomato); display: grid; place-items: center; }
.due .done { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(243,201,120,.25), 0 18px 34px rgba(10,40,42,.35); } }
.upnext .step { border-color: rgba(245,238,225,.16); }
.upnext img, .upnext .ph { width: 32px; height: 32px; object-fit: contain; flex: none; }
.upnext .ph { border-radius: 99px; border: 1px dashed rgba(245,238,225,.35); }
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(10,30,32,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet > div { width: 100%; max-width: 440px; background: var(--paper); color: var(--ink); border-radius: 24px 24px 0 0; padding: 20px 20px calc(20px + var(--safe-b)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- guests, recipes, shopping (Dec 2026) ---------- */
.guests { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 20px; background: var(--paper); box-shadow: 0 10px 24px rgba(28,37,38,.08); }
.guests .sub { font-size: 12.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.ghost.ink { border-color: rgba(28,37,38,.28); color: var(--ink); }
.ghost svg { width: 20px; height: 20px; }
.rowwrap { position: relative; }
.rowwrap .row { padding-right: 62px; }
.rcp { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 54px; height: 46px; border-radius: 12px; border: 1px solid rgba(42,114,118,.35); background: var(--paper); color: var(--teal-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.rcp svg { width: 20px; height: 20px; }
.rcp span { font: 700 8px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.rcp-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border-radius: 99px; border: 1px solid rgba(245,238,225,.45); background: rgba(245,238,225,.08); color: #F5EEE1; font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.rcp-pill svg { width: 18px; height: 18px; }
.rcp-pill:active, .rcp:active { opacity: .8; }
.rcp:active { transform: translateY(-50%) scale(.94); }
.step.tappable { cursor: pointer; }
.step.tappable:active { background: rgba(28,37,38,.05); }
.rs-wrap { position: fixed; inset: 0; z-index: 50; }
.rs-back { position: absolute; inset: 0; background: rgba(12,28,30,.5); opacity: 0; transition: opacity .24s; }
.rsheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.25); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.rs-wrap.open .rsheet { transform: none; }
.rs-wrap.open .rs-back { opacity: 1; }
.rsheet .handle { width: 40px; height: 4px; border-radius: 4px; background: rgba(28,37,38,.18); margin: 10px auto 0; flex: none; }
.rs-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); flex: none; }
.rs-head h2 { margin: 4px 0 0; font-size: 26px; line-height: 1.08; font-weight: 400; }
.rs-head .sub, .rsheet .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rs-body { overflow-y: auto; padding: 16px 20px calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.rsheet .ing { list-style: none; margin: 8px 0 0; padding: 0; }
.rsheet .ing li { padding: 9px 0 9px 20px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; line-height: 1.35; }
.rsheet .ing li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border-radius: 99px; background: var(--tomato); }
.rsheet .method { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: m; }
.rsheet .method li { counter-increment: m; position: relative; padding: 10px 0 10px 38px; font-size: 15.5px; line-height: 1.5; border-top: 1px solid var(--line); }
.rsheet .method li::before { content: counter(m); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; border-radius: 99px; background: var(--teal); color: #F5EEE1; font: 700 13px/26px var(--sans); text-align: center; }
.rsheet .tips { margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--cream); }
.rsheet .tips .lbl { color: var(--teal-ink); }
.rsheet .tips p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
.row.shop { align-items: flex-start; padding: 10px 0; }
.row.shop .check { margin-top: 2px; }
.row.shop .name { font-size: 18px; }
.row.shop .amt { font-size: 14px; color: var(--teal-ink); font-weight: 600; white-space: nowrap; }
.row.shop .for { display: block; font-size: 12px; color: var(--soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.shop.on .name { text-decoration: line-through; text-decoration-color: var(--tomato); color: var(--soft); }
.row.shop.on .amt { color: var(--soft); }
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 12px); background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cook .pill svg { width: 16px; height: 16px; }
.rs-head .plate img { width: 46px; height: 46px; } .rs-head .plate .ph { width: 30px; height: 30px; }
.row.shop.off .name { color: var(--ink); } .row.shop.off .check { opacity: .9; }

.fixes { background: rgba(0,40,42,.78); backdrop-filter: blur(6px); border-radius: 18px; padding: 14px 14px 6px; margin-bottom: 12px; }
.fix { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; margin: 10px 0 8px; padding: 12px 8px 12px 16px; border-radius: 16px; border: 1px solid rgba(243,201,120,.45); background: rgba(255,243,214,.08); color: #FFF3D6; font: 15px/1.35 var(--sans); }
.fix b { font-weight: 700; }
.fix .d { font-size: 13px; color: rgba(255,243,214,.8); }
.fix .dot { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 99px; background: var(--tomato); display: grid; place-items: center; }
.fix:active { transform: scale(.98); }

/* side categories */
.cat { border-top: 1px solid var(--line); }
.cat-head { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 0; border: 0; background: none; color: var(--ink); text-align: left; scroll-margin-top: 12px; }
.cat-name { flex: 1; font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.cat-count { font-size: 9px; color: var(--muted); }
.cat-chev { width: 22px; height: 22px; color: var(--muted); transition: transform .2s; flex: none; }
.cat-chev svg { width: 22px; height: 22px; }
.cat.open .cat-chev { transform: rotate(180deg); }
.cat-body { padding: 0 0 10px 12px; border-left: 2px solid var(--tomato); margin-left: 2px; }
.cat-body .rowwrap:first-child .row { border-top: 0; }
.cat-count.some { color: var(--tomato); }
.row .name .where { display: block; font-family: var(--sans); font-size: 8.5px; color: var(--muted); margin-top: 3px; }
.row.off .name .where { color: var(--soft); }
/* meal date picker: the native date input sits invisibly over the date so a tap opens the phone's picker */
.datepick { position: relative; flex: 1; text-align: center; color: #F5EEE1; cursor: pointer; }
.datepick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.datepick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* alerts card on the plan screen */
.alerts { margin-top: 6px; }
.al-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(0,40,42,.72); backdrop-filter: blur(6px); color: #FFF3D6; font: 13.5px/1.35 var(--sans); border: 1px solid rgba(243,201,120,.25); }
.al-row b { font-weight: 700; font-size: 14.5px; }
.al-btn { border-color: rgba(243,201,120,.55); }
.al-btn:active { transform: scale(.98); }
.al-btn .dot { margin-left: auto; flex: none; width: 40px; height: 40px; border-radius: 99px; background: var(--tomato); display: grid; place-items: center; }
.al-ic { flex: none; width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; background: rgba(255,243,214,.1); color: var(--brass-lt); }
.al-ic svg { width: 20px; height: 20px; }
.al-ic.on { background: var(--brass-lt); color: #0E3A3C; }
.al-tx { flex: 1; min-width: 0; color: rgba(255,243,214,.85); }
.al-tx b { color: #FFF3D6; }
.al-cal { display: flex; align-items: center; gap: 10px; }
.al-cal .sub { font-size: 12px; color: rgba(255,243,214,.7); }

/* Mabel-Matic 2000 model badge and greeting */
.brand .model { margin-left: 2px; padding: 2px 6px 1px; border-radius: 5px; background: var(--brass-lt, #E8BE6E); color: #3A2A10; font: 700 9px/1.4 var(--sans); letter-spacing: .14em; align-self: center; box-shadow: inset 0 -1px 0 rgba(0,0,0,.18); }
.hero-title .hello { margin: 10px auto 0; max-width: 270px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.kicon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; margin-right: 4px; }
.kicon img { width: 46px; height: 46px; }
.startover { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.startover .link { color: var(--tomato); padding: 6px 12px; }
.startover .link.armed { background: var(--tomato); color: #FFF6EC; border-radius: 99px; }
.startover .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
/* Cook mode: the current step and the coming-up list sit on soft cards so they stand out from the teal */
#ckNow { margin-top: 18px; padding: 18px 18px 20px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,246,228,.11), rgba(255,246,228,.06)); border: 1px solid rgba(245,238,225,.16); box-shadow: 0 12px 28px rgba(8,36,38,.22), inset 0 1px 0 rgba(255,255,255,.08); }
#ckNow:empty { display: none; }
#ckNow > .now { margin-top: 0 !important; }
.cook .upnext { padding: 12px 16px 4px; border-radius: 20px; background: rgba(255,246,228,.06); border: 1px solid rgba(245,238,225,.12); }
.cook .upnext .step:last-child { border-bottom: 0; }
.ornament { position: absolute; right: -4px; top: -6px; width: 96px; height: 96px; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(60,40,20,.15)); }

/* own dishes: list tools, edit-list screen, dish form */
.listtools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.pill2 { display: inline-flex; width: auto; justify-self: start; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 99px; border: 1px solid rgba(42,114,118,.4); background: var(--paper); color: var(--teal-ink); font: 700 13px/1 var(--sans); }
.pill2 svg { width: 18px; height: 18px; }
.pill2:active { transform: scale(.97); }
.dishform .flbl { margin: 22px 0 8px; font: 700 10px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dishform .flbl .sub { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; }
.dishform .seg button { font-size: 13px; }
.dishform .pair { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.numf { display: flex; align-items: center; gap: 8px; }
.numf .field { text-align: center; }
.numf .sub { font-size: 13px; color: var(--muted); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices button { min-height: 40px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(28,37,38,.16); background: transparent; color: var(--ink); font: 600 13.5px/1.25 var(--sans); text-align: left; }
.choices button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.check-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14.5px; }
.field.area { height: auto; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.artpick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.artpick button { flex: none; width: 64px; height: 64px; border-radius: 99px; border: 2px solid transparent; background: var(--paper); display: grid; place-items: center; scroll-snap-align: start; }
.artpick button.on { border-color: var(--tomato); background: #FFF3D6; }
.artpick img { width: 54px; height: 54px; object-fit: contain; }
.artpick .ph { width: 36px; height: 36px; border-radius: 99px; border: 1px dashed rgba(28,37,38,.3); }
.formerr p { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(204,78,51,.1); color: #9B3420; font-size: 14px; }
.startover .link.armed { background: var(--tomato); color: #FFF6EC; border-radius: 99px; }

/* import a recipe */
.importbox { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--paper); border: 1px solid rgba(42,114,118,.22); }
.importbox .lbl { color: var(--teal-ink); }
.importrow { display: flex; gap: 8px; margin-top: 10px; }
.importrow .field { flex: 1; min-width: 0; }
.importrow .pill2 { flex: none; }
.impmsg:not(:empty) { margin-top: 10px; font-size: 13.5px; color: var(--ink); }
.impnote { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #FFF3D6; border: 1px solid rgba(204,140,40,.3); }
.impnote p { margin: 0; font-size: 14px; line-height: 1.45; }
.impnote p + p { margin-top: 6px; }
/* alerts card: text takes the room, Turn off stays a small button on the right */
.al-row .al-tx { flex: 1; min-width: 0; }
.al-row .link { display: inline-block; width: auto; flex: none; padding: 10px 6px 10px 10px; white-space: nowrap; }
/* Meet Mabel: first-launch intro */
.intro { background: radial-gradient(120% 70% at 50% 0%, var(--teal-hi) 0%, var(--teal) 45%, #1F5A5C 100%); color: #F5EEE1; padding: var(--safe-t) 22px calc(22px + var(--safe-b)); min-height: 100dvh; }
.intro .brand { color: #F5EEE1; }
.intro-top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; min-height: 44px; }
.intro-skip { width: auto; padding: 10px 2px; color: var(--brass-lt); }
.intro-stage { position: relative; flex: 1; min-height: 250px; display: grid; place-items: center; }
.intro-glow { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,214,140,.35), rgba(255,214,140,0)); }
.intro-mabel { position: relative; width: min(64vw, 280px); height: auto; filter: drop-shadow(0 22px 26px rgba(0,30,32,.45)); animation: bob 3.2s ease-in-out infinite; }
.intro-mabel.wave { animation: hello .9s cubic-bezier(.2,.9,.25,1.2) both, bob 3.2s ease-in-out .9s infinite; }
.intro-badge { position: absolute; right: 14%; bottom: 10%; width: 64px; height: 64px; border-radius: 99px; background: #FFF3D6; color: var(--tomato); display: grid; place-items: center; box-shadow: 0 10px 22px rgba(0,30,32,.35); animation: pop .45s cubic-bezier(.2,.9,.3,1.4) .15s both; }
.intro-badge img, .intro-badge svg { width: 38px; height: 38px; object-fit: contain; }
.intro-copy { text-align: center; padding: 6px 4px 0; }
.intro-copy .lbl { color: var(--brass-lt); }
.intro-copy .title { margin: 10px 0 0; color: #FFF6EC; font-size: clamp(30px, 8.6vw, 40px); line-height: 1.08; }
.intro-copy .title em { color: #F3C978; }
.intro-copy p { margin: 12px auto 0; max-width: 330px; font-size: 15.5px; line-height: 1.5; color: rgba(245,238,225,.86); min-height: 4.5em; }
.intro-dots { display: flex; justify-content: center; gap: 4px; margin: 16px 0 14px; }
.intro-dots button { width: 28px; height: 28px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.intro-dots button::after { content: ''; width: 8px; height: 8px; border-radius: 99px; background: rgba(245,238,225,.3); transition: width .25s, background .25s; }
.intro-dots button.on::after { width: 22px; background: #F3C978; }
.intro-foot .cta { width: 100%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hello { 0% { transform: translateY(40px) scale(.85) rotate(-6deg); opacity: 0; } 70% { transform: translateY(-6px) scale(1.02) rotate(3deg); opacity: 1; } 100% { transform: none; } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .intro-mabel, .intro-mabel.wave, .intro-badge { animation: none; } }
.intro-copy .title { min-height: 2.16em; display: flex; align-items: flex-end; justify-content: center; }
.intro .cta { background: #FFF8EC; color: var(--ink); }
.intro-badge img { width: 52px; height: 52px; }

.mabel-says { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255,243,214,.1); border: 1px solid rgba(243,201,120,.22); font-size: 14.5px; line-height: 1.4; color: rgba(255,246,236,.92); font-style: italic; }
.mabel-says img { width: 38px; height: 38px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,30,32,.35)); }
.mabel-says b { font-style: normal; color: #F3C978; font-weight: 700; }
.mabel-says[hidden] { display: none; }

/* running behind */
.pill.behind { border-color: rgba(243,201,120,.6); color: #F3C978; }
.behind-head { display: flex; align-items: center; gap: 12px; }
.behind-head img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.behind-head h2 { margin: 4px 0 0; font-size: 26px; line-height: 1.1; }
#sheetBody .sub { font-size: 15px; line-height: 1.5; margin: 14px 0; }
#sheetBody .cta { margin-top: 6px; }
.behind-alt { margin-top: 18px; padding: 14px; border-radius: 16px; background: rgba(28,37,38,.05); }
.behind-alt ul { margin: 8px 0 12px; padding-left: 18px; font-size: 14px; line-height: 1.45; }

/* before the big day */
.cd { margin-top: 12px; padding: 14px 14px 6px; border-radius: 18px; background: rgba(0,40,42,.72); backdrop-filter: blur(6px); border: 1px solid rgba(243,201,120,.25); color: #FFF3D6; }
.cd-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,243,214,.12); }
.cd .lbl + .cd-row { border-top: 0; }
.cd-row b { font-size: 15px; }
.cd-row .sub { color: rgba(255,243,214,.78); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.cd-when { color: #F3C978; font-size: 10px; margin-bottom: 3px; }
.cd-check { flex: none; width: 36px; height: 36px; border-radius: 99px; border: 1.5px solid rgba(243,201,120,.55); background: transparent; color: #FFF3D6; display: grid; place-items: center; font-size: 17px; padding: 0; }
.cd-check svg { width: 18px; height: 18px; }
.cd-row.done .cd-check { background: var(--brass-lt); color: var(--ink); border-color: transparent; }
.cd-row.done .cd-tx { opacity: .55; }
.cd-row.done b { text-decoration: line-through; }
.al-cal { text-shadow: 0 1px 8px rgba(0,30,32,.9), 0 0 2px rgba(0,30,32,.8); }

.share-row { margin-top: 8px; }
.join-who { display: grid; gap: 10px; }

.kicon-svg { display: grid; place-items: center; color: var(--teal-ink); }
.kicon-svg svg { width: 30px; height: 30px; }

/* plate-up checklist (Cook mode) */
.plate-list { display: grid; gap: 8px; margin-top: 14px; }
.plate-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(245,238,225,.25); background: rgba(255,243,214,.06); color: #FFF6EC; font: 15px/1.35 var(--sans); }
.plate-item .sub { color: rgba(245,238,225,.75); font-size: 13px; }
.plate-item .pc { flex: none; width: 28px; height: 28px; border-radius: 99px; border: 1.5px solid rgba(243,201,120,.6); display: grid; place-items: center; }
.plate-item .pc svg { width: 16px; height: 16px; }
.plate-item.on { background: rgba(243,201,120,.16); }
.plate-item.on .pc { background: #F3C978; color: var(--ink); border-color: transparent; }
.plate-item.on b { text-decoration: line-through; opacity: .7; }

.conv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 10px 58px; font-size: 15px; }
.conv-row .sub { font-size: 13px; color: var(--muted); }
