/* Layout: one-column phone app. A big serif page title, cards and photo grids,
   fixed bottom tab bar, bottom sheets for detail, import and forms.
   Look ("Cookbook", Nov 2026): warm cream ground, white cards, Fraunces serif for
   titles over Inter, tomato accent, light only, sentence case. Color carries
   meaning: each household has one (its tile, when it has no picture), each meal
   has one (tags, and recipe cards with no photo yet), each food group has one
   (What's in it tiles), each place in the kitchen has one (On hand chips), green
   means "have" and amber means "need". Everything else stays quiet. */
/* Inter (SIL Open Font License, see /fonts/OFL.txt), served from the app itself */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }

/* Fraunces (SIL Open Font License, see /fonts/OFL-Fraunces.txt): titles */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/fraunces-latin-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }

/* ---------- Palette (light only) ---------- */
:root {
  --bg: #FAF6F0; --surface: #FFFFFF; --sunk: #F3EDE4; --band: #F1EAE0; --ink: #231C17; --muted: #6B6159; --faint: #9A8F84;
  --line: rgba(70, 45, 20, .10); --line-strong: rgba(70, 45, 20, .18);
  --accent: #B8431C; --accent-deep: #963412; --accent-soft: #FBE9E1; --on-accent: #FFFFFF;
  --have: #1E7A44; --have-soft: #E2F1E6; --need: #B45309; --need-soft: #FDF0E1;
  --star: #E0A21B; --star-off: #E2D9CC; --danger: #B42318; --danger-soft: #FCE8E6;
  --scrim: rgba(35, 28, 23, .38);
  /* Meals */
  --m-breakfast: #946200; --m-breakfast-soft: #FFF1CC;
  --m-lunch: #0F766E; --m-lunch-soft: #D9F3F0;
  --m-dinner: #5B3FD1; --m-dinner-soft: #ECE8FF;
  --m-dessert: #C0325F; --m-dessert-soft: #FFE4EE;
  --m-other: #56637A; --m-other-soft: #E9EDF3;
  /* Households, in the order they joined (the first matches the app's blue) */
  --h0: #2653E6; --h0-soft: #E3EAFF;
  --h1: #0F766E; --h1-soft: #D9F3F0;
  --h2: #C0325F; --h2-soft: #FFE4EE;
  --h3: #946200; --h3-soft: #FFF1CC;
  --h4: #5B3FD1; --h4-soft: #ECE8FF;
  --h5: #0B6E8E; --h5-soft: #DDF4FA;
  /* Food groups (What's in it) */
  --k-chicken: #8A5D00; --k-chicken-soft: #FCEFD0;
  --k-turkey: #8A4A1C; --k-turkey-soft: #F6E3D3;
  --k-beef: #9E2F36; --k-beef-soft: #F9E1E1;
  --k-pork: #A2355F; --k-pork-soft: #FBE4EC;
  --k-game: #5F5246; --k-game-soft: #ECE6DF;
  --k-seafood: #1A6480; --k-seafood-soft: #DEEFF5;
  --k-veggie: #386A2D; --k-veggie-soft: #E3F0DF;
  --k-pasta: #7F5C17; --k-pasta-soft: #F6ECD8;
  --k-soup: #A2461C; --k-soup-soft: #FBE6DC;
  /* Places in the kitchen */
  --p-fridge: #2457C5; --p-fridge-soft: #E2EEFF;
  --p-freezer: #0B6E8E; --p-freezer-soft: #DDF4FA;
  --p-pantry: #8A5A14; --p-pantry-soft: #F7EDDA;
  /* Surfaces */
  --ring: 0 0 0 1px var(--line);
  --shadow-card: 0 1px 2px rgba(60, 40, 20, .04), 0 2px 10px rgba(60, 40, 20, .05);
  --shadow-float: 0 2px 6px rgba(20, 27, 38, .08), 0 16px 40px rgba(20, 27, 38, .14);
  --shadow-sm: 0 1px 2px rgba(20, 27, 38, .08), 0 0 0 .5px rgba(20, 27, 38, .06);
  --shadow-primary: 0 1px 2px rgba(184, 67, 28, .26), 0 4px 12px rgba(184, 67, 28, .16);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif; --font-body: var(--font);
  --r-sheet: 24px; --r-card: 16px; --r-ctl: 12px; --r-tile: 10px; --r: var(--r-card);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box }
/* Taps never zoom the page (double-tap zoom), but pinch-to-zoom still works. */
* { touch-action: manipulation }
html { -webkit-text-size-adjust: 100%; background: var(--bg) }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-feature-settings: "kern", "calt"; font-optical-sizing: auto; letter-spacing: -.004em }
button, input, textarea, select { font: inherit; color: inherit }
button { cursor: pointer; -webkit-tap-highlight-color: transparent }
img { max-width: 100% }
[hidden] { display: none !important }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.wrap { max-width: 640px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r) }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 9; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px) }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 9px }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0 }
.brand svg { width: 36px; height: 36px; flex: none; padding: 6px; border-radius: 11px; background: var(--accent-soft) }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2 }
#circleName { font-weight: 650; font-size: 16px; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.brand-sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: var(--r-ctl); border: 0; background: transparent; display: grid; place-items: center; color: var(--muted); flex: none }
.icon-btn:hover { background: var(--sunk); color: var(--ink) }
.icon-btn svg { width: 22px; height: 22px }

.main { padding-block: 14px calc(100px + env(safe-area-inset-bottom, 0px)) }
.view { display: flex; flex-direction: column; gap: 14px }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
h1 { font-weight: 650; font-size: 30px; line-height: 1.1; letter-spacing: -.028em; margin: 0; text-wrap: balance }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 14px }
.label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin: 0 }
.hint { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45 }
.banner { margin-bottom: 14px; background: var(--need-soft); color: var(--ink); border-radius: var(--r-ctl); padding: 12px 14px; font-size: 14px }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 18px; border-radius: var(--r-ctl); border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: -.006em; white-space: nowrap; text-decoration: none; transition: transform .08s ease-out, background-color .12s }
.btn svg { width: 18px; height: 18px; flex: none }
.btn.sm svg { width: 16px; height: 16px }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-primary) }
.btn.primary:hover { background: var(--accent-deep) }
.btn.ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink) }
.btn.ghost:hover { background: var(--sunk) }
.btn.sm { min-height: 36px; padding: 6px 13px; font-size: 14px; border-radius: 10px }
.btn.wide { width: 100% }
.btn.danger { color: var(--danger) }
.btn.danger.armed { background: var(--danger); border-color: var(--danger); color: var(--surface) }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none }
input[type=text], input[type=search], input[type=url], input[type=tel], textarea, select {
  width: 100%; font-size: 16px; background: var(--sunk); border: 1px solid transparent; border-radius: var(--r-ctl); padding: 11px 14px; color: var(--ink)
}
input[type=search] { -webkit-appearance: none; appearance: none; padding-left: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6675' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 13px center; background-size: 18px 18px }
select { width: auto; padding: 7px 10px; font-size: 16px }
textarea { resize: vertical; line-height: 1.45 }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1 }
input:focus, textarea:focus, select:focus { outline: 0; background-color: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) }
/* Segmented control: a quiet track with a white thumb */
.seg { display: inline-flex; background: var(--sunk); border-radius: var(--r-ctl); padding: 3px; gap: 2px; max-width: 100%; align-self: flex-start }
.seg button { border: 0; background: transparent; padding: 6px 13px; min-height: 34px; border-radius: 9px; font-weight: 600; font-size: 13.5px; letter-spacing: -.006em; color: var(--muted); white-space: nowrap }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm) }
.add-row { display: flex; gap: 8px }
.add-row input { flex: 1; min-width: 0 }
/* Chips: the one place pills stay */
.filter { flex: none; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px }
.filter[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent) }
.filter .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; margin-right: -4px }
.filter[aria-pressed="true"] .n { background: rgba(38, 83, 230, .12); color: var(--accent) }

/* ---------- Recipe lists ---------- */
.panel { background: var(--surface); box-shadow: var(--ring), var(--shadow-card); border-radius: var(--r-card); overflow: hidden }
.recipe-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px 10px 12px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left }
.recipe-row:first-child { border-top: 0 }
.recipe-row:hover { background: #FAFBFD }
.rr-main { min-width: 0; display: flex; flex-direction: column; gap: 2px }
.rr-name { font-weight: 600; font-size: 15.5px; letter-spacing: -.012em; line-height: 1.3; overflow-wrap: anywhere }
.avg { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink) }
.avg svg { width: 15px; height: 15px; color: var(--star) }
/* The tile says whose recipe it is: the household's picture, or its initials in
   its own color (h0 is the first household to join, h1 the next, and so on). */
.tile { position: relative; width: 40px; height: 40px; border-radius: var(--r-tile); display: grid; place-items: center; font-weight: 650; font-size: 15px; letter-spacing: -.02em; line-height: 1; overflow: hidden; flex: none; background: var(--h0-soft); color: var(--h0); user-select: none }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block }
.tile.photo { background: var(--sunk) }
.tile.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(20, 27, 38, .08) }
.tile.h0 { background: var(--h0-soft); color: var(--h0) }
.tile.h1 { background: var(--h1-soft); color: var(--h1) }
.tile.h2 { background: var(--h2-soft); color: var(--h2) }
.tile.h3 { background: var(--h3-soft); color: var(--h3) }
.tile.h4 { background: var(--h4-soft); color: var(--h4) }
.tile.h5 { background: var(--h5-soft); color: var(--h5) }
.tile.xs { width: 22px; height: 22px; border-radius: 6px; font-size: 9.5px; letter-spacing: 0 }
.tile.md { width: 44px; height: 44px; font-size: 16px }
.tile.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 22px }
.tile.xl { width: 72px; height: 72px; border-radius: 20px; font-size: 26px }
/* Meal tags on the recipe page */
.tag.m-breakfast { background: var(--m-breakfast-soft); color: var(--m-breakfast) }
.tag.m-lunch { background: var(--m-lunch-soft); color: var(--m-lunch) }
.tag.m-dinner { background: var(--m-dinner-soft); color: var(--m-dinner) }
.tag.m-dessert { background: var(--m-dessert-soft); color: var(--m-dessert) }
.tag.m-other { background: var(--m-other-soft); color: var(--m-other) }

.empty { background: var(--surface); box-shadow: var(--ring), var(--shadow-card); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start }
.empty h3 { font-weight: 650; font-size: 20px; letter-spacing: -.02em; margin: 0 }
.empty p { margin: 0; color: var(--muted) }
.how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: flex; flex-direction: column; gap: 12px }
.how li { counter-increment: how; display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); align-items: start }
.how li::before { content: counter(how); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13px; display: grid; place-items: center; margin-top: 1px }
.how b { color: var(--ink); font-weight: 600 }
.loading { color: var(--muted); margin: 8px 2px }

/* ---------- On hand ---------- */
.where { display: flex; flex-direction: column; gap: 18px }
.where-group { display: flex; flex-direction: column; gap: 8px }
.where-label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14.5px }
.where-label .group-n { margin-left: 0 }
.chips { display: flex; flex-wrap: wrap; gap: 7px }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; max-width: 100% }
.chip span { overflow-wrap: anywhere }
.chip .x { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: inherit; opacity: .7; display: grid; place-items: center; flex: none }
.chip .x:hover { background: rgba(20, 27, 38, .08); opacity: 1 }
.chip .x svg { width: 14px; height: 14px }
.chip.p-fridge { background: var(--p-fridge-soft); color: var(--p-fridge); border-color: transparent }
.chip.p-freezer { background: var(--p-freezer-soft); color: var(--p-freezer); border-color: transparent }
.chip.p-pantry { background: var(--p-pantry-soft); color: var(--p-pantry); border-color: transparent }
.chip.p-fridge span, .chip.p-freezer span, .chip.p-pantry span { font-weight: 500 }
.where-label.p-fridge { color: var(--p-fridge) } .where-label.p-freezer { color: var(--p-freezer) } .where-label.p-pantry { color: var(--p-pantry) }
.chip.need { background: var(--need-soft); border-color: transparent; color: var(--need); font-size: 13.5px; font-weight: 600; padding: 4px 11px }
.note { font-size: 13.5px; color: var(--muted); background: var(--surface); box-shadow: var(--ring); border-radius: var(--r-ctl); padding: 10px 12px; margin: 0; line-height: 1.45 }

/* ---------- Cook ---------- */
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none }
.dot.ready { background: var(--have) } .dot.trip { background: var(--need) } .dot.big { background: var(--faint) }

/* ---------- Grocery ---------- */
.g-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-top: 1px solid var(--line) }
.g-row:first-child { border-top: 0 }
.check { width: 28px; height: 28px; margin: 4px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; display: grid; place-items: center; flex: none; color: transparent }
.check svg { width: 16px; height: 16px }
.g-row.done .check { background: var(--have); border-color: var(--have); color: var(--surface) }
.g-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 16px; overflow-wrap: anywhere; line-height: 1.3 }
.g-for { font-size: 12.5px; color: var(--muted); margin-top: 1px }
.g-amt { font-weight: 600 } /* "1 lb" ground beef: the amount stands out a little */
.g-row.done .g-main { text-decoration: line-through; color: var(--muted) }
.g-row .x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--faint); display: grid; place-items: center; flex: none }
.g-row .x:hover { background: var(--sunk); color: var(--ink) }
.g-row .x svg { width: 15px; height: 15px }
.g-actions { display: flex; flex-direction: column; gap: 10px; background: var(--have-soft); border-radius: var(--r-card); padding: 14px }
.g-actions .label { color: var(--have) }
.g-actions .row { display: flex; flex-wrap: wrap; gap: 8px }

/* ---------- Tab bar ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-top: 1px solid var(--line); padding: 6px var(--gutter-r) calc(6px + env(safe-area-inset-bottom, 0px)) var(--gutter-l) }
.tabs-in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px }
.tab { position: relative; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: -.004em; min-height: 50px }
.tab .ic { width: 50px; height: 30px; display: grid; place-items: center }
.tab svg { width: 24px; height: 24px }
.tab[aria-current="page"] { color: var(--accent) }
.tab[aria-current="page"] svg { stroke-width: 2.3 }
.badge { position: absolute; top: 0; left: calc(50% + 9px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--need); color: var(--surface); font-size: 11px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface) }
.badge.good { background: var(--have) }

/* ---------- Sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: 40 }
.sheet-scrim { position: absolute; inset: 0; background: var(--scrim); border: 0; width: 100% }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto; max-width: 640px; max-height: calc(100% - 28px - env(safe-area-inset-top, 0px)); overflow: auto; overscroll-behavior: contain; background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-float); padding: 0 max(18px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); animation: rise .22s ease-out }
@keyframes rise { from { transform: translateY(24px); opacity: .4 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .sheet-panel { animation: none } }
.sheet-head { position: sticky; top: 0; z-index: 1; background: var(--surface); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 0 12px }
.sheet-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-strong) }
.sheet-head h2 { font-weight: 650; font-size: 23px; line-height: 1.15; letter-spacing: -.024em; margin: 6px 0 0; text-wrap: balance; min-width: 0; overflow-wrap: anywhere }
.sheet-head .from { display: block; font-weight: 500; font-size: 14px; letter-spacing: 0; color: var(--muted); margin-top: 4px }
.from-row { display: inline-flex; align-items: center; gap: 7px; margin-top: 2px }
/* Settings: your household's picture */
.hh-photo { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 4px }
.hh-photo-text { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.hh-photo-title { font-weight: 600; font-size: 14px }
.hh-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px }
.hh-photo-actions svg { width: 17px; height: 17px }
.sheet-body { display: flex; flex-direction: column; gap: 20px }
/* A card right under the sticky header: its 1px ring sits just above the card, so leave room for it (Nov 27 2026: Settings' Account card looked cut off on top) */
.sheet-head + .sheet-body { padding-top: 2px }
.block { display: flex; flex-direction: column; gap: 8px }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line) }
.rate-row:first-of-type { border-top: 0 }
.rate-name { font-weight: 600; font-size: 15.5px; min-width: 0; overflow-wrap: anywhere }
.stars { display: flex; flex: none }
.star { width: 36px; height: 36px; border: 0; background: transparent; display: grid; place-items: center; color: var(--star-off); padding: 0 }
.star svg { width: 23px; height: 23px }
.star.on { color: var(--star) }
.others { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted) }
.others b { color: var(--ink); font-weight: 600 }
.ing { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.ing li { border-top: 1px solid var(--line) }
.ing-btn { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 11px 0; border: 0; background: transparent; text-align: left; font-size: 15.5px; line-height: 1.4; border-radius: 8px }
.ing-btn:active .mark { transform: scale(.9) }
.ing-need .ing-btn:hover .mark { background: var(--need-soft) }
.ing-hint { margin-top: -4px }
.ing li:first-child { border-top: 0 }
.mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px }
.mark svg { width: 13px; height: 13px }
.ing-have .mark { background: var(--have); color: var(--surface) }
.ing-need .mark { border: 2px solid var(--need) }
.ing-opt .mark { border: 2px dashed var(--line-strong) }
.ing-text { display: flex; flex-direction: column; overflow-wrap: anywhere }
.using { font-size: 12.5px; color: var(--muted) }
.ing-need .using { color: var(--need) }
.steps { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; max-width: 65ch }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px }
.form { display: flex; flex-direction: column; gap: 8px }
.form label { font-weight: 600; font-size: 14px; margin-top: 8px }
.form label .opt { font-weight: 500; color: var(--muted) }
.form fieldset { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.form legend { padding: 0; margin-bottom: 2px }
.form legend.label { color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -.012em }
.form-err { color: var(--danger); font-weight: 600; margin: 4px 0 0 }
.callout { background: var(--accent-soft); color: var(--accent-deep); border-radius: var(--r-ctl); padding: 10px 12px; font-size: 14px; margin: 0 }
.switch { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; margin-top: 0 !important }
.switch input { width: 20px; height: 20px; accent-color: var(--accent) }

/* ---------- Import options ---------- */
.options { display: flex; flex-direction: column; gap: 8px }
.option { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; width: 100%; padding: 12px; border: 0; box-shadow: var(--ring); border-radius: var(--r-card); background: var(--surface); text-align: left }
.option:hover:not(:disabled) { background: #FAFBFD }
.option:disabled { opacity: .5; cursor: default }
.option .oi { width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center }
.option .oi svg { width: 22px; height: 22px }
.option[data-pick=voice] .oi { background: var(--m-dessert-soft); color: var(--m-dessert) }
.option[data-pick=photos] .oi { background: var(--m-dinner-soft); color: var(--m-dinner) }
.option[data-pick=link] .oi { background: var(--m-lunch-soft); color: var(--m-lunch) }
.option[data-pick=text] .oi { background: var(--m-breakfast-soft); color: var(--m-breakfast) }
.option[data-pick=type] .oi { background: var(--m-other-soft); color: var(--m-other) }
.option[data-scan=photos] .oi { background: var(--m-dinner-soft); color: var(--m-dinner) }
.option b { display: block; font-weight: 650; font-size: 16px; letter-spacing: -.012em }
.option span span { color: var(--muted); font-size: 13.5px }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap }
.thumbs img { width: 76px; height: 96px; object-fit: cover; border-radius: var(--r-tile); box-shadow: var(--ring) }
.working { display: flex; align-items: center; gap: 12px; font-weight: 600 }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none }
@keyframes spin { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s } }
.review { display: flex; flex-direction: column }
.review-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line) }
.review-row:first-child { border-top: 0 }
.review-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent) }
.review-row .rn { overflow-wrap: anywhere }
.review-row .rn small { display: block; color: var(--muted); font-size: 12.5px }
.copy-row { display: flex; gap: 8px }
.copy-row input { flex: 1; min-width: 0; font-size: 16px }

/* ---------- Let's chef this up ---------- */
.chef { display: flex; flex-direction: column; gap: 6px }
.chef-btn { min-height: 52px; font-size: 16.5px; gap: 9px; border-radius: 14px }
.chef-btn svg { width: 22px; height: 22px }
.chef .hint { text-align: center }
.g-row.flash { animation: flash 3.2s ease-out }
@keyframes flash { 0%, 55% { background: var(--accent-soft) } 100% { background: transparent } }
@media (prefers-reduced-motion: reduce) { .g-row.flash { animation: none; background: var(--accent-soft) } }

/* ---------- Meals + gluten-free ---------- */
.filter.gf { display: inline-flex; align-items: center; gap: 5px }
.filter.gf svg { width: 14px; height: 14px }
.filter.gf[aria-pressed="true"] { background: var(--have-soft); border-color: transparent; color: var(--have) }
.groups { display: flex; flex-direction: column; gap: 20px }
.group { display: flex; flex-direction: column; gap: 8px }
.group-title { margin: 0 2px; font-weight: 650; font-size: 15.5px; letter-spacing: -.014em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.group-n { min-width: 20px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(20, 27, 38, .06); color: var(--muted); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums }
.sorting { font-size: 12.5px; font-weight: 500; color: var(--muted) }
.gf-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--have-soft); color: var(--have); font-size: 11px; font-weight: 650; letter-spacing: .02em }

/* ---------- Made it photos ---------- */
.hero { display: block; width: 100%; padding: 0; border: 0; background: var(--sunk); border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100% }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block }
.hero-add { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer }
.hero-add svg { width: 22px; height: 22px; flex: none; color: var(--accent) }
.hero-add > span { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.hero-add b { font-weight: 600; font-size: 15px }
.hero-add > span > span { color: var(--muted); font-size: 13px }
.hero-add:active { background: var(--sunk) }
.hero-add[disabled] { opacity: .6 }
/* Photos you swipe through, with dots (swipeHTML): a recipe's own photos, Made it posts with several */
.swipe-wrap { position: relative }
.swipe { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; background: var(--sunk); scrollbar-width: none }
.swipe::-webkit-scrollbar { display: none }
.swipe > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always }
.swipe:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.swipe-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 5px; padding: 5px 7px; border-radius: 999px; background: rgba(35, 28, 23, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none }
.swipe-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: background .15s }
.swipe-dots span.on { background: #fff }
/* ...at the top of a recipe: rounded, with Add on your own */
.hero-wrap .swipe { border-radius: var(--r-card) }
.swipe > .hero { border-radius: 0 }
/* ...in a post on Activity: edge to edge, like one photo */
.post-swipe { margin: 2px calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)) }
.post-swipe .post-img { margin: 0 }
/* ...in the photo sheet: the whole photo, not cropped */
.photo-swipe .swipe { border-radius: var(--r-card) }
.photo-swipe .photo-full { border-radius: 0; background: none }
.hero-more { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 3px rgba(35, 28, 23, .18); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer }
.hero-more svg { width: 16px; height: 16px; color: var(--accent) }
.hero-more:active { background: #fff; transform: scale(.97) }
.hero-more[disabled] { opacity: .7 }
/* Edit recipe › Photos */
#fCoverBox { display: flex; flex-direction: column; gap: 6px }
.cover-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 76px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer }
.cover-add svg { width: 20px; height: 20px; color: var(--accent) }
.cover-add:active { background: var(--sunk) }
.cover-add.sq { height: auto; aspect-ratio: 1; flex-direction: column; gap: 4px; font-size: 13.5px }
.ph-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px }
.ph-edit { position: relative; aspect-ratio: 1; min-width: 0 }
.ph-edit-img { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r-ctl); overflow: hidden; background: var(--sunk); box-shadow: var(--ring); cursor: pointer; position: relative }
span.ph-edit-img { cursor: default }
.ph-edit-img img { width: 100%; height: 100%; object-fit: cover; display: block }
button.ph-edit-img:active { transform: scale(.97) }
.ph-edit-main { position: absolute; left: 5px; bottom: 5px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 11px; font-weight: 650 }
.ph-edit-x { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(35, 28, 23, .25), var(--ring); cursor: pointer }
.ph-edit-x svg { width: 13px; height: 13px }
.ph-edit-x::after { content: ""; position: absolute; inset: -8px }   /* a bigger target than it looks */
.ph-edit-x:active { background: var(--sunk) }
.made-btn svg { width: 20px; height: 20px }
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px }
.ph { padding: 0; border: 0; background: var(--sunk); border-radius: var(--r-tile); overflow: hidden; aspect-ratio: 1; max-width: 100%; position: relative }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block }
.post-preview, .photo-full { width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--r-card); background: var(--sunk) }
.photo-cap { margin: 0; font-size: 16px; line-height: 1.5 }
.feed-item.has-thumb { align-items: center }
.feed-thumb { width: 44px; height: 44px; border-radius: var(--r-tile); object-fit: cover; flex: none; background: var(--sunk) }
.feed-cap { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px }
.feed-item.has-thumb .feed-text { flex: 1 }
.ph-n { position: absolute; right: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 700 }
.ph-n svg { width: 13px; height: 13px }
.ph-stack { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)) }
.ph-stack svg { width: 18px; height: 18px }
/* Made it › the post sheet */
#postPics { display: flex; flex-direction: column; gap: 8px }
.post-addmore { align-self: flex-start }
.ph-wait { cursor: default; background: linear-gradient(100deg, var(--sunk) 30%, #fff 50%, var(--sunk) 70%) var(--sunk); background-size: 300% 100%; animation: ph-wait 1.2s linear infinite }
@keyframes ph-wait { from { background-position: 100% 0 } to { background-position: 0 0 } }
@media (prefers-reduced-motion: reduce) { .ph-wait { animation: none } }

/* ---------- Comments ---------- */
.comments { gap: 10px }
.cm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.cm { display: flex; align-items: flex-start; gap: 8px; background: var(--sunk); border-radius: 14px; padding: 9px 6px 9px 12px }
.cm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px }
.cm-who b { font-weight: 650 }
.cm-time { color: var(--muted); font-size: 12.5px }
.cm-text { overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.4 }
.cm-del { width: 30px; height: 30px; flex: none; border: 0; background: transparent; color: var(--muted); border-radius: 50%; display: grid; place-items: center }
.cm-del:hover { background: rgba(20, 27, 38, .08); color: var(--ink) }
.cm-del svg { width: 13px; height: 13px }
.comment-form { display: flex; gap: 8px }
.comment-form input { flex: 1; min-width: 0 }

/* ---------- Voice ---------- */
.voice-stage { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px }
.mic { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; position: relative; box-shadow: var(--shadow-primary) }
.mic svg { width: 40px; height: 40px }
.mic:disabled { opacity: .6 }
.mic.rec { background: var(--danger); color: var(--surface); box-shadow: 0 4px 14px rgba(198, 40, 40, .25) }
.mic.rec::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--danger); opacity: .5; animation: ring 1.6s ease-out infinite }
@keyframes ring { from { transform: scale(.92); opacity: .6 } to { transform: scale(1.18); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .mic.rec::after { animation: none } }
.timer { font-weight: 600; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.02em }
.voice-state { color: var(--muted); font-size: 14.5px; text-align: center; min-height: 1.4em }
.level { width: 160px; height: 6px; border-radius: 99px; background: var(--sunk); overflow: hidden }
.level span { display: block; height: 100%; background: var(--have); border-radius: 99px; transform: scaleX(0); transform-origin: left center; transition: transform .1s linear }
.tips { margin: 0; padding: 12px 14px 12px 32px; background: var(--sunk); border-radius: var(--r-ctl); display: flex; flex-direction: column; gap: 4px; font-size: 14.5px }
.heard { margin-top: 10px; box-shadow: var(--ring); border-radius: var(--r-ctl); padding: 10px 12px }
.heard summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted) }
.heard p { margin: 8px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap }

/* ---------- What's new ---------- */
.feed-item { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border: 0; background: transparent; padding: 11px 0; text-align: left; font-size: 14.5px }
.feed-item:hover .feed-text { color: var(--accent) }
.feed-text { min-width: 0; overflow-wrap: anywhere; position: relative }
.feed-text b { font-weight: 650 }
.feed-item.fresh .feed-text { padding-left: 14px }
.feed-item.fresh .feed-text::before { content: ""; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent) }
.feed-time { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums }
.stars-sm { color: var(--star); letter-spacing: 1px }
.notify-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start }
.notify-box .switch { margin-top: 0 }

/* ---------- Add to Home Screen prompt ---------- */
.a2hs { position: fixed; z-index: 30; left: var(--gutter-l); right: var(--gutter-r); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: var(--ring), var(--shadow-float); animation: rise .25s ease-out }
.a2hs.above-tabs { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) }
.a2hs-icon { width: 52px; height: 52px; border-radius: 12px }
.a2hs-body { display: flex; flex-direction: column; gap: 6px; min-width: 0 }
.a2hs-title { margin: 0; font-weight: 650; font-size: 16px; line-height: 1.3; letter-spacing: -.012em }
.a2hs-sub { margin: 0; color: var(--muted); font-size: 14px }
.a2hs-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px }
.a2hs-steps { margin: 2px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px }
.a2hs-steps b { font-weight: 650 }
@media (prefers-reduced-motion: reduce) { .a2hs { animation: none } }

/* ---------- Gate screens: setup, join, private ---------- */
.gate { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-top: calc(env(safe-area-inset-top, 0px) + 40px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px) }
.gate .wrap { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 18px }
/* Ollaby's logo (an image: tools/icons.py draws it) on the welcome and sign-in screens */
.gate .ob-logo { display: block; width: 168px; height: auto; margin-left: -6px }
/* The first page on the bare address (Nov 21 2026): the logo and "Cook, share, gather." in the
   middle of the screen, Get started at the bottom */
.gate.land .wrap { flex: 1 }
.land-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding-bottom: 8vh }
.gate .land-mid .ob-logo { width: 264px; margin: 0 }
.gate .land-mid h1.ob-title { font-size: 34px; margin: 0 }
.land-ways { margin-top: 8px }
.gate .wrap > .ph-alt { align-self: center; min-height: 44px; font-size: 15px }
/* The intro for someone starting out alone (Nov 22 2026): swipe-through pictures of the app with a
   made-up family, then Invite your people */
.intro { display: flex; flex-direction: column; flex: 1 }
.intro-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)) }
.intro-strip::-webkit-scrollbar { display: none }
.intro-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; box-sizing: border-box; display: flex; flex-direction: column;
  align-items: center; gap: 10px; text-align: center; padding: 4px var(--gutter-r) 0 var(--gutter-l) }
.intro-shot { height: min(46vh, 420px); aspect-ratio: 3 / 5; border-radius: 22px; overflow: hidden; background: #fff; margin-bottom: 8px;
  box-shadow: 0 0 0 1px rgba(35, 28, 23, .08), 0 14px 32px -8px rgba(35, 28, 23, .22) }
.intro-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top }
.gate .intro-slide h1 { font-size: 26px }
.intro-slide .lede { max-width: 330px }
.intro-last { justify-content: center }
.intro-mark { height: min(46vh, 420px); display: flex; align-items: center; justify-content: center; margin-bottom: 8px }
.gate .intro-mark .ob-logo { width: 240px; margin: 0 }
.intro-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 16px }
.intro-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(35, 28, 23, .18); transition: width .2s, background .2s }
.intro-dots span.on { width: 22px; background: var(--accent) }
.gate h1 { font-size: 32px }
.gate p.lede { margin: 0; color: var(--muted); font-size: 16px }
.house-list { display: flex; flex-direction: column; gap: 10px }
.house { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 16px 12px 12px; border-radius: var(--r-card); border: 0; box-shadow: var(--ring), var(--shadow-card); background: var(--surface) }
.house:hover { background: #FAFBFD }
.house-text { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.house b { font-size: 17px; font-weight: 650; letter-spacing: -.014em; overflow-wrap: anywhere }
.house-text span { font-size: 13.5px; color: var(--muted) }
.people { display: flex; flex-wrap: wrap; gap: 8px }
.card { background: var(--surface); box-shadow: var(--ring), var(--shadow-card); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 10px }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 6px 0; align-self: flex-start }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: max-content; max-width: min(380px, calc(100vw - 32px)); background: rgba(20, 27, 38, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; border-radius: 14px; padding: 10px 16px; font-weight: 600; font-size: 14px; line-height: 1.35; box-shadow: 0 6px 24px rgba(20, 27, 38, .22); text-align: center; animation: toast-in .2s ease-out }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px) } to { opacity: 1; transform: translate(-50%, 0) } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none } }

/* ---------- Screen tops, the always-visible chip row, and the header bell ---------- */
.top-actions { display: flex; align-items: center; gap: 2px }
.bell-n { position: absolute; top: 3px; right: 3px; box-sizing: border-box; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 10.5px; font-weight: 700; line-height: 1; display: grid; place-items: center; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--surface) }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 44px }
.bar-title { font-weight: 650; font-size: 26px; letter-spacing: -.026em; margin: 0 }
.bar .sub { margin: 0 }
.seg-lg { padding: 4px }
.seg-lg button { min-height: 38px; padding: 7px 16px; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px }
.seg-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(20, 27, 38, .07); color: var(--muted); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums }
.seg button[aria-pressed="true"] .seg-n { background: var(--accent-soft); color: var(--accent) }
.active-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center }
.filter.tool { color: var(--ink) }
.filter.tool svg { width: 16px; height: 16px; color: var(--muted) }
.filter.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); padding-right: 10px }
.filter.on svg { width: 12px; height: 12px }
.icon-btn.boxed { width: 44px; height: 44px; background: var(--sunk); color: var(--ink) }
.where-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }

/* ---------- List rows ---------- */
.rr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--muted); font-size: 13.5px; line-height: 1.35 }
.sep { color: var(--line-strong) }
/* Good news is green; "need" stays quiet in rows, since the orange dots, tags and ingredient marks already carry it */
.st-have { color: var(--have); font-weight: 600 }
.st-need { color: var(--muted); font-weight: 500 }
.cook-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 12px 6px 0; border-top: 1px solid var(--line) }
.cook-row:first-child { border-top: 0 }
.cr-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; border: 0; background: transparent; text-align: left; padding: 6px 0 6px 12px }
.cr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.cr-main:hover .rr-name { color: var(--accent) }
.on-list { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap }
.on-list svg { width: 14px; height: 14px; color: var(--have) }
.group-hint { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: auto }
.more-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: transparent; font-weight: 600; font-size: 15.5px; letter-spacing: -.012em; text-align: left }
.more-hint { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--accent) }
.link-btn.inline { display: inline; padding: 0; font-size: inherit }

/* ---------- What's new sheet ---------- */
.feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.feed-list li + li { border-top: 1px solid var(--line) }

/* ---------- Recipe page ---------- */
.head-actions { display: flex; align-items: center; gap: 2px; flex: none; margin-top: 2px }
.menu-wrap { position: relative }
.menu { position: absolute; right: 0; top: 44px; z-index: 5; min-width: 230px; background: var(--surface); border-radius: 14px; box-shadow: var(--ring), var(--shadow-float); padding: 6px; display: flex; flex-direction: column; gap: 2px; transform-origin: top right; animation: pop .12s ease-out }
@keyframes pop { from { transform: scale(.96) } to { transform: none } }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; text-align: left; text-decoration: none; white-space: nowrap }
.menu-item svg { width: 19px; height: 19px; color: var(--muted) }
.menu-item:hover { background: var(--sunk) }
.menu-item.danger, .menu-item.danger svg { color: var(--danger) }
.menu-item.armed { background: var(--danger); color: var(--surface) }
.menu-item.armed svg { color: var(--surface) }
@media (prefers-reduced-motion: reduce) { .menu { animation: none } }
.info { display: flex; flex-direction: column; gap: 8px }
.info-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-size: 13.5px; font-weight: 600 }
.tag svg { width: 13px; height: 13px }
.tag.ok { background: var(--have-soft); color: var(--have) }
.tag.no { background: var(--need-soft); color: var(--need) }
.keep { margin-left: auto }
.keep svg { width: 17px; height: 17px }
.gf-note { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45 }
.gf-note.label-check { color: var(--ink); font-weight: 550 }
.block-title { margin: 0; font-weight: 650; font-size: 18px; letter-spacing: -.018em }
.after { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px }
.rates { display: flex; flex-direction: column }
.rate-row { padding: 2px 0 }

/* ---------- A household's own note on a recipe: a little index card ---------- */
.story { margin: 0; padding: 12px 14px 12px 16px; background: #FFF8E6; border-left: 3px solid #EFC96A; border-radius: 6px 14px 14px 6px; display: flex; flex-direction: column; gap: 6px }
.story blockquote { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 60ch; color: #3B2F0E }
.story figcaption { color: #8A6A1E; font-size: 13.5px; font-weight: 500 }
.story figcaption::before { content: "\2014\00a0" }
.add-story { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 4px 0; color: var(--accent); font-weight: 600; font-size: 14.5px }
.add-story svg { width: 16px; height: 16px }

/* ---------- Welcome flow: landing → household → you → picture → you're in ---------- */
.gate .wrap > h1 { text-wrap: balance }
.ob-hero { padding-top: 12px }
.ob-hero .ob-logo { width: 208px }
.gate h1.ob-title { font-size: 36px; letter-spacing: -.034em; margin-top: 4px }
.ob-proof { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--ring), var(--shadow-card) }
.ob-proof-text { font-size: 14px; color: var(--muted); line-height: 1.4 }
.ob-proof-text b { color: var(--ink); font-weight: 600 }
.tile-stack { display: flex; flex: none }
.tile-stack .tile { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px; box-shadow: 0 0 0 2.5px var(--surface) }
.tile-stack .tile + .tile { margin-left: -5px }
.tile.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px }
.ob-features { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px }
.ob-features li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 15px; line-height: 1.45 }
.ob-features b { color: var(--ink); font-weight: 600 }
.ob-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center }
.ob-ic svg { width: 19px; height: 19px }
.ob-cta { min-height: 52px; font-size: 16px; border-radius: 14px; margin-top: 6px }
.ob-cta svg, .ob-actions .btn svg, .gate [data-new] svg { width: 19px; height: 19px }
.ob-top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 12px; margin: -16px 0 6px }
.ob-back-space { width: 40px }
.ob-back { margin-left: -8px; color: var(--ink) }
.ob-progress { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 5px }
.ob-progress span { height: 4px; border-radius: 2px; background: var(--line-strong) }
.ob-progress span.on { background: var(--accent) }
.ob-preview .tile { box-shadow: var(--shadow-card) }
.ob-preview.ob-done .tile { width: 88px; height: 88px; border-radius: 24px; font-size: 32px }
.ob-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch }
.ob-skip { align-self: center; color: var(--muted) }
.ob-later { text-align: center; margin-top: -6px }
.house-go { margin-left: auto; color: var(--faint); display: grid }
.house-go svg { width: 18px; height: 18px }
.people .person { min-width: 88px }
@media (prefers-reduced-motion: no-preference) {
  .gate .wrap > * { animation: ob-in .32s ease-out both }
  .gate .wrap > :nth-child(2) { animation-delay: .03s } .gate .wrap > :nth-child(3) { animation-delay: .06s }
  .gate .wrap > :nth-child(4) { animation-delay: .09s } .gate .wrap > :nth-child(n+5) { animation-delay: .12s }
}
@keyframes ob-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* ---------- Cook mode: one step at a time, big text, screen stays on ---------- */
.cook { position: fixed; inset: 0; z-index: 50; background: var(--surface); display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) var(--gutter-r) env(safe-area-inset-bottom, 0px) var(--gutter-l); animation: cook-in .2s ease-out }
@keyframes cook-in { from { opacity: 0; transform: scale(.985) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .cook { animation: none } }
.cook > * { width: 100%; max-width: 640px; margin-inline: auto }
.cook-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; padding-top: 8px }
.cook-head .icon-btn { margin-left: -8px; color: var(--ink) }
.cook-head-space { width: 40px }
.cook-title { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; line-height: 1.25 }
#cookTitle { font-weight: 650; font-size: 15.5px; letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100% }
.cook-sub { font-size: 12px; color: var(--muted) }
.cook-progress { display: flex; gap: 4px; padding: 12px 0 4px }
.cook-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background .2s }
.cook-progress span.past { background: var(--accent); opacity: .45 }
.cook-progress span.now { background: var(--accent) }
.cook-timers { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px }
.cook-body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 18px 0 20px }
.cook-page { display: flex; flex-direction: column; gap: 14px }
.cook-ing-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.cook-h { margin: 0; font-weight: 650; font-size: 26px; letter-spacing: -.026em }
.cook-scale button { min-width: 44px }
.cook-ing { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column }
.cook-ing li + li { border-top: 1px solid var(--line) }
.cook-ing-btn { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 12px 0; border: 0; background: transparent; text-align: left; font-size: 18px; line-height: 1.4 }
.cook-ing-btn .mark { width: 24px; height: 24px; border: 2px solid var(--line-strong); margin-top: 1px }
.cook-ing-btn.got .mark { background: var(--have); border-color: var(--have); color: #fff }
.cook-ing-btn.got > span:last-child { color: var(--faint); text-decoration: line-through }
.cook-step-page { padding-top: 6px }
.cook-stepno { margin: 0; color: var(--accent); font-weight: 650; font-size: 15px }
.cook-step { margin: 0; font-size: 27px; line-height: 1.38; letter-spacing: -.018em; font-weight: 500; text-wrap: pretty; overflow-wrap: anywhere }
.cook-timer-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px }
.timer-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 0; border-radius: 14px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 650; font-size: 16px }
.timer-chip svg { width: 20px; height: 20px }
.cook-notes { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r-ctl); background: #FFF8E6; color: #3B2F0E; font-size: 15px; line-height: 1.45 }
.cook-notes b { color: #8A6A1E; font-size: 13px; font-weight: 650 }
.cook-foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 12px 0 14px; border-top: 1px solid var(--line) }
.cook-foot .btn { min-height: 54px; font-size: 16.5px; border-radius: 14px }
.cook-foot .btn svg { width: 20px; height: 20px }
.cook-foot [data-cook=next] svg { margin-right: -4px }
.cook-foot [data-cook=prev] svg { margin-left: -4px }
.cook-open svg { width: 15px; height: 15px }
/* Timer pills: in cook mode, and docked above the tabs when you leave it */
.tpill { display: inline-flex; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 3px 3px 4px; box-shadow: var(--shadow-sm); max-width: 100% }
.tpill.done { background: var(--danger); animation: tpill-pulse 1s ease-in-out infinite }
@keyframes tpill-pulse { 50% { transform: scale(1.04) } }
@media (prefers-reduced-motion: reduce) { .tpill.done { animation: none } }
.tpill-main { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: inherit; padding: 5px 4px 5px 8px; min-width: 0 }
.tpill-main svg { width: 17px; height: 17px; flex: none }
.tpill-time { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: -.01em }
.tpill-label { font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px }
.tpill-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; flex: none }
.tpill-x svg { width: 12px; height: 12px }
.timer-dock { position: fixed; z-index: 45; left: var(--gutter-l); right: var(--gutter-r); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none }
.timer-dock.above-tabs { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) }
.timer-dock .tpill { pointer-events: auto; box-shadow: var(--shadow-float) }

/* ---------- Tonight's pick (Cook tab) ---------- */
.tonight { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--ring), var(--shadow-card); padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden }
.tonight.pop { animation: pop-in .28s ease-out }
@keyframes pop-in { from { opacity: .3; transform: translateY(4px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .tonight.pop { animation: none } }
.tonight-top { display: flex; align-items: center; justify-content: space-between; margin: -2px -8px -4px 0 }
.tonight-label { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 650; font-size: 13.5px }
.tonight-label svg { width: 17px; height: 17px }
.tonight-shuffle { color: var(--accent) }
.tonight-shuffle svg { width: 21px; height: 21px }
.tonight-main { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; border: 0; background: transparent; padding: 0; text-align: left }
.tonight-main .tile { width: 48px; height: 48px; border-radius: 12px; font-size: 17px }
.tonight-text { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.tonight-name { font-weight: 650; font-size: 19px; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere }
.tonight-actions { display: flex; gap: 8px; align-items: center }
.tonight-actions .btn svg { width: 15px; height: 15px }
.avg-inline { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums }
.avg-inline svg { width: 13px; height: 13px; color: var(--star) }

/* ---------- On hand tab ---------- */
.scan-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--ring), var(--shadow-card); padding: 14px; display: flex; flex-direction: column; gap: 12px }
.scan-top { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center }
.scan-ic { width: 44px; height: 44px; border-radius: var(--r-ctl); background: var(--p-fridge-soft); color: var(--p-fridge); display: grid; place-items: center }
.scan-ic svg { width: 23px; height: 23px }
.scan-text { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.scan-text b { font-weight: 650; font-size: 16px; letter-spacing: -.012em; line-height: 1.3 }
.scan-text span { color: var(--muted); font-size: 13.5px; line-height: 1.4 }
.scan-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px }
.scan-actions .btn { padding-inline: 8px; min-width: 0; white-space: normal; text-align: center; line-height: 1.2 }
@media (max-width: 359px) { .scan-actions .btn { font-size: 14px; gap: 5px } .scan-actions .btn svg { width: 16px; height: 16px } }
.scan-actions .btn svg { width: 18px; height: 18px; flex: none }
.can-make { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; padding: 12px 14px; border: 0; border-radius: var(--r-card); background: var(--sunk); text-align: left; font-size: 14.5px; color: var(--ink); line-height: 1.4 }
.can-make.ready { background: var(--have-soft) }
.can-make.ready b { color: var(--have) }
.can-make b { font-weight: 650 }
.can-make-go { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; margin-left: auto }
.can-make-go svg { width: 16px; height: 16px }
.you-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 650 }
/* Headings people type in an ingredient list ("For the sauce:") */
.ing .ing-heading { padding: 14px 0 4px; font-weight: 650; font-size: 13.5px; color: var(--muted) }
.ing .ing-heading + li { border-top: 0 }
.cook-ing .cook-ing-heading { padding: 16px 0 2px; font-weight: 650; font-size: 15px; color: var(--muted) }
.cook-ing .cook-ing-heading + li { border-top: 0 }

/* The "Turn on notifications?" card (same frame as the Home Screen card) */
.notify-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center }
.notify-ic svg { width: 26px; height: 26px }

/* ---------- Tap feedback: things you can press look pressed ---------- */
.btn:active:not(:disabled) { transform: scale(.97) }
.btn.primary:active:not(:disabled) { background: var(--accent-deep) }
.btn.ghost:active:not(:disabled) { background: var(--sunk) }
.recipe-row, .cr-main, .house, .option, .feed-item, .tonight-main, .can-make, .more-btn, .menu-item, .ing-btn, .cook-ing-btn, .filter, .seg button, .tab { transition: background-color .12s, transform .08s ease-out }
.recipe-row:active, .cr-main:active, .house:active, .option:active:not(:disabled), .menu-item:active, .more-btn:active { background-color: var(--sunk) }
.can-make:active, .tonight-main:active, .feed-item:active { opacity: .75 }
.filter:active, .seg button:active, .tab:active .ic { transform: scale(.96) }
.check:active, .star:active, .chip .x:active, .g-row .x:active { transform: scale(.9) }

/* ---------- Recipe page: steps as a numbered list, in the cook's own lines ---------- */
.step-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 65ch }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13px; display: grid; place-items: center; font-variant-numeric: tabular-nums; margin-top: 1px }
.step-text { font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; padding-top: 2px }
.step-heading { font-weight: 650; font-size: 13.5px; color: var(--muted); padding-top: 4px }
.step-notes { margin-top: 6px }

/* ---------- List tab: one card, a small label per aisle ---------- */
.grocery-panel .aisle + .aisle { border-top: 1px solid var(--line) }
.aisle-head { display: flex; align-items: center; gap: 7px; margin: 0; padding: 12px 14px 4px; font-size: 13px; font-weight: 650; color: var(--muted); letter-spacing: -.004em }
.aisle-n { color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums }
.grocery-panel .aisle .g-row:first-of-type { border-top: 0 }
.grocery-panel .aisle[data-aisle=cart] .aisle-head { color: var(--have) }

/* ---------- Settings: Save stays in reach at the bottom of the sheet ---------- */
.sticky-actions { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); z-index: 2; margin: 6px calc(-1 * max(18px, env(safe-area-inset-right, 0px))) calc(-24px - env(safe-area-inset-bottom, 0px)); padding: 12px max(18px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line) }
.sticky-actions .sheet-actions { padding-top: 0 }
.sticky-actions .form-err { margin: 0 0 8px }

/* ---------- Recipes tab: one card, a small label per meal ---------- */
.recipe-panel .meal-section + .meal-section { border-top: 1px solid var(--line) }
.recipe-panel .group-title { margin: 0; padding: 12px 14px 2px; font-size: 13px; font-weight: 650; color: var(--muted); letter-spacing: -.004em; gap: 7px }
.recipe-panel .group-n { min-width: 0; height: auto; padding: 0; background: none; color: var(--faint); font-size: 13px }
.recipe-panel .meal-section .recipe-row:first-of-type { border-top: 0 }

/* The always-on chip row (Sort & filter, Gluten-free, Seed-oil free, active filters):
   one line that scrolls sideways on small phones, instead of wrapping onto a second row */
.active-chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 1px var(--gutter-r) 1px var(--gutter-l); gap: 6px }
.active-chips::-webkit-scrollbar { display: none }
/* All | Ours, full width above the chips on Recipes and Kitchen */
.scope-seg { display: flex; width: 100%; align-self: stretch }
.scope-seg button { flex: 1; justify-content: center }
.active-chips .filter { padding: 7px 12px; font-size: 13.5px }
.active-chips .filter.tool { padding-left: 11px }
.active-chips .filter.on { padding-right: 9px }

/* ---------- Small pieces still in use from Oct 31 2026 ---------- */
.kind-chips { margin-top: -6px }
.saved-too { margin: 8px 0 0 }

/* ======================= Cookbook look (Nov 2026) ======================= */
/* Page top: the box's name, then the tab's title in serif. Scrolls away with the page. */
.top { position: static; background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none }
.top-in { align-items: flex-end; padding-block: 16px 6px }
.page-head { display: flex; flex-direction: column; gap: 1px; min-width: 0 }
.page-kicker { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.08; letter-spacing: -.02em; margin: 0; font-variation-settings: "opsz" 72 }
.top-actions { gap: 6px; margin-bottom: 2px }
.top .icon-btn { color: var(--ink); width: 44px; height: 44px }
.main { padding-top: 6px }
.view-sub { margin: -6px 2px 0 }
.recipe-row:hover, .house:hover, .option:hover:not(:disabled) { background: #FDFBF8 }
.cr-main:hover .rr-name, .feed-item:hover .feed-text { color: inherit }

/* Serif for titles */
.sheet-head h2, .empty h3, .gate h1, .gate h1.ob-title, .sec-title, .fold-name, .rc-name, .hh-name, .block-title, .tonight-name, .groups .group-title, .hh-hero .bar-title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em }
.sheet-head h2 { font-size: 27px; line-height: 1.12 }
.empty h3 { font-size: 22px }
.block-title { font-size: 21px }
.groups .group-title { font-size: 19px }
.tonight-name { font-size: 22px }

/* Fields: white on cream with a hairline */
input[type=text], input[type=search], input[type=url], input[type=tel], textarea, select { background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong) }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent) }
.seg { background: var(--band) }

/* Recipes: search + filter button */
.search-row { display: flex; gap: 10px }
.search-row input[type=search] { flex: 1; min-width: 0; height: 48px; border-radius: 14px }
.sq-btn { position: relative; width: 48px; height: 48px; flex: none; border: 0; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; color: var(--ink) }
.sq-btn svg { width: 21px; height: 21px }
.sq-dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface) }
.sq-btn:active { transform: scale(.96) }

/* Section heads */
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 }
.sec-title { margin: 0; font-size: 23px; line-height: 1.15; display: inline-flex; align-items: baseline; gap: 8px }
.sec-n { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0 }
.sec-row .link-btn { padding: 4px 0; font-size: 14.5px }

/* What's in it: a tile per food group */
.kinds { display: flex; flex-direction: column; gap: 12px; margin-top: 4px }
.kind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px }
.kind-tile { position: relative; min-height: 84px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 2px; font-size: 13px; font-weight: 600; color: var(--ink); transition: transform .08s ease-out }
.kind-tile:active { transform: scale(.96) }
.kind-tile[aria-pressed="true"] { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent) }
.kind-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center }
.kind-ic svg { width: 22px; height: 22px }
.kind-label { line-height: 1.1; text-align: center }
.kind-n { position: absolute; top: 6px; right: 9px; font-size: 11px; font-weight: 600; color: var(--muted) }
.k-chicken .kind-ic { background: var(--k-chicken-soft); color: var(--k-chicken) }
.k-turkey .kind-ic { background: var(--k-turkey-soft); color: var(--k-turkey) }
.k-beef .kind-ic { background: var(--k-beef-soft); color: var(--k-beef) }
.k-pork .kind-ic { background: var(--k-pork-soft); color: var(--k-pork) }
.k-game .kind-ic { background: var(--k-game-soft); color: var(--k-game) }
.k-seafood .kind-ic { background: var(--k-seafood-soft); color: var(--k-seafood) }
.k-veggie .kind-ic { background: var(--k-veggie-soft); color: var(--k-veggie) }
.k-pasta .kind-ic { background: var(--k-pasta-soft); color: var(--k-pasta) }
.k-soup .kind-ic { background: var(--k-soup-soft); color: var(--k-soup) }
@media (max-width: 359px) { .kind-grid { gap: 7px } .kind-tile { font-size: 12px; min-height: 78px } .kind-ic { width: 36px; height: 36px } }

/* Recipe cards, two across */
.rlist { display: flex; flex-direction: column; gap: 26px; margin-top: 6px }
.meal-sec { display: flex; flex-direction: column; gap: 12px }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px }
.rcard { border: 0; background: none; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--ink); transition: transform .08s ease-out }
.rcard:active { transform: scale(.98) }
.rcard-img { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--m-other-soft); color: var(--m-other) }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; display: block }
.rcard-img.m-breakfast { background: var(--m-breakfast-soft); color: var(--m-breakfast) }
.rcard-img.m-lunch { background: var(--m-lunch-soft); color: var(--m-lunch) }
.rcard-img.m-dinner { background: var(--m-dinner-soft); color: var(--m-dinner) }
.rcard-img.m-dessert { background: var(--m-dessert-soft); color: var(--m-dessert) }
.rcard-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px }
.rcard-mono { font-family: var(--font-display); font-size: 64px; font-weight: 500; line-height: 1; font-variation-settings: "opsz" 144; opacity: .9 }
.rcard-add { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 600; opacity: .8 }
.rcard-add svg { width: 14px; height: 14px }
.rcard-img .tile { position: absolute; top: 9px; left: 9px; width: 28px; height: 28px; border-radius: 9px; font-size: 11px; box-shadow: 0 0 0 2px var(--surface) }
.rcard-name { font-weight: 600; font-size: 15.5px; line-height: 1.25; letter-spacing: -.012em; overflow-wrap: anywhere; padding: 0 2px }
.rcard-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 0 2px; min-width: 0; margin-top: -2px }
.rcard-meta .st { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.rcard-meta .gf-tag { margin: 0; flex: none }
.rcard-meta .avg { margin-left: auto; font-size: 13px; flex: none }
.rcard-meta .avg svg { width: 13px; height: 13px }

/* Folded meals: one line each */
.fold-list { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--line) }
.fold-row { width: 100%; min-height: 56px; border: 0; border-top: 1px solid var(--line); background: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; text-align: left; color: var(--ink) }
.fold-row:first-child { border-top: 0 }
.fold-name { font-size: 19px }
.fold-row svg { width: 18px; height: 18px; margin-left: auto; color: var(--faint) }
.meal-head { margin: 0 }
.meal-head .meal-toggle { display: flex; align-items: baseline; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font: inherit }
.meal-head .chev { margin-left: auto; align-self: center; display: grid; color: var(--faint); transform: rotate(90deg) }
.meal-head .chev svg { width: 18px; height: 18px }

/* Tabs: five */
.tabs { background: rgba(255, 255, 255, .95) }
.tabs-in { grid-template-columns: repeat(4, 1fr); max-width: 520px }
.tab { font-size: 11px }
.tab .ic { width: 44px }
.badge.news { background: var(--accent) }

/* ---------- Activity ---------- */
#activityView { display: flex; flex-direction: column; gap: 14px }
.people-row { display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 4px var(--gutter-r) 16px var(--gutter-l); border-bottom: 1px solid var(--line) }
.people-row::-webkit-scrollbar { display: none }
.person { flex: none; width: 68px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink) }
.person-ring { width: 64px; height: 64px; border-radius: 21px; padding: 3px; box-shadow: inset 0 0 0 2px var(--line-strong); display: grid; place-items: center }
.person.fresh .person-ring { box-shadow: inset 0 0 0 2.5px var(--accent) }
.person-ring .tile { width: 100%; height: 100%; border-radius: 17px; font-size: 18px }
.person.invite .person-ring { box-shadow: none; border: 2px dashed var(--line-strong); color: var(--muted) }
.person.invite .person-ring svg { width: 24px; height: 24px }
.person-name { font-size: 12px; font-weight: 500; max-width: 68px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.person.invite .person-name { color: var(--muted) }
.feed { display: flex; flex-direction: column; margin-top: -14px }
.feed > * { margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r)); padding: 16px var(--gutter-r) 18px var(--gutter-l) }
.feed > * + * { border-top: 8px solid var(--band) }
.post { display: flex; flex-direction: column; gap: 9px }
.post-head { display: flex; align-items: flex-start; gap: 12px }
.post-top { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px }
.tile.post { width: 38px; height: 38px; border-radius: 12px; font-size: 13.5px; display: grid; gap: 0 } /* "post" is also the class on the article itself: keep the letters centered */
.post-who { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; line-height: 1.3; min-width: 0 }
/* ••• on your own posts (Edit post, Delete post): the dots line up with the recipe's chevron */
.post-who-row { display: flex; align-items: center; gap: 6px; min-width: 0 }
.post-who-row .post-who { flex: 1 }
.icon-btn.post-dots { width: 36px; height: 30px; margin: -6px -9px -6px 0; color: var(--muted) }
.icon-btn.post-dots svg { width: 20px; height: 20px }
.post-menu .menu { top: 30px; min-width: 200px }
/* The photo view: your own post's Edit and Delete on the left, See the recipe on the right */
.photo-actions { justify-content: space-between; align-items: center }
.photo-actions > :last-child { margin-left: auto }
.photo-own { display: flex; gap: 8px }
.post-who b { font-size: 14.5px; font-weight: 650 }
.post-who span { font-size: 13px; color: var(--muted) }
.post-img { display: block; margin: 2px calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: 0; border: 0; background: var(--sunk); aspect-ratio: 1 / 1; overflow: hidden }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block }
.post-actions { display: flex; align-items: center; gap: 2px; margin: -4px -8px -4px }
.pa-btn { min-height: 44px; padding: 0 8px; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink) }
.pa-btn svg { width: 25px; height: 25px }
.pa-btn.liked { color: var(--accent) }
.pa-btn.liked span { color: var(--ink) }
.pa-btn:active svg { transform: scale(.9) }
.pa-save { margin-left: auto }
.pa-save svg { width: 22px; height: 22px }
.post-likes { display: block; margin: 0; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--muted); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent }
.post-likes b { font-weight: 600; color: var(--ink) }
.post-likes:active { opacity: .55 }
/* Loved by: everyone who hearted a post */
.sheet-head .sheet-back { margin: 3px -4px 0 -10px; flex: none }
.sheet-head .sheet-back + h2 { flex: 1 }
.lovers { list-style: none; margin: 0; padding: 0 }
.lover { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line) }
.lover:last-child { border-bottom: 0 }
.lover-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px }
.lover-text b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lover-text span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lover-when { flex: none; font-size: 13px; color: var(--muted) }
.sheet-hearts { margin-block: -8px }
.sheet-hearts .post-likes { margin-left: 2px }
.post-text { margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere }
.post-text b { font-weight: 650 }
/* The recipe under the poster's name: its name and details, one button, no box */
.recipe-chip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 0; border: 0; background: none; text-align: left; color: var(--ink); transition: opacity .12s }
.recipe-chip:active { opacity: .6 }
.recipe-chip svg { width: 18px; height: 18px; margin-left: auto; color: var(--faint); flex: none }
.rc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.rc-name { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere }
.rc-meta { font-size: 13px; line-height: 1.35; color: var(--muted) }
.post-more { color: var(--muted); font-weight: 500; font-size: 14px; padding: 0 }
.post-add { display: flex; align-items: center; gap: 10px; margin-top: 2px }
.post-add input[type=text] { flex: 1; min-width: 0; background: none; box-shadow: none; border: 0; padding: 8px 0; font-size: 15px }
.post-add input[type=text]:focus { box-shadow: none; border: 0 }
.post-add .link-btn { padding: 8px 0 }

/* A household's page */
.back-link { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; font-size: 15.5px }
.back-link svg { width: 20px; height: 20px }
.hh-hero { display: flex; align-items: center; gap: 14px }
.hh-hero-text { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.hh-name { margin: 0; font-size: 28px; line-height: 1.1; overflow-wrap: anywhere }
.hh-hero .sub { margin: 0 }
.sheet-head .from, .groups .group-title .group-hint, .groups .group-title .group-n { font-family: var(--font); letter-spacing: 0 }

/* On hand › Start fresh (Nov 2026) */
.view-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 2px 0; min-height: 28px }
.view-sub-row .view-sub { margin: 0 }
.fresh-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 14.5px; align-self: center; margin-left: auto }
.fresh-btn svg { width: 16px; height: 16px }
.fresh-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px }
.fresh-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-ctl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; transition: transform .08s ease-out }
.fresh-opt:active { transform: scale(.98) }
.toast-btn { margin-left: 12px; border: 0; background: none; padding: 0; color: var(--accent-soft); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px }

/* Kitchen tab (Nov 2026): On hand + what you can make, with fill bars */
.onhand-btn { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line-strong), 0 4px 14px rgba(35, 28, 23, .08); text-align: left; margin-top: 2px; transition: transform .08s ease-out }
.onhand-btn:active { transform: scale(.985) }
.onhand-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--p-fridge-soft); color: var(--p-fridge); display: grid; place-items: center }
.onhand-ic svg { width: 26px; height: 26px }
.onhand-title { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.1; letter-spacing: -.015em }
.onhand-go { flex: none; width: 34px; height: 34px; border-radius: 17px; background: var(--sunk); display: grid; place-items: center }
.onhand-go svg { width: 18px; height: 18px }
.k-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.pick-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 2px 0 8px; border: 0; background: none; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 600; white-space: nowrap }
.pick-btn svg { width: 17px; height: 17px }
.k-list { display: flex; flex-direction: column; gap: 24px; margin-top: 4px }
.k-sec { display: flex; flex-direction: column; gap: 10px }
.k-sec .sec-row { margin: 0; align-items: baseline; flex-wrap: wrap; gap: 4px 10px }
.k-hint { font-family: var(--font); font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0 }
.k-hint-line { margin: -4px 2px 2px }
.k-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line) }
.k-row:first-child { border-top: 0 }
.k-main { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left }
.k-top { display: flex; align-items: baseline; gap: 12px }
.k-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em }
.k-count { flex: none; font-size: 14px; font-weight: 700 }
.k-count.have { color: var(--have) } .k-count.need { color: var(--need) }
.k-bar { display: block; height: 8px; border-radius: 4px; background: var(--band); overflow: hidden }
.k-fill { display: block; height: 100%; border-radius: 4px }
.k-fill.have { background: var(--have) } .k-fill.need { background: var(--need) }
.k-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px }
.k-foot .rr-status { flex: 1; min-width: 0 }
.k-row .st-need { color: var(--need); font-weight: 600 }
.k-more { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--ring); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left }
.k-more-go { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 14.5px }
.k-more-go svg { width: 16px; height: 16px }
.k-empty { background: var(--surface); border-radius: 20px; box-shadow: var(--ring), var(--shadow-card); padding: 22px 18px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px }
.k-empty h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.15; letter-spacing: -.015em }
.k-empty p { margin: 0; color: var(--muted); line-height: 1.45 }
.k-empty-actions { display: flex; gap: 10px; width: 100%; margin-top: 4px }
.k-empty-actions .btn { flex: 1 }
.k-empty .link-btn { align-self: center }
/* On hand: a panel over the Kitchen tab */
.onhand-layer { position: fixed; inset: 0; z-index: 35 }
.onhand-panel { position: absolute; left: 0; right: 0; bottom: 0; top: calc(28px + env(safe-area-inset-top, 0px)); margin-inline: auto; max-width: 640px; overflow: auto; overscroll-behavior: contain; background: var(--bg); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-float); padding: 0 var(--gutter-r) 0 var(--gutter-l); display: flex; flex-direction: column; gap: 14px; animation: rise .22s ease-out }
@media (prefers-reduced-motion: reduce) { .onhand-panel { animation: none } }
.onhand-head { position: sticky; top: 0; z-index: 3; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 2px; margin-bottom: -6px }
.onhand-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-strong) }
.onhand-head h2 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -.015em }
.onhand-done { position: sticky; bottom: 0; z-index: 3; margin: auto calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: rgba(250, 246, 240, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line) }
@media (max-width: 359px) { .onhand-title { font-size: 22px } .onhand-btn { min-height: 68px; gap: 12px } .onhand-ic { width: 44px; height: 44px } }

/* ---------- Separate boxes (Nov 2026): Find people, requests, locked recipes, the owner's grid ---------- */
.req-card { gap: 12px; margin: 14px 0 }
.people-row + .req-card { margin-top: 16px }
.req-top { display: flex; align-items: center; gap: 12px }
.req-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 15px; line-height: 1.35 }
.req-text b { font-weight: 650 }
.req-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.mutual { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0 }
.mutual > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.mutual .tile.xs { width: 18px; height: 18px; border-radius: 5px; font-size: 8px }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px }
.empty-actions svg { width: 18px; height: 18px }
.find-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px }
.find-head .btn svg { width: 16px; height: 16px }
.find-search { position: relative; margin-bottom: 12px }
.find-search input { width: 100%; height: 48px; border-radius: 14px; padding-left: 42px; font-size: 16px; box-sizing: border-box }
.find-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none }
.find-ic svg { width: 19px; height: 19px }
.find-seg { display: flex; width: 100%; box-sizing: border-box }
.find-seg button { flex: 1; justify-content: center; padding-inline: 8px }
.seg-n.hot { background: var(--accent); color: var(--on-accent) }
.find-label { margin: 18px 2px 8px; font-size: 13.5px; font-weight: 600; color: var(--muted) }
.find-list { padding: 0; gap: 0; overflow: hidden }
.find-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; min-height: 64px; box-sizing: border-box }
.find-list .find-row + .find-row { border-top: 1px solid var(--line) }
.find-row.solo { padding: 0; min-height: 0 }
.find-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; color: var(--ink) }
.find-text { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.find-text b { font-size: 15.5px; font-weight: 650; overflow-wrap: anywhere }
.find-row .btn { flex: none }
.find-row .btn svg { width: 16px; height: 16px }
.in-box { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--have-soft); color: var(--have); font-weight: 600; font-size: 13px }
.in-box svg { width: 14px; height: 14px }
.find-none { margin: 20px 2px }
.find-reqs { display: flex; flex-direction: column; gap: 10px }
.find-reqs .req-card { margin: 0 }
.find-body > .hint { margin: 12px 2px 0 }
.btn.danger.armed { background: var(--danger); border-color: var(--danger); color: var(--surface) }
/* A recipe from a household that isn't in your box */
.recipe-chip .rc-lock { margin-left: auto; color: var(--muted); display: grid }
.recipe-chip .rc-lock svg { margin-left: 0; color: var(--muted) }
.lock-panel { background: var(--sunk); border-radius: var(--r-card); padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center }
.lock-panel.ok { background: var(--have-soft) }
.lock-panel h3 { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.015em }
.lock-panel p { margin: 0; color: var(--muted); line-height: 1.45; max-width: 300px }
.lock-panel.ok h3 { color: #17331F }
.lock-panel.ok p { color: #2F4A36 }
.lock-ic { width: 52px; height: 52px; border-radius: 999px; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-sm) }
.lock-ic svg { width: 24px; height: 24px }
.lock-panel.ok .lock-ic { color: var(--have) }
.lock-actions { display: flex; flex-direction: column; gap: 8px }
.lock-actions svg { width: 19px; height: 19px }
.hint.center, .link-btn.center { text-align: center; align-self: center }
/* Settings › Add a phone */
.add-phone .seg { align-self: stretch; display: flex }
.add-phone .seg button { flex: 1; justify-content: center }
.phone-lede { margin: 0; line-height: 1.5 }
.code-big { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 30px; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 14px; border-radius: var(--r-card); background: var(--sunk) }
.house[aria-current="true"] { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card) }
.house-go.on { color: var(--accent) }
.house[aria-pressed] .tick { margin-left: auto; width: 26px; height: 26px; flex: none; box-sizing: border-box; border-radius: 7px; border: 1.5px solid rgba(70, 45, 20, .32); display: grid; place-items: center; color: var(--on-accent) }
.house[aria-pressed] .tick.on { border: 0; background: var(--accent) }
.house[aria-pressed] .tick svg { width: 17px; height: 17px }
/* Invite someone, with separate boxes on */
.invite-two { gap: 14px }
.inv-card { gap: 12px }
.inv-top { display: flex; gap: 14px; align-items: flex-start }
.inv-top h3 { margin: 0 0 3px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.015em }
.inv-top p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted) }
.inv-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center }
.inv-ic.plain { background: var(--sunk); color: var(--ink) }
.inv-ic svg { width: 24px; height: 24px }
.ob-signin { margin-top: 6px; align-self: center; padding: 10px }

/* ---------- Welcome flow (Nov 2026): steps after the welcome screen ---------- */
.ob-skip-top { align-self: center; justify-self: end; color: var(--muted); padding: 10px 0; min-height: 44px }
.ob-top { grid-template-columns: 44px 1fr 44px }
.ob-fine { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: center }
.ob-hh { display: flex; align-items: center; gap: 14px }
.ob-hh .tile.xl { width: 72px; height: 72px; border-radius: 20px; font-size: 26px }
.ob-hh-text { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.ob-hh-text b { font-weight: 650; font-size: 15px }
.ob-hh-text > span { color: var(--muted); font-size: 13.5px; line-height: 1.4 }
.ob-hh-pic { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 0; min-height: 36px }
.ob-hh-pic svg { width: 17px; height: 17px }
.ob-opts { display: flex; flex-direction: column; gap: 12px }
.ob-opt { width: 100%; text-align: left; border: 0; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--ring), var(--shadow-card); padding: 16px; display: flex; gap: 14px; align-items: flex-start; color: var(--ink) }
.ob-opt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card) }
.ob-opt-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sunk); display: grid; place-items: center }
.ob-opt-ic svg { width: 22px; height: 22px }
.ob-opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px }
.ob-opt-text b { font-size: 16.5px; font-weight: 650 }
.ob-opt-text span { font-size: 14px; line-height: 1.45; color: var(--muted) }
.ob-check { width: 26px; height: 26px; flex: none; box-sizing: border-box; border-radius: 50%; border: 1.5px solid rgba(70, 45, 20, .32); display: grid; place-items: center; color: transparent }
.ob-check svg { width: 15px; height: 15px }
.ob-opt[aria-pressed="true"] .ob-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent) }
.ob-scan { align-items: center; text-align: center; gap: 10px; padding: 20px 18px }
.ob-scan-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center }
.ob-scan-ic svg { width: 30px; height: 30px }
.ob-scan-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.015em }
.ob-scan .ob-actions { align-self: stretch; margin-top: 4px; gap: 8px }
.ob-scan .btn svg { width: 19px; height: 19px }
.ob-type label { margin-top: 0 }
#obLive { display: flex; flex-direction: column; gap: 14px }
#obLive:empty { display: none }
.ob-have { display: flex; flex-direction: column; gap: 10px }
.ob-have-n { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--have); font-weight: 600; font-size: 14.5px }
.ob-have-n svg { width: 16px; height: 16px }
.ob-have .chip { padding: 5px 12px; font-size: 14px }
.ob-kcard { padding: 4px 0; gap: 0 }
.ob-ksec + .ob-ksec { border-top: 1px solid var(--line) }
.ob-ksec-title { margin: 0; padding: 12px 16px 2px; font-family: var(--font-display); font-size: 17px; font-weight: 600 }
.ob-krow { display: flex; flex-direction: column; gap: 7px; padding: 10px 16px 12px; font-size: 13.5px }
.ob-krow + .ob-krow { border-top: 1px solid var(--line) }
.ob-staples { display: flex; flex-direction: column; gap: 10px }
.ob-staples-head { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45 }
.ob-staples-head b { color: var(--ink); font-weight: 600 }
.ob-staples .filter svg { width: 13px; height: 13px }
.ob-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.ob-tile { border: 0; text-align: left; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--ring), var(--shadow-card); padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); min-height: 136px }
.ob-tile b { font-size: 16px; font-weight: 650 }
.ob-tile > span:last-child { font-size: 13.5px; line-height: 1.4; color: var(--muted) }
.ob-tile:disabled { opacity: .5 }
.ob-tile-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center }
.ob-tile-ic svg { width: 22px; height: 22px }
.ob-alt { align-self: center; padding: 8px 12px }
.gate .ob-skip { align-self: center; padding: 10px 12px; min-height: 44px }
.ob-sample { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border-radius: 20px; padding: 12px 14px; box-shadow: 0 2px 6px rgba(20, 27, 38, .06), 0 12px 30px rgba(20, 27, 38, .10); margin: 4px 2px 6px }
.ob-sample img { width: 38px; height: 38px; border-radius: 9px; flex: none }
.ob-sample-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 14.5px }
.ob-sample-text > b { font-size: 15px; font-weight: 650 }
.ob-sample-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted) }
.ob-sample-top b { font-weight: 600 }
.ob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px }
.ob-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px }
.ob-list-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--sunk); display: grid; place-items: center }
.ob-list-ic svg { width: 18px; height: 18px }
.ob-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.ob-steps li { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--ring), var(--shadow-card) }
.ob-n { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px }
.ob-step-text { flex: 1; font-size: 15.5px; line-height: 1.4 }
.ob-vis { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--sunk); color: #2457C5; display: grid; place-items: center; overflow: hidden }
.ob-vis svg { width: 22px; height: 22px }
.ob-vis img { width: 44px; height: 44px }
.ob-got { list-style: none; margin: 0; padding: 4px 0; gap: 0 }
.ob-got li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-size: 15px; color: var(--muted) }
.ob-got li + li { border-top: 1px solid var(--line) }
.ob-got li.done { color: var(--ink) }
.ob-tick { width: 24px; height: 24px; flex: none; box-sizing: border-box; border-radius: 50%; border: 1.5px solid rgba(70, 45, 20, .32); display: grid; place-items: center }
.ob-got li.done .ob-tick { background: var(--have); border-color: var(--have); color: #fff }
.ob-tick svg { width: 14px; height: 14px }
.gate .ob-done { display: flex; justify-content: center }

/* ---------- The tour: a light on one thing, and a bubble ---------- */
.tour { position: fixed; inset: 0; z-index: 55 }
.tour-spot { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(35, 28, 23, .58), 0 0 0 3px rgba(255, 255, 255, .9); pointer-events: none; transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease }
.tour-tip { position: fixed; box-sizing: border-box; background: var(--surface); border-radius: 18px; padding: 16px 16px 12px; box-shadow: 0 2px 6px rgba(20, 27, 38, .10), 0 16px 40px rgba(20, 27, 38, .22); display: flex; flex-direction: column; gap: 6px; animation: rise .2s ease-out }
.tour-tip h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.015em }
.tour-tip p { margin: 0; font-size: 15px; line-height: 1.45 }
.tour-n { font-size: 12.5px; font-weight: 600; color: var(--muted) }
.tour-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 6px }
.tour-actions .link-btn { color: var(--muted); padding: 10px 0; min-height: 44px }
.tour-actions .btn { min-height: 44px; padding-inline: 18px }
.tour-arrow { position: absolute; width: 14px; height: 14px; background: var(--surface); transform: rotate(45deg); border-radius: 2px }
.tour-spot.round { border-radius: 50% }
.tour-arrow.up { top: -6px }
.tour-arrow.down { bottom: -6px }

/* ---------- First-visit tips ---------- */
.tip { position: relative; margin-top: 12px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; box-shadow: 0 8px 24px rgba(20, 27, 38, .22) }
.tip-arrow { position: absolute; top: -6px; left: 50%; margin-left: -7px; width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); border-radius: 2px }
.tip-text { flex: 1; min-width: 0 }
.tip-ok { flex: none; border: 0; background: transparent; color: #FFD7C7; font-weight: 700; font-size: 14.5px; padding: 0 2px; min-height: 32px }
.tip-list { margin: 0 0 14px }
.tip-list .tip-arrow { display: none }

/* ---------- Finish setting up (Activity) ---------- */
.setup-card { margin-top: 16px; padding: 14px 16px 4px; gap: 8px }
.setup-head { display: flex; align-items: center; justify-content: space-between }
.setup-title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.015em }
.setup-head .icon-btn { margin-right: -10px; color: var(--muted) }
.setup-progress { display: flex; align-items: center; gap: 10px }
.setup-progress .k-bar { flex: 1; height: 6px }
.setup-n { font-size: 13px; font-weight: 600; color: var(--muted) }
.setup-row { width: 100%; border: 0; background: transparent; border-top: 1px solid var(--line); padding: 12px 0; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); font-size: 15px }
.setup-row:first-of-type { margin-top: 4px }
.setup-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center }
.setup-ic svg { width: 18px; height: 18px }
.setup-label { flex: 1; min-width: 0 }
.setup-row > svg { width: 18px; height: 18px; color: var(--muted) }

/* ---------- Activity's +: post a photo of something you made ---------- */
.post-fab { position: fixed; z-index: 21; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(184, 67, 28, .30), 0 8px 22px rgba(184, 67, 28, .26) }
.post-fab svg { width: 28px; height: 28px }
.post-fab:active { transform: translateX(-50%) scale(.94) }
.post-fab[hidden] { display: none }
#view-activity { padding-bottom: 72px }
.post-pick { display: flex; flex-direction: column; gap: 8px }
.post-pick .find-search { margin-bottom: 0 }
.post-pick-label { margin: 8px 0 0; font-weight: 600; font-size: 14px }
.pick-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--ring), var(--shadow-card); overflow: hidden }
.pick-row, .pick-new { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 9px 12px; text-align: left; color: var(--ink); min-height: 62px }
.pick-row + .pick-row, .pick-new + .pick-row, .pick-list .pick-more { border-top: 1px solid var(--line) }
.pick-list .pick-more { align-self: stretch; text-align: center; padding: 13px }
.pick-thumb { width: 44px; height: 44px; border-radius: 10px; flex: none; overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 21px; background: var(--sunk) }
.pick-thumb img { width: 100%; height: 100%; object-fit: cover }
.pick-thumb.pick-plus { background: var(--surface); border: 1.5px dashed var(--line-strong); color: var(--accent) }
.pick-thumb.pick-plus svg { width: 20px; height: 20px }
.post-switch, .notify-switch { margin-top: 10px }
.cover-add.post-upload { height: 220px; flex-direction: column; gap: 8px; font-size: 16px }
/* Posting from Activity's +: whole pages (isPage in app.js), like Instagram's new post */
.sheet.page .sheet-scrim { display: none }
.sheet-panel.page { top: 0; max-width: none; max-height: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; padding-bottom: 0; animation: page-in .2s ease-out }
.sheet-panel.page > * { width: 100%; max-width: 640px; margin-inline: auto }
.sheet-panel.page > :last-child { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) }
@keyframes page-in { from { transform: translateX(18px); opacity: .5 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .sheet-panel.page { animation: none } }
.sheet-panel.page .sheet-head { justify-content: flex-start; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px }
.sheet-panel.page .sheet-head::before { display: none }
.sheet-panel.page .sheet-head > .icon-btn:first-child { margin-left: -10px; flex: none }
.sheet-panel.page .sheet-head h2 { margin: 0; font-size: 23px; flex: 1 }
.sheet-panel.page .sheet-head .from { margin-top: 2px }
.sheet-panel.page .post-upload { height: auto; aspect-ratio: 1; max-height: 60vh }
.sheet-panel.page form#postForm { flex: 1; display: flex; flex-direction: column }
.page-actions { position: sticky; bottom: 0; margin: auto calc(-1 * max(18px, env(safe-area-inset-right, 0px))) 0; padding: 12px max(18px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line) }
.sheet-panel.page form#postForm:last-child { padding-bottom: 0 }
.cover-add.post-upload svg { width: 28px; height: 28px }
.post-pick-sheet { display: flex; flex-direction: column; gap: 12px }
.post-pick-sheet .find-search { margin-bottom: 0 }
.pick-thumb.m-breakfast { background: var(--m-breakfast-soft); color: var(--m-breakfast) }
.pick-thumb.m-lunch { background: var(--m-lunch-soft); color: var(--m-lunch) }
.pick-thumb.m-dinner { background: var(--m-dinner-soft); color: var(--m-dinner) }
.pick-thumb.m-dessert { background: var(--m-dessert-soft); color: var(--m-dessert) }
.pick-thumb.m-other { background: var(--m-other-soft); color: var(--m-other) }
.pick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px }
.pick-text b { font-weight: 600; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pick-text span { font-size: 13px; color: var(--muted) }
.pick-chosen { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 2px var(--accent), var(--shadow-card) }
.pick-chosen .btn { flex: none }

/* ---------- Signing in with your number (Nov 2026, Option A): the number, then the code from the text ---------- */
.ph-form { gap: 10px }
.ph-form > label { margin-top: 0 }
.ph-row { display: flex; gap: 8px }
.ph-cc { flex: none; display: grid; place-items: center; min-width: 52px; height: 54px; padding: 0 12px; border-radius: var(--r-ctl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 17px; font-weight: 600 }
.ph-row input { flex: 1; min-width: 0; height: 54px; font-size: 19px; letter-spacing: .01em }
.ph-row input:focus { border-color: transparent; box-shadow: inset 0 0 0 2px var(--accent) }
.ph-note { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45 }
.ph-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px }
.ph-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px }
.ph-fine { margin: 0; text-align: center; color: var(--muted); font-size: 13px }
.ph-actions .link-btn { align-self: center; min-height: 44px; font-size: 15px }
.ph-new { text-align: center }
.ph-code { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; cursor: text }
.ph-code input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; opacity: .01; box-shadow: none !important; z-index: 1 }
.ph-cell { height: 60px; min-width: 0; border-radius: var(--r-ctl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums }
.ph-cell.on { box-shadow: inset 0 0 0 2px var(--accent) }
.ph-again { margin: 2px 0 0; color: var(--muted); font-size: 14.5px }
.ph-wait { font-weight: 600 }
.ph-again .link-btn { padding: 4px 0 }
.ob-wb { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 8vh 0 5vh }
.gate .ob-wb .lede { max-width: 320px }
.ob-wb .lede b { color: var(--ink); font-weight: 600 }
.ob-wb h1 { margin: 8px 0 0 }
.ob-wb-tile { position: relative }
.ob-wb-check { position: absolute; right: -8px; bottom: -8px; width: 36px; height: 36px; border-radius: 18px; background: var(--have); color: var(--surface); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg) }
.ob-wb-check svg { width: 18px; height: 18px }
.ph-sheet .lede { margin: 0 0 6px; color: var(--muted); font-size: 15.5px; line-height: 1.5 }
.ph-sheet .lede b { color: var(--ink) }
.ph-sheet .ph-actions { margin-top: 10px }

/* Add your phone number: asked once when the app opens (people already on the app, Option B) */
.ph-ask { gap: 0 }
.ph-ask-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 14px 0 16px }
.ph-ask-ic svg { width: 26px; height: 26px }
.ph-ask h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1.12; letter-spacing: -.015em }
.ph-ask .lede { margin-bottom: 14px }
.ph-ask .ph-note svg { display: none }
.btn.ph-later { background: transparent; color: var(--muted); min-height: 48px }

/* Settings: your number, and where you're signed in */
.ph-set { display: flex; align-items: center; gap: 12px; justify-content: space-between }
.ph-set-num { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15.5px }
.ph-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--have); font-weight: 600; font-size: 13.5px }
.ph-ok svg { width: 13px; height: 13px }
.sess-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start }
.sess-list { align-self: stretch; padding: 0; gap: 0; overflow: hidden }
.sess-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px }
.sess-row + .sess-row { border-top: 1px solid var(--line) }
.sess-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--band); color: var(--ink); display: grid; place-items: center }
.sess-ic svg { width: 19px; height: 19px }
.sess-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 15px }
.sess-text b { font-weight: 600 }
.sess-text span { color: var(--muted); font-size: 13.5px }
/* Settings › Your household: numbers added for people you live with */
#haddBox { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 10px }
.hadd-list { list-style: none; margin: 0 }

/* Find people › a phone number */
.find-tip { margin: -6px 2px 12px }
.tile.ph-tile { background: var(--band); color: var(--muted) }
.tile.ph-tile svg { width: 22px; height: 22px }

/* Sign in with Apple (Nov 2026): Apple's black button, its logo from Apple's own system font */
.ph-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; color: var(--muted); font-size: 13px }
.ph-or::before, .ph-or::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.btn.apl-btn { background: #000; color: #fff; min-height: 52px; font-size: 16px; border-radius: 14px; gap: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif; letter-spacing: 0 }
.btn.apl-btn:hover, .btn.apl-btn:active:not(:disabled) { background: #1d1d1f }
.apl-logo { font-size: 19px; line-height: 1; margin-top: -2px; font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif }
#appleBox .apl-btn { margin-top: 8px }

/* First and last name side by side (Nov 2026) */
.name-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.name-part { display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.name-part input { width: 100%; min-width: 0 }

/* ---------- Settings (Nov 11 2026, Sam: "Settings needs to be cleaned up") ----------
   A menu of rows (Account, Invite friends, Notifications, Sign out; Delete my account on its
   own), each opening its own page with a Back arrow */
.set-menu { gap: 14px }
.set-list { padding: 0; gap: 0; overflow: hidden }
.set-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; background: transparent; text-align: left; color: var(--ink); font: inherit; cursor: pointer; transition: background-color .12s }
.set-row + .set-row { border-top: 1px solid var(--line) }
.set-row:hover { background: #FDFBF8 }
.set-row:active { background: var(--sunk) }
.set-ic { width: 40px; height: 40px; flex: none; border-radius: var(--r-tile); background: var(--band); color: var(--ink); display: grid; place-items: center }
.set-ic svg { width: 20px; height: 20px }
.set-ic .tile { width: 40px; height: 40px }
.set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px }
.set-text b { font-size: 16px; font-weight: 600; letter-spacing: -.01em }
.set-text span { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.set-row.danger .set-ic { background: var(--danger-soft); color: var(--danger) }
.set-row.danger b { color: var(--danger) }
.set-sec { display: flex; flex-direction: column; gap: 8px }
.set-sec h3.label { color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -.012em }
.set-note { gap: 4px }
.set-note b { font-size: 15px; font-weight: 600 }
/* Notifications: a check mark for each kind you want (Sam's words) */
.notify-box { display: flex; flex-direction: column; gap: 12px; align-items: flex-start }
.np-list { align-self: stretch; padding: 0; gap: 0; overflow: hidden }
.np-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 8px 14px; font-size: 15.5px; line-height: 1.35; cursor: pointer; -webkit-tap-highlight-color: transparent }
.np-row + .np-row { border-top: 1px solid var(--line) }
.np-row:active { background: var(--sunk) }
.np-tick { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; flex: none; margin: 0; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface) center / 16px 16px no-repeat; cursor: pointer; transition: background-color .12s, border-color .12s }
.np-tick:checked { border-color: var(--accent); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") }
.np-tick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
/* Sign out */
.so-card { gap: 12px }
/* Delete my account */
.del-card { gap: 8px }
.del-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--danger-soft); color: var(--danger); display: grid; place-items: center }
.del-ic svg { width: 22px; height: 22px }
.del-card h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.015em }
.del-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted) }
.del-actions { display: flex; flex-direction: column; gap: 10px }
/* What's on hand › Always counted as on hand (staples, moved out of Settings) */
.staples-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap }
.staples-row .hint { flex: 1 1 200px }
.staples-row .link-btn { padding: 4px 0 }

/* Report and Block (Nov 27 2026, for the App Store) */
.cm-flag { width: 30px; height: 30px; flex: none; border: 0; background: transparent; color: var(--faint); border-radius: 50%; display: grid; place-items: center }
.cm-flag:hover { background: rgba(20, 27, 38, .08); color: var(--ink) }
.cm-flag svg { width: 14px; height: 14px }
.rep-reasons { display: flex; flex-direction: column; gap: 8px }
.rep-reason { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-ctl); background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); text-align: left }
.rep-reason::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--faint) }
.rep-reason[aria-checked="true"] { box-shadow: 0 0 0 2px var(--accent) }
.rep-reason[aria-checked="true"]::before { box-shadow: inset 0 0 0 5px var(--accent) }
.rep-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px }
.rep-block .hint { margin: 0 }
.hh-block-row { display: flex; justify-content: center; padding: 18px 0 6px }
.hh-block-row .link-btn, .link-btn.danger { color: var(--danger); display: inline-flex; align-items: center; gap: 6px }
.hh-block-row svg { width: 16px; height: 16px }
.blocked-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.blocked-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600 }
.set-legal { margin: 4px 0 0; display: flex; justify-content: center; gap: 8px; color: var(--faint); font-size: 13.5px }
.set-legal a { color: var(--muted); text-decoration: none }
.ob-terms a, .ob-fine a { color: inherit; text-decoration: underline }
.rep-card { gap: 8px }
.rep-card.done { opacity: .75 }
.rep-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted) }
.rep-top b { color: var(--ink) }
.rep-when { flex: none }
.rep-what { display: flex; gap: 12px; align-items: flex-start }
.rep-what p { margin: 0; font-size: 15.5px; line-height: 1.45 }
.rep-thumb { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 10px; background: var(--sunk) }
.rep-acts { display: flex; flex-wrap: wrap; gap: 8px }
.rep-done { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px }
.rep-done svg { width: 16px; height: 16px }
.rep-done-h { margin: 14px 0 0 }
