/* "Food Journey": spice-market warm (sand, terracotta, teal, turmeric, plum), Young Serif for dish names,
   Archivo for everything you read and tap, Archivo Expanded caps for stamps and labels. Light and dark.
   Design canvas: https://claude.ai/artifact/4i9iMiAATBoBLuC3PfaBKw (row D). Fonts are self-hosted (SIL OFL, see
   static/fonts), so the app works without Google and nobody's address reaches a font server. */
@font-face {
  font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/fonts/young-serif.woff2) format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(/static/fonts/archivo-variable.woff2) format("woff2");
}
[hidden] { display: none !important; }
:root {
  --bg: #f4e9da;          /* sand */
  --card: #fffbf4;        /* paper */
  --sunken: #e8dccb;
  --ink: #2b1d24;         /* clove */
  --muted: #6c5a60;
  --line: #e3d3be;
  --line-strong: #cdbba6;
  --accent: #b4472e;      /* terracotta: the main action */
  --accent-ink: #ffffff;
  --accent-soft: #f6ded4;
  --green: #1e6863;       /* teal: next steps, done, kid approved */
  --green-ink: #ffffff;
  --green-soft: #d6eae7;
  --gold: #8a5a12;        /* turmeric, dark enough for text */
  --gold-fill: #c98322;
  --gold-soft: #f6e3bf;
  --plum: #7b3f61;
  --plum-soft: #ebd5e0;
  --danger: #a8322a;
  --danger-soft: #f6dcd6;
  --radius: 18px;
  --shadow: 0 1px 0 #e3d3be, 0 8px 20px rgba(70, 40, 30, .07);
  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tabbar-h: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1519; --card: #2a1f24; --sunken: #241a1f; --ink: #f4e9da; --muted: #b9a9ae; --line: #3d2f35;
    --line-strong: #5a4850; --accent: #e27f62; --accent-ink: #1e1519; --accent-soft: #4a2a24;
    --green: #74c2b8; --green-ink: #1e1519; --green-soft: #1f3836; --gold: #e3b45c; --gold-fill: #e3b45c;
    --gold-soft: #3e3020; --plum: #dca7c6; --plum-soft: #3f2734; --danger: #f08a7e; --danger-soft: #4a2622;
    --shadow: 0 1px 0 #3d2f35;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.45 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-synthesis: none; margin: 0; line-height: 1.15; }
h2 { font-size: 27px; margin: 4px 0 6px; }
h3 { font-size: 19px; }
p { margin: 6px 0; }
a { color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
/* The stamp voice: small expanded capitals, for labels, steps and badges. */
.eyebrow { font-size: 12px; font-weight: 700; font-stretch: 125%; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); }

.top {
  position: sticky; top: 0; z-index: 5; background: var(--bg);
  padding: calc(10px + env(safe-area-inset-top)) 16px 8px;
}
.top h1 { font-size: 22px; }
body.home .top { display: none; }
main { padding: 14px 16px calc(40px + var(--tabbar-h)); max-width: 680px; margin: 0 auto; }
body.home main { padding-top: calc(28px + env(safe-area-inset-top)); }

/* Bottom tab bar (hidden when logged out, while cooking and on the kitchen display). */
body.has-tabs { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 50px; justify-content: center;
  color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; }
.tabbar .ic { width: 54px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
.tabbar a[aria-current="page"] { color: var(--green); font-weight: 700; }
.tabbar a[aria-current="page"] .ic { background: var(--green-soft); }
@media (min-width: 700px) { .tabbar { left: 50%; transform: translateX(-50%); max-width: 680px; border-radius: 22px 22px 0 0;
  border: 1px solid var(--line); border-bottom: 0; } }

.hero { padding: 22px 18px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); margin-top: 6px; }
.hero h2 { color: var(--ink); }
.hero.ok { background: var(--green-soft); }
.hero.ok h2 { color: var(--green); }
.hero.down { background: var(--danger-soft); }
.hero.down h2 { color: var(--danger); }

.card {
  background: var(--card); border: 0; border-radius: var(--radius);
  padding: 14px; margin: 12px 0; box-shadow: var(--shadow);
}
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check .mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
}
.check.ok .mark { background: var(--green-soft); color: var(--green); }
.check.bad .mark { background: var(--danger-soft); color: var(--danger); }
.check.wait .mark { background: var(--line); color: var(--muted); }
.check .name { font-weight: 600; }
.check .detail { font-size: 14px; color: var(--muted); }

button {
  font: inherit; font-weight: 600; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--card); color: var(--ink); padding: 11px 14px; min-height: 44px; cursor: pointer;
}
button:disabled { opacity: .5; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.big { width: 100%; font-size: 17px; padding: 14px; border-radius: 14px; margin-top: 8px; }
.next { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 700; }

.status { font-size: 14px; margin-top: 10px; min-height: 20px; }
.status.ok { color: var(--green); }
.status.err { color: var(--danger); }
.spinner {
  display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px;
  border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
footer { text-align: center; font-size: 13px; color: var(--muted); padding: 10px 16px 30px; }

/* ---- forms and app screens ---- */
label { font-weight: 600; font-size: 14px; display: block; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], textarea, select {
  font: inherit; width: 100%; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-error {
  background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 8px 10px;
  font-size: 14px; margin: 12px 0 0;
}
.center { text-align: center; }
.ghost { background: transparent; }
.wide { width: 100%; margin-top: 12px; }
details { margin: 10px 0 0; }
details summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: var(--green); }
details form { padding-bottom: 6px; }
details form button { margin-top: 12px; }

.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tile {
  display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px;
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.tile .t { font-weight: 700; }
.tile .s { font-size: 13px; color: var(--muted); }
.badge {
  align-self: flex-start; margin-top: 6px; font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: .08em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 6px; border: 1.5px solid currentColor;
  background: transparent; color: var(--gold);
}
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(20px + max(var(--tabbar-h), env(safe-area-inset-bottom))); z-index: 30;
  max-width: 640px; margin: 0 auto; background: var(--ink); color: var(--bg); padding: 12px 14px;
  border-radius: 12px; font-size: 15px;
}
.toast.err { background: var(--danger); color: #fff; }
.warn { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 12px; padding: 12px; font-size: 14px; }

/* ---- header back arrow ---- */
.top { display: flex; align-items: center; gap: 6px; }
.top h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-btn { flex: none; font-size: 13px; color: var(--muted); text-decoration: underline; padding: 6px 0 6px 8px; }
.shot-preview { display: block; max-width: 100%; max-height: 320px; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; }
.back { font-size: 24px; line-height: 1; color: var(--ink); text-decoration: none; padding: 4px 8px 4px 0; }

/* ---- links that look like buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  font-weight: 600; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--card);
  color: var(--ink); padding: 11px 14px; min-height: 44px;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn.next { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 700; }
.btn.big { width: 100%; font-size: 17px; padding: 14px; border-radius: 14px; margin-top: 8px; }
.row { display: flex; gap: 8px; align-items: center; }
.spread { justify-content: space-between; }
.danger { color: var(--danger); }
input[type=search], input[type=url] {
  font: inherit; width: 100%; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink);
}
textarea { resize: vertical; line-height: 1.4; }
.tile.live { text-decoration: none; color: inherit; }
.badge.ok { color: var(--green); }
.warn { margin: 12px 0; }
.warn a { font-weight: 600; }
.big-spinner { width: 34px; height: 34px; border-width: 4px; margin: 6px auto 12px; display: block; }
.hero.empty { margin: 0 0 18px; }
.hero.empty .btn { margin-top: 14px; }

/* ---- library list ---- */
.recipe-row {
  display: flex; gap: 12px; align-items: center; padding: 10px; margin: 8px 0; text-decoration: none; color: inherit;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
.thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--accent-soft); }
.thumb.blank { display: block; }
.recipe-row-text { display: flex; flex-direction: column; min-width: 0; }
.recipe-row-text .t { font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.recipe-row-text .s { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- recipe form ---- */
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin: 6px 0 8px; display: block; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid4 label { font-size: 12px; }
@media (max-width: 380px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
.readout { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; }
.readout li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.readout li.group, .ingredients li.group {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  border-bottom: 0; padding-top: 10px;
}
.readout .amt { flex: none; min-width: 84px; font-weight: 600; }
.readout .amt.none { color: var(--muted); font-weight: 400; font-style: italic; }

/* ---- recipe view ---- */
.recipe-title { font-size: 28px; margin-top: 4px; }
.ingredients { list-style: none; padding: 0; margin: 8px 0 0; }
.ingredients li { padding: 8px 0; border-bottom: 1px dashed var(--line-strong); }
.ingredients li:last-child { border-bottom: 0; }
.steps { padding-left: 22px; margin: 8px 0 0; }
.steps li { padding: 6px 0; }
.pre { white-space: pre-wrap; }
.stepper { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.stepper button { min-height: 40px; width: 40px; padding: 0; border-radius: 50%; font-size: 18px; background: transparent; }

/* ---- segmented control (units) ---- */
.seg { display: flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--sunken); margin: 10px 0 2px; }
.seg button { flex: 1; border: 0; border-radius: 9px; font-size: 14px; padding: 6px 4px; min-height: 36px; background: transparent;
  color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--bg); font-weight: 700; }

/* ---- photo import ---- */
.page-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.page-thumbs:empty { display: none; }
.page-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); }
.page-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.page-thumb-n { position: absolute; left: 6px; bottom: 6px; background: var(--ink); color: var(--bg); font-size: 12px;
  border-radius: 999px; padding: 1px 7px; }
.page-thumb-x { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; min-height: 0; padding: 0;
  border-radius: 999px; font-size: 18px; line-height: 1; background: rgba(255, 255, 255, .9); }
.cover-slot { position: relative; margin: 10px 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); }
.cover-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-actions { gap: 8px; margin: 4px 0 6px; }
.cover-actions .btn { flex: 1; }
.cover-status { margin: 4px 0 8px; }
.form-error-inline { color: var(--danger); }

/* ---- link lists and share setup ---- */
.batch-row {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin: 8px 0; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.batch-row .recipe-row-text { flex: 1; }
.batch-row .link-host { font-size: 12px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot.ok { background: var(--green); }
.dot.bad { background: var(--danger); }
.dot.wait { background: var(--gold); }
.batch-teaser { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; }
.setup-steps { padding-left: 20px; margin: 12px 0; }
.setup-steps li { margin: 8px 0; line-height: 1.45; }
.row input[readonly] { flex: 1; min-width: 0; font-size: 14px; }

/* ---- original card, lightbox, shared page ---- */
.card-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.card-photo { position: relative; padding: 0; min-height: 0; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; aspect-ratio: 1; background: var(--card); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 12, .92); display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; min-height: 0; padding: 0;
  border-radius: 50%; font-size: 22px; background: rgba(255, 255, 255, .9); }
.share-banner { background: var(--gold-soft); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; }
.warn.small { font-size: 13px; }

/* ---- collection import ---- */
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 10px 0; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
ul.plain { list-style: none; padding: 0; margin: 8px 0; }
ul.plain li { margin: 4px 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; margin-top: 10px; }
label.check input { width: auto; margin-top: 3px; }

/* ---- tags, filters ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font-size: 14px; text-decoration: none;
  font-weight: 500; width: auto; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.fam { border-color: var(--gold); background: var(--gold-soft); }
.chip-x { min-height: 0; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  font-size: 16px; line-height: 1; color: inherit; }
.lib-tools { margin: 8px 0 2px; }
.lib-tools select { width: auto; flex: 0 0 auto; margin-left: auto; }
.small-btn { min-height: 36px; padding: 6px 14px; }
.filter-panel h4 { margin: 10px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.filter-panel .facet:first-child h4 { margin-top: 0; }
.tag-banner p { margin: 0 0 10px; }
.recipe-tags { margin: 2px 0 10px; }
.tag-add { margin: 6px 0; }
.tag-add input { flex: 1; min-width: 0; }

/* ---- cooking log ---- */
.stars { color: var(--gold-fill); letter-spacing: 1px; white-space: nowrap; }
.stars .muted { letter-spacing: 0; }
.star-pick { display: flex; gap: 4px; margin: 4px 0 8px; }
.star-pick button { width: 48px; min-height: 48px; padding: 0; font-size: 26px; border-radius: 12px; color: var(--gold);
  background: var(--card); }
.star-pick button.on { background: var(--gold-soft); }
.cook-history { list-style: none; padding: 0; margin: 10px 0 0; }
.cook-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0;
  border-top: 1px solid var(--line); }
.cook-history .chip-x { margin-left: auto; }
.cook-note { flex-basis: 100%; order: 5; }
#startCooking { margin: 4px 0 12px; }

/* ---- cooking mode ---- */
body.cooking { font-size: 18px; }
.cook-title { margin-top: 0; }
.cook-ings summary { font-weight: 600; cursor: pointer; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checklist li.group { cursor: default; }
.checklist .tick { flex: none; width: 22px; height: 22px; margin-top: 2px; border: 2px solid var(--line); border-radius: 6px; }
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.checklist li.done .tick { background: var(--green); border-color: var(--green); }
.cook-step .step-text { font-family: var(--serif); }
.cook-step .step-text { font-size: 24px; line-height: 1.45; margin: 6px 0 10px; }
.cook-nav button { flex: 1; }
.timer-chip { font-size: 16px; }
.timer-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.timer { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--ink);
  color: var(--bg); font-size: 16px; }
.timer b { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 20px; }
.timer.ringing { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }

/* ---- variations ---- */
.family-link { margin: 0 0 8px; }

/* ---- print / save as PDF: just the recipe ---- */
@media print {
  @page { margin: 14mm; }
  :root, :root:not([data-theme="light"]) { --bg: #fff; --card: #fff; --ink: #000; --muted: #444; --line: #ccc; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  header.top, .report-btn, .toast, button, .btn, .seg, .warn, .chips, .print-row, #cookLog, #sharePanel, .family-link,
  #timerBar, .lightbox, .stepper button, .share-banner + p.muted { display: none !important; }
  main { max-width: none; padding: 0; }
  .card { border: 0; box-shadow: none; padding: 0; margin: 0 0 10pt; break-inside: avoid; }
  .hero-img { max-height: 6cm; width: auto; max-width: 100%; aspect-ratio: auto; border-radius: 4pt; }
  .recipe-title { font-size: 20pt; margin: 0 0 4pt; }
  .ingredients { columns: 2; column-gap: 24pt; }
  .ingredients li { break-inside: avoid; border: 0; padding: 2pt 0; }
  .steps li { margin: 0 0 6pt; }
  .card-photos { grid-template-columns: repeat(4, 1fr); }
  a { color: inherit; text-decoration: none; }
}

/* ---- our family, taste profile ---- */
.save-state { min-height: 1.2em; margin: 0 0 4px; text-align: right; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.member-row { margin: 6px 0; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.avatar.kid { background: var(--gold-soft); color: var(--gold); }
input[type=range] { width: 100%; accent-color: var(--green); margin: 8px 0 0; }
.dial-ends { display: flex; justify-content: space-between; margin-bottom: 6px; }
.dial-label { font-size: 20px; font-weight: 700; margin: 4px 0 2px; }
.chip.love { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.chip.avoid { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.tile-link { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: inherit; }
.taste-text { font-size: 17px; line-height: 1.55; }
.bar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin: 6px 0; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; }
.bar.love span { background: var(--green); }
.bar.miss span { background: var(--danger); }
.checkbox { display: flex; gap: 10px; align-items: center; font-weight: 500; margin-top: 14px; }
.checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.grid2 select, .grid2 input { width: 100%; }
.member-row .recipe-row-text { flex: 1; }

/* ---- planning ---- */
.plan-steps { display: flex; gap: 6px; margin: 6px 0 12px; padding: 0; }
.plan-steps button { flex: 1; font-size: 13px; font-weight: 700; padding: 8px 4px; min-height: 40px; border-radius: 12px;
  background: var(--card); border-color: var(--line); }
.plan-steps button .n { display: inline-flex; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; align-items: center;
  justify-content: center; font-size: 12px; background: var(--sunken); }
.plan-steps button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan-steps button.on .n { background: var(--accent); color: var(--accent-ink); }
h3.section { margin: 18px 4px 8px; }
.dial-strip { display: flex; align-items: center; gap: 10px; margin: 4px 4px 12px; font-size: 14px; }
.dial-strip .segs { display: flex; gap: 3px; }
.dial-strip .segs span { width: 18px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.dial-strip .segs span.on { background: var(--green); }
.dial-strip a { margin-left: auto; font-weight: 600; }

/* Idea cards are tickets: a colored stub with the cuisine, a perforated edge, the card itself. */
.ideas { display: grid; gap: 12px; }
.idea { position: relative; display: flex; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.idea .stub { flex: none; width: 46px; display: grid; place-items: center; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--stub, var(--gold-fill)); color: var(--stub-ink, #fff); padding: 12px 0; }
.idea .stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 800; font-stretch: 125%;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; max-height: 220px; }
.idea::before, .idea::after { content: ""; position: absolute; left: 39px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); }
.idea::before { top: -7px; }
.idea::after { bottom: -7px; }
.idea .ticket-body { flex: 1; min-width: 0; padding: 12px 14px 14px; border-left: 2px dashed var(--line); }
.idea.picked { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.picked-stamp { position: absolute; right: 12px; top: 12px; padding: 6px 9px; border: 2.5px solid var(--accent); border-radius: 8px;
  color: var(--accent); font-size: 12px; font-weight: 800; font-stretch: 125%; letter-spacing: .1em; transform: rotate(-9deg);
  background: color-mix(in srgb, var(--card) 85%, transparent); pointer-events: none; }
.idea h4, .prep h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.15; margin: 6px 0 4px; }
.idea.picked h4 { padding-right: 84px; }
.idea p { margin: 4px 0; }
.idea .pitch { font-size: 15px; }
.idea .why { color: var(--ink); }
.idea .kid { color: var(--green); font-weight: 600; }
.idea-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge.fav { color: var(--accent); }
.badge.new { color: var(--green); }
.badge.stretch { color: var(--gold); }
.badge.ours { color: var(--plum); }
.idea-actions { display: flex; gap: 8px; margin-top: 10px; }
.idea-actions button { min-height: 44px; }
.idea-actions [data-act="pick"] { flex: 1; }
.idea-actions [data-act="pick"].on { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.idea-actions .skip { width: 44px; padding: 0; }
.skipped { margin: 10px 4px; }
.lib-row { margin: 6px 0; }
.lib-row .recipe-row-text { flex: 1; }
.pickbar { position: sticky; bottom: calc(var(--tabbar-h) + 8px); z-index: 4; display: flex; gap: 10px; align-items: center;
  margin: 14px -4px 0; padding: 12px 14px; background: var(--card); border-radius: var(--radius);
  box-shadow: 0 -2px 18px rgba(70, 40, 30, .14); }
body:not(.has-tabs) .pickbar { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.pickbar-text { flex: 1; font-size: 14px; line-height: 1.35; }
.pickbar button { flex: none; }
.dinner.done { padding: 10px 14px; }
.dinner-actions { margin-top: 10px; }
.dinner-actions .ghost { flex: 1; }
.prep .seg { margin-top: 8px; }
.prep .tweaks { margin-top: 8px; }
.prep [data-get] { margin-top: 8px; width: 100%; }
.prep .recipe-row { margin: 6px 0; }
.plan-steps button { margin: 0; min-width: 0; }

/* ---- grocery list ---- */
.g-head .g-count { margin: 0 0 6px; font-size: 17px; }
.g-section h3 { margin: 16px 4px 6px; font-size: 17px; }
.g-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.g-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; min-height: 52px; }
.g-item + .g-item, .g-menu { border-top: 1px solid var(--line); }
.g-check { flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid var(--muted);
  background: transparent; color: var(--card); font-size: 16px; line-height: 1; }
.g-item.checked .g-check { background: var(--green); border-color: var(--green); }
.g-text { flex: 1; min-width: 0; display: flex; flex-direction: column; cursor: pointer; }
.g-name { font-weight: 600; }
.g-for { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-amount { flex: none; font-size: 14px; color: var(--muted); text-align: right; max-width: 40%; }
.g-more { flex: none; width: 36px; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.g-item.checked .g-name, .g-item.checked .g-amount { text-decoration: line-through; color: var(--muted); }
.g-item.checked { opacity: .7; }
.g-menu { padding: 10px 12px 12px; background: var(--bg); }
.g-menu label { margin-top: 0; }
.g-stocked summary { cursor: pointer; }
.g-actions .g-share { margin-top: 10px; }
.g-actions .g-share .btn { flex: 1; }
.small-btn { width: 100%; margin-top: 10px; font-size: 14px; min-height: 36px; }
.chip-btn { border: 0; background: transparent; padding: 0; min-height: 0; font: inherit; color: inherit; }
.chip.on { background: var(--ink); color: var(--bg); }
/* Instacart: the button text Instacart asks for. Before applying for production, use the logo and exact colors
   from Instacart's CTA guidelines (this dark green is a placeholder). */
.instacart-cta { display: flex; width: 100%; align-items: center; justify-content: center; height: 46px; min-height: 46px;
  border-radius: 29.5px; background: #003d29; color: #fff; border: 0; font-weight: 600; margin-top: 10px; }
@media print {
  .g-head form, .g-more, .g-actions, .g-stocked, .g-menu { display: none !important; }
  .g-list { border: 0; }
  .g-item { min-height: 0; padding: 3px 0; break-inside: avoid; }
  .g-check { width: 14px; height: 14px; border-width: 1px; }
  .g-section h3 { margin: 10px 0 2px; }
}

/* ---- cooking: ingredients in the step, tablet layout ---- */
/* This time (wishes for one plan) */
.this-time h3 { margin: 0 0 4px; }
.wish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 8px 0 4px; }
.wish-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.wish-row .stepper { display: inline-flex; align-items: center; gap: 8px; }
.wish-row .stepper b { min-width: 1.2em; text-align: center; font-variant-numeric: tabular-nums; }
.badge.wish { color: var(--green); }
.diet-sum { margin: 8px 0; }
@media (max-width: 420px) { .wish-grid { grid-template-columns: 1fr; } }
/* Adjust with Claude */
.adj-title { margin-top: 0; }
#adjReq { width: 100%; }
.adj-result h3 { margin: 16px 0 6px; }
.adj-changes { margin: 0; padding-left: 20px; }
.adj-changes li { margin: 3px 0; }
.adj-ings .adj-new { font-weight: 600; }
.adj-ings .badge.new { margin: 0 0 0 6px; vertical-align: middle; }
.adj-removed { list-style: none; padding: 0; margin: 0 0 6px; color: var(--muted); }
.adj-removed li { padding: 2px 0; }
.adj-steps { padding-left: 22px; }
.adj-steps li { margin: 6px 0; line-height: 1.45; }
.adj-result .primary.big { margin-top: 16px; }
/* Hands-free and Ask Claude in cooking mode */
.cook-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cook-tools .btn { flex: 1 1 auto; min-height: 44px; }
.cook-tools .btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.voice-state { margin-top: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); }
.voice-state.listening { border-color: var(--accent); background: var(--accent-soft); }
.voice-state p { margin: 4px 0; }
.voice-state .btn { margin: 6px 0; }
.ask-card { margin-top: 12px; }
.ask-card label { font-weight: 600; display: block; margin-bottom: 6px; }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1; min-width: 0; margin: 0; }
.ask-row button { flex: none; }
.ask-examples { margin-top: 8px; }
.ask-list { margin-top: 6px; }
.ask-item { padding: 10px 0; border-top: 1px solid var(--line); }
.ask-q { margin: 0 0 4px; font-weight: 600; }
.ask-a { margin: 0 0 6px; font-size: 18px; line-height: 1.45; }
.ask-wait { margin: 0; animation: pulse 1.4s infinite; }
.step-ings { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.step-ings p { margin: 0 0 4px; }
.step-ings .checklist li { padding: 6px 0; font-size: 18px; }
@media (min-width: 820px) {
  body.cooking main { max-width: 1180px; }
  .cook-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 0 18px; align-items: start; }
  .cook-ings { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
  .cook-ings summary { pointer-events: none; list-style: none; }
  .cook-step .step-text { font-size: 32px; line-height: 1.4; }
  .step-ings .checklist li { font-size: 20px; }
  .cook-nav button { min-height: 64px; font-size: 20px; }
}

/* ---- this week, kitchen display ---- */
.week { margin-top: 14px; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 8px; }
.week-list { display: grid; gap: 10px; }
.week-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.week-card.done { opacity: .65; box-shadow: none; }
.week-top { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.week-photo { flex: none; width: 76px; height: 57px; border-radius: 10px; object-fit: cover; background: var(--accent-soft); display: block; }
.week-text { display: flex; flex-direction: column; min-width: 0; }
.week-text .t { font-weight: 700; }
.week-text .s { font-size: 13px; color: var(--muted); }
.week-actions { display: flex; gap: 8px; margin-top: 10px; }
.week-actions .btn { flex: 1; text-align: center; }
.week-rate { margin-top: 8px; }
body.kitchen main { max-width: 1180px; }
.kitchen-date { font-size: 20px; color: var(--muted); margin: 4px 4px 10px; }
.tonight { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px;
  box-shadow: var(--shadow); }
.tonight-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--accent-soft); display: block; }
.tonight h2 { font-size: 34px; line-height: 1.15; margin: 2px 0 6px; }
.tonight p { margin: 4px 0; }
.tonight .kid { color: var(--gold); }
.tonight-actions { display: flex; gap: 10px; margin-top: 14px; }
.tonight-actions .btn { flex: 1; text-align: center; font-size: 20px; min-height: 60px; }
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kitchen-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; text-align: left; border-radius: var(--radius);
  background: var(--card); min-height: 0; }
.kitchen-card.done { opacity: .55; }
.kitchen-card .t { font-weight: 700; font-size: 17px; line-height: 1.25; }
.kitchen-card .s { font-size: 14px; color: var(--muted); font-weight: 500; }
.kitchen-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--accent-soft); display: block; }
@media (min-width: 820px) {
  .tonight { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 22px; }
  .tonight h2 { font-size: 44px; }
  .kitchen-date { font-size: 24px; }
}
.g-rename { margin-bottom: 8px; }
.g-rename .row input { flex: 1; min-width: 0; }

/* Errors screen (admin) */
.err-banner { display: block; text-decoration: none; color: inherit; font-weight: 600; }
.err-item { display: block; text-decoration: none; color: inherit; }
.err-title { font-weight: 600; margin: 6px 0 2px; overflow-wrap: anywhere; }
.err-detail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; max-height: 50vh;
  overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; }

/* Reports: the family's form (Family > Report a problem or idea) and the admin's list */
.kind-choice { display: grid; gap: 8px; margin: 8px 0 4px; }
label.kind { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px; font-weight: normal; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
label.kind input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
label.kind.on { border-color: var(--accent); background: var(--sunken); }
.badge.problem { color: var(--danger); }
.badge.improvement { color: var(--green); }
.report-message { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.seg a { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  border-radius: 9px; font-size: 14px; padding: 6px 4px; min-height: 36px; color: var(--muted); }
.seg a.on { background: var(--ink); color: var(--bg); font-weight: 700; }

/* ---- stamps ---- */
.stamp { flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; font-size: 8.5px; font-weight: 800; font-stretch: 112%; letter-spacing: .02em;
  line-height: 1.12; text-transform: uppercase; border: 2.5px solid transparent; transform: rotate(-7deg); padding: 0 5px;
  text-decoration: none; overflow-wrap: normal; }
.stamp b { font-size: 16px; letter-spacing: 0; line-height: 1; margin-bottom: 2px; }
.stamp.big { width: 92px; height: 92px; font-size: 10px; }
.stamp.big b { font-size: 22px; }
.stamp.s-favorite { background: var(--accent); color: var(--accent-ink); }
.stamp.s-kid { background: var(--green); color: var(--green-ink); transform: rotate(6deg); }
.stamp.s-first { border-color: var(--plum); color: var(--plum); background: var(--card); transform: rotate(5deg); }
.stamp.s-cuisine { background: var(--plum); color: var(--card); }
.stamp.s-faithful { border-color: var(--accent); color: var(--accent); background: var(--card); }
.stamp.s-card { border-color: var(--green); color: var(--green); background: var(--card); border-radius: 14px; transform: rotate(4deg); }
.stamp.s-cooked { background: var(--gold-fill); color: #2b1d24; }
.stamp.s-tonight { border-color: var(--plum); color: var(--plum); background: var(--card); transform: none; }
.stamp.s-todo { border: 1.5px dashed var(--line-strong); background: transparent; color: var(--muted); transform: none; }
.stamp.s-hint { border: 1.5px dashed var(--plum); color: var(--plum); background: var(--card); text-transform: none;
  font-stretch: 100%; font-weight: 600; letter-spacing: 0; }
.stamp.s-hint b { font-size: 10px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: .04em; }
.stamp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stamp-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1.5px solid transparent; }
.stamp-chip.s-favorite { background: var(--accent); color: var(--accent-ink); }
.stamp-chip.s-kid { background: var(--green); color: var(--green-ink); }
.stamp-chip.s-cuisine { background: var(--plum); color: var(--card); }
.stamp-chip.s-first { border-color: var(--plum); color: var(--plum); }
.stamp-chip.s-faithful { border-color: var(--accent); color: var(--accent); }
.stamp-chip.s-card { border-color: var(--green); color: var(--green); }
.stamp-pop { position: fixed; left: 16px; right: 16px; bottom: calc(16px + max(var(--tabbar-h), env(safe-area-inset-bottom)));
  z-index: 40; max-width: 460px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px;
  background: var(--card); color: var(--ink); border-radius: 20px; box-shadow: 0 10px 34px rgba(40, 20, 20, .28);
  animation: pop .35s ease-out; }
.stamp-pile { display: flex; }
.stamp-pile .stamp + .stamp { margin-left: -14px; box-shadow: 0 0 0 3px var(--card); }
@keyframes pop { from { transform: translateY(16px) scale(.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stamp-pop { animation: none; } }

/* ---- rating: faces and toggles ---- */
.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; margin: 6px 0 4px; }
.faces button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; padding: 4px 0;
  min-height: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.faces svg { width: 52px; height: 52px; }
.faces .fl { fill: none; stroke: #2b1d24; stroke-width: 1.3; stroke-linecap: round; }
.faces .ff { fill: #2b1d24; }
.faces .f1 .fbg { fill: #e8dccb; } .faces .f2 .fbg { fill: #d3e5e2; } .faces .f3 .fbg { fill: #f2ddb0; }
.faces .f4 .fbg { fill: #f2cdbe; } .faces .f5 .fbg { fill: #f2cdbe; }
.faces button[aria-pressed="true"] { color: var(--accent); font-weight: 800; }
.faces button[aria-pressed="true"] .fbg { fill: #b4472e; }
.faces button[aria-pressed="true"] .fl { stroke: #fffbf4; }
.faces button[aria-pressed="true"] .ff { fill: #fffbf4; }
.rate-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.toggle-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card);
  font-size: 14px; font-weight: 600; }
.toggle-chip[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.toggle-chip[data-toggle="not_again"][aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toggle-chip[aria-pressed="true"]::before { content: "✓ "; }

/* ---- home: greeting, tonight, this week's stamps ---- */
.greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 0 2px 16px; }
.greet h2 { font-size: 30px; margin: 4px 0 0; }
.round-link { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid;
  place-items: center; color: var(--ink); }
.round-link.has-photo { width: 54px; height: 54px; border: 0; overflow: hidden; }
.round-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.round-link svg, .quick svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; }
.tonight-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.tonight-card .tc-photo { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--plum-soft); }
.tonight-card .tc-photo img, .tonight-card .tc-photo .blank { width: 100%; height: 100%; object-fit: cover; display: block; }
.tonight-card .tc-photo.no-photo { aspect-ratio: auto; height: 104px; }
.tonight-card .tc-photo.no-photo::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px;
  margin: -22px 0 0 -22px; opacity: .45; background: var(--plum);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h18a9 9 0 0 1-18 0z'/%3E%3Cpath d='M8 7c0-1.5 1-2 1-3.5M12 7c0-1.5 1-2 1-3.5M16 7c0-1.5 1-2 1-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11h18a9 9 0 0 1-18 0z'/%3E%3Cpath d='M8 7c0-1.5 1-2 1-3.5M12 7c0-1.5 1-2 1-3.5M16 7c0-1.5 1-2 1-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.tonight-card .tc-label { position: absolute; left: 14px; top: 14px; background: var(--ink); color: var(--bg); padding: 5px 10px;
  border-radius: 6px; font-size: 11px; font-weight: 700; font-stretch: 125%; letter-spacing: .12em; }
.tonight-card .tc-stamp { position: absolute; right: 14px; bottom: -24px; }
.tonight-card .tc-stamp .stamp { width: 76px; height: 76px; box-shadow: 0 4px 12px rgba(70, 40, 30, .14); }
.tonight-card .tc-body { padding: 14px 16px 16px; }
.tonight-card h3 { font-size: 22px; padding-right: 76px; }
.tonight-card h3 a { color: inherit; text-decoration: none; }
.tonight-card .tc-meta { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.tonight-card .tc-kid { color: var(--green); font-size: 14px; font-weight: 600; margin: 4px 0 0; }
.tonight-card .tc-actions { display: flex; gap: 10px; margin-top: 12px; }
.tonight-card .tc-actions .btn:first-child { flex: 1; }
.tonight-card .tc-rate { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.week-stamps { margin: 0 0 18px; }
.week-stamps .ws-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px;
  margin: 0 2px 12px; }
.week-stamps .ws-head .eyebrow { white-space: nowrap; }
.week-stamps .ws-head .small a { font-weight: 600; }
.stamp-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 6px; }
.stamp-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; border: 0; background: transparent;
  text-decoration: none;
  padding: 0; min-height: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.stamp-slot .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stamp-slot.now .nm { color: var(--ink); font-weight: 700; }
.stamp-slot.cooked .nm { color: var(--ink); }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick a { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: var(--card);
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.quick a.teal { background: var(--green); color: var(--green-ink); box-shadow: none; }
.quick .t { font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.quick .s { font-size: 13px; color: var(--muted); }
.quick a.teal .s { color: inherit; opacity: .85; }
.home-links { text-align: center; margin: 18px 0 0; }
.recipe-stamps { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; margin: 10px 0 12px; }
.recipe-stamps .eyebrow { display: block; margin-bottom: 8px; font-size: 11px; }
.hero-wrap { position: relative; margin: 6px 0 8px; }
.hero-wrap .hero-img { margin: 0; }
.hero-wrap .stamp { position: absolute; right: 12px; bottom: -20px; box-shadow: 0 6px 16px rgba(70, 40, 30, .18); }
.hero-wrap.with-badge:not(.no-img) + .recipe-title { padding-right: 100px; }
.hero-wrap.no-img .stamp { position: static; margin: 2px 0 6px; box-shadow: none; }
.account-card .row { flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dinner .d-note { margin-top: 6px; }

/* Getting started (screens/welcome.js) */
.welcome-hero .btn.big { display: block; text-align: center; text-decoration: none; }
.welcome-hero .btn.big + .btn.big { margin-top: 8px; }
.wiz-progress { display: flex; align-items: center; gap: 6px; margin: 4px 2px 14px; }
.wiz-progress span:not(.eyebrow) { width: 28px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.wiz-progress span.done { background: var(--green); }
.wiz-progress span.on { background: var(--accent); }
.wiz-progress .eyebrow { margin-left: auto; }
.wiz-nav { display: flex; gap: 10px; margin: 18px 0 8px; }
.wiz-nav > * { flex: 1; text-align: center; text-decoration: none; min-height: 48px; display: flex; align-items: center;
  justify-content: center; }
.wiz-people, .wiz-batch, .wiz-summary { list-style: none; padding: 0; margin: 0; }
.wiz-people li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--line); }
.wiz-people li:last-child { border-bottom: 0; }
.wiz-batch li { padding: 4px 0; overflow-wrap: anywhere; }
.wiz-summary li { padding: 4px 0 4px 22px; position: relative; }
.wiz-summary li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.wiz-more { display: flex; flex-direction: column; gap: 10px; }
.wiz-more a { font-weight: 600; }
#wLinks { width: 100%; }
.setup-card { border: 1px solid var(--green); }
.setup-head { display: flex; align-items: baseline; justify-content: space-between; }
.setup-card ul { list-style: none; padding: 0; margin: 8px 0; }
.setup-card li a { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); text-decoration: none;
  font-weight: 600; }
.setup-card li.done a { color: var(--muted); font-weight: 400; text-decoration: line-through; }
.setup-card .tick { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong);
  align-items: center; justify-content: center; font-size: 13px; color: var(--green-ink); flex: none; }
.setup-card li.done .tick { background: var(--green); border-color: var(--green); }

/* Your data: download, delete (screens/family.js) */
.account-card .btn.wide { display: block; text-align: center; text-decoration: none; margin-top: 8px; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: var(--accent-ink); font-weight: 700; }
.btn.danger-fill:disabled { opacity: .45; }
#deleteForm .btn.big { display: block; text-align: center; text-decoration: none; }
body.privacy main ul { padding-left: 20px; margin: 6px 0; }
body.privacy main li { margin: 6px 0; }

/* Family picture (Family screen) */
.pic-row { display: flex; gap: 14px; align-items: center; }
.pic-row > div { flex: 1; min-width: 0; }
.pic-row button { margin: 4px 6px 0 0; }
.pic-now { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: var(--card); color: var(--muted); }
.pic-now img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-now svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
