/*
 * Diet Manager on the web: the desktop, and the phone through Safari (an
 * installable web app). Red-orange, light and dark (Round 10). The phone app uses the same values in
 * mobile/global.css and src/ui/palette.ts; a test keeps the three in step.
 *
 * Light is the liked light mode; dark is espresso. Both use the Round 10
 * red-orange #EE5A2A (folio tasks/diet-design-explore, part 10).
 * The system setting picks one (prefers-color-scheme). There is no switch.
 *
 * Names here -> theme roles: --bg surface, --sheet surface-raised, --tile
 * surface-sunken, --rule line-strong, --soft fg-soft, --muted fg-muted,
 * --nav rail. --label is eyebrows and section labels; --badge is the ground
 * of chips and badges.
 *
 * Two orange tokens, split by use:
 *   --accent       fills, borders, focus rings, the dial arc. Never body words
 *                  on a light surface (3.1:1 on --bg).
 *   --accent-text  orange words and text-like icons on a surface.
 *   --accent-ink   lettering on an --accent fill. White on orange fails.
 *
 * Contrast, WCAG 2.x, light / dark. Every line is recomputed from the tokens
 * below by apps/web/tests/test_shell.py, which fails if a figure is wrong or
 * under what it needs (4.5 for words, 3.0 for edges and marks).
 *   fg on bg                      15.02 / 15.34   needs 4.5
 *   fg on tile                    13.70 / 12.80   needs 4.5
 *   soft on tile                   8.00 /  9.12   needs 4.5
 *   muted on bg                    5.26 /  7.35   needs 4.5
 *   muted on sheet                 5.80 /  6.73   needs 4.5
 *   muted on tile                  4.80 /  6.13   needs 4.5
 *   accent-text on bg              5.00 /  5.41   needs 4.5
 *   accent-text on sheet           5.51 /  4.95   needs 4.5
 *   accent-text on tile            4.56 /  4.51   needs 4.5
 *   accent-ink on accent           5.62 /  5.62   needs 4.5
 *   accent-ink on accent-hover     6.60 /  6.60   needs 4.5
 *   bad on bg                      5.46 /  7.29   needs 4.5
 *   bad on sheet                   6.02 /  6.68   needs 4.5
 *   bad on tile                    4.98 /  6.08   needs 4.5
 *   accent on bg                   3.11 /  5.12   needs 3.0
 *   edge on bg                     3.39 /  3.80   needs 3.0
 *   edge on sheet                  3.73 /  3.48   needs 3.0
 *   support on bg                  4.56 /  6.56   needs 3.0
 *   rail-fg on nav                13.07 / 16.00   needs 4.5
 *   rail-soft on nav               9.86 / 11.40   needs 4.5
 *   rail-muted on nav              6.66 /  7.67   needs 4.5
 *   accent-on-rail on nav          4.55 /  6.12   needs 4.5
 *   rail-active-fg on rail-active  5.62 /  5.62   needs 4.5
 *   label on bg                    4.95 /  5.41   needs 4.5
 *   label on sheet                 5.46 /  4.95   needs 4.5
 * Tight: accent-text on tile. Keep orange words off sunken tiles where you can.
 * Never: accent-text on raised (4.48 / 4.20). Words there are fg or soft;
 * orange goes on an edge or an icon instead.
 * --line and --rule are decorative (row hairlines, the menu card's inner frame)
 * and must not carry meaning.
 */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.efeea72c7a42.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.9b8a16c9964e.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.bf1e09fb81d7.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-italic.8e2daeb2e7cb.woff2") format("woff2"); }

/* Light: the liked light mode (Round 9) with the espresso red-orange (Round 10). */
:root {
  color-scheme: light dark;
  --bg: #F2F4F7;
  --sheet: #FFFFFF;
  --tile: #E6EAF0;
  --line: #DCE1E8;
  --rule: #C8CFD9;
  --tick: #97A2B4;
  --edge: #7A8597;
  --fg: #1A1F27;
  --soft: #3C4555;
  --muted: #5C6677;
  --accent: #EE5A2A;
  --accent-hover: #F07245;
  --accent-ink: #140D08;
  --accent-text: #B54420;
  --label: #B04A20;
  --badge: #FDE8E1;
  --support: #56709A;
  --support-surface: #E3E8F0;
  --support-track: #C5CEDB;
  --bad: #B03A2E;
  --raised: var(--support-surface);
  --shadow: rgba(30, 40, 60, 0.14);

  /* The desktop sidebar is dark in both modes; its selected item is an
   * orange fill with dark lettering. */
  --nav: #262A31;
  --rail-active: #EE5A2A;
  --rail-active-fg: #140D08;
  --rail-line: #2C3446;
  --rail-fg: #F2F4F7;
  --rail-soft: #CFD6E2;
  --rail-muted: #A7B1C2;
  --accent-on-rail: #EF6639;

  /* Older page styles name these; they map onto the palette. */
  --ink: var(--fg);
  --warn: var(--accent-text);
  --green: var(--accent-text);

  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; /* one heading font: the app is sans throughout */
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-w: 232px;
  /* The page's own values, for the phone tab bar inside the dark nav. */
  --page-fg: var(--fg); --page-soft: var(--soft); --page-muted: var(--muted);
  --page-accent-text: var(--accent-text); --page-sheet: var(--sheet); --page-line: var(--line);
  /* The phone's bottom bar, above the home indicator. */
  --tabbar-h: 58px;
}

/* Dark: espresso and red-orange (Round 10, the user's pick, 2026-11-16).
 * No slate or navy. To change it, change it here and in
 * mobile/src/ui/palette.ts (mobile/global.css mirrors that), the dark
 * theme-color in templates/web/_head_app.html and DARK in
 * apps/web/tests/test_shell.py, then fix the contrast figures above until
 * test_shell.py passes. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1815;
    --sheet: #26201C;
    --tile: #2F2722;
    --line: #3B312B;
    --rule: #4A3D36;
    --tick: #766256;
    --edge: #887063;
    --fg: #F2EFEE;
    --soft: #D1CBC7;
    --muted: #AFA6A1;
    --accent-text: #EF6235;
    --label: #EF6235;
    --badge: #5A2F20;
    --support: #A89C94;
    --support-surface: #352C27;
    --support-track: #56473E;
    --bad: #E8907F;
    --shadow: rgba(0, 0, 0, 0.4);
    --nav: #181411;
    --rail-line: #352C27;
    --rail-fg: #F2EFEE;
    --rail-soft: #D1CBC7;
    --rail-muted: #AFA6A1;
    --accent-on-rail: #F06E44;
  }
}

/* The close second, "near-black and flame" (Round 10). To try it, swap these
 * in for the dark block above:
 *   --accent: #F0612A;
 *   --accent-text: #F0612A;
 *   --label: #F0612A;
 *   --badge: #542C1D;
 *   --bg: #151211;
 *   --sheet: #1D1A18;
 *   --tile: #26211F;
 *   --support: #A89B94;
 *   --support-surface: #2B2624;
 *   --support-track: #4A413D;
 *   --line: #312B28;
 *   --rule: #3F3734;
 *   --tick: #695C56;
 *   --edge: #7A6B64;
 *   --fg: #F1EFEE;
 *   --soft: #D1CAC7;
 *   --muted: #AFA6A1;
 *   --nav: #0F0E0D;
 *   --rail-active: #F0612A;
 *   --rail-line: #2B2624;
 *   --rail-fg: #F1EFEE;
 *   --rail-soft: #D1CAC7;
 *   --rail-muted: #AFA6A1;
 *   --accent-on-rail: #F0612A;
 */

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--text); }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { color: var(--soft); font-size: 0.92em; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- type ------------------------------------------------------------- */

h1, .display { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; margin: 0 0 6px; letter-spacing: -0.7px; }
h2 { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.15; margin: 32px 0 10px; letter-spacing: -0.2px; }
.eyebrow { font-family: var(--text); font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--label); }
h3 { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; margin: 20px 0 6px; }
.eyebrow { display: block; margin: 0 0 8px; }
.eyebrow.accent { color: var(--accent-text); }
.hint, .muted { color: var(--muted); font-size: 13px; }
.soft { color: var(--soft); }
.accent { color: var(--accent-text); }
.bad, .past { color: var(--bad); }
.soon { color: var(--accent-text); }
.italic { font-family: var(--display); font-style: italic; color: var(--soft); }

/* --- controls --------------------------------------------------------- */

button, .btn {
  font: inherit; font-size: 14px; min-height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--edge); background: transparent; color: var(--fg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; white-space: nowrap;
}
button:hover, .btn:hover { border-color: var(--soft); color: var(--fg); }
.btn-accent, button.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-quiet, button.btn-quiet { border-color: transparent; color: var(--soft); padding: 0 8px; }
.btn-quiet:hover { color: var(--accent-text); border-color: transparent; }
button:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }

input, select, textarea {
  font: inherit; font-size: 14px; color: var(--fg); background: var(--sheet);
  border: 1px solid var(--edge); border-radius: 12px; padding: 8px 12px; min-height: 40px;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--accent); }
label { color: var(--soft); }

/* A place filter or a choice. `.on` is the chosen one. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--edge);
  color: var(--soft); display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
  text-decoration: none; background: transparent; white-space: nowrap;
}
.chip .n { color: var(--muted); }
.chip:hover { color: var(--fg); border-color: var(--soft); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip.on .n { color: var(--accent-ink); }

/* A count beside a link. */
.count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 600; margin-left: auto;
}

/* --- photo tile -------------------------------------------------------
 * A square with the food's photo, or its first letter when there is none.
 * Sizes: default 34px (in a row), .md 56px, .lg fills its column.
 * Not `.tile`: the picker's page already owns that name.
 */
.photo-tile {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
  background: var(--tile); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 17px; color: var(--accent-text); line-height: 1;
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile.has-photo { border-color: transparent; }
.photo-tile.md { width: 56px; height: 56px; border-radius: 12px; font-size: 26px; }
.photo-tile.lg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; font-size: 35px; }
.photo-tile.round { border-radius: 50%; border-color: var(--accent); font-family: var(--text); font-size: 13px; font-weight: 600; color: var(--fg); }

/* A grid of large tiles with a name and a line under each. */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 14px; }
.tile-grid .cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-grid .name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-grid .meta { font-size: 12px; color: var(--muted); }

/* --- list rows -------------------------------------------------------- */

.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.row.tight { padding: 8px 0; gap: 12px; }
.row .when { width: 54px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.row .what { flex-grow: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.row .meta.accent { color: var(--accent-text); }
.row .meta.bad { color: var(--bad); }
.row .what.one-line { white-space: nowrap; }
.row.on, .row.on .when { color: var(--accent-text); }
a.row { color: inherit; text-decoration: none; }
a.row:hover .what { color: var(--accent-text); }

/* --- tables and messages, for the pages built before this ------------- */

table { border-collapse: collapse; width: 100%; }
td, th { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { padding: 10px 14px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--accent); margin-bottom: 8px; }
.messages li.error { border-left-color: var(--bad); }

.empty { padding: 28px 0; color: var(--soft); }
.empty p { margin: 4px 0; }

/* --- tonight (D5Home) -------------------------------------------------- */

.tonight { display: flex; gap: 48px; align-items: flex-start; }
.tonight-card { flex-grow: 1; display: flex; justify-content: center; padding-top: 6px; min-width: 0; }
.tonight-side { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 28px; }
.tonight-side .eyebrow { margin: 0 0 8px; }

.menu-card {
  width: 520px; max-width: 100%; padding: 10px; border: 1px solid var(--accent); border-radius: 6px;
  background: var(--sheet); box-shadow: 0 30px 60px var(--shadow);
}
.menu-frame {
  border: 1px solid var(--rule); border-radius: 2px; padding: 18px 40px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.menu-card h1 { margin: 0; font-size: 54px; line-height: 1; }
.menu-head { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 18px; }
.menu-head .eyebrow, .dial-label .eyebrow { margin: 0; }
.dial { position: relative; width: 320px; max-width: 100%; aspect-ratio: 320 / 182; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-label { position: absolute; left: 0; right: 0; top: 42%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dial-times { display: flex; gap: 12px; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; }
.course { display: flex; flex-direction: column; align-items: center; gap: 5px; }
/* The dial's strokes, by role (SVG attributes can't take var()). */
.dial-track { stroke: var(--support-track); }
.dial-ticks { stroke: var(--edge); }
.dial-arc { stroke: var(--accent); }
.dial-dot { fill: var(--fg); }
.dial-start { fill: var(--sheet); stroke: var(--accent); }
.dial-serve { fill: var(--accent); }
.diamond { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--accent); margin-bottom: 8px; }
.dish { font-family: var(--display); font-size: 28px; font-weight: 500; line-height: 1.15; }
.course-line { font-size: 13px; color: var(--muted); }
.rule-short { width: 70px; height: 1px; background: var(--rule); }
.for-line { margin: 0; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--soft); text-wrap: balance; }

@media (max-width: 1100px) {
  .tonight { flex-direction: column; align-items: stretch; }
  .tonight-side { width: auto; }
}
@media (max-width: 560px) {
  .menu-frame { padding: 14px 18px 22px; }
  .menu-card h1 { font-size: 44px; }
  .dish { font-size: 22px; }
}

/* --- the shell -------------------------------------------------------- */

/* Under the phone's status bar. The installed app's status bar is
 * black-translucent: white lettering over the page. This band keeps it on the
 * dark rail colour in both themes. Zero high anywhere else. */
body::before {
  content: ""; position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top, 0px); background: var(--nav);
}

.shell { display: flex; min-height: 100vh; }
.phone-only { display: none; }

/* The sidebar is dark in both modes: inside it the text tokens are the rail's. */
.nav {
  --fg: var(--rail-fg); --soft: var(--rail-soft); --muted: var(--rail-muted);
  --line: var(--rail-line); --accent-text: var(--accent-on-rail);
  --sheet: var(--rail-line); --tile: var(--rail-line); --edge: var(--rail-muted);
  color: var(--rail-fg);
  width: var(--nav-w); flex-shrink: 0; background: var(--nav); border-right: 1px solid var(--rail-line);
  /* In landscape on a large iPhone this layout applies under the Dynamic Island. */
  padding: 30px 18px 24px max(18px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.nav .brand { padding: 0 12px; font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.nav-link {
  height: 42px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--soft); text-decoration: none;
}
.nav-link svg { flex-shrink: 0; }
.nav-link:hover { color: var(--fg); background: var(--rail-line); }
.nav-link[aria-current="page"] { background: var(--rail-active); color: var(--rail-active-fg); font-weight: 600; }
.nav-link[aria-current="page"] .count { background: var(--rail-active-fg); color: var(--rail-active); }
.nav-more .nav-link { height: 34px; font-size: 13px; color: var(--muted); }
.nav-more .nav-link:hover { color: var(--fg); }
.nav-more .nav-link[aria-current="page"] { color: var(--rail-active-fg); }
.nav-you { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.nav-you .who { flex-grow: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-you a { color: var(--muted); display: inline-flex; }
.nav-you a:hover { color: var(--accent-text); }

.content { flex-grow: 1; min-width: 0; padding: 36px max(44px, env(safe-area-inset-right, 0px)) 64px 44px; }
.content > main { max-width: 1180px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head .hint { margin-top: 4px; }

/* Signed out, or not a member: no nav, the page centred. */
.bare {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
           max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.bare main { max-width: 26rem; }
.bare p { color: var(--soft); }

/* Phones, Safari or installed from the home screen. A dark bar on top (brand,
 * household, More) that the status bar sits over, and the five places as a
 * tab bar at the bottom, clear of the home indicator. */
@media (max-width: 860px) {
  .desk-only { display: none !important; }
  .phone-only { display: revert; }
  .shell { flex-direction: column; }
  .nav {
    width: auto; height: auto; position: sticky; top: 0; z-index: 20;
    flex-direction: row; align-items: center; gap: 8px; overflow: visible;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
    border-right: 0; border-bottom: 1px solid var(--rail-line);
  }
  .nav .brand { font-size: 22px; padding: 0; white-space: nowrap; margin-right: auto; flex-shrink: 0; }
  .nav-menu { flex-shrink: 0; }

  /* The tab bar keeps the page's own theme. */
  .nav-main {
    --fg: var(--page-fg); --soft: var(--page-soft); --muted: var(--page-muted);
    --accent-text: var(--page-accent-text);
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--page-sheet); border-top: 1px solid var(--page-line);
  }
  .nav-main .nav-link {
    height: var(--tabbar-h); padding: 6px 2px 4px; border-radius: 0; gap: 3px;
    flex-direction: column; justify-content: center; font-size: 11px; font-weight: 500;
    color: var(--muted); background: none;
  }
  .nav-main .nav-link svg { width: 22px; height: 22px; }
  .nav-main .nav-link:hover { background: none; color: var(--fg); }
  .nav-main .nav-link[aria-current="page"], .nav-main .nav-link.here-too { color: var(--accent-text); font-weight: 600; background: none; }

  .nav-menu { position: relative; }
  .nav-menu-button {
    list-style: none; cursor: pointer; min-height: 40px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--rail-muted); color: var(--fg); display: inline-flex; align-items: center; gap: 6px; font-size: 14px;
  }
  .nav-menu-button::-webkit-details-marker { display: none; }
  .nav-menu-button .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  .nav-menu[open] .nav-menu-button { background: var(--rail-line); }
  .nav-menu-body {
    position: absolute; right: 0; top: calc(100% + 8px); width: min(260px, calc(100vw - 32px));
    max-height: calc(100vh - 160px); overflow-y: auto;
    padding: 8px; border-radius: 14px; background: var(--nav); border: 1px solid var(--rail-line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; gap: 2px;
  }
  .nav-menu-body .nav-link { height: 44px; }
  .nav-menu-body .nav-you { margin: 6px 0 0; padding: 10px 12px 4px; border-top: 1px solid var(--rail-line); }
  .nav-menu-body .nav-you .who { display: block; }

  .content {
    padding: 22px max(16px, env(safe-area-inset-right, 0px)) calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 32px) max(16px, env(safe-area-inset-left, 0px));
    overflow-x: auto;
  }
  h1, .display { font-size: 32px; }
}

/* Touch screens: 16px or more in every field, so iOS doesn't zoom in on focus. */
@media (max-width: 860px), (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }
}

/* --- the way in, and the household page (dm-onboarding) --------------- */

.first-run { width: 100%; }
.first-run h1 { margin-bottom: 10px; }
.first-run h2 { margin-top: 28px; }
.stack { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.stack button, .stack .btn { align-self: flex-start; }
.or { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.household { max-width: 44rem; }
.household section + section { margin-top: 36px; }
.household .rows + .hint { margin-top: 10px; }
.invite-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.invite-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.invite-form input { flex: 1 1 14rem; }
.row.invite { flex-wrap: wrap; }
.row.invite .what { flex: 1 1 14rem; min-width: 0; }
input.link { width: 100%; font-size: 13px; color: var(--soft); }
/* A QR is dark on white, the way it scans best, in both themes. */
.qr { display: block; width: 96px; flex-shrink: 0; padding: 8px; background: #FFFFFF; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.qr-lg { width: min(320px, 100%); padding: 16px; margin: 18px 0; border-radius: 14px; }
.invite-big input.link { margin-bottom: 4px; }
/* Which household is showing, under the brand (only with two or more). */
.switcher { padding: 0 10px 18px; }
.switcher select { width: 100%; }
/* On a phone the switcher takes what the brand and More leave, and the name
 * ellipsises, so More never leaves the screen. */
@media (max-width: 860px) {
  .switcher { padding: 0; flex: 1 1 0; min-width: 0; display: flex; justify-content: flex-end; }
  .switcher select { width: 100%; max-width: 12rem; min-width: 0; min-height: 40px; text-overflow: ellipsis; }
}
details.dates summary { cursor: pointer; color: var(--accent-text); font-size: 14px; }
.date-pair { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 4px; }
.date-pair label, .invite-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.invite-form label input { flex: none; }

/* --- dm-welcome: the opening, setup, ideas, an empty kitchen ---------------- */
.glance-head { display: grid; gap: 4px; margin-bottom: 16px; }
.glance-headline { font-size: 34px; line-height: 1.1; margin: 0; }
.tick { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; color: var(--support, #9cc79a); background: color-mix(in srgb, var(--support, #9cc79a) 18%, transparent); flex-shrink: 0; }
.who { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--edge); display: inline-grid; place-items: center; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.hint.block { display: block; }
.ideas-slot { width: 100%; max-width: 34rem; }
.ideas { display: grid; gap: 12px; }
.ideas .row form, form.row { margin: 0; }
.setup { max-width: 40rem; display: grid; gap: 14px; }
.setup-hello { display: grid; gap: 10px; justify-items: start; }
.setup-hello h1.display { font-size: 56px; margin: 0; }
.setup-greeting { font-size: 28px; margin: 8px 0 0; }
.orb { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #F79A72, var(--accent) 55%, #A6361A); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); display: inline-block; }
.orb.lg { width: 72px; height: 72px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent), 0 0 0 18px color-mix(in srgb, var(--accent) 5%, transparent); margin: 12px 0 4px; }
.chat { display: grid; gap: 10px; }
.say { display: flex; gap: 8px; align-items: flex-start; }
.bubble { margin: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 9px 12px; }
.me { margin: 0; justify-self: end; max-width: 82%; background: var(--tile); border-radius: 14px 4px 14px 14px; padding: 9px 12px; color: var(--soft); }
.saved { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--soft); display: grid; gap: 4px; }
.tended { font-family: var(--display); font-style: italic; color: var(--accent-text); }
.setup-steps { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.setup-steps li::before { content: "○ "; }
.setup-steps li.done { color: var(--fg); }
.setup-steps li.done::before { content: "✓ "; color: var(--support, #9cc79a); }
.rhythm { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rhythm div { border: 1px solid var(--line); border-radius: 10px; padding: 6px 2px; text-align: center; font-size: 11px; color: var(--muted); display: grid; gap: 2px; }
.rhythm div b { color: var(--fg); }
.rhythm div.set { border-color: var(--accent); color: var(--fg); }
.heard { border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); padding: 10px 14px; }
.heard .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
form.inline { display: inline; margin: 0; }
.chip.warn { background: var(--badge); border-color: var(--badge); color: var(--fg); }
.talk { display: grid; gap: 8px; }
.talk textarea, .talk input, .told textarea { width: 100%; }
.week-list { display: grid; gap: 6px; }
.day { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.day.out { background: transparent; border-style: dashed; }
.day .d { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.day .d b { display: block; font-family: var(--display); font-size: 19px; color: var(--fg); letter-spacing: 0; }
.day .m b { display: block; font-weight: 500; }
.day .m small { color: var(--muted); }
.day form { margin: 0; }
.day .x { width: 36px; height: 36px; padding: 0; }
.empty-kitchen { display: grid; gap: 12px; max-width: 32rem; padding: 12px 0; }
.empty-kitchen h2.display { font-size: 32px; margin: 0; }
.empty-kitchen .told { display: grid; gap: 6px; }

/* Eat out (dm-dining): every dish, a heart on each, favourites by place. */
.eat-out .chips { margin-bottom: 14px; }
.eat-out .chip svg { vertical-align: -2px; }
.eat-out .chip.on svg { fill: currentColor; }
.chip.small-chip { height: 20px; padding: 0 7px; border-radius: 6px; font-family: var(--text); font-size: 11px; letter-spacing: 0; vertical-align: 2px; }
.dish-row .dish-name { font-size: 15px; }
.heart-form { margin: 0; flex-shrink: 0; }
button.heart { width: 44px; height: 44px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); display: inline-grid; place-items: center; }
button.heart:hover { color: var(--accent-text); border-color: transparent; }
button.heart.on { color: var(--accent); }
button.heart.on svg { fill: currentColor; }
.fav-place { margin-bottom: 18px; }
.fav-place .place-name { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 10px 0 4px; }
.places { margin-top: 28px; }
.add-place { margin-top: 12px; }
.add-place summary { list-style: none; cursor: pointer; display: inline-flex; }
.add-place summary::-webkit-details-marker { display: none; }
.add-place-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.add-place-form input[name="name"] { flex: 1 1 14rem; min-width: 0; }
.import-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 14px; margin-bottom: 22px; }
.import-way { display: grid; gap: 8px; align-content: start; margin: 0; }
.import-way textarea { width: 100%; }
.photo-drop { display: grid; place-items: center; gap: 8px; min-height: 12rem; border: 1px dashed var(--line); border-radius: 16px; background: var(--sheet); color: var(--accent-text); cursor: pointer; text-align: center; }
.photo-drop span { color: var(--fg); font-weight: 500; }
.photo-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.menu-check .row { cursor: pointer; }
.menu-check .what { display: grid; gap: 2px; }
.menu-check .dish-input { width: 100%; }
.menu-check .price-input { width: 6.5rem; flex-shrink: 0; }
.stack-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }

/* Eat out: Tonight, a place, favourites, Find, the board (the 2026-11-19 mockups).
 * Phone first; from 860px the card and the lists sit in a readable column. */
.eo { max-width: 720px; }
.eo.eo-find { max-width: none; }
.eo-narrow { max-width: 560px; }
.eo-head { align-items: center; }
.eo-head h1 { font-size: 34px; }
.eo-h2 { font-size: 20px; margin: 26px 0 10px; }
.eo-people { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eo-avatar-link { display: inline-flex; border-radius: 50%; text-decoration: none; }
.eo-avatar-link.on .eo-avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.eo-iconbtn { width: 40px; padding: 0; border-radius: 50%; }
.eo-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; color: #fff; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
}
.eo-avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.eo-avatar.xs { width: 20px; height: 20px; font-size: 10px; border-width: 1px; }
.eo-avatar.lg { width: 56px; height: 56px; font-size: 24px; }
.eo-stack { display: inline-flex; }
.eo-stack .eo-avatar + .eo-avatar { margin-left: -8px; }
.eo-stack.tight { vertical-align: middle; margin-right: 4px; }
.eo-photo { flex-shrink: 0; overflow: hidden; border-radius: 10px; background: var(--tile); display: inline-block; width: 40px; height: 40px; }
.eo-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eo-photo.sm { width: 36px; height: 36px; border-radius: 9px; }
.eo-photo.md { width: 56px; height: 56px; border-radius: 12px; }
.eo-photo.card { width: 100%; height: 96px; border-radius: 14px; }
.eo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.eo-actions form { margin: 0; }
.eo-stacked { flex-direction: column; align-items: stretch; margin-top: 18px; }
.eo-stacked form { display: flex; flex-direction: column; }
.eo-big { min-height: 48px; border-radius: 14px; font-size: 16px; font-weight: 600; flex: 1 1 0; }
.eo-row { display: flex; gap: 8px; }
.eo-row input { flex: 1; min-width: 0; }

.eo-pending { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.eo-pending .what { display: flex; flex-direction: column; }
.eo-home { margin-bottom: 14px; }
.eo-home-map { height: 220px; border-radius: 16px; overflow: hidden; background: var(--tile); margin: 10px 0; }

.eo-card { border-radius: 24px; overflow: hidden; background: var(--sheet); box-shadow: 0 6px 24px var(--shadow); }
.eo-hero { position: relative; height: 250px; background: var(--tile); }
.eo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eo-credit { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.eo-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.eo-facts li { display: flex; gap: 10px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.eo-facts .k { flex: none; width: 64px; font-size: 13px; color: var(--muted); }
.eo-place-map { height: 160px; border-radius: 16px; overflow: hidden; margin: 0 0 14px; background: var(--tile); }
.eo-hero-short { height: 160px; border-radius: 20px; overflow: hidden; margin: 10px 0 14px; }
.eo-badge { position: absolute; left: 14px; top: 14px; background: rgba(26, 31, 39, 0.78); color: #fff; border-radius: 14px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.eo-hero .eo-stack { position: absolute; right: 14px; top: 14px; }
.eo-hero .eo-avatar { border-color: #fff; }
.eo-card-body { padding: 16px 18px 18px; }
.eo-card-body h2 { margin: 0; font-family: var(--text); font-size: 22px; font-weight: 800; }
.eo-card-body h2 a { color: inherit; text-decoration: none; }
.eo-dishes { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.eo-dishes li { display: flex; align-items: center; gap: 10px; }
.eo-dishes .what { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.eo-heart { color: var(--accent); display: inline-flex; }
.eo-heart svg { fill: currentColor; }
.eo-order { display: flex; gap: 10px; margin: 0; }
.eo-scroller { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.eo-mini { flex: 0 0 150px; display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; scroll-snap-align: start; }
.eo-mini .name { font-weight: 600; font-size: 15px; }
.eo-empty .eo-actions { margin-top: 14px; }

.eo-place-head { align-items: center; margin-bottom: 14px; }
.eo-dish .what { flex: 1; min-width: 0; }
.eo-dish .dish-name { white-space: normal; }
button.eo-usual { min-height: 34px; padding: 0 10px; border-radius: 17px; font-size: 13px; }
button.eo-usual.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.eo-site { margin-top: 8px; }
.eo-site .eo-h2 { margin-bottom: 4px; }
.eo-check { margin: 0; }
button.eo-tick, button.eo-cross { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; }
button.eo-tick { color: var(--accent); }
.eo-sticky { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 10px); margin-top: 16px; }
@media (min-width: 861px) { .eo-sticky { bottom: 16px; } }
.eo-credit { margin-top: 22px; }
.eo-ticket { padding: 14px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.eo-text { margin: 0; font: inherit; font-size: 16px; white-space: pre-wrap; }

.eo-surprise { margin: 0 0 12px; }
.eo-surprise-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--accent); color: inherit; text-decoration: none; margin-bottom: 8px; }
.eo-surprise-card .what { display: flex; flex-direction: column; }
.eo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 861px) { .eo-grid { grid-template-columns: repeat(3, 1fr); } }
.eo-tile { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--tile); }
.eo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eo-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 9px; color: #fff; font-size: 13px; font-weight: 600; background: linear-gradient(transparent, rgba(26, 31, 39, 0.78)); }
.eo-tile-heart { position: absolute; right: 2px; top: 2px; color: var(--accent); background: rgba(255, 255, 255, 0.85); border-radius: 50%; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
.eo-tile-heart .heart-form button.heart { width: 40px; height: 40px; }
.eo-tile-heart svg { fill: currentColor; }
.eo-tile-heart .heart:not(.on) svg { fill: none; }

.eo-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 861px) { .eo-board { grid-template-columns: repeat(3, 1fr); } }
.eo-board form { margin: 0; }
.eo-bigtile { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--tile); }
.eo-bigtile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eo-bigtile.picked { box-shadow: 0 0 0 4px #2E7D4F; }
.eo-place-badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 10px; background: rgba(26, 31, 39, 0.78); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.eo-check { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; background: #2E7D4F; color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.eo-check svg { stroke-width: 2.6; }

.eo-pin { position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: var(--tile); box-shadow: 0 4px 10px rgba(26, 31, 39, 0.3); cursor: pointer; }
.eo-pin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.eo-pin.fav { border-color: var(--accent); }
.eo-pin-heart { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: inline-flex; padding: 2px 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }

/* Recipes: the box, a recipe, cooking it. Reuses the tile grid and the chips. */
.rcp { max-width: 960px; }
.rcp-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.rcp-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none; }
.rcp-cell .name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcp-cell .meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcp-cell:hover .name { color: var(--accent-text); }
.rcp-cell .name { margin-top: 6px; }
.rcp-pic { position: relative; display: block; }
.rcp-badge { position: absolute; right: 6px; bottom: 6px; display: inline-flex; border-radius: 10px; box-shadow: 0 0 0 2px var(--bg); }
.rcp-badge .photo-tile { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
.rcp-import { display: grid; gap: 8px; margin-bottom: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 16px; background: var(--sheet); }
.rcp-import.drag { border-color: var(--accent); }
.rcp-import textarea { width: 100%; resize: vertical; }
.rcp-import-row { display: flex; gap: 10px; align-items: center; }
.rcp-import-row label.btn { cursor: pointer; color: var(--accent-text); }
.rcp-import-row label.btn span { color: var(--fg); }
.rcp-error { margin: 0; }
.rcp-page .rcp-top { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 10px; }
@media (min-width: 700px) { .rcp-page .rcp-top { grid-template-columns: 240px 1fr; } }
.rcp-hero { margin: 0; }
.rcp-hero-pic { display: block; cursor: pointer; position: relative; }
.rcp-hero-pic .photo-tile.lg { border-radius: 18px; font-size: 64px; }
.rcp-head { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.rcp-edit { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.rcp-edit input, .rcp-edit textarea { background: transparent; border-color: transparent; width: 100%; }
.rcp-edit input:hover, .rcp-edit textarea:hover { border-color: var(--line); }
.rcp-edit input:focus, .rcp-edit textarea:focus { background: var(--sheet); border-color: var(--accent); }
.rcp-title { font-family: var(--display); font-size: 30px; padding: 4px 8px; }
.rcp-servings { width: auto; }
.rcp-servings input { width: 4rem; text-align: center; }
.rcp-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rcp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rcp-actions form { margin: 0; }
.rcp-added { font-size: 13px; margin-left: 8px; }
.rcp-list { list-style: none; margin: 0; padding: 0; }
.rcp-ing, .rcp-step { padding: 6px 0 6px 10px; border-top: 1px solid var(--line); border-left: 3px solid transparent; }
.rcp-ing.unmatched { border-left-color: var(--accent); }
.rcp-food { display: block; padding-left: 8px; }
.rcp-pick { padding-left: 8px; gap: 6px; margin: 2px 0 4px; }
.rcp-pick .chip { height: 30px; padding: 0 10px; font-size: 13px; }
.rcp-steps { counter-reset: step; }
.rcp-step { counter-increment: step; position: relative; padding-left: 40px; }
.rcp-step::before { content: counter(step); position: absolute; left: 10px; top: 14px; color: var(--muted); font-size: 13px; }
.rcp-step textarea { resize: vertical; }
.rcp-sources { display: flex; gap: 10px; flex-wrap: wrap; }
.rcp-sources img { height: 120px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.rcp-cook { list-style: none; margin: 18px 0; padding: 0; counter-reset: cook; }
.rcp-cook li { counter-increment: cook; display: flex; flex-direction: column; gap: 6px; padding: 18px 0 18px 48px; border-top: 1px solid var(--line); position: relative; }
.rcp-cook li::before { content: counter(cook); position: absolute; left: 0; top: 16px; font-family: var(--display); font-size: 28px; color: var(--accent-text); }
.rcp-cook-text { font-size: 24px; line-height: 1.4; }
.rcp-cook-ings summary { cursor: pointer; color: var(--soft); }
.rcp-cook-uses { margin: 4px 0 0; padding-left: 18px; color: var(--soft); font-size: 18px; }
.cook-on .rcp-cook-step { display: none; border-top: 0; padding-top: 6px; }
.cook-on .rcp-cook-step.cook-here { display: flex; min-height: 40vh; }
.cook-on .rcp-cook-text { font-size: 28px; }
.rcp-cook-timer { align-self: flex-start; min-height: 56px; padding: 0 22px; font-size: 20px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: inherit; }
.rcp-cook-nav { display: flex; gap: 12px; margin: 12px 0; }
.rcp-cook-nav button { flex: 1; min-height: 64px; font-size: 22px; border-radius: 16px; }
.rcp-cook-nav[hidden], .rcp-cook-done[hidden], .rcp-cook-nav button[hidden] { display: none; }
.rcp-home { margin: 10px 0 18px; }
.rcp-home .rcp-mini { flex: 0 0 120px; }
.rcp-cookcard { flex: 0 0 150px; display: flex; flex-direction: column; gap: 6px; }
.rcp-cookcard form { margin: 0; }
.rcp-cookcard button { width: 100%; }
