/* Buttermilk: built to the brand comps in ~/Desktop/Buttermilk (cream paper, deep navy ink, rust
   accents, serif headings, the script wordmark up top). Big tap targets and big type, because hands
   are wet and the phone is propped on the counter. */
:root { color-scheme:light dark;
  /* Two real themes: cream (light) and Night Kitchen (dark, Jesse's pick 2026-11-25). Automatic follows the
     phone; More > Appearance can pin one (html[data-theme]). Declaring both also stops browsers and
     dark-mode extensions from auto-darkening the cream theme (they turned it olive and hid the logo). */
  --on-navy:#fff; --on-accent:#fff; --hl:#F3E4CF; --tabs:#FAF0DC; --tint-olive:#E9ECDA;
  --warn-bg:#FFF5E1; --warn-ink:#7A4A00; --err-bg:#FDECEC; --err-ink:#A72A2F; --skel-a:#EFE6D3; --skel-b:#FAF3E5;
  --nav-bg:rgba(252,246,235,.96); --veil:rgba(253,249,240,.92); --bar-bg:rgba(250,243,229,.92); --star-off:#D8D5CE; --wm-filter:none;
  --bg:#FAF3E5; --card:#FDF9F0; --ink:#0D1D27; --ink-2:#202020; --slate:#6E6A60; --faint:#A39C8E;
  --line:#E6DCC8; --fill:#F2E9D6; --box:#C3B8A3;
  --navy:#102C37; --rust:#A8450E; --rust-ink:#A23B1B; --olive:#5B6B2E; --red:#C8343A;
  --accent:var(--rust);
  /* Type: "Misprint" (picked 2026-11-24). Bebas Neue poster caps with a slightly off-register rust
     shadow, like a two-color print job; Archivo for reading; Courier Prime for labels and numbers. */
  --font:'Archivo',system-ui,-apple-system,'Segoe UI',sans-serif;
  --display:'Bebas Neue','Arial Narrow',sans-serif;
  --mono:'Courier Prime','Courier New',monospace;
  --serif:var(--display);
  --misprint:3px 2px 0 rgba(168,69,14,.55);
  --r-sm:12px; --r:16px; --r-lg:24px;
  --control-h:52px; --nav-h:76px;
  --shadow:0 1px 2px rgba(60,40,10,.05), 0 8px 24px -12px rgba(60,40,10,.14);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; padding:0; }
body {
  font:17px/1.45 var(--font); color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
[hidden] { display:none !important; }
button { font:inherit; color:inherit; cursor:pointer; }
a { color:inherit; }
:focus-visible { outline:2.5px solid var(--accent); outline-offset:2px; }

.wrap { max-width:720px; margin:0 auto; padding:18px 16px calc(var(--nav-h) + 96px); }
h1 { font:400 46px/.95 var(--display); letter-spacing:.02em; margin:0; color:var(--navy); text-shadow:var(--misprint); }
/* Bebas caps are taller than a .95 line box. iOS paints an animating screen inside each element's box,
   so the overflow at the top of every title came out smudged. Pad the ink inside the box, same layout. */
h1, .rtitle { padding-top:.12em; margin-top:-.12em; }
h2 { font:400 32px/1 var(--display); letter-spacing:.04em; margin:26px 0 10px; display:flex; align-items:center; gap:8px; color:var(--rust); }
h3 { font:400 24px/1.05 var(--display); letter-spacing:.04em; margin:0; color:var(--navy); }
.muted { color:var(--slate); }
.small { font-size:14px; }
.lede { color:var(--slate); margin:6px 0 0; font-size:16px; }
.top { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.top h1 { flex:1; min-width:0; overflow-wrap:anywhere; }

/* ── Controls: every single-line control is the same height, selects included ── */
input, select, textarea {
  width:100%; font:17px var(--font); color:var(--ink); background:var(--card);
  border:1.5px solid var(--line); border-radius:var(--r-sm); padding:0 14px; min-width:0;
}
input, select { height:var(--control-h); }
select {
  -webkit-appearance:none; appearance:none; padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B7177' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center;
}
textarea { padding:12px 14px; min-height:120px; resize:vertical; line-height:1.45; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--accent); }
label.f { display:block; margin:14px 0 0; min-width:0; }
/* iOS draws date inputs at their own intrinsic width, spilling into the next column; pin them to the cell. */
input[type=date] { -webkit-appearance:none; appearance:none; display:block; min-width:0; max-width:100%; text-align:left; line-height:calc(var(--control-h) - 3px); padding-top:0; padding-bottom:0; }
input[type=date]::-webkit-date-and-time-value { text-align:left; }
.picks .li { min-height:48px; padding:10px 12px; border-radius:var(--r-sm); }
.picks .li svg { width:20px; height:20px; color:var(--rust); }
input.linked { border-color:var(--olive); background:#F3F5E9; }
label.f > span { display:block; font-size:14px; font-weight:700; color:var(--ink-2); margin:0 0 6px; }
.row2 { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
.row3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
.check { display:flex; align-items:center; gap:10px; margin:14px 0 0; font-weight:600; }
.check input { width:24px; height:24px; accent-color:var(--accent); }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; height:var(--control-h); padding:0 20px;
  border-radius:999px; border:none; font-weight:650; font-size:17px; background:var(--navy); color:var(--on-navy); text-decoration:none; white-space:nowrap;
}
.btn.block { width:100%; }
.btn.soft { background:var(--fill); color:var(--ink); }
.btn.line { background:var(--card); color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line); }
.btn.danger { background:#F8E3DA; color:var(--red); }
.btn.sm { height:40px; padding:0 14px; font-size:15px; }
.btn:disabled { opacity:.55; cursor:default; }
.btns { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.btns .btn { flex:1 1 0; min-width:max-content; padding:0 16px; }   /* side by side when both fit, else each on its own row; never a wrapped label */
.icon-btn { width:46px; height:46px; border-radius:50%; border:none; background:var(--card); box-shadow:var(--shadow); display:inline-flex; align-items:center; justify-content:center; flex:none; }
.icon-btn svg, .btn svg { width:22px; height:22px; }
.link { background:none; border:none; padding:6px 0; font-weight:700; color:var(--accent); }

/* ── Cards and lists ── */
.card { background:var(--card); border-radius:var(--r); box-shadow:var(--shadow); padding:16px; }
.card + .card { margin-top:12px; }
.group { background:var(--card); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; }
.li { display:flex; align-items:center; gap:12px; padding:14px 16px; min-height:60px; border:none; background:none; width:100%; text-align:left; text-decoration:none; }
.group .li + .li { border-top:1px solid var(--line); }
.li .grow { flex:1; min-width:0; }
.li > svg { width:24px; height:24px; flex:none; color:var(--rust); }
.li .sub { display:block; color:var(--slate); font-size:14px; margin-top:2px; }
.chev { color:var(--faint); flex:none; }

.search { position:relative; margin-bottom:12px; }
.search input { padding-left:44px; border-radius:999px; }
.search svg { position:absolute; left:15px; top:15px; width:22px; height:22px; color:var(--faint); }
.chips { display:flex; gap:8px; overflow-x:auto; padding:2px 0 12px; scrollbar-width:none; }
.chip { flex:none; height:38px; padding:0 15px; border-radius:999px; border:none; background:var(--card); box-shadow:inset 0 0 0 1.5px var(--line); font-weight:650; font-size:15px; }
.chip.on { background:var(--navy); color:var(--on-navy); box-shadow:none; }

.rgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:12px; }
.rcard { background:var(--card); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; text-decoration:none; display:flex; flex-direction:column; border:none; padding:0; text-align:left; }
.rcard .ph { aspect-ratio:4/3; background:var(--fill) center/cover no-repeat; display:flex; align-items:center; justify-content:center; color:var(--faint); }
.rcard .ph svg { width:36px; height:36px; }
.rcard .ph img { width:100%; height:100%; object-fit:cover; display:block; }
.rmore { height:1px; }
.rcard .t { padding:10px 12px 12px; font:400 26px/.95 var(--display); letter-spacing:.03em; color:var(--navy); }
.rcard .m { font-family:var(--font); }
.rcard .m { display:block; color:var(--slate); font-size:13.5px; font-weight:500; margin-top:4px; }
.pill { display:inline-flex; align-items:center; height:24px; padding:0 9px; border-radius:999px; font-size:12.5px; font-weight:700; background:var(--fill); color:var(--ink-2); }
.pill.lock { background:#E7ECEE; color:var(--navy); }

/* ── Recipe page ── */
.hero { margin:0 -16px 16px; aspect-ratio:16/10; background:var(--fill) center/cover no-repeat; }
@media (min-width:720px) { .hero { margin:0 0 16px; border-radius:var(--r); } }
.meta { display:flex; flex-wrap:wrap; gap:8px 16px; color:var(--slate); font-size:15px; margin:8px 0 0; }
.scaler { display:flex; align-items:center; gap:10px; }
.scaler button { width:44px; height:44px; border-radius:50%; border:none; background:var(--fill); font-size:22px; font-weight:700; }
.scaler b { min-width:84px; text-align:center; }
.ing { list-style:none; margin:0; padding:0; }
.ing li { padding:11px 2px; border-bottom:1px solid var(--line); font-size:18px; cursor:pointer; }
.ing li.h { font-weight:800; border:none; padding-top:16px; cursor:default; }
.ing li.x { color:var(--faint); text-decoration:line-through; }
.steps { margin:0; padding:0; list-style:none; counter-reset:s; }
.steps li { counter-increment:s; position:relative; padding:12px 12px 12px 48px; margin:0 0 8px; border-radius:var(--r-sm); font-size:18px; cursor:pointer; }
.steps li::before { content:counter(s); position:absolute; left:10px; top:11px; width:28px; height:28px; border-radius:50%; background:var(--fill); font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; }
.steps li.on { background:var(--hl); }
.steps li.on::before { background:var(--accent); color:var(--on-accent); }
.steps li.h { padding-left:2px; font-weight:800; counter-increment:none; cursor:default; }
.steps li.h::before { display:none; }
.notes { white-space:pre-wrap; }
.stars { display:flex; gap:4px; }
.stars button { border:none; background:none; padding:4px; color:var(--star-off); }
.stars button.on { color:#F2B01E; }
.stars svg { width:28px; height:28px; }

/* ── App bar with the wordmark (the comp's header) ── */
.appbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; margin:14px -6px 12px; min-height:54px; }   /* clear of the status bar and Safari's top blur */
.appbar .wm { height:58px; width:auto; display:block; }
.appbar .l, .appbar .r { display:flex; align-items:center; gap:4px; }
.appbar .r { justify-content:flex-end; }
.bare { width:44px; height:44px; border:none; background:none; color:var(--ink); display:inline-flex; align-items:center; justify-content:center; border-radius:50%; flex:none; }
.bare svg { width:26px; height:26px; }
.bare.back svg { width:30px; height:30px; stroke-width:2.2; }

/* ── Recipe page, to the comp ── */
[data-screen="recipe"] .hero { aspect-ratio:16/10; margin-top:0; }   /* taller than the old 21:9 strip (Jesse, 2026-11-25) */
.rtitle { font:400 58px/.9 var(--display); letter-spacing:.02em; margin:calc(4px - .12em) 0 0; color:var(--navy); text-shadow:var(--misprint); }
.facts { display:flex; align-items:center; margin:8px 0 0; color:var(--ink-2); font-size:15px; }
.facts > span { display:flex; align-items:center; gap:8px; padding:0 14px; white-space:nowrap; }
.facts > span:first-child { padding-left:0; }
.facts > span + span { border-left:1.5px solid var(--line); }
.facts svg { width:22px; height:22px; color:var(--ink); flex:none; }
/* Misprint labels: typewriter caps for times, servings, tabs, chips and the scaler. */
.facts, .scalebox, .chip, .rtabs button, .showmore, .rcard .m, .pill { font-family:var(--mono); font-weight:700; text-transform:uppercase; letter-spacing:.02em; }
.facts, .rtabs button, .showmore { font-size:14px; }
.rcard .t .m { font-size:12.5px; letter-spacing:.01em; }
@media (max-width:400px) { .facts > span { padding:0 9px; gap:6px; } .facts { flex-wrap:wrap; row-gap:6px; } }
.rtabs { display:flex; gap:2px; margin:18px 0 6px; padding:4px; border-radius:14px; background:var(--tabs); box-shadow:inset 0 0 0 1px var(--line); overflow-x:auto; scrollbar-width:none; }
.rtabs button { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; height:42px; padding:0 12px; border:none; border-radius:10px; background:none; color:var(--ink-2); font-size:15.5px; font-weight:550; white-space:nowrap; }
.rtabs button svg { width:22px; height:22px; }
.rtabs button.on { background:var(--navy); color:var(--on-navy); font-weight:650; }
.sec-h { display:flex; align-items:center; gap:12px; margin:22px 0 8px; }
.sec-h h2 { margin:0; flex:1; }
.scalebox { display:flex; align-items:center; gap:10px; font-size:15px; color:var(--ink-2); }
.scalebox .stp { display:flex; align-items:center; height:40px; border-radius:10px; box-shadow:inset 0 0 0 1.5px var(--box); overflow:hidden; }
.scalebox .stp button { width:40px; height:40px; border:none; background:none; font-size:22px; color:var(--ink); }
.scalebox .stp b { min-width:44px; height:40px; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:600; border-left:1.5px solid var(--box); border-right:1.5px solid var(--box); }
.ing.boxes li { display:flex; align-items:flex-start; gap:12px; padding:4px 2px; border:none; font-size:16px; line-height:1.4; }
.ing.boxes li::before { content:''; flex:none; width:22px; height:22px; margin-top:0; border-radius:5px; box-shadow:inset 0 0 0 2px var(--ink-2); }
.ing.boxes li.x::before { background:var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow:none; }
.ing.boxes li.h::before { display:none; }
.ing.boxes li .il { flex:1; min-width:0; }
/* Pantry hints on a recipe: a quiet olive "Have" tag, and a summary with one tap to list the rest. */
.stk { flex:none; align-self:center; font:700 11.5px var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--olive); background:var(--tint-olive); border-radius:999px; padding:3px 8px; }
.stk.stale { color:var(--slate); background:var(--fill); }
.ing.boxes li.x .stk { opacity:.5; }
.stockbar { display:flex; align-items:center; gap:12px; padding:12px 14px; margin:2px 0 12px; background:var(--card); border-radius:var(--r-sm); box-shadow:inset 0 0 0 1.5px var(--line); }
.stockbar .grow { flex:1; min-width:0; }
.stockbar b { font-size:15.5px; }
.stockbar .sub { display:block; color:var(--slate); font-size:13px; margin-top:2px; }
.stockbar .btn { flex:none; }
.showmore { display:flex; align-items:center; gap:6px; margin:2px 0 0 34px; padding:6px 0; border:none; background:none; color:var(--rust-ink); font-size:16px; font-weight:600; white-space:nowrap; }
.showmore svg { width:18px; height:18px; stroke-width:2.6; }
.rule { border:none; border-top:1.5px solid var(--line); margin:22px 0 0; }
.steps.rust li::before { background:var(--rust); color:var(--on-accent); width:32px; height:32px; font:400 21px/1 var(--display); top:6px; left:2px; padding-top:2px; }
.steps.rust li { padding:6px 8px 6px 50px; margin:0 0 10px; font-size:16px; line-height:1.45; }
.steps.rust li.on { background:var(--hl); }
.cookmode { position:fixed; left:16px; right:16px; margin:0 auto; max-width:688px; bottom:calc(var(--nav-h) + 14px + env(safe-area-inset-bottom)); z-index:31; height:60px; border:none; border-radius:999px; background:var(--navy); color:var(--on-navy); font-size:21px; font-weight:650; display:flex; align-items:center; justify-content:center; gap:12px; box-shadow:0 10px 30px -10px rgba(16,44,55,.55); }
.cookmode svg { width:30px; height:30px; }
.cookmode.on { background:var(--rust); }
.panel .card { background:var(--card); }
.stars.big svg { width:30px; height:30px; }

/* ── Add / import ── */
.paste { min-height:150px; font-size:18px; }
.sources { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.notice { border-radius:var(--r-sm); padding:12px 14px; font-size:15.5px; margin:12px 0 0; }
.notice.warn { background:var(--warn-bg); color:var(--warn-ink); }
.notice.info { background:#EAF6F3; color:#0D6B5F; }
.notice.err { background:var(--err-bg); color:var(--err-ink); }
.spinner { width:22px; height:22px; border-radius:50%; border:3px solid rgba(128,128,128,.35); border-top-color:currentColor; animation:spin .8s linear infinite; }
.btn.soft .spinner, .btn.line .spinner { border-color:rgba(128,128,128,.25); border-top-color:var(--accent); }
@keyframes spin { to { transform:rotate(360deg); } }
.steps-live { list-style:none; padding:0; margin:14px 0 0; color:var(--slate); }
.steps-live li { padding:4px 0; }
.steps-live li.done { color:var(--ink); }

/* ── Plan ── */
.weekbar { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.weekbar .lbl { flex:1; text-align:center; font:700 15px/1.3 var(--mono); text-transform:uppercase; }
.day { background:var(--card); border-radius:var(--r); box-shadow:var(--shadow); padding:12px 14px; margin-bottom:10px; }
.day.today { box-shadow:inset 0 0 0 2px var(--rust), var(--shadow); }
.day-h { display:flex; align-items:center; gap:8px; }
.day-h b { flex:1; font:400 24px/1 var(--display); letter-spacing:.04em; color:var(--navy); }
.meal { display:flex; align-items:center; gap:10px; padding:10px 0 4px; }
.meal .grow { flex:1; min-width:0; }
.meal .slot { font:700 13px var(--mono); text-transform:uppercase; letter-spacing:.02em; color:var(--rust); }
.meal .nm { font-weight:700; display:block; background:none; border:none; padding:0; text-align:left; font-size:17px; }
.meal .who { display:inline-flex; align-items:center; gap:5px; font-size:13.5px; color:var(--slate); }
.dot { width:10px; height:10px; border-radius:50%; display:inline-block; flex:none; background:var(--c, #C9CDD1); }
.cook { width:40px; height:40px; border-radius:50%; border:2px solid var(--line); background:var(--card); display:inline-flex; align-items:center; justify-content:center; color:transparent; flex:none; }
.cook.on { background:var(--olive); border-color:var(--olive); color:var(--on-accent); }
.cook svg { width:20px; height:20px; }
.empty-day { color:var(--faint); font-size:15px; padding:6px 0 2px; }

/* ── List ── */
.additem { display:flex; gap:8px; margin-bottom:14px; }
.additem input { border-radius:999px; }
.additem .btn { flex:none; width:var(--control-h); padding:0; }
.aisle { font:700 14px var(--mono); text-transform:uppercase; letter-spacing:.02em; color:var(--rust); margin:18px 4px 6px; }
.item { display:flex; align-items:center; gap:14px; padding:12px 16px; min-height:58px; width:100%; border:none; background:none; text-align:left; font-size:18px; }
.group .item + .item { border-top:1px solid var(--line); }
.box { width:26px; height:26px; border-radius:6px; border:2px solid var(--ink-2); flex:none; display:flex; align-items:center; justify-content:center; color:transparent; }
.item.on .box { background:var(--navy); border-color:var(--navy); color:var(--on-navy); }
.item.on .tx { color:var(--faint); text-decoration:line-through; }
.box svg { width:18px; height:18px; }
.item .tx { flex:1; min-width:0; overflow-wrap:anywhere; }
.item .del { border:none; background:none; color:var(--faint); padding:6px; }

/* ── Pantry ── */
.pitem { gap:10px; }
.pitem .btn.sm { height:34px; padding:0 12px; font-size:14px; flex:none; }
.pq { display:block; font:700 12.5px var(--mono); text-transform:uppercase; color:var(--slate); margin-top:2px; }
.cookcard { display:flex; align-items:center; gap:14px; margin:6px 0 4px; text-decoration:none; }
.cookcard svg { width:30px; height:30px; color:var(--rust); flex:none; }
.cookcard b { font:400 24px/1 var(--display); letter-spacing:.04em; color:var(--navy); }
.cookcard .sub { display:block; color:var(--slate); font-size:14px; margin-top:3px; }
.pill.got { background:var(--olive); color:var(--on-accent); }

/* ── Sheet ── */
.scrim { position:fixed; inset:0; background-color:rgba(20,22,26,calc(.42 * var(--fade, 1))); z-index:40; display:flex; align-items:flex-end; justify-content:center; }
.sheet { background:var(--bg); width:100%; max-width:720px; max-height:92vh; overflow:auto; border-radius:var(--r-lg) var(--r-lg) 0 0; padding:10px 16px calc(24px + env(safe-area-inset-bottom)); }
.sheet .grab { width:44px; height:5px; border-radius:3px; background:var(--box); margin:0 auto 12px; }
.sheet h2 { margin-top:6px; }
@media (min-width:720px) { .scrim { align-items:center; } .sheet { border-radius:var(--r-lg); } }

/* ── Nav + banners ── */
.nav { position:fixed; left:0; right:0; bottom:0; z-index:30; background:var(--nav-bg); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom); }
.nav-in { max-width:720px; margin:0 auto; display:grid; grid-template-columns:repeat(5, 1fr); height:var(--nav-h); }
.nav a { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; text-decoration:none; font-size:13.5px; font-weight:550; color:var(--ink-2); }
.nav a svg { width:26px; height:26px; }
.nav a.on { color:var(--rust); font-weight:650; }
.nav a.on::after { content:''; position:absolute; bottom:8px; left:50%; width:44px; margin-left:-22px; height:2.5px; border-radius:2px; background:var(--rust); }
.fab { position:fixed; right:max(18px, calc(50% - 342px)); bottom:calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); z-index:31; height:60px; padding:0 24px; border-radius:999px; border:none; background:var(--navy); color:var(--on-navy); font-weight:700; font-size:18px; display:flex; align-items:center; gap:8px; box-shadow:0 10px 30px -10px rgba(16,44,55,.55); }
.fab svg { width:24px; height:24px; }
.syncbar { position:sticky; top:0; z-index:20; margin:-18px -16px 14px; padding:9px 16px; font-size:14.5px; font-weight:650; text-align:center; }
.syncbar.off { background:var(--warn-bg); color:var(--warn-ink); }
.syncbar.err { background:var(--err-bg); color:var(--err-ink); }
#toast { position:fixed; left:16px; right:16px; margin:0 auto; width:fit-content; bottom:calc(var(--nav-h) + 92px + env(safe-area-inset-bottom)); transform:translateY(20px); opacity:0; transition:.2s; z-index:60; background:var(--navy); color:var(--on-navy); padding:12px 16px; border-radius:14px; font-weight:600; font-size:15.5px; max-width:min(92vw, 520px); display:flex; gap:14px; align-items:center; pointer-events:none; }
#toast.show { opacity:1; transform:none; pointer-events:auto; }
#toast span { flex:1; }
#toast button { background:none; border:none; color:#FFB4A6; font-weight:800; padding:4px 0; flex:none; }

/* ── Empty / loading ── */
.empty { text-align:center; padding:36px 20px; }
.empty svg { width:54px; height:54px; color:var(--accent); opacity:.85; }
.empty h3 { margin:12px 0 6px; font-size:30px; }
.empty p { color:var(--slate); margin:0 auto 16px; max-width:340px; }
.skel { background:linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 50%, var(--skel-a) 75%); background-size:200% 100%; animation:sh 1.2s infinite; border-radius:var(--r); height:150px; }
@keyframes sh { to { background-position:-200% 0; } }

/* ── Welcome ── */
.welcome { max-width:460px; margin:0 auto; padding:48px 20px; }
.brand { display:flex; align-items:center; gap:12px; margin-bottom:26px; }
.brand { flex-direction:column; gap:8px; }
.brand img { height:76px; width:auto; display:block; }
.brand .tag { display:flex; align-items:center; gap:12px; font:700 14px var(--mono); letter-spacing:.3em; color:var(--ink); }
.brand .tag::before, .brand .tag::after { content:''; width:34px; height:1.5px; background:var(--ink); }
/* Continue with Apple / Google, above the form (fleet standard). Apple's button is black per its guidelines. */
.sso-box { display:grid; gap:10px; margin-top:18px; }
.sso-box:empty { display:none; }
.sso { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:48px; border-radius:999px; font:600 16.5px var(--font); }
.sso.apple { background:#000; color:#fff; border:none; }
.sso.google { background:#fff; color:#1F1F1F; border:1px solid #DADCE0; }
.sso.google .g { font-weight:800; color:#4285F4; }
.sso-linked { display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 20px; margin-top:14px; border:1px solid var(--line); border-radius:28px; background:var(--card); }
.sso-linked svg { width:18px; height:18px; flex:none; }
.sso-linked .g { font-weight:800; color:#4285F4; width:18px; text-align:center; }
.sso-linked .grow { flex:1; min-width:0; line-height:1.25; }
.sso-linked .sub { display:block; color:var(--slate); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sso-linked .link { flex:none; }
.sso-g { display:flex; justify-content:center; min-height:44px; }
.or { display:flex; align-items:center; gap:12px; color:var(--slate); font-size:14px; margin:18px 0 0; }
.or::before, .or::after { content:''; flex:1; height:1px; background:var(--line); }
.swap { text-align:center; color:var(--slate); font-size:15px; margin:18px 0 0; }
.seg { display:grid; grid-template-columns:1fr 1fr; background:var(--fill); border-radius:999px; padding:4px; margin:18px 0 4px; }
.seg button { height:44px; border:none; border-radius:999px; background:none; font-weight:750; color:var(--slate); }
.seg button.on { background:var(--card); color:var(--ink); box-shadow:var(--shadow); }
.code { font:800 32px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing:.12em; text-align:center; padding:18px; background:var(--fill); border-radius:var(--r-sm); margin:8px 0; user-select:all; }

/* ── History ── */
.hist { display:flex; gap:12px; padding:12px 16px; align-items:flex-start; }
.group .hist + .hist { border-top:1px solid var(--line); }
.hist .grow { flex:1; min-width:0; }
.hist .when { color:var(--faint); font-size:13px; }
.hist.undone { opacity:.5; }

/* ── iPad and landscape ──
   Phones in portrait keep the bottom tab bar. iPad portrait and phones turned sideways get a slim
   side rail instead (landscape height is too precious for a bottom bar). iPad landscape and up get a
   full sidebar with the wordmark, wider content, and the recipe split into ingredient + step columns. */
.nav a.nav-brand { display:none; }   /* beats .nav a, which would otherwise show it in the phone tab bar */
@media (min-width:740px), (orientation:landscape) and (max-height:520px) and (min-width:560px) {
  body:has(.nav) { --rail:96px; padding-left:calc(var(--rail) + env(safe-area-inset-left)); }
  .nav { top:0; bottom:0; right:auto; width:calc(var(--rail) + env(safe-area-inset-left)); display:flex; flex-direction:column;
    padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom) env(safe-area-inset-left); border-top:none; border-right:1px solid var(--line); overflow-y:auto; }
  .nav a.nav-brand { display:flex; flex-direction:row; justify-content:center; align-items:center; height:auto; padding:16px 0 8px; flex:none; background:none; border-radius:0; }
  .nav-brand .nb-mk { width:52px; height:52px; border-radius:14px; box-shadow:0 0 0 1px var(--line); }
  .nav-brand .nb-wm { display:none; }
  .nav-in { display:flex; flex-direction:column; gap:4px; height:auto; max-width:none; margin:0; padding:8px 10px; }
  .nav a { height:70px; border-radius:14px; }
  .nav a.on { background:var(--hl); }
  .nav a.on::after { display:none; }
  .wrap { max-width:900px; padding:18px 24px 110px; }
  .syncbar { margin:-18px -24px 14px; }
  .fab { right:max(24px, env(safe-area-inset-right)); bottom:calc(20px + env(safe-area-inset-bottom)); }
  /* A compact pill bottom-right, like the Add button, instead of a bar across the page. */
  .cookmode { left:auto; right:max(24px, env(safe-area-inset-right)); width:auto; max-width:none; margin:0; padding:0 26px; bottom:calc(20px + env(safe-area-inset-bottom)); }
  #toast { left:calc(var(--rail) + env(safe-area-inset-left) + 16px); bottom:calc(96px + env(safe-area-inset-bottom)); }
  .hero, [data-screen="recipe"] .hero { margin:0 0 16px; border-radius:var(--r); }
  /* Meals: days side by side instead of one long column. */
  [data-screen="plan"] { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:14px; align-content:start; }
  [data-screen="plan"] > :not(.day) { grid-column:1 / -1; }
}
@media (min-width:1024px) and (min-height:521px) {
  body:has(.nav) { --rail:236px; }
  .nav a.nav-brand { justify-content:flex-start; height:auto; padding:26px 22px 18px; }
  .nav-brand .nb-wm { display:block; height:54px; width:auto; }
  .nav-brand .nb-mk { display:none; }
  .nav-in { padding:8px 14px; }
  .nav a { flex-direction:row; justify-content:flex-start; gap:14px; height:54px; padding:0 16px; font-size:17px; }
  .wrap { max-width:1120px; padding:28px 40px 120px; }
  .syncbar { margin:-28px -40px 18px; }
  .appbar .wm { visibility:hidden; }   /* the sidebar already carries the wordmark */
  .rgrid { grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:16px; }
  [data-screen="recipe"] .hero { aspect-ratio:3/1; }
  /* Recipe: ingredients stay in view on the left while you work down the steps. */
  .rcols { display:grid; grid-template-columns:minmax(300px, 5fr) 7fr; gap:44px; align-items:start; }
  .rc-ing { position:sticky; top:18px; }
  .rc-dir > .rule { display:none; }
  .rc-dir > h2 { margin-top:22px; }
  [data-screen="plan"] { grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
/* Phones on their side: short screen, so slimmer chrome. */
@media (orientation:landscape) and (max-height:520px) {
  .nav a { height:58px; font-size:12.5px; }
  .nav a.nav-brand { padding:10px 0 4px; height:auto; }
  .nav-brand .nb-mk { width:42px; height:42px; }
  .appbar { min-height:44px; margin-bottom:6px; }
  .appbar .wm { height:40px; }
  [data-screen="recipe"] .hero { aspect-ratio:7/2; }
  .rtitle { font-size:44px; }
  .cookmode { height:48px; font-size:17px; padding:0 20px; }
  .cookmode svg { width:24px; height:24px; }
  .fab { height:50px; }
  .sheet { max-height:96vh; }
}

/* ── Print: only #printout, plain and big ── */
#printout { display:none; }
@media print {
  body { background:#fff; padding:0; font-size:12pt; }
  body > *:not(#printout) { display:none !important; }
  #printout { display:block; color:#000; }
  #printout h1 { font-size:22pt; margin:0 0 4pt; }
  #printout h2 { font-size:14pt; margin:14pt 0 6pt; }
  #printout .pm { color:#444; margin:0 0 10pt; }
  #printout ul, #printout ol { margin:0; padding-left:18pt; }
  #printout li { margin:0 0 4pt; }
  #printout .cols { columns:2; column-gap:24pt; }
  #printout table { width:100%; border-collapse:collapse; }
  #printout td, #printout th { border:1px solid #bbb; padding:6pt; vertical-align:top; text-align:left; }
  #printout img { max-width:45%; float:right; margin:0 0 8pt 12pt; border-radius:6pt; }
  #printout .ai { break-inside:avoid; }
}

/* ── Motion ──
   iOS curve, transform + opacity only, all of it off under reduced motion. */
:root { --ease-ios:cubic-bezier(.32,.72,0,1); }
.scrim { animation:scrim-in .35s ease both; }
.scrim .sheet { animation:sheet-up .5s var(--ease-ios) both; overscroll-behavior:contain; transition:transform .4s var(--ease-ios); will-change:transform; }
.scrim .sheet.dragging { transition:none; }
.scrim.leaving { animation:scrim-out .26s ease both; pointer-events:none; }
.scrim.leaving .sheet { animation:sheet-down .26s cubic-bezier(.4,0,1,1) both; }
/* A dragged sheet finishes with a transition from the finger's spot, and the scrim fades from its current shade. */
.scrim.leaving.dragged { animation:none; transition:background-color .24s ease; }
.scrim.leaving.dragged .sheet { animation:none; transition:transform .24s cubic-bezier(.4,0,1,1); }
@keyframes scrim-in { from { background:rgba(20,22,26,0); } }
@keyframes scrim-out { to { background:rgba(20,22,26,0); } }
@keyframes sheet-up { from { transform:translateY(100%); } }
@keyframes sheet-down { to { transform:translateY(100%); } }
@media (min-width:720px) {
  @keyframes sheet-up { from { transform:translateY(24px) scale(.98); opacity:0; } }
  @keyframes sheet-down { to { transform:translateY(16px) scale(.98); opacity:0; } }
}
html.sheet-open, html.sheet-open body { overflow:hidden; }

/* Screens: drill-ins slide in, tab switches fade up, then cards and rows settle in one after another. */
.wrap.enter-push { animation:push-in .38s var(--ease-ios) both; }
.wrap.enter-fade { animation:fade-up .28s ease-out both; }
@keyframes push-in { from { transform:translateX(28%); opacity:0; } }
@keyframes fade-up { from { transform:translateY(10px); opacity:0; } }
/* Only the first few settle in: animating hundreds of cards at once is what makes iPhone Safari give up. */
.wrap.enter-fade .rcard:nth-child(-n+6), .wrap.enter-fade .group > :nth-child(-n+6), .wrap.enter-fade .card { animation:fade-up .34s ease-out both; }
.wrap.enter-fade :is(.rcard, .group > *):nth-child(2) { animation-delay:.03s; }
.wrap.enter-fade :is(.rcard, .group > *):nth-child(3) { animation-delay:.06s; }
.wrap.enter-fade :is(.rcard, .group > *):nth-child(4) { animation-delay:.09s; }
.wrap.enter-fade :is(.rcard, .group > *):nth-child(5) { animation-delay:.12s; }
.wrap:is(.enter-fade, .enter-push) .empty svg { animation:pop-in .45s var(--ease-ios) both .05s; }
@keyframes pop-in { from { transform:scale(.6); opacity:0; } }

/* Press states: buttons give a little; rows and cards tint after 100ms so a scrolling finger doesn't flash them. */
.btn, .icon-btn, .fab, .sso, .nav a, .seg button, .bare { transition:transform .08s ease, opacity .08s ease; }
.btn:active:not(:disabled), .icon-btn:active, .fab:active, .sso:active, .seg button:active, .bare:active { transform:scale(.97); }
.nav a:active { transform:scale(.92); }
.rcard { transition:transform .12s ease .1s; }
.rcard:active { transform:scale(.98); }
.li, .item { transition:background-color .12s ease .1s; }
.li:active, .item:active { background-color:var(--fill); }
.li:not(:active), .item:not(:active), .rcard:not(:active) { transition-delay:0s; }

/* Ticking a grocery item: the box fills with a small pop and the text fades to struck. */
.item .box { transition:background-color .18s ease, border-color .18s ease, transform .18s var(--ease-ios); }
.item.just .box { animation:tick .3s var(--ease-ios); }
.item .tx { transition:color .2s ease; }
@keyframes tick { 40% { transform:scale(1.18); } }
.wrap.enter-fade ~ .nav a.on svg { animation:tab-pop .3s var(--ease-ios); }
@keyframes tab-pop { 40% { transform:translateY(-2px) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-delay:0s !important; transition-duration:.001ms !important; transition-delay:0s !important; }
}

/* ── What's for Dinner? ── */
.cookcard > svg:last-child { width:20px; height:20px; color:var(--faint); }
.away + .away { border-top:1px solid var(--line); }
.away .li { min-height:0; }
.away-list { display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 14px; }
.away-list .chip { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ideas { display:grid; gap:14px; }
@media (min-width:740px) { .ideas { grid-template-columns:1fr 1fr; } }
.idea { background:var(--card); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; }
.idea .ph { aspect-ratio:16/9; background:var(--fill) center/cover no-repeat; }
.idea .body { padding:12px 14px 14px; }
.idea .src { display:block; font:700 11.5px var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--rust); margin-bottom:4px; }
.idea b { display:block; font:400 26px/1 var(--display); letter-spacing:.03em; color:var(--navy); }
.idea p { margin:6px 0 0; color:var(--slate); font-size:15px; }
.idea .fit { display:inline-block; margin-top:8px; font:700 11.5px var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--olive); background:var(--tint-olive); border-radius:999px; padding:3px 8px; }
.spinner.dark { width:16px; height:16px; border-width:2.5px; border-color:rgba(128,128,128,.25); border-top-color:var(--accent); display:inline-block; vertical-align:-3px; margin-right:8px; }

/* ── Find a Recipe ── */
.sites { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; }
.site { display:flex; align-items:center; gap:10px; min-height:56px; padding:8px 12px; border:none; border-radius:var(--r-sm); background:var(--card); box-shadow:var(--shadow); text-align:left; text-decoration:none; color:var(--ink); font-weight:650; font-size:15px; line-height:1.2; }
.site > span:nth-child(2) { flex:1; min-width:0; }
.site .mono { flex:none; width:32px; height:32px; border-radius:50%; background:var(--c); color:#fff; display:flex; align-items:center; justify-content:center; font:400 20px/1 var(--display); padding-top:2px; }
.site > svg { width:16px; height:16px; color:var(--faint); flex:none; }
.results .li { align-items:center; }
.results .thumb { flex:none; width:64px; height:64px; border-radius:10px; background:var(--fill) center/cover no-repeat; }
.results .li > svg:last-child { width:18px; height:18px; color:var(--faint); flex:none; }
.pv-site { margin:-6px 0 12px; font:700 12px var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--rust); }
.pv-photo { aspect-ratio:4/3; border-radius:var(--r); background:var(--fill) center/cover no-repeat; margin-bottom:14px; }
.pv-bar { position:sticky; bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:1fr 1.4fr; gap:10px; margin-top:20px; padding:10px; background:var(--bar-bg); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border-radius:999px; box-shadow:var(--shadow); }
.pv-bar .btn { padding:0 12px; }

/* Say It: the live-mic banner. The red dot is always fully visible (never animated through opacity:
   an animation that freezes at 0 would hide a live mic, Time 2 Table's bug); only its ring pulses. */
.rec { display:flex; align-items:center; gap:10px; padding:10px 14px; margin:0 0 10px; border-radius:var(--r-sm); background:var(--navy); color:var(--on-navy); font-family:var(--mono); letter-spacing:.04em; text-transform:uppercase; font-size:14px; }
.rec .muted { color:#D8E2E6; margin-left:auto; text-transform:none; letter-spacing:0; }
.recdot { position:relative; width:12px; height:12px; border-radius:50%; background:#E5484D; box-shadow:0 0 0 2px #fff; flex:none; }
.recdot::after { content:''; position:absolute; inset:-6px; border-radius:50%; border:2px solid #E5484D; animation:recring 1.4s ease-out infinite; }
@keyframes recring { from { transform:scale(.6); } to { transform:scale(1.5); border-color:transparent; } }
#vtext { width:100%; min-height:130px; font:inherit; font-size:17px; line-height:1.45; padding:12px 14px; border-radius:var(--r-sm); border:1.5px solid var(--line); background:var(--card, #fff); color:var(--ink); resize:vertical; }
#vtext[readonly] { border-color:var(--navy); }
.btns .btn.sq { flex:none; width:var(--control-h); min-width:0; padding:0; }
@media (prefers-reduced-motion: reduce) { .recdot::after { animation:none; } }

/* Hands-free cooking: sits just above the Cook Mode button. Live = navy with the record dot. */
.handsfree { position:fixed; left:16px; right:16px; margin:0 auto; max-width:688px; bottom:calc(var(--nav-h) + 84px + env(safe-area-inset-bottom)); z-index:31; height:48px; border:2px solid var(--navy); border-radius:999px; background:var(--card); color:var(--navy); font:650 17px var(--font); display:flex; align-items:center; justify-content:center; gap:10px; padding:0 18px; }
.handsfree svg { width:22px; height:22px; }
.handsfree.on { background:var(--navy); color:var(--on-navy); justify-content:flex-start; }
.handsfree.on .x { margin-left:auto; font:700 13px var(--mono); text-transform:uppercase; letter-spacing:.06em; opacity:.85; }
@media (min-width:768px) { .handsfree { left:auto; right:max(24px, env(safe-area-inset-right)); width:auto; max-width:none; margin:0; bottom:calc(80px + env(safe-area-inset-bottom)); } }
/* Still Have These? */
.still { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:26px 10px 10px; }
.still b { font-family:var(--display); font-weight:400; font-size:40px; line-height:1; color:var(--navy); letter-spacing:.02em; }
.still .sub { color:var(--ink-2); font-size:15px; }
button.cookcard { width:100%; text-align:left; font:inherit; color:inherit; cursor:pointer; }
/* Possible duplicates */
.group.dupe { margin-bottom:16px; }
.dthumb { width:56px; height:56px; border-radius:10px; overflow:hidden; flex:none; display:flex; align-items:center; justify-content:center; background:var(--fill); }
.dthumb img { width:100%; height:100%; object-fit:cover; }
.dtitle { width:auto; height:auto; border-radius:0; font:inherit; font-weight:650; line-height:1.3; text-align:left; color:var(--ink); padding:0; display:block; justify-content:flex-start; }
/* Cooking with Hands-Free on: room under the last step for both floating buttons. */
body:has(.handsfree) .wrap { padding-bottom:calc(var(--nav-h) + 170px + env(safe-area-inset-bottom)); }
.still-more { display:flex; justify-content:center; gap:32px; margin-top:14px; }
.setup { margin:12px 0 0; padding-left:22px; color:var(--ink-2); font-size:15.5px; }
.setup li { margin:6px 0; }
.picklist .item img { width:52px; height:52px; border-radius:8px; object-fit:cover; flex:none; }
.picklist { max-height:52vh; overflow-y:auto; }
.sortrow { display:flex; align-items:center; justify-content:space-between; margin:10px 0 2px; }
.sortbtn { display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border:none; border-radius:999px; background:var(--fill); color:var(--navy); font:700 13px var(--mono); text-transform:uppercase; letter-spacing:.04em; }
.sortbtn svg { width:16px; height:16px; }
/* A short tab (Notes, Source) still leaves room to keep the tab bar in place when switching. */
[data-screen="recipe"] .panel { min-height:calc(100vh - 120px); }
.li.danger, .li.danger svg { color:var(--red); }
.btn.line.danger-line { color:var(--red); box-shadow:inset 0 0 0 1.5px rgba(200,52,58,.35); }
/* The heart: on each card's photo, and in the recipe's top bar. */
.rcard { position:relative; }
.rcard .fav { position:absolute; top:8px; right:8px; z-index:2; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--veil); color:var(--navy); box-shadow:0 2px 8px rgba(16,44,55,.18); }
.rcard .fav svg { width:20px; height:20px; }
.rcard .fav.on, .favtop.on { color:#C8343A; }
.favchip { display:inline-flex; align-items:center; gap:6px; }
.favchip svg { width:14px; height:14px; color:#C8343A; }
.favchip.on svg { color:var(--on-navy); }
/* Choose Ingredients */
.choose-h { display:flex; align-items:baseline; justify-content:space-between; }
.choose { max-height:54vh; overflow-y:auto; margin-top:4px; }
.choose .item input { width:24px; height:24px; flex:none; accent-color:var(--navy); }
.choose .tx { display:flex; flex-direction:column; gap:2px; }
.ci-n { font-weight:600; }
.ci-p { font-weight:400; color:var(--slate); }
.ci-q { font:700 13px var(--mono); color:var(--ink-2); letter-spacing:.02em; }
/* Edit screen sections */
.esections .card { margin:0; }
.esec { display:flex; align-items:center; gap:8px; font-size:24px; margin:22px 0 8px; }
.esec svg { width:20px; height:20px; }
.esections textarea { width:100%; }
.rdesc { font-size:18px; color:var(--slate); margin:8px 0 0; }
.sw-u { font-weight:600; display:block; }
.item .tx .sub { display:block; color:var(--slate); font-size:14px; margin-top:2px; }
.top-sort { justify-content:space-between; }
.top-sort h1 { flex:0 1 auto; }
/* Search boxes: our own clear X (iOS hides or restyles the built-in one). */
.search input { padding-right:46px; }
.search input::-webkit-search-cancel-button { -webkit-appearance:none; appearance:none; }
.search .sclear { position:absolute; right:6px; top:50%; transform:translateY(-50%); width:40px; height:40px; border:none; border-radius:50%; background:none; display:flex; align-items:center; justify-content:center; color:var(--slate); }
.search .sclear[hidden] { display:none; }
.search .sclear svg { position:static; width:18px; height:18px; color:currentColor; padding:4px; box-sizing:content-box; border-radius:50%; background:var(--fill); }
#websearch { white-space:normal; height:auto; min-height:var(--control-h); padding:10px 20px; text-align:center; }
.rgrid .rgroup { grid-column:1 / -1; margin:6px 0 -2px; font:700 13px var(--mono); letter-spacing:.08em; text-transform:uppercase; color:var(--rust); }

/* ── Night Kitchen (dark) ── */
:root[data-theme="light"] { color-scheme:only light; }
:root[data-theme="dark"] { color-scheme:only dark; --bg:#0B0F12; --card:#151C22; --fill:#1D262E; --line:#29343D; --box:#6D7880;
  --ink:#EDE6D6; --ink-2:#DDD5C4; --slate:#A3ACB2; --faint:#6D7880;
  --navy:#EDE6D6; --rust:#F08C4A; --rust-ink:#F08C4A; --olive:#A7BE6E; --red:#FF6B6B; --accent:var(--rust);
  --on-navy:#0B0F12; --on-accent:#0B0F12; --hl:#1D2A36; --tabs:#151C22; --tint-olive:#263122;
  --warn-bg:#3A2E14; --warn-ink:#F2C879; --err-bg:#3D1C1E; --err-ink:#FFB4A6; --skel-a:#151C22; --skel-b:#1D262E;
  --nav-bg:#0B0F12; --veil:rgba(21,28,34,.9); --bar-bg:rgba(11,15,18,.92); --star-off:#3A4550;
  --misprint:3px 2px 0 rgba(86,150,190,.6);
  --shadow:0 1px 2px rgba(0,0,0,.35), 0 8px 24px -12px rgba(0,0,0,.7);
  --wm-filter:brightness(0) invert(.93) sepia(.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg:#0B0F12; --card:#151C22; --fill:#1D262E; --line:#29343D; --box:#6D7880;
  --ink:#EDE6D6; --ink-2:#DDD5C4; --slate:#A3ACB2; --faint:#6D7880;
  --navy:#EDE6D6; --rust:#F08C4A; --rust-ink:#F08C4A; --olive:#A7BE6E; --red:#FF6B6B; --accent:var(--rust);
  --on-navy:#0B0F12; --on-accent:#0B0F12; --hl:#1D2A36; --tabs:#151C22; --tint-olive:#263122;
  --warn-bg:#3A2E14; --warn-ink:#F2C879; --err-bg:#3D1C1E; --err-ink:#FFB4A6; --skel-a:#151C22; --skel-b:#1D262E;
  --nav-bg:#0B0F12; --veil:rgba(21,28,34,.9); --bar-bg:rgba(11,15,18,.92); --star-off:#3A4550;
  --misprint:3px 2px 0 rgba(86,150,190,.6);
  --shadow:0 1px 2px rgba(0,0,0,.35), 0 8px 24px -12px rgba(0,0,0,.7);
  --wm-filter:brightness(0) invert(.93) sepia(.3); } }
img.wm, .nb-wm, .brand img { filter:var(--wm-filter); }
.sso.apple { box-shadow:0 0 0 1px var(--line); }
.seg.seg3 { grid-template-columns:repeat(3, 1fr); margin:0; }
/* Recipes title = category picker (Paprika's All Recipes ▾) */
.catpick { border:none; background:none; padding:0; text-align:left; display:flex; flex-direction:column; align-items:flex-start; color:inherit; min-width:0; }
.catpick .cp-t { display:flex; align-items:center; gap:6px; min-width:0; }
.catpick h1 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.catpick svg { width:22px; height:22px; color:var(--rust); flex:none; }
.catpick .cp-n { font:700 12px var(--mono); letter-spacing:.06em; text-transform:uppercase; color:var(--slate); margin-top:2px; }
.cat-n { font:700 13px var(--mono); color:var(--slate); }
.li.on { color:var(--rust); }
.li.on .cat-n { color:var(--rust); }
/* Google's button is its own light frame. On a dark page the browser paints a white box behind a frame whose
   color scheme differs, so mark the frame light: its backdrop stays transparent. */
.sso-g, .sso-g iframe { color-scheme:light; }
.cookcard .grow { flex:1; min-width:0; }   /* the arrow sits at the right edge on wide screens too */
