/* =========================================================
   Kitchen and food screens (pantry, shopping, nutrition, recipes, diary, photos, cook, wheel, Tonight)
   ========================================================= */
/* Rewards */
#toasts {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
  pointer-events: none;
  width: calc(100% - 32px);
}
.toast {
  padding: var(--s3) var(--s4);
  border-radius: 99px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: var(--t-small);
  box-shadow: var(--shadow-2);
  animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  transition: opacity 0.4s, transform 0.4s;
  text-align: center;
}
.toast b { color: var(--job-warm); }
.toast.has-action { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s2) var(--s2) var(--s4); pointer-events: auto; }
/* Undo has to be easy to hit and easy to see: a real button, thumb-sized, and it stays a good while. */
.toast-undo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  border: none;
  border-radius: 99px;
  padding: 0 var(--s4);
  font-size: var(--t-small);
  font-weight: 800;
  background: color-mix(in srgb, var(--on-primary) 26%, transparent);
  color: var(--on-primary);
  cursor: pointer;
}
.toast-undo:active { transform: scale(0.95); }
/* A new version of the app is ready (core/update.js): a toast that stays until she chooses. */
.update-pill[hidden] { display: none; }
.update-pill .update-later { padding: 0 var(--s2); }
.toast.big { font-size: var(--t-body); padding: var(--s3) var(--s5); background: var(--job-warm); color: #2a1d00; }
.toast.big b { color: #2a1d00; }
.toast.error { background: var(--job-hot); color: #fff; }
.toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(0.9); } }

.burst {
  position: fixed;
  left: 50%;
  top: 55%;
  pointer-events: none;
  z-index: 99;
  animation: burst 1.1s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.burst.tone-warm { color: var(--job-warm); }
.burst.tone-sky { color: var(--job-sky); }
.burst.tone-calm { color: var(--job-calm); }
@keyframes burst {
  0% { transform: translate(-50%, 0) scale(0.3); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1.1) rotate(25deg); opacity: 0; }
}

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

/* Nutrition: balance check and household goals */
.food-summary { display: flex; flex-direction: column; gap: var(--s3); }
.food-rows { display: flex; flex-direction: column; gap: var(--s3); margin-top: 4px; }
.food-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; }
.food-row .bar { grid-column: 1 / -1; }
.food-label { font-weight: 700; font-size: 15px; }
.food-flag { font-size: var(--t-caption); font-weight: 800; padding: 1px 7px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.food-flag.is-low { background: color-mix(in srgb, var(--job-warm) 22%, var(--surface)); color: color-mix(in srgb, var(--job-warm) 60%, var(--text)); }
.food-flag.is-high { background: color-mix(in srgb, var(--job-hot) 18%, var(--surface)); color: var(--job-hot); }
.food-bar > span { background: var(--job-calm); }
.food-bar.is-low > span { background: var(--job-warm); }
.food-bar.is-high > span { background: var(--job-hot); }
.goal-chip { font: inherit; font-size: var(--t-small); font-weight: 700; padding: 9px var(--s3); border-radius: var(--r-sm); border: 2px solid transparent; background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform 0.12s; }
.goal-chip:active { transform: scale(0.96); }
.goal-chip.is-on { border-color: var(--job-new); background: color-mix(in srgb, var(--job-new) 14%, var(--surface)); }
.goal-lines { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s3); }
.tag-goal { background: color-mix(in srgb, var(--job-calm) 16%, var(--surface)); }
/* Nutrition: people, macros, nutrient bars, weekly trend */
.person-switch { margin: -2px 0 2px; }
.food-pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.food-bar.is-full > span { background: var(--job-calm); }
.macro { display: flex; flex-direction: column; gap: var(--s2); margin-top: 4px; }
.macro-p, .macro-dot.macro-p { background: var(--job-new); }
.macro-c, .macro-dot.macro-c { background: var(--job-warm); }
.macro-f, .macro-dot.macro-f { background: var(--job-sky); }
.macro-keys { display: flex; flex-direction: column; gap: var(--s2); font-size: var(--t-small); }
.macro-key { display: flex; align-items: flex-start; gap: var(--s2); }
.macro-key b { font-size: var(--t-body); font-variant-numeric: tabular-nums; }
.macro-key .grow { gap: 0; }

/* The plate: the day's energy as three things sharing one plate, seen from above */
.plate-row { display: flex; align-items: center; gap: var(--s4); }
.plate { width: 116px; height: 116px; flex: none; filter: drop-shadow(0 6px 14px rgba(34, 28, 41, 0.14)); }
.plate-rim { fill: var(--surface); }
.plate-face { fill: var(--surface-2); }
.plate-w.macro-p { fill: var(--job-new); }
.plate-w.macro-c { fill: var(--job-warm); }
.plate-w.macro-f { fill: var(--job-sky); }
.plate-w { stroke: var(--surface); stroke-width: 1.5; }
.plate-edge { fill: none; stroke: var(--surface); stroke-width: 3; opacity: 0.55; }
@media (max-width: 380px) { .plate { width: 96px; height: 96px; } }

/* Where a nutrient came from, opened with a tap */
details.food-row > summary { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 8px; align-items: baseline; cursor: pointer; list-style: none; }
details.food-row > summary::-webkit-details-marker { display: none; }
details.food-row > summary .bar { grid-column: 1 / -1; }
.food-caret { color: var(--muted); transition: transform 0.2s; line-height: 0; align-self: center; }
details.food-row[open] .food-caret { transform: rotate(90deg); }
.from-list { display: flex; flex-direction: column; gap: 5px; margin: var(--s2) 0 2px; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--surface-2); }
.from-row { display: grid; grid-template-columns: 1fr 70px auto; align-items: center; gap: var(--s2); font-size: var(--t-small); }
.from-row b { font-variant-numeric: tabular-nums; }
.from-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.from-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--job-new) 16%, transparent); overflow: hidden; }
.from-bar i { display: block; height: 100%; border-radius: 99px; background: var(--job-new); }
.from-rest { padding-left: 2px; }
.macro-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; display: inline-block; }
.custom-meal { display: flex; flex-direction: column; gap: var(--s2); }
.custom-meal[hidden] { display: none; }
.person-edit { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3); box-shadow: none; background: var(--surface-2); }
.note { margin: 2px 4px; }
.spark-rows { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.spark-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: var(--s2); }
.spark-label { font-size: var(--t-small); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.spark-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.spark-bar { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--job-calm); min-height: 0; }
.spark-bar.is-low { background: var(--job-warm); }
.spark-bar.is-empty { background: transparent; border-bottom: 2px solid var(--surface-2); }
.spark-row .food-pct { text-align: right; }
.pattern-line { display: flex; align-items: flex-start; gap: var(--s2); }
.pattern-line .i { flex: none; margin-top: 2px; color: color-mix(in srgb, var(--tone, var(--muted)) 80%, var(--text)); }
/* Home: glance tiles, use-soon strip, quick actions, compact places */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 12px 11px;
  border-radius: 18px;
  background: var(--soft);
  text-decoration: none;
  transition: transform 0.12s;
  min-width: 0;
}
.tile:active { transform: scale(0.97); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tile-icon { font-size: 18px; }
.tile-value { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tile-label { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.home-sec { display: flex; flex-direction: column; gap: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 4px 2px 0; }
.sec-head h3 { font-size: 16px; font-weight: 800; }
.sec-link { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.use-emoji { font-size: 22px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); flex: none; }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; }
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border: none;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s;
}
.quick-btn span { font-size: 22px; line-height: 1; }
.quick-btn:active { transform: scale(0.95); }

.places { gap: var(--s2); }
.place-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; row-gap: 2px; padding: var(--s3); border-radius: var(--r-md); align-items: center; }
.place-card .place-top { display: contents; }
.place-card .place-icon { grid-row: 1 / 3; grid-column: 1; font-size: 26px; }
.place-card .place-level { grid-row: 3; grid-column: 1 / -1; justify-self: start; font-size: var(--t-caption); padding: 2px 8px; display: none; }
.place-card .place-name { grid-row: 1; grid-column: 2; margin: 0; font-size: var(--t-small); line-height: 1.2; }
.place-card .place-meta { grid-row: 2; grid-column: 2; margin: 0; font-size: var(--t-caption); }
.place-card .bar { grid-row: 3; grid-column: 1 / -1; margin-top: 6px; height: 4px; }
.place-add { display: flex; flex-direction: row; gap: 6px; font-size: var(--t-small); min-height: 64px; color: var(--muted); }
/* Use soon: one button on Home, the list in a sheet */
.use-soon-btn { display: flex; align-items: center; gap: var(--s3); width: 100%; padding: var(--s3) var(--s4); border: none; text-align: left; cursor: pointer; font: inherit; color: var(--text); transition: transform 0.12s; }
.use-soon-btn:active { transform: scale(0.98); }
.use-soon-btn .hot { color: var(--job-hot); }
.use-soon-count { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 99px; background: var(--job-warm); color: #fff; font-weight: 800; }
.use-soon-btn.is-hot .use-soon-count { background: var(--job-hot); }
button.tile { border: none; text-align: left; font: inherit; cursor: pointer; }
.use-list { max-height: 60dvh; overflow-y: auto; }
.use-row { width: 100%; border: none; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; gap: 10px; }
.backup-nudge { display: flex; align-items: center; gap: 10px; padding: var(--s3) var(--s4); }

/* Rewards redesign: living kitchen, reading, energy tasks, smart tips */
.top-stats .pill { display: none; }
.hero-pair { display: grid; grid-template-columns: 1fr; gap: 10px; }
.kitchen-hero {
  display: flex; align-items: center; gap: 14px; width: 100%; border: none; text-align: left; cursor: pointer; font: inherit; color: inherit;
  padding: 14px 18px 14px 10px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--lime) 16%, var(--surface)), color-mix(in srgb, var(--teal) 10%, var(--surface)));
  transition: transform 0.12s;
}
.kitchen-hero:active { transform: scale(0.98); }
.kitchen-hero.is-sprouting { background: linear-gradient(135deg, color-mix(in srgb, var(--amber) 14%, var(--surface)), color-mix(in srgb, var(--lime) 8%, var(--surface))); }
.kitchen-hero.is-wilting { background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 14%, var(--surface)), color-mix(in srgb, var(--rose) 8%, var(--surface))); }
.hero-plant { width: 96px; height: 96px; flex: none; }
.plant { width: 100%; height: 100%; display: block; }
.plant.is-blooming { animation: sway 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes sway { 50% { transform: rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .plant.is-blooming { animation: none; } }
.hero-text { display: flex; flex-direction: column; gap: 1px; }
.hero-score { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.hero-score small { font-size: 18px; font-weight: 700; color: var(--muted); }
.hero-status { font-weight: 700; }
.sheet-plant { display: flex; align-items: center; gap: 12px; }
.sheet-plant .plant { width: 72px; height: 72px; }
.health-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; text-decoration: none; padding: 4px 0; }
.health-row .bar, .health-row > .small.muted { grid-column: 1 / -1; }

.reading-card { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s4); background: color-mix(in srgb, var(--job-sky) 8%, var(--surface)); }
.reading-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reading-balance { display: flex; flex-direction: column; }
.reading-balance b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.reading-book { display: flex; align-items: center; gap: var(--s3); text-decoration: none; }
.reading-book .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.book-spine { width: 10px; height: 44px; border-radius: 3px; background: var(--job-sky); flex: none; box-shadow: inset -2px 0 0 rgba(0,0,0,.15); }
.book-bar > span, .book-bar.bar-slim > span { background: var(--job-sky); }
.reading-add { align-self: flex-start; }
.book-now { display: flex; flex-direction: column; gap: var(--s2); }
.book-title { font-family: var(--font-book); font-size: 22px; line-height: 1.2; }
.shelf { display: flex; flex-direction: column; gap: var(--s2); }
.shelf-book { display: flex; align-items: center; gap: var(--s3); padding: 10px var(--s3); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.shelf-book > span:last-child { display: flex; flex-direction: column; }
.earned { color: color-mix(in srgb, var(--job-calm) 80%, var(--text)); font-weight: 700; }

.energy { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s4); }
.energy .sec-head { margin: 0; }
.energy .sec-head h3 { font-size: 15px; }
.energy-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.energy-btn { font: inherit; font-size: var(--t-small); font-weight: 700; padding: 10px 6px; border-radius: var(--r-sm); border: 2px solid transparent; background: var(--surface-2); color: var(--text); cursor: pointer; }
.energy-btn.is-on { border-color: var(--primary); background: var(--surface); }
.task-pick { display: flex; flex-direction: column; gap: 4px; padding: var(--s3) var(--s3); border-radius: var(--r-md); background: var(--surface-2); animation: view-in 0.3s ease-out; }
.task-title { font-weight: 800; font-size: var(--t-body); }
.task-meta { font-size: var(--t-small); font-weight: 700; color: color-mix(in srgb, var(--job-new) 80%, var(--text)); margin: 2px 0 6px; }

.smart-tip, .insight { display: flex; flex-direction: column; gap: 4px; padding: var(--s3) var(--s4); }
.smart-tip { background: color-mix(in srgb, var(--job-sky) 8%, var(--surface)); }
.tip-title { font-weight: 800; }
.smart-tip .button-row, .insight .button-row { margin-top: 6px; }
.empty-line { margin: 0 2px 6px; }
.reward small { font-weight: 600; opacity: 0.8; }

@media (min-width: 420px) { .hero-pair { grid-template-columns: 1.15fr 1fr; } .hero-pair .kitchen-hero { flex-direction: column; align-items: flex-start; padding: 14px 16px; } .hero-pair .hero-plant { width: 76px; height: 76px; } }
/* Receipts */
.receipt-cta { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); text-decoration: none; color: var(--text); }
/* Places on the shopping list (house C161): who is at a shop now, and "I'm at ..." */
.places-strip { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s4); }
.places-do { display: flex; gap: var(--s2); flex-wrap: wrap; }
.places-do .btn { display: inline-flex; align-items: center; gap: 6px; }
.places-said { display: flex; align-items: flex-start; gap: var(--s2); padding: var(--s2) var(--s3); border-radius: var(--r-md); background: color-mix(in srgb, var(--job-calm) 9%, var(--surface)); }
.places-said p { flex: 1; margin: 0; }
.places-list { flex: none; }   /* in a sheet the column would otherwise squeeze it to nothing */
.places-row { gap: var(--s2); }
.places-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: none; border: none; font: inherit; color: var(--text); padding: 0; cursor: pointer; }
.places-main strong { display: inline-flex; align-items: center; gap: 6px; }
.sheet-body .check-row { display: flex; align-items: center; gap: var(--s2); }
/* "Move things" (house C216): everything in a place, a tick each; the button waits for a place to be picked. */
.move-all { padding-bottom: var(--s2); border-bottom: 1px solid var(--line); cursor: pointer; }
.move-list { display: flex; flex-direction: column; flex: none; }   /* in a sheet the column would otherwise squeeze it */
.move-row { padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.move-row:last-child { border-bottom: none; }
.move-all input, .move-row input { flex: none; }
.sheet-body .btn[disabled] { opacity: 0.45; }
.receipt-step { display: flex; flex-direction: column; gap: var(--s3); }
.receipt-step textarea { width: 100%; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface-2); padding: var(--s3); font: 13px/1.4 ui-monospace, Consolas, monospace; resize: vertical; }
.receipt-list { padding: 4px var(--s3); }
.receipt-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt-row:last-child { border-bottom: none; }
.receipt-row.is-off .receipt-main { opacity: 0.5; }
.receipt-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary); }
.receipt-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.receipt-main select { margin-top: 4px; max-width: 100%; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.receipt-footer { display: flex; gap: var(--s2); align-items: center; }
.receipt-footer .btn-big { flex: 1; }
/* A row the kitchen does not recognise: first, unticked, and loud rather than faded - it is the one to look at. */
.receipt-row.is-odd.is-off .receipt-main { opacity: 1; }
.receipt-odd-title { color: color-mix(in srgb, var(--job-hot) 85%, var(--text)); }
.receipt-odd-hint { color: color-mix(in srgb, var(--job-hot) 80%, var(--text)); }
.receipt-name { margin-top: 2px; max-width: 100%; padding: 6px 8px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--job-hot) 45%, var(--line)); background: var(--surface-2); font: inherit; }
.receipt-done { padding: var(--s3) var(--s4); font-weight: 700; }
.flag.flag-odd { background: color-mix(in srgb, var(--job-hot) 16%, var(--surface)); color: color-mix(in srgb, var(--job-hot) 80%, var(--text)); }
.flag.flag-mine { background: var(--soft); color: var(--muted, var(--text)); }
.helper-ok { display: flex; align-items: center; gap: 5px; color: color-mix(in srgb, var(--job-calm) 80%, var(--text)); }
/* Daily kitchen round */
.round-cta { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); text-align: left; font: inherit; color: inherit; border: none; cursor: pointer; width: 100%; }
.round-cta .grow { display: flex; flex-direction: column; gap: 2px; }
.round-progress { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.round-progress .bar { --tone: var(--job-calm); }
.round-card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); touch-action: pan-y; user-select: none; transition: transform 0.15s ease-out; animation: view-in 0.3s ease-out; box-shadow: var(--shadow-2); }
.round-item { display: flex; align-items: center; gap: var(--s3); }
.round-item h2 { margin: 0; }
.round-emoji { font-size: 40px; line-height: 1; }
.round-card .level { max-width: none; }
.round-choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: 6px; }
.round-choices .btn-primary { grid-column: 1 / -1; }
.round-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s2); }
.round-note { text-align: center; margin-top: var(--s2); }
.round-done { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5) var(--s4); text-align: center; }
.round-streak { font-size: 15px; }
.round-streak b { font-size: 34px; color: color-mix(in srgb, var(--job-warm) 75%, var(--text)); display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* Recipe book */
.recipe-stars { font-weight: 800; color: var(--job-warm); white-space: nowrap; }
.recipe-stars .muted { color: color-mix(in srgb, var(--muted) 35%, transparent); }
.rate-nudge { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s3) var(--s4); }
.recipe-page { display: flex; flex-direction: column; gap: var(--s3); }
.row-photo { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); }
.row-photo.is-emoji { display: grid; place-items: center; font-size: 22px; }
.recipe-hero { position: relative; display: block; margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) 4px; height: 190px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--surface-2); }
.recipe-hero .recipe-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.recipe-hero .recipe-photo.is-emoji { display: grid; place-items: center; font-size: 56px; }
.recipe-source { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: rgba(20, 16, 26, 0.72); color: #fff; font-size: var(--t-caption); font-weight: 700; text-decoration: none; }
.recipe-facts { display: flex; flex-direction: column; gap: 2px; }
.recipe-avg { font-size: 22px; font-weight: 800; color: var(--job-warm); }
.tag-have { background: color-mix(in srgb, var(--job-calm) 16%, var(--surface)); }
.tag-have .i { color: color-mix(in srgb, var(--job-calm) 80%, var(--text)); }
.rating-row { align-items: flex-start; }
.rating-row .grow { display: flex; flex-direction: column; gap: 2px; }
.recipe-foot { margin-top: var(--s3); display: flex; flex-wrap: wrap; justify-content: center; }
.recipe-more { margin-top: var(--s3); }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 4px 0 6px; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick span { font-size: 40px; line-height: 1; color: color-mix(in srgb, var(--muted) 35%, transparent); cursor: pointer; transition: transform 0.1s; }
.star-pick label:has(input:checked) span, .star-pick label:has(input:checked) ~ label span, .star-pick label:hover span, .star-pick label:hover ~ label span { color: var(--job-warm); }

/* Food diary */
.diary { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3); }
.diary-head { display: flex; align-items: center; justify-content: space-between; }
.diary-head strong { font-size: var(--t-body); }
.diary-nav { display: grid; place-items: center; text-decoration: none; color: var(--text); width: 34px; height: 34px; }
.diary-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.diary-wd { text-align: center; font-size: var(--t-caption); font-weight: 700; color: var(--muted); padding-bottom: 2px; }
.diary-cell { font: inherit; color: var(--text); aspect-ratio: 1 / 1.1; min-width: 0; border: 2px solid transparent; border-radius: 10px; background: var(--surface-2); padding: 3px 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; cursor: pointer; overflow: hidden; }
.diary-cell.is-blank { background: transparent; cursor: default; }
.diary-cell.has-meals { background: color-mix(in srgb, var(--job-calm) 14%, var(--surface)); }
.diary-cell.is-today .diary-num { color: color-mix(in srgb, var(--job-new) 85%, var(--text)); font-weight: 800; }
.diary-cell.is-selected { border-color: var(--primary); }
.diary-cell.is-future { opacity: 0.4; cursor: default; }
.diary-num { font-size: var(--t-caption); font-weight: 600; font-variant-numeric: tabular-nums; }
.diary-food { font-size: 15px; line-height: 1; white-space: nowrap; }
.diary-food small { font-size: 9px; font-weight: 700; color: var(--muted); }
.diary-sum { text-align: center; }
.diary-meal .grow { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; font: inherit; font-size: var(--t-small); font-weight: 700; padding: 0; }
.recipe-links { margin-top: 2px; }
@media (max-width: 380px) { .diary-food { font-size: 12px; } }

/* Dish photos */
.photo-pick { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-top: 10px; padding: var(--s3); border: 2px dashed var(--line); border-radius: var(--r-sm); font-weight: 700; font-size: var(--t-small); color: var(--muted); cursor: pointer; }
.photo-pick.is-set { border-style: solid; border-color: var(--job-calm); color: var(--text); }
.diary-photo { flex: none; width: 52px; height: 52px; padding: 0; border: none; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); font-size: 22px; cursor: pointer; }
.diary-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diary-add-photo { position: relative; border: none; cursor: pointer; font-size: 22px; }
.diary-add-photo i { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; font-style: normal; color: var(--muted); background: var(--surface); border-radius: 99px; box-shadow: var(--shadow); }
.diary-cell { position: relative; }
.diary-cell-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diary-cell.has-photo .diary-num { position: relative; margin: 2px auto 0 3px; padding: 0 4px; border-radius: 6px; background: rgba(255, 255, 255, 0.85); color: #221c29; }
.photo-full img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--r-sm); display: block; }
.photo-strip { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.photo-tile { flex: none; width: 120px; padding: 0; border: none; background: var(--surface); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; font: inherit; font-size: 28px; scroll-snap-align: start; }
.photo-tile img { width: 120px; height: 120px; object-fit: cover; display: block; }
.photo-tile span { display: block; font-size: var(--t-caption); font-weight: 600; color: var(--muted); padding: 5px 6px; }
.receipt-photo-btn { text-align: center; cursor: pointer; }
.receipt-reading { align-items: center; text-align: center; padding: var(--s6) var(--s4); }
.receipt-reading .spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--job-new); animation: receipt-spin 0.9s linear infinite; }
@keyframes receipt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .receipt-reading .spin { animation: none; } }

/* Cook with me */
.cook-cta { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); width: 100%; border: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cook-cta .grow { display: flex; flex-direction: column; }
.cook-soon { padding: var(--s3) var(--s4); }
.cook-form { display: flex; flex-direction: column; gap: 6px; padding: var(--s4); }
.cook-choice span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.cook-choice small { font-size: var(--t-caption); font-weight: 600; color: var(--muted); }
.cook-choice input:checked + span small { color: inherit; opacity: 0.75; }
.cook-recipe { display: flex; flex-direction: column; gap: var(--s2); }
.cook-why { display: flex; align-items: flex-start; gap: 6px; font-weight: 700; }
.cook-why .i { flex: none; margin-top: 2px; color: color-mix(in srgb, var(--job-calm) 80%, var(--text)); }
.cook-tip { display: flex; align-items: flex-start; gap: 6px; }
.cook-tip .i { flex: none; margin-top: 1px; color: color-mix(in srgb, var(--job-sky) 80%, var(--text)); }
.cook-list, .cook-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.cook-steps li { padding-left: 2px; }
.cook-recipe .section-title { margin-top: 6px; }

/* Decisions wheel */
.wheel-list { display: flex; flex-direction: column; gap: var(--s2); margin-bottom: var(--s3); }
.wheel-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border: none; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.wheel-row .grow { display: flex; flex-direction: column; }
.wheel-emoji { font-size: 30px; }
.wheel-card { display: flex; flex-direction: column; align-items: center; gap: var(--s4); padding: var(--s5) var(--s4); }

.wheel-wrap { position: relative; width: min(340px, 86vw); aspect-ratio: 1; display: grid; place-items: center; }
.wheel-wrap > .wheel-frame, .wheel-wrap > .wheel-svg { grid-area: 1 / 1; width: 100%; }
.wheel-frame { position: absolute; inset: 0; }
.wheel-rim { fill: none; stroke: var(--surface-2); stroke-width: 13; }
.wheel-light { fill: color-mix(in srgb, var(--amber) 70%, var(--surface)); }
.wheel-svg { display: block; filter: drop-shadow(0 10px 22px rgba(34, 28, 41, 0.22)); transform-origin: 50% 50%; }
.slice { stroke: var(--surface); stroke-width: 1.4; }
.slice-label { fill: #2a1d33; font-weight: 800; text-anchor: end; dominant-baseline: middle; letter-spacing: 0.01em; paint-order: stroke; stroke: rgba(255, 255, 255, 0.72); stroke-width: 2.2; }
.wheel-edge { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; }
.wheel-hub-cap {
  grid-area: 1 / 1; position: relative; z-index: 3; width: 21%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); box-shadow: 0 4px 12px rgba(34, 28, 41, 0.25), inset 0 0 0 3px color-mix(in srgb, var(--job-new) 30%, var(--surface));
  display: grid; place-items: center; font-size: 22px;
}
.wheel-needle { position: absolute; z-index: 4; top: -6px; left: 50%; width: 30px; height: 30px; transform: translateX(-50%); filter: drop-shadow(0 3px 5px rgba(34, 28, 41, 0.35)); }
.wheel-needle path { fill: var(--rose); stroke: var(--surface); stroke-width: 2.5; stroke-linejoin: round; }
.is-spinning .wheel-needle { animation: needle-tick 0.12s linear infinite; transform-origin: 50% 20%; }
@keyframes needle-tick { 50% { transform: translateX(-50%) rotate(-7deg); } }

.wheel-result { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: pop-in 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
.wheel-result .eyebrow { letter-spacing: 0.18em; }
.wheel-result h2 { font-family: var(--book, inherit); font-size: clamp(26px, 8vw, 34px); line-height: 1.05; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.82) translateY(8px); } }
.wheel-card .button-row, .wheel-card .btn-big { width: 100%; }
.wheel-spin-btn { position: relative; overflow: hidden; }
.wheel-note { text-align: center; }
@media (prefers-reduced-motion: reduce) { .wheel-svg { transition: none !important; } .is-spinning .wheel-needle { animation: none; } }
.wheel-result .result-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pick, var(--job-new)); display: inline-block; vertical-align: -1px; margin-right: 6px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pick, var(--job-new)) 22%, transparent); }
.wheel-result h2 { color: var(--text); }

/* Tonight: the evening game (counter + three dish cards).
   One colour language: rose = today/rescue, amber = soon/levelling up to gold, teal = calm/regular,
   violet = new to discover, sky = tried. Ranks climb sky → teal → amber (Signature). */
.eve-counter, .eve-card, .eve-result, .eve-home { --hot: var(--rose); --warm: var(--amber); --calm: var(--teal); }
.is-rescue { --role: var(--rose); }
.is-level { --role: var(--amber); }
.is-new { --role: var(--violet); }
.is-treasure { --role: var(--teal); } /* something that has been waiting in a cupboard for months */
.is-pick { --role: var(--sky); }
.r-new { --rank: var(--muted); }
.r-tried { --rank: var(--sky); }
.r-regular { --rank: var(--teal); }
.r-signature { --rank: var(--amber); }

.eve-status { display: flex; align-items: center; gap: 14px; padding: 2px 4px; }
.eve-stat { display: flex; align-items: baseline; gap: 6px; }
.eve-stat.grow { flex-direction: column; align-items: stretch; gap: 5px; }
.eve-stat-num { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(160deg, var(--amber), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eve-week { display: flex; justify-content: space-between; gap: 8px; }
.eve-goal { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.eve-goal > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width 0.7s cubic-bezier(0.2, 1, 0.3, 1); }

.eve-counter {
  --hot: #ff7d95; --warm: #fcc24d; --calm: #3fd9c4;
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 100% 0%, #3a2c48 0%, #221b2b 55%, #1b1522 100%); color: #f5f1f8;
  box-shadow: 0 14px 30px rgba(34, 28, 41, 0.18);
}
@media (prefers-color-scheme: dark) { .eve-counter { background: radial-gradient(120% 90% at 100% 0%, #2c2138 0%, #120e17 70%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); } }
.eve-counter-head { display: flex; justify-content: space-between; align-items: baseline; }
.eve-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warm); }
.eve-label.is-soft { color: rgba(245, 241, 248, 0.62); }
.eve-lost { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--hot) 22%, transparent); color: var(--hot); font-size: 12px; font-weight: 700; text-decoration: none; }
.eve-calm { font-size: 14px; color: rgba(245, 241, 248, 0.75); }
.eve-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.eve-tile {
  --t: var(--calm);
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 8px 4px 7px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.06); color: inherit; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px transparent; transition: opacity 0.25s, box-shadow 0.25s, transform 0.25s;
  animation: eve-pop 0.4s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
}
.eve-tile.is-hot { --t: var(--hot); }
.eve-tile.is-warm { --t: var(--warm); }
.eve-tile.is-dim { opacity: 0.32; }
.eve-tile.is-used { box-shadow: inset 0 0 0 1.5px var(--t); background: color-mix(in srgb, var(--t) 16%, transparent); transform: translateY(-2px); }
.eve-tile-emoji { font-size: 22px; line-height: 1.1; }
.eve-tile-name { max-width: 100%; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eve-meter { width: 100%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.eve-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--t); }
.eve-tile-days { font-size: 10px; font-weight: 800; letter-spacing: 0.02em; color: var(--t); }

.eve-shuffle { border: none; background: none; cursor: pointer; padding: 6px 0; }
.eve-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 4px; }
.eve-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; padding: 0 0 11px;
  border: none; border-radius: 20px; overflow: hidden; text-align: left; cursor: pointer; color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--role) 13%, var(--surface)) 0, var(--surface) 62px);
  box-shadow: var(--shadow), inset 0 0 0 1px color-mix(in srgb, var(--role) 22%, transparent);
  transition: transform 0.22s cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 0.22s, opacity 0.22s;
  animation: eve-flip 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.05) backwards; animation-delay: calc(var(--i) * 130ms);
}
.eve-card > * { margin-inline: 10px; }
.eve-card:active { transform: scale(0.97); }
.eve-card.is-picked { transform: translateY(-6px); box-shadow: 0 16px 30px color-mix(in srgb, var(--role) 28%, transparent), inset 0 0 0 2px var(--role); }
.eve-card.is-other { opacity: 0.6; }
.eve-role { margin: 10px 10px 0; padding: 3px 8px; border-radius: 99px; background: var(--role); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.is-level .eve-role { color: #3a2400; }
.eve-card > .eve-photo { position: relative; display: block; width: 100%; height: 84px; margin: 0 0 4px; background: color-mix(in srgb, var(--role) 14%, var(--surface)); }
.eve-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eve-img.is-emoji { display: grid; place-items: center; font-size: 34px; }
.eve-photo .eve-role { position: absolute; left: 8px; top: 8px; margin: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.eve-name { font-size: 14.5px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; min-height: 2.4em; }
.eve-saves { font-size: 12px; color: var(--muted); }
.eve-saves b { color: color-mix(in srgb, var(--role) 75%, var(--text)); font-size: 14px; }
.eve-rank { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--rank) 78%, var(--text)); }
.eve-pips { display: flex; gap: 3px; width: calc(100% - 20px); }
.eve-pips i { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-2); }
.eve-pips i.on { background: var(--rank); }
.eve-hint { text-align: center; padding: 0 12px; }

.eve-detail { display: flex; flex-direction: column; gap: 8px; animation: view-in 0.3s ease-out; }
.eve-when { font-weight: 800; white-space: nowrap; }
.eve-when.is-hot { color: var(--rose); }
.eve-when.is-warm { color: color-mix(in srgb, var(--amber) 70%, var(--text)); }
.eve-when.is-calm { color: color-mix(in srgb, var(--teal) 75%, var(--text)); }
.eve-recipe-link { align-self: center; }
.eve-wheels { align-self: center; margin-top: 4px; }

.eve-result { position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--teal) 14%, var(--surface)), var(--surface) 70%); }
.eve-stamp { position: absolute; top: 18px; right: 16px; padding: 3px 10px; border: 2.5px solid var(--teal); border-radius: 9px; color: color-mix(in srgb, var(--teal) 80%, var(--text)); font-size: 15px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-8deg); animation: eve-stamp 0.45s 0.15s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
.eve-result-name { font-size: 26px; font-weight: 800; padding-right: 96px; }
.eve-result-saved { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.eve-big { font-size: 54px; font-weight: 800; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; animation: eve-pop 0.5s 0.25s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.eve-big.is-zero { color: var(--muted); }
.eve-result-rank { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: color-mix(in srgb, var(--rank) 12%, var(--surface)); }
.eve-result-rank .eve-pips { width: 100%; margin-top: 4px; }
.eve-result-rank .eve-pips i { height: 7px; }
.eve-result-rank .eve-pips i:not(.on) { background: var(--surface); }
.eve-emblem { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 4px var(--rank); font-size: 19px; font-weight: 800; }
.eve-result-rank.is-up .eve-emblem { animation: eve-pop 0.55s 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.eve-rewards { display: flex; flex-wrap: wrap; gap: 8px; }
.eve-reward { position: relative; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.eve-reward.is-reading { background: color-mix(in srgb, var(--sky) 14%, var(--surface)); color: color-mix(in srgb, var(--sky) 70%, var(--text)); }
.eve-reward.is-streak { background: color-mix(in srgb, var(--amber) 16%, var(--surface)); color: color-mix(in srgb, var(--amber) 62%, var(--text)); }
.eve-reward i { position: absolute; left: 12px; top: -4px; font-style: normal; font-weight: 800; color: var(--sky); pointer-events: none; animation: eve-float 1.6s 0.4s ease-out both; }

.eve-home { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; background: linear-gradient(120deg, color-mix(in srgb, var(--violet) 9%, var(--surface)), color-mix(in srgb, var(--amber) 9%, var(--surface))); }
.eve-home-fan { position: relative; width: 44px; height: 46px; flex: none; }
.eve-home-fan i { position: absolute; left: 12px; top: 4px; width: 22px; height: 32px; border-radius: 6px; box-shadow: 0 2px 6px rgba(34, 28, 41, 0.18); transform-origin: 50% 110%; }
.eve-home-fan i:nth-child(1) { background: var(--rose); transform: rotate(-18deg); }
.eve-home-fan i:nth-child(2) { background: var(--amber); }
.eve-home-fan i:nth-child(3) { background: var(--violet); transform: rotate(18deg); }

@keyframes eve-deal { from { opacity: 0; transform: translateY(28px) rotate(3deg); } }
@keyframes eve-pop { 0% { opacity: 0; transform: scale(0.5); } 70% { opacity: 1; transform: scale(1.08); } }
@keyframes eve-stamp { from { opacity: 0; transform: scale(2.2) rotate(-16deg); } }
@keyframes eve-float { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-44px); } }


/* Putting the whole shop away in one go (round 5a) */
.putaway-row { gap: var(--s2); }
.putaway-main {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
  padding: 0; border: none; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.putaway-main:active { opacity: 0.6; }

/* Things with no date: one tap each (features/pantry/screens/dates.js) */
.date-card { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s3) var(--s4); }
.date-head { display: flex; align-items: center; gap: var(--s2); }
.date-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.date-chips .chip.is-never { background: var(--surface-2); color: var(--muted); }
.date-chips .chip.is-date { display: inline-flex; align-items: center; gap: 5px; padding-right: var(--s2); }
.date-chips .chip.is-date input { border: none; background: none; font: inherit; font-size: var(--t-small); color: var(--text); width: 118px; padding: 0; }

/* Tonight v2: the cards turn over as they are dealt, and cook mode (round 5c) */
.eve-cards { perspective: 900px; }
.eve-card { transform-origin: 50% 100%; }
@keyframes eve-flip {
  0% { opacity: 0; transform: rotateY(-95deg) translateY(18px) scale(0.95); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
.eve-photo-flat { display: grid; place-items: center; width: 100%; height: 86px; margin: 0 !important; font-size: 34px; background: color-mix(in srgb, var(--role) 16%, var(--surface)); position: relative; }
.eve-card.is-leftover { --role: var(--job-warm); }

.cook-head { display: flex; flex-direction: column; gap: var(--s2); }
.cook-head h1 { margin-top: 4px; }
.cook-bar { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); }
.cook-timer { display: flex; align-items: center; gap: var(--s2); flex: 1; padding: 0; border: none; background: none; font: inherit; color: var(--text); cursor: pointer; }
.cook-timer b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cook-timer.is-on { color: color-mix(in srgb, var(--job-calm) 80%, var(--text)); }
.cook-item { padding: 10px var(--s4); border-bottom: 1px solid var(--line); }
.cook-item:last-of-type { border-bottom: none; }
.cook-missing { padding: var(--s3) var(--s4) 0; }
.cook-step { display: flex; flex-direction: column; gap: var(--s4); }
.cook-step-text { font-size: 19px; line-height: 1.45; text-wrap: pretty; }
.cook-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.cook-dots { display: flex; gap: 5px; }
.cook-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--surface-2); }
.cook-dots i.is-done { background: color-mix(in srgb, var(--job-calm) 55%, var(--surface)); }
.cook-dots i.is-on { background: var(--job-calm); transform: scale(1.35); }

/* ==========================================================================
   The kitchen as a place (features/pantry/scene.js): her real cupboards drawn,
   instead of a grid of tiles. Colours come from the place's own colour.
   ========================================================================== */
.kitchen-scene { display: flex; flex-direction: column; gap: var(--s2); }
.ks-row { display: flex; gap: var(--s2); overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.ks-row::-webkit-scrollbar { display: none; }
.ks-place {
  flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--s2) 6px var(--s3); border-radius: var(--r-md); background: var(--surface);
  box-shadow: var(--shadow-1); color: var(--text); text-decoration: none; text-align: center; transition: transform 0.12s;
}
.ks-place:active { transform: scale(0.96); }
.ks-art { position: relative; display: grid; place-items: center; width: 80px; height: 116px; }
.ks-art svg { width: 80px; height: 116px; overflow: visible; }
.ks-body { fill: var(--soft, var(--surface-2)); stroke: color-mix(in srgb, var(--c, var(--muted)) 55%, var(--text)); stroke-width: 1.6; }
.ks-line { stroke: color-mix(in srgb, var(--c, var(--muted)) 45%, var(--text)); stroke-width: 1.2; fill: none; }
.ks-handle { fill: color-mix(in srgb, var(--c, var(--muted)) 60%, var(--text)); }
.ks-handle-dot { fill: color-mix(in srgb, var(--c, var(--muted)) 60%, var(--text)); }
.ks-jar { fill: color-mix(in srgb, var(--c, var(--muted)) 32%, var(--surface)); stroke: color-mix(in srgb, var(--c, var(--muted)) 50%, var(--text)); stroke-width: 0.7; }
.ks-frost { stroke: color-mix(in srgb, var(--sky) 70%, var(--text)); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.ks-dot {
  position: absolute; top: 2px; right: 4px; min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center; border-radius: 99px; background: var(--job-hot); color: #fff;
  font-size: 12px; font-weight: 800; box-shadow: 0 2px 8px color-mix(in srgb, var(--job-hot) 40%, transparent);
}
.ks-place.is-going .ks-body { stroke: color-mix(in srgb, var(--job-hot) 55%, var(--text)); }
.ks-name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.ks-count { font-size: 11px; color: var(--muted); }
/* "Add a place": the last in the row, an outline where the next cupboard would stand (house C221). */
.ks-add { border: 1.5px dashed color-mix(in srgb, var(--muted) 50%, transparent); background: transparent; box-shadow: none; font: inherit; cursor: pointer; }
.ks-add .ks-body { fill: none; stroke: color-mix(in srgb, var(--muted) 60%, transparent); stroke-dasharray: 5 4; }
.ks-plus { fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; }
.ks-add .ks-name { color: color-mix(in srgb, var(--muted) 45%, var(--text)); }
.ks-hint { padding: 0 2px; }
.ks-todo .row { gap: var(--s3); }
.ks-now-row { gap: var(--s3); text-decoration: none; color: var(--text); }
.ks-now-row .chevron { color: var(--muted); }

@media (min-width: 720px) {
  .ks-row { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 6px; }
}

/* The week's shortlist and the cuisines she cooks (features/recipes/week.js) */
.shortlist-card { display: flex; flex-direction: column; gap: var(--s2); text-decoration: none; color: var(--text); }
.shortlist-row { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-chip { padding: 5px 10px; border-radius: 99px; background: var(--surface-2); font-size: var(--t-small); font-weight: 700; }
.sl-chip.is-done { background: color-mix(in srgb, var(--job-calm) 16%, var(--surface)); color: color-mix(in srgb, var(--job-calm) 75%, var(--text)); text-decoration: line-through; }
.sl-row { gap: var(--s3); }
.sl-row.is-done strong { color: var(--muted); }
.sl-photo { flex: none; width: 46px; height: 46px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.sl-img { width: 100%; height: 100%; object-fit: cover; }
.sl-emoji { font-size: 22px; }
.sl-cuisine { display: flex; flex-direction: column; gap: var(--s3); }
.sl-flag { font-size: 20px; }
.cuisine-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: var(--s2); margin-bottom: var(--s3); }
.cuisine-flag { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: var(--s2) 4px; border-radius: var(--r-sm); background: var(--surface-2); opacity: 0.45; filter: grayscale(1); }
.cuisine-flag.is-on { opacity: 1; filter: none; background: color-mix(in srgb, var(--job-warm) 12%, var(--surface)); }
.cf-flag { font-size: 22px; line-height: 1.1; }
.cf-name { font-size: 11px; font-weight: 700; text-align: center; }
.cf-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* "Add to which list?" (features/shopping/addtolist.js, house C200): about half the screen, the likeliest list first */
.atl { display: flex; flex-direction: column; gap: var(--s3); min-height: 46dvh; }
.atl h2 { margin: 0; }
.atl-lists { display: flex; flex-direction: column; gap: var(--s2); }
.atl-row { width: 100%; border: none; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.atl-row:last-child { border-bottom: none; }
.atl-row > .i { color: var(--muted); }
.atl-best { box-shadow: none; border: 2px solid color-mix(in srgb, var(--job-calm) 55%, var(--surface)); background: color-mix(in srgb, var(--job-calm) 8%, var(--surface)); }
.atl-pill { padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--job-calm) 20%, var(--surface)); color: color-mix(in srgb, var(--job-calm) 75%, var(--text)); font-size: var(--t-caption); font-weight: 800; white-space: nowrap; }
.atl-new { display: flex; gap: var(--s2); align-items: flex-end; }
.atl-new .btn { white-space: nowrap; }
