/* Hola Cebolla. Layout from the "Hola Cebolla screens" design. */
/* "Lemons and salad leaves": romaine green, lemon yellow, on a warm cream. */
:root {
  --paper: #FAF8EF; --surface: #FFFFFF; --bar: #FFFEF7; --ink: #1F2A1B; --ink-2: #3E4A38; --muted: #5C6955;
  --faint: #8B9585; --line: #E4E7D4; --line-2: #EEF0E2; --field: #D0D6BF; --dash: #A7B097;
  --accent: #2F6B22; --accent-hover: #245419; --accent-tint: #E8F3D8; --on-accent: #FFFFFF;
  --leaf: #6FAF3F; --lemon: #F6D03F; --lemon-tint: #FFF5C7; --lemon-ink: #5B4700;
  --ok-bg: #E8F3D8; --ok: #255A1B; --warn: #B0521C; --warn-bg: #FBE9DC;
  --radius: 18px; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #2A3326; --surface: #343F30; --bar: #2F392B; --ink: #F1F5EA; --ink-2: #D3DCC9; --muted: #B0BCA6;
  --faint: #8E9A85; --line: #46523F; --line-2: #3E4938; --field: #57644F; --dash: #74826A;
  --accent: #9CD27A; --accent-hover: #B5E09A; --accent-tint: #3A4C32; --on-accent: #10180D;
  --leaf: #8CC152; --lemon: #EBC843; --lemon-tint: #4A4424; --lemon-ink: #F3DE8A;
  --ok-bg: #34482E; --ok: #A6D98A; --warn: #F0A57C; --warn-bg: #4A3428; color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #2A3326; --surface: #343F30; --bar: #2F392B; --ink: #F1F5EA; --ink-2: #D3DCC9; --muted: #B0BCA6;
  --faint: #8E9A85; --line: #46523F; --line-2: #3E4938; --field: #57644F; --dash: #74826A;
  --accent: #9CD27A; --accent-hover: #B5E09A; --accent-tint: #3A4C32; --on-accent: #10180D;
  --leaf: #8CC152; --lemon: #EBC843; --lemon-tint: #4A4424; --lemon-ink: #F3DE8A;
  --ok-bg: #34482E; --ok: #A6D98A; --warn: #F0A57C; --warn-bg: #4A3428; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.45 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
.serif, h1, h2.serif { font-family: Fraunces, Georgia, serif; }
main { max-width: 640px; margin: 0 auto; padding: 20px 16px 108px; display: flex; flex-direction: column; gap: 20px; }
main > * { margin-top: 0; margin-bottom: 0; }

/* page header: kicker over a serif title */
.head { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 650; }
h2 { margin: 0; font-size: 15px; font-weight: 700; }
h2.serif { font-size: 22px; font-weight: 650; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > li { border-top: 1px solid var(--line-2); padding: 12px 16px; display: flex; gap: 12px; align-items: center; min-height: 56px; }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list a.row { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin: -12px -16px; padding: 12px 16px; flex: 1; min-width: 0; min-height: 56px; }
.row-title { display: block; font-size: 15px; font-weight: 600; }
.row-sub { display: block; font-size: 13px; color: var(--muted); }
.chev { color: var(--faint); display: flex; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat .n { font-family: Fraunces, Georgia, serif; font-size: 26px; font-weight: 650; line-height: 1.15; }
.stat .l { font-size: 13px; color: var(--muted); }
.stat.good { background: var(--ok-bg); border-color: transparent; } .stat.good .n, .stat.good .l { color: var(--ok); }
.stat.bad { background: var(--warn-bg); border-color: transparent; } .stat.bad .n, .stat.bad .l { color: var(--warn); }

/* pills & chips */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills a { text-decoration: none; }  /* a link in a pill row is a pill, never an underlined link */
/* A view switcher (_view_switch.html): one track, every option the same shape, the current
   one filled green like a picked .choice. Links, so no underline; aria-current marks it. */
.seg { display: flex; gap: 4px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line); }
.seg a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px;
  border-radius: 99px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--ink); background: var(--paper); }
.seg a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
/* Optional ingredients (extras): scaled like the rest, but muted and tagged, because the
   shopping list leaves them out unless the week's meal includes its extras. */
.ing.optional .ing-text { opacity: 0.72; }
.pill.opt { padding: 2px 8px; font-size: 12px; flex-shrink: 0; align-self: center; }
/* Fuzzy search: the "Close matches" / "Did you mean…" heading under the exact hits. */
.close-head { margin: 18px 4px 8px; font-weight: 700; text-transform: none; }
/* Recipe sections: as many as the household makes, so the track wraps inside the gutter. */
.seg-wrap { flex-wrap: wrap; border-radius: 22px; margin-bottom: 12px; }
.num-badge { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* buttons */
.btn, button { font: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--on-accent); background: var(--accent-hover); }
.btn.big { display: flex; min-height: 54px; font-size: 17px; width: 100%; }
.btn.ghost, button.ghost { background: transparent; color: var(--accent); }
button.link, .linkish { background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
button.danger { background: transparent; color: var(--warn); border-color: var(--warn); }
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); color: var(--ink); font-size: 20px; font-weight: 500; }
.icon-btn:hover { color: var(--ink); background: var(--paper); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* chips used as radio options (meal count) */
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { margin: 0; min-height: 44px; min-width: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--field); background: var(--surface); font-size: 15px; font-weight: 600; cursor: pointer; }
.choice input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* recipe chips (must include / leave out) */
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px 0 12px; border-radius: 99px; background: var(--accent-tint); color: var(--accent-hover); font-size: 14px; font-weight: 600; }
.chip button { min-height: 32px; width: 32px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: inherit; font-size: 17px; font-weight: 500; }
.add-chip { min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px dashed var(--dash); background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: inline-flex; align-items: center; }
.add-chip::-webkit-details-marker { display: none; }
.picker { margin-top: 8px; }
.picker input[type=search] { margin-bottom: 8px; }
.picker ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.picker li label { margin: 0; display: flex; gap: 10px; align-items: center; padding: 10px 12px; font-weight: 500; border-top: 1px solid var(--line-2); min-height: 44px; }
.picker li:first-child label { border-top: 0; }

/* stepper */
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { width: 56px; height: 44px; text-align: center; font-size: 17px; font-weight: 700; padding: 0; }
.tray { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }

/* forms */
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=url], input[type=search], select, textarea {
  font: inherit; width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); color: var(--ink); }
input[type=checkbox] { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.helptext, .help { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.errorlist { color: var(--warn); list-style: none; padding: 0; margin: 4px 0; font-size: 14px; }
.messages { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.messages li.error { border-color: var(--warn); color: var(--warn); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input[type=search] { flex: 1 1 180px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
details > summary { cursor: pointer; font-weight: 700; font-size: 15px; }
details.card > summary { min-height: 24px; }
details.more > summary { color: var(--accent); font-size: 14px; font-weight: 600; min-height: 44px; display: flex; align-items: center; list-style: none; }
.line-row { border-top: 1px solid var(--line-2); padding: 10px 0; }
.line-row:first-child { border-top: 0; }
.line-row .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.line-row .full { grid-column: 1 / -1; }
.line-row label { margin-top: 6px; }
ul.plain { margin: 8px 0 0; padding-left: 18px; }
code.invite { word-break: break-all; font-size: 13px; }

/* shopping list */
.shop > li { padding: 0; }
.shop .tick { margin: 0; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 16px; cursor: pointer; font-weight: 400; flex: 1; }
.shop input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--dash); background: var(--surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; }
.shop input:checked + .box { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.shop input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop .what { flex: 1; min-width: 0; }
.shop .name { display: block; font-size: 16px; font-weight: 600; }
.shop .sub { display: block; font-size: 13px; color: var(--muted); }
.shop .sub.warn { color: var(--warn); }
.shop .buy { font-size: 16px; font-weight: 700; white-space: nowrap; }
.shop li.done .name, .shop li.done .buy { color: var(--faint); text-decoration: line-through; }
.shop.hide-done li.done { display: none; }
.shop form { display: flex; flex: 1; }

/* recipe */
.ing-title { padding: 14px 16px 4px !important; min-height: 0 !important; border-top: 0 !important; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ing-plain { font-size: 15px; color: var(--ink-2); min-height: 0 !important; padding: 10px 16px !important; }
.ing-planned { align-items: flex-start !important; min-height: 0 !important; padding: 10px 16px !important; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); flex-shrink: 0; display: inline-block; }
.ing-planned .dot { margin-top: 7px; }
.ing-amount { display: block; font-size: 16px; font-weight: 700; }
.ing-raw { display: block; font-size: 13px; color: var(--muted); }
ol.method { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
ol.method li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 15px; }
ol.method .step-n { font-family: Fraunces, Georgia, serif; font-size: 20px; font-weight: 650; color: var(--accent); line-height: 1.2; min-width: 14px; }

/* bottom tab bar */
nav.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bar); border-top: 1px solid var(--line);
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
nav.tabbar .inner { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
nav.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px;
  text-decoration: none; font-size: 11px; font-weight: 600; color: var(--muted); }
nav.tabbar a.on { color: var(--accent); }

/* after the generic input rule, so these win */
.stepper input[type=number] { width: 56px; flex: 0 0 56px; height: 44px; text-align: center; font-size: 17px; font-weight: 700; padding: 0; -moz-appearance: textfield; }
.stepper input[type=number]::-webkit-inner-spin-button, .stepper input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* keep the 44px tap target without making the header row tall */
.section-head .linkish { margin: -12px 0; }
.head-links { display: flex; gap: 18px; }

/* ---- lemons and salad leaves ---- */
/* a lemon slice and lettuce leaves on every page header */
.head { position: relative; padding-right: 96px; min-height: 84px; }
.head::after { content: ""; position: absolute; right: 0; top: -4px;  /* inside the gutter, like the left edge */
  width: 124px; height: 86px;
  background: url("sprig.d02457abf092.svg") no-repeat right top / contain; pointer-events: none; }
/* leaf-shaped bullets instead of dots */
.dot { width: 13px; height: 13px; border-radius: 0; background: var(--leaf);
  -webkit-mask: url("leaf.e75bd981ca6c.svg") center / contain no-repeat; mask: url("leaf.e75bd981ca6c.svg") center / contain no-repeat; }
.ing-planned .dot { margin-top: 5px; }
/* lemon for counts and highlights, green for actions */
.num-badge { background: var(--lemon-tint); color: var(--lemon-ink); }
.pill.lemon, .stat.lemon { background: var(--lemon-tint); border-color: transparent; color: var(--lemon-ink); }
.stat.lemon .n, .stat.lemon .l { color: var(--lemon-ink); }
.choice input:checked + label { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.shop input:checked + .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip { background: var(--lemon-tint); color: var(--lemon-ink); }
/* active tab: a lemon lozenge behind the icon */
nav.tabbar a svg { padding: 3px 14px; box-sizing: content-box; border-radius: 99px; }
nav.tabbar a.on svg { background: var(--lemon-tint); color: var(--accent); }
/* a little depth on the big call to action */
.btn.big { box-shadow: 0 2px 0 var(--accent-hover); }
/* breathing room between a form's last field and its buttons */
form .actions { margin-top: 16px; }
/* the first field in a card doesn't need the label's top margin on top of the card padding */
.card > div:first-of-type > label:first-child { margin-top: 0; }
/* a full-width row that is a form button (sign out) */
.list > li.button-row { padding: 0; }
.list .button-row form { display: flex; flex: 1; }
.list .row-button { flex: 1; min-height: 56px; margin: 0; padding: 0 16px; justify-content: flex-start;
  border: 0; border-radius: 0; background: transparent; color: var(--warn); font-size: 15px; font-weight: 600; }
.list .row-button:hover { background: var(--paper); color: var(--warn); }
/* small inline actions at the end of a row (make owner · remove) */
.row-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.row-actions button.link { min-height: 44px; }
/* rounding: a lemon note, and a line under a rounded amount */
.note-lemon { background: var(--lemon-tint); color: var(--lemon-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.note-lemon a { color: var(--lemon-ink); font-weight: 700; margin-left: 4px; }
.ing-rounded { display: block; font-size: 12px; font-weight: 600; color: var(--lemon-ink); background: var(--lemon-tint);
  border-radius: 6px; padding: 1px 6px; width: fit-content; margin: 2px 0; }
/* an ingredient chip ("I fancy aubergine"): green, with a leaf */
.chip.leafy { background: var(--accent-tint); color: var(--accent); }
.chip.leafy::before { content: ""; width: 12px; height: 12px; margin-right: 2px; background: var(--leaf);
  -webkit-mask: url("leaf.e75bd981ca6c.svg") center / contain no-repeat; mask: url("leaf.e75bd981ca6c.svg") center / contain no-repeat; }
/* recipe ingredient rows: one readable rhythm for every line, bought or not */
.list > li.ing { align-items: flex-start; gap: 12px; min-height: 0; padding: 13px 16px; }
.ing-text { flex: 1; min-width: 0; line-height: 1.4; }
.ing-line { display: block; font-size: 15.5px; color: var(--ink); }
.ing-link { display: block; font-size: 15.5px; font-weight: 600; }
.ing-amount { font-size: 16px; }
.ing-raw { margin-top: 2px; line-height: 1.35; }
.ing-title { padding: 18px 16px 6px !important; letter-spacing: .07em; }
.ing-title + li.ing { border-top: 0; }
/* the vegan mark: a small green V */
abbr.vegan { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 99px; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 800;
  text-decoration: none; cursor: help; margin-top: 1px; }
/* shopping list sections */
h3.shop-group { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 4px 8px; }
h3.shop-group:first-of-type { margin-top: 0; }
/* long links and words in notes and method must wrap, never widen the page */
main { overflow-wrap: anywhere; }
ol.method .step-n { min-width: 1.6em; flex-shrink: 0; text-align: right; }

/* Offline shopping list (static/kitchen/outbox.js) */
.sync-banner { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--lemon-tint); color: var(--lemon-ink); font-size: 14px; font-weight: 600; }
.sync-banner a { color: inherit; }
.shop li.waiting .buy { position: relative; }
/* out of flow, so a bought row's strike-through doesn't run through it */
.shop li.waiting .buy::after { content: "waiting"; position: absolute; right: 0; top: 100%; font-size: 11px; font-weight: 600; color: var(--lemon-ink); }
.shop li.overridden { animation: overridden 4s ease-out; }
.shop li.overridden .sub::after { content: " · changed on another phone"; color: var(--warn); }
@keyframes overridden { from { background: var(--warn-bg); } to { background: transparent; } }

/* Recipe pictures (RecipeImage, served by recipe_image) */
.recipe-photo { width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: var(--radius); margin: 4px 0 6px; background: var(--line); }
.recipe-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex-shrink: 0; margin-right: 12px; background: var(--line); }

/* A secondary or destructive action whose reason asks in a sheet (_confirm_action.html) */
.btn.danger { background: transparent; color: var(--warn); border-color: var(--warn); }
.btn.danger:hover { background: var(--warn-bg); color: var(--warn); }
.btn.ghost:hover { background: var(--accent-tint); color: var(--accent); }
details.confirm { display: inline-block; }
details.confirm > summary { list-style: none; }
details.confirm > summary::-webkit-details-marker { display: none; }
.confirm-backdrop { position: fixed; inset: 0; background: rgb(0 0 0 / 0.45); z-index: 60; }
.confirm-sheet { position: fixed; z-index: 61; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgb(0 0 0 / 0.3); }
@media (min-width: 640px) { .confirm-sheet { bottom: auto; top: 50%; transform: translate(-50%, -50%); } }
.confirm-title { margin: 0; font-size: 18px; }
.confirm-help { margin: 0; }
.confirm-buttons { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
button.danger-solid { background: var(--warn); border-color: var(--warn); color: var(--surface); }
.shop li.done div.tick .box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }  /* a closed week: no checkbox, just the mark */
.list > li > form.inline { flex-shrink: 0; }  /* a row's own button (Restore) keeps its width; the text wraps instead */
.list > li > form.inline button { white-space: nowrap; }
.list > li > span.row { flex: 1; min-width: 0; }

/* Editing a week: each recipe row has its own small add form (plan_edit.html) */
.list > li.add-row { flex-wrap: wrap; row-gap: 8px; }
.add-row > .grow { flex: 1 1 200px; min-width: 0; }
.add-form { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; margin-left: auto; }
.add-form input[type=number] { width: 104px; }

/* A meal's cooked toggle: not yet cooked is a dashed, muted "Mark cooked" with an empty
   ring; cooked is a solid green "✓ Cooked" and the whole row is tinted. */
.cook-toggle { min-height: 40px; padding: 0 12px; border-radius: 99px; gap: 6px; white-space: nowrap; flex-shrink: 0;
  background: transparent; border: 1.5px dashed var(--dash); color: var(--muted); font-size: 13px; font-weight: 600; }
.cook-toggle:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.cook-toggle .ring { width: 16px; height: 16px; border-radius: 99px; border: 2px solid currentColor; flex-shrink: 0; }
.cook-toggle.is-cooked { background: var(--accent); border: 1.5px solid var(--accent); color: var(--on-accent); }
.cook-toggle.is-cooked:hover { background: var(--accent-hover); color: var(--on-accent); }
.list > li.meal.done { background: var(--ok-bg); }
.list > li.meal.done .row-sub { color: var(--ok); }
/* A cooked meal wherever a week's meals are listed (_cooked_tag.html): the toggle's cooked
   look, read-only; the row is tinted like .meal.done. */
.cooked-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: 99px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.cooked-mark { color: var(--ok); font-weight: 700; }
.row-sub .cooked-tag { min-height: 22px; padding: 0 8px; font-size: 12px; margin: 2px 6px 2px 0; vertical-align: middle; }
/* Home's "This week" card */
.home-meals { list-style: none; margin: 0; padding: 0; }
.home-meals > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.home-meals > li.done { background: var(--ok-bg); margin: 0 -16px; padding: 12px 16px; }
.home-meals > li.done .row-sub { color: var(--ok); }

/* Timeline (timeline.html) and the cook links on a week */
.timeline .tl-dot { width: 12px; height: 12px; border-radius: 99px; background: var(--accent); flex-shrink: 0; margin: 0 22px; }
.timeline .tl-week-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.timeline .tl-notes { font-style: italic; }
.stars { color: var(--lemon, #E8B800); font-size: 14px; letter-spacing: 1px; }
.list > li.meal { flex-wrap: wrap; row-gap: 0; }
.cook-notes-link { flex-basis: 100%; text-align: right; margin: -6px 0 2px; font-size: 13px; font-weight: 600; color: var(--ok); text-decoration: none; }
input[type=datetime-local], input[type=month] { font: inherit; min-height: 44px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--field); background: var(--surface); color: var(--ink); }
