/* SS Cosiness — direction A "Bay leaf". Porcelain ground, ink olive, bay leaf
   accent, a little brass. Newsreader for dish names, Hanken Grotesk for
   everything you tap. Phone first; the same layout centres on a desktop. */

:root {
  --bg: #F2F3EF;
  --paper: #FBFBF8;
  --paper-2: #FFFFFF;
  --ink: #1E2A22;
  --emerald: #12392D;      /* dark surfaces: tonight card, primary buttons */
  --emerald-ink: #F2F3EF;
  --ink-soft: #3A463C;
  --muted: #56604F;
  --line: #E3E5DE;
  --line-strong: #D5D8CE;
  --accent: #4B5D45;
  --accent-ink: #FBFBF8;
  --brass: #A8823F;
  --tint: #F2F3EF;
  --danger: #8C3B2F;
  --danger-tint: #F6ECE9;
  --shadow: 0 1px 0 rgba(30, 42, 34, 0.04);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-s: 12px;
  --nav-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151C17;
    --paper: #1C2520;
    --paper-2: #222C26;
    --ink: #EDEFE8;
  --emerald: #0E2B22;
  --emerald-ink: #EDEFE8;
    --emerald: #0E2B22;
    --emerald-ink: #EDEFE8;
    --ink-soft: #CBD2C5;
    --muted: #A3AD9E;
    --line: #2C372F;
    --line-strong: #3A463C;
    --accent: #8FA486;
    --accent-ink: #151C17;
    --brass: #C9A961;
    --tint: #222C26;
    --danger: #E0907F;
    --danger-tint: #33231F;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151C17;
  --paper: #1C2520;
  --paper-2: #222C26;
  --ink: #EDEFE8;
  --ink-soft: #CBD2C5;
  --muted: #A3AD9E;
  --line: #2C372F;
  --line-strong: #3A463C;
  --accent: #8FA486;
  --accent-ink: #151C17;
  --brass: #C9A961;
  --tint: #222C26;
  --danger: #E0907F;
  --danger-tint: #33231F;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Shell ----------------------------------------------------------------- */
.app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100dvh - 48px); border: 1px solid var(--line-strong); border-radius: 28px; overflow: hidden; }
}
main.screen {
  flex: 1;
  padding: 28px 22px calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 640px) { main.screen { padding-left: 32px; padding-right: 32px; } }

.header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.header .eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.header h1 { font-family: var(--serif); font-size: 36px; line-height: 1.05; letter-spacing: -0.01em; }
.header .actions { display: flex; gap: 8px; align-items: center; flex: none; padding-bottom: 4px; }

.back {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; margin: -8px 0 -14px -6px; padding: 0 6px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--accent); border-radius: 8px;
}

/* --- Nav -------------------------------------------------------------------- */
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  margin: 0 auto; max-width: 600px;
  display: flex; justify-content: space-around;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
}
@media (min-width: 640px) { nav.tabs { position: sticky; bottom: 24px; width: 100%; border: 1px solid var(--line-strong); border-radius: 0 0 28px 28px; } }
nav.tabs a {
  flex: 1; max-width: 72px; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-decoration: none; color: var(--muted); font-size: 11px; border-radius: 10px;
}
nav.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
nav.tabs svg { width: 22px; height: 22px; }

/* --- Type & text bits ---------------------------------------------------------- */
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.lead { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* --- Cards & rows ---------------------------------------------------------------- */
.card { background: var(--tint); border-radius: var(--radius); padding: 14px 16px; }
.card.paper { background: var(--paper-2); border: 1px solid var(--line-strong); }
.card.ink { background: var(--emerald); color: var(--emerald-ink); }
.card.ink .muted { color: #C9CFC2; }
.card.danger { background: var(--danger-tint); color: var(--ink); }
.card a.plain { color: inherit; text-decoration: none; display: block; }

.tonight { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 22px; text-decoration: none; }
.tonight .name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.tonight .meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }

.rows { display: flex; flex-direction: column; }
.row {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0;
}
.rows > .row:last-child, .rows.closed > .row:last-child { border-bottom: 1px solid var(--line); }
.row.today { background: var(--tint); margin: 0 -22px; padding-left: 22px; padding-right: 22px; width: calc(100% + 44px); }
@media (min-width: 640px) { .row.today { margin: 0 -32px; padding-left: 32px; padding-right: 32px; width: calc(100% + 64px); } }
.row .day { width: 52px; flex: none; font-size: 13px; color: var(--muted); padding-top: 3px; }
.row.today .day { color: var(--accent); font-weight: 600; }
.row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row .title { font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.row .sub { font-size: 12px; color: var(--muted); }
.row.today .sub { color: var(--accent); }
.row .time { width: 48px; flex: none; font-size: 13px; color: var(--muted); padding-top: 2px; }
.row .bar { width: 4px; align-self: stretch; min-height: 32px; border-radius: 2px; flex: none; }
.row .plain-title { font-size: 15px; }
.row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; }

.avatars { display: flex; }
.avatars span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--paper); }
.avatars span + span { margin-left: -7px; }
.card.ink .avatars span { border-color: var(--emerald); }

/* --- Checkbox rows -------------------------------------------------------------------- */
.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer;
}
.check:last-child { border-bottom: 1px solid var(--line); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check .body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check .t { font-size: 15px; }
.check .s { font-size: 12px; color: var(--muted); }
.check .n { font-size: 12px; color: var(--accent); }
.check .qty { font-size: 13px; color: var(--muted); flex: none; padding-top: 2px; }
.check.done .t { color: var(--muted); text-decoration: line-through; }
.check.done .qty { color: var(--muted); }

/* --- Buttons ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 26px; border: 0; font-size: 16px; font-weight: 500;
  background: var(--emerald); color: var(--emerald-ink); text-decoration: none; width: 100%;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { background: var(--accent); color: var(--accent-ink); } }
:root[data-theme="dark"] .btn { background: var(--accent); color: var(--accent-ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.ghost { background: transparent; color: var(--accent); height: 44px; }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; width: auto; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--line-strong); }
.btn-row { display: flex; flex-direction: column; gap: 8px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-strong); background: transparent; font-size: 14px; }
.chip-btn[aria-pressed="true"] { background: var(--emerald); color: var(--emerald-ink); border-color: var(--emerald); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } }
:root[data-theme="dark"] .chip-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 20px; height: 20px; }

.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + 8px); padding-top: 8px; background: linear-gradient(to top, var(--paper) 70%, transparent); }

/* --- Forms ------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-s); border: 1px solid var(--line-strong);
  background: var(--paper-2); color: var(--ink);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input[type="color"] { padding: 4px; width: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 16px; background: var(--tint); font-size: 13px; }
.chips .chip button { border: 0; background: none; padding: 0; width: 20px; height: 20px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.chips .chip.strong { border: 1px solid var(--ink); background: transparent; font-weight: 600; }

/* --- Dish ------------------------------------------------------------------------- */
.plates { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.plate { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.plate .ring { width: 64px; height: 64px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.plate .ring span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--c, var(--accent)); display: flex; align-items: center; justify-content: center; }
.plate .ring span i { width: 10px; height: 10px; border-radius: 50%; background: var(--c2); }
.plate .who { font-size: 12px; text-align: center; line-height: 1.3; }
.versions { display: flex; flex-direction: column; gap: 10px; }
.versions p { font-size: 14px; line-height: 1.45; }
.versions b { font-weight: 600; }
.steps { padding-left: 20px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }
.section { display: flex; flex-direction: column; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.section:last-of-type { border-bottom: 1px solid var(--line); }

/* --- Cooking mode ------------------------------------------------------------------- */
.cook { display: flex; flex-direction: column; gap: 20px; }
.cook .step { font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.cook .counter { font-size: 14px; color: var(--muted); }

/* --- Letter / suggestions ----------------------------------------------------------- */
.letter-paper { padding: 18px; background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 6px; font-family: var(--serif); font-size: 14px; line-height: 1.5; white-space: pre-wrap; max-height: 220px; overflow: auto; }
.suggest { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.suggest:last-child { border-bottom: 1px solid var(--line); }
.suggest input[type="checkbox"] { width: 22px; height: 22px; margin: 12px 0 0; accent-color: var(--accent); flex: none; }
.suggest .body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.suggest .title-input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper-2); font-size: 15px; }
.suggest .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.suggest .meta input, .suggest .meta select { min-height: 36px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--paper-2); font-size: 13px; }
.kind { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; background: var(--tint); }
.drop { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* --- Sheet / dialog ---------------------------------------------------------------- */
dialog.sheet {
  border: 0; padding: 0; margin: 0; width: 100%; max-width: 600px; left: 50%; transform: translateX(-50%);
  top: auto; bottom: 0; position: fixed; background: var(--paper); color: var(--ink);
  border-radius: 24px 24px 0 0; max-height: 92dvh; overflow: auto;
}
dialog.sheet::backdrop { background: rgba(20, 28, 23, 0.45); }
dialog.sheet .inner { padding: 20px 22px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
dialog.sheet h2 { font-family: var(--serif); font-size: 26px; }
dialog.sheet .handle { width: 44px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 10px auto 0; }

/* --- Toast & loading -------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px); z-index: 30; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 22px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-strong); } }
:root[data-theme="dark"] .toast { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-strong); }
.loading { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0; text-align: center; }
.loading .pot { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 26px 20px; border-radius: var(--radius); background: var(--tint); display: flex; flex-direction: column; gap: 12px; }
.empty h3 { font-family: var(--serif); font-size: 22px; }

/* --- Family -------------------------------------------------------------------------- */
.person { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.person:last-child { border-bottom: 1px solid var(--line); }
.person .av { width: 36px; height: 36px; border-radius: 50%; color: #FBFBF8; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex: none; }
.person .body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.person .name { font-size: 16px; font-weight: 500; }
.person .notes { font-size: 13px; line-height: 1.45; color: var(--muted); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); }
.plan-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--tint); font-size: 12px; font-weight: 600; }
.plan-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* --- Welcome / onboarding ------------------------------------------------------------- */
.welcome h1 { font-family: var(--serif); font-size: 40px; line-height: 1.05; letter-spacing: -0.015em; }
.welcome .lead { font-size: 17px; }
.progress { display: flex; gap: 6px; }
.progress i { height: 4px; flex: 1; border-radius: 2px; background: var(--line-strong); }
.progress i.on { background: var(--accent); }

/* --- What's in the fridge ------------------------------------------------------------ */
.fridge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 520px) { .fridge-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fridge-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 92px; padding: 12px 6px; border-radius: var(--radius-s); border: 1px solid var(--line-strong);
  background: var(--paper-2); font-size: 13px; line-height: 1.25; color: var(--ink);
}
.fridge-item .swatch { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08); }
.fridge-item[aria-pressed="true"] { border-color: var(--emerald); box-shadow: inset 0 0 0 2px var(--emerald); background: var(--tint); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fridge-item[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); } }
:root[data-theme="dark"] .fridge-item[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.fridge-other { display: flex; flex-direction: column; gap: 6px; }
.fridge-other-row { display: flex; gap: 8px; }
.fridge-other-row .input { flex: 1; min-width: 0; }
.fridge-other-row .btn { flex: none; height: 48px; }
.fridge-results { display: flex; flex-direction: column; gap: 12px; }
.fridge-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 18px; border-top: 1px solid var(--line); }
.fridge-card:last-child { border-bottom: 1px solid var(--line); }
.fridge-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fridge-card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.fridge-card .lead { font-size: 15px; }
.kid-tip { font-size: 14px; line-height: 1.5; padding: 10px 12px; border-radius: var(--radius-s); background: var(--tint); }
.fridge-card details summary { font-size: 14px; font-weight: 500; color: var(--accent); cursor: pointer; padding: 4px 0; }
.fridge-ings { list-style: disc; padding-left: 20px; margin: 8px 0 10px; font-size: 14px; line-height: 1.6; }
.fridge-card .btn { margin-top: 4px; }
.fridge-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.45; }
.fridge-link .chev { color: var(--muted); flex: none; }

/* Monthly usage (Family screen) */
.usage { display: flex; flex-direction: column; gap: 10px; }
.usage-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; align-items: baseline; }
.usage-row i { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.usage-row i::after { content: ''; position: absolute; inset: 0; width: var(--pct); background: var(--accent); border-radius: 2px; }

/* Ask Cosy */
.cosy-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; font-size: 14px; line-height: 1.45; }
.cosy-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--emerald); color: var(--emerald-ink); display: flex; align-items: center; justify-content: center; flex: none; }
.cosy-mark svg { width: 20px; height: 20px; }
.chat { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--emerald); color: var(--emerald-ink); border-bottom-right-radius: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bubble.me { background: var(--accent); color: var(--accent-ink); } }
:root[data-theme="dark"] .bubble.me { background: var(--accent); color: var(--accent-ink); }
.bubble.cosy { align-self: flex-start; background: var(--tint); border-bottom-left-radius: 6px; display: flex; flex-direction: column; gap: 8px; }
.bubble.cosy p { margin: 0; }
.bubble-links { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.bubble-links .chip-btn { text-decoration: none; color: inherit; display: inline-flex; align-items: center; background: var(--paper-2); }
.bubble.thinking { flex-direction: row; gap: 5px; padding: 14px 16px; }
.bubble.thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble.thinking span:nth-child(2) { animation-delay: .2s; }
.bubble.thinking span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-bar { position: sticky; bottom: calc(var(--nav-h) + 4px); display: flex; flex-direction: column; gap: 10px; padding-top: 10px; background: linear-gradient(to top, var(--paper) 85%, transparent); }
.chat-bar .chips { gap: 6px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; min-height: 48px; max-height: 140px; padding: 12px 14px; border-radius: 24px; border: 1px solid var(--line-strong); background: var(--paper-2); color: var(--ink); resize: none; line-height: 1.4; }
.chat-input .btn { width: 48px; height: 48px; padding: 0; border-radius: 50%; flex: none; }

/* --- Visual pass (25.10): a little more depth and ceremony, still quiet ---------- */
:root { --shadow-soft: 0 1px 2px rgba(30, 42, 34, 0.05), 0 10px 28px rgba(30, 42, 34, 0.06); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-soft: 0 1px 0 rgba(255,255,255,0.03); } }
:root[data-theme="dark"] { --shadow-soft: 0 1px 0 rgba(255,255,255,0.03); }
.header .eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.header h1 { font-size: 40px; }
.card.paper, .occ-card, .fridge-link, .occasion-link, .cosy-card { box-shadow: var(--shadow-soft); }
.tonight { position: relative; overflow: hidden; box-shadow: 0 14px 36px rgba(18, 57, 45, 0.28); }
.tonight::before { content: ''; position: absolute; inset: -40% -30% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 169, 97, 0.22), transparent 70%); pointer-events: none; }
.tonight::after { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 1px; background: linear-gradient(to right, transparent, rgba(201, 169, 97, 0.7), transparent); }
.tonight .name { font-size: 27px; }
.label { letter-spacing: 0.02em; }
section > .label::after { content: ''; display: block; width: 28px; height: 1px; background: var(--brass); margin-top: 6px; opacity: 0.8; }

/* --- Occasions ------------------------------------------------------------------- */
.occasion-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-size: 14px; line-height: 1.45; background: var(--paper-2); border: 1px solid var(--line-strong); }
.occ-mark { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); display: flex; align-items: center; justify-content: center; flex: none; }
.occ-mark svg { width: 18px; height: 18px; }
.occasion-link .chev { color: var(--muted); flex: none; margin-left: auto; }
.occasions { display: flex; flex-direction: column; gap: 10px; }
.occ-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); }
.occ-card.planned { border-color: var(--brass); }
.occ-icon { width: 44px; height: 44px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: var(--c, var(--brass)); background: color-mix(in srgb, var(--c, var(--brass)) 12%, var(--paper-2)); }
.occ-icon svg { width: 22px; height: 22px; }
.occ-icon.big { width: 64px; height: 64px; margin-bottom: 14px; }
.occ-icon.big svg { width: 30px; height: 30px; }
.occ-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.occ-title { font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.occ-sub { font-size: 13px; color: var(--muted); }
.occ-when { font-size: 12px; font-weight: 600; color: var(--brass); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.06em; }
.occ-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.occ-hero .eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.occ-hero h1 { font-family: var(--serif); font-size: 36px; line-height: 1.05; }
.feast-cta { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; }
.feast-cta .btn { margin-top: 6px; }
.feast { display: flex; flex-direction: column; gap: 6px; }
.feast-head { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--brass); box-shadow: var(--shadow-soft); margin-bottom: 10px; }
.feast-head .eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.feast-head h2 { font-size: 30px; line-height: 1.1; }
.course { border-top: 1px solid var(--line); padding: 4px 0; }
.course:last-of-type { border-bottom: 1px solid var(--line); }
.course summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 92px 1fr; gap: 6px 14px; align-items: baseline; padding: 12px 0; }
.course summary::-webkit-details-marker { display: none; }
.course-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); padding-top: 4px; }
.course-name { font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.course .kind { grid-column: 2; justify-self: start; }
.course.blocked .course-name { color: var(--danger); }
.course-body { display: flex; flex-direction: column; gap: 10px; padding: 0 0 18px 106px; }
@media (max-width: 480px) { .course summary { grid-template-columns: 1fr; gap: 2px; } .course-body { padding-left: 0; } }
.serve-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; font-style: italic; }
.serve-note svg { flex: none; margin-top: 3px; color: var(--brass); }
.feast-section { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 6px; }
.feast-list { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; padding-left: 18px; list-style: disc; }
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tl:last-child { border-bottom: 1px solid var(--line); }
.tl-when { font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.tl ul { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.tl li { position: relative; padding-left: 14px; }
.tl li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

.wish-line { text-align: center; padding: 6px 0 2px; }
.wish .btn { margin-top: 4px; }
