/* Layout: één smalle keukenkolom; bovenin de week + statusbalk, daaronder drie tabbladen (menu, boodschappen, recepten). */
:root {
  --bg: #F3F5EE; --surface: #FFFFFF; --sunk: #E9EDE3; --ink: #1B251F; --muted: #5A685F; --line: #D7DDD0;
  --accent: #2C7549; --accent-ink: #FFFFFF; --accent-soft: #DDEEDF; --saffron: #B87A12; --danger: #B23A26;
  --t-pasta: #E7D9A8; --t-rijst: #D6E6CF; --t-pizza: #F0CDBD; --t-gezond: #C9E5DC; --t-vlees: #E9C9C9; --t-vega: #D9D6EE; --t-gezellig: #F2D3E3;
  --shadow: rgba(27, 37, 31, 0.22);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111713; --surface: #19211C; --sunk: #141B16; --ink: #E7ECE5; --muted: #9AA79E; --line: #2A352E;
  --accent: #63C188; --accent-ink: #0C1A11; --accent-soft: #1F3527; --saffron: #E0AA45; --danger: #F07A63;
  --t-pasta: #4A4326; --t-rijst: #2C3F2A; --t-pizza: #4D3027; --t-gezond: #23413A; --t-vlees: #4A2D2D; --t-vega: #35324D; --t-gezellig: #4A2B3C; --shadow: rgba(0, 0, 0, 0.55);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #111713; --surface: #19211C; --sunk: #141B16; --ink: #E7ECE5; --muted: #9AA79E; --line: #2A352E;
  --accent: #63C188; --accent-ink: #0C1A11; --accent-soft: #1F3527; --saffron: #E0AA45; --danger: #F07A63;
  --t-pasta: #4A4326; --t-rijst: #2C3F2A; --t-pizza: #4D3027; --t-gezond: #23413A; --t-vlees: #4A2D2D; --t-vega: #35324D; --t-gezellig: #4A2B3C; --shadow: rgba(0, 0, 0, 0.55);
  color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
.wrap { max-width: 860px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 20px 64px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.55; cursor: default; }
.field { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; }
textarea.field { resize: vertical; min-height: 64px; }

header.top { display: grid; gap: 14px; }
.weekline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; padding: 0; margin: 0; }
.steps li { font-size: 0.8rem; font-weight: 700; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); }
/* elke stap een eigen kleur: menu kiezen (oranje), akkoord (blauw), in AH-mandje (paars), besteld (groen) */
:root { --s1: #C8780E; --s2: #2F6FB3; --s3: #7B4FB0; --s4: #2C7549; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s1: #E9A548; --s2: #6FA6E6; --s3: #B08CE3; --s4: #63C188; } }
:root[data-theme="dark"] { --s1: #E9A548; --s2: #6FA6E6; --s3: #B08CE3; --s4: #63C188; }
.steps li { border-top-color: color-mix(in srgb, var(--sc, var(--line)) 30%, var(--line)); }
.steps li.done { color: var(--ink); border-color: var(--sc); }
.weekline { flex-wrap: nowrap; align-items: flex-start; }
#subline { margin-top: 4px; }
.logo { flex: none; width: 56px; height: 56px; border: 0; background: transparent; padding: 0; border-radius: 16px; transition: transform 160ms ease; }
.logo svg { width: 100%; height: 100%; display: block; }
.logo:hover { transform: rotate(-6deg) scale(1.05); }
.logo:active { transform: scale(0.94); }
@media (prefers-reduced-motion: reduce) { .logo, .logo:hover, .logo:active { transition: none; transform: none; } }
.steps li.now { color: var(--sc); border-color: var(--sc); }
.steps li.now span, .steps li.done span { color: var(--sc); }
.steps li span { font-variant-numeric: tabular-nums; margin-right: 4px; }

nav.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); display: flex; gap: 4px; margin: 18px 0 18px; padding-block: 8px; border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
nav.tabs { overflow-x: auto; scrollbar-width: none; }
nav.tabs button { flex: none; white-space: nowrap; }
nav.tabs button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--muted); }
nav.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
nav.tabs .count { font-variant-numeric: tabular-nums; opacity: 0.7; margin-left: 4px; font-weight: 400; }

.notice { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.notice.go { border-color: var(--accent); background: var(--accent-soft); }
.notice.alert { border: 2px solid var(--danger); margin-top: 18px; }
.notice.alert strong { color: var(--danger); }
.notice .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.say { font-family: var(--display); font-weight: 700; background: var(--surface); border: 1px dashed var(--accent); border-radius: 8px; padding: 4px 10px; user-select: all; }

.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
/* niets mag breder worden dan het scherm, anders schuift de tabbalk mee */
html, body { overflow-x: clip; }
.wrap, #view, .recipe-grid > *, .panel, .panel > *, .notice, .today > * { min-width: 0; }
#view { overflow-wrap: break-word; }
.recipe-grid section > div:first-child { flex-wrap: wrap; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 12px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.day .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dayname { font-family: var(--display); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; }
.chip { font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--sunk); white-space: nowrap; }
.chip.pasta { background: var(--t-pasta); } .chip.rijst { background: var(--t-rijst); } .chip.pizza { background: var(--t-pizza); }
.chip.gezond { background: var(--t-gezond); } .chip.vlees { background: var(--t-vlees); } .chip.vega { background: var(--t-vega); }
.chip.gezellig { background: var(--t-gezellig); }
.chip.bakken { background: var(--t-pasta); }
.extra.bake { border-color: var(--t-pasta); }
.bakelist { display: grid; gap: 8px; }
.bakerow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bakerow.on { border-color: var(--accent); background: var(--accent-soft); }
.bakerow .t { flex: 1 1 200px; min-width: 0; }
.bakerow .t strong { display: block; }
.cost { font-variant-numeric: tabular-nums; }
.cost.over { color: var(--danger); font-weight: 700; }
.budget { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 12px; font-size: 0.9rem; }
.pill { font-weight: 700; font-size: 0.82rem; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; font-variant-numeric: tabular-nums; }
.pill.ok { color: var(--accent); } .pill.bad { color: var(--danger); }
.own { font-size: 0.75rem; font-weight: 700; color: var(--saffron); margin-left: 6px; white-space: nowrap; }
.day.guest { border-color: var(--t-gezellig); border-width: 2px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.grid2 label { display: grid; gap: 4px; }
.grid2 select.field { width: 100%; }
.stock { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-variant-numeric: tabular-nums; }
.stock input { width: 6.5em; }
.day h3 { font-size: 1.12rem; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.day .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.freezer { color: var(--accent); font-weight: 700; }
.slot { display: flex; flex-direction: column; gap: 6px; min-width: 0; border-radius: var(--r); transition: outline-color 150ms; outline: 2px dashed transparent; outline-offset: 4px; }
.slot.over { outline-color: var(--accent); }
/* standaard vullen de vakken in een rij elkaar aan (gelijke hoogte, ook met een baksel eronder);
   staat er een kaart open, dan groeit alleen die kaart en houden de andere hun vaste maat */
.slot > .day { flex: 1; }
.days:has(.day.open) { align-items: start; }
.days:has(.day.open) .slot > .day:not(.open) { flex: none; }
.extra { flex-wrap: wrap; row-gap: 4px; }
.extra .t { flex: 1 1 140px; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.extra .t .sub { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.extra .acts { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.fzstep { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.fzstep span { padding: 6px 10px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.fzstep button { border: 0; background: transparent; width: 36px; height: 36px; font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.fzstep button:hover:not(:disabled) { background: var(--accent-soft); }
.fzstep button:disabled { opacity: 0.35; cursor: default; }
.fzstep output { min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
/* alle dagvakken even groot; alleen een uitgeklapte kaart wordt hoger (de buren blijven gelijk) */
.day { position: relative; cursor: pointer; min-height: 216px; }
.day:not(.open) h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.day.open { cursor: default; }
.day .more { margin-top: auto; }
.day .more { font-size: 0.8rem; color: var(--muted); }
.day .actions[hidden] { display: none; }
.today { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.today h2 { font-size: 1.25rem; }
.today .meta { margin-top: 2px; }
.today .warn { grid-column: 1 / -1; font-size: 0.9rem; color: var(--saffron); font-weight: 700; }
.day .head[data-drag] { cursor: grab; touch-action: none; user-select: none; }
.grip { color: var(--muted); margin-right: 6px; font-size: 0.9em; }
.pstep { display: inline-flex; align-items: center; gap: 6px; }
.pstep button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; line-height: 1; padding: 0; }
.pstep button:hover:not(:disabled) { border-color: var(--accent); }
.pstep button:disabled, .servings button:disabled { opacity: 0.4; cursor: default; }
.next { font-family: var(--body); font-weight: 400; font-size: 0.72rem; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.day.dragging { z-index: 30; cursor: grabbing; box-shadow: 0 14px 34px var(--shadow); }
.day.dragging .head { cursor: grabbing; }
.draghint { font-size: 0.85rem; margin-top: 14px; }
.swap { position: absolute; inset: 0; z-index: 2; background: var(--surface); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; align-content: start; overflow-y: auto; }
.swaphead { display: flex; justify-content: space-between; align-items: center; }
.extra { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--t-gezellig); border-radius: 12px; padding: 6px 8px 6px 10px; min-width: 0; }
.extra .t { flex: 1; min-width: 0; font-weight: 700; font-size: 0.9rem; }
.extra .btn { padding: 4px 10px; font-size: 0.82rem; }
.ingr li.check { cursor: pointer; align-items: center; }
.compared { margin-top: 12px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; display: grid; gap: 6px; }
.compared p { color: var(--muted); }
.compared ul { margin: 0; padding-left: 1.2em; display: grid; gap: 2px; }
.compared a { color: var(--accent); }
.tools { margin-top: 14px; }
.tools ul { margin: 4px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.titlerow { display: flex; align-items: flex-start; gap: 10px; }
.titlerow h1 { flex: 1; min-width: 0; }
.star { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 1.5rem; line-height: 1; transition: transform 160ms ease, color 160ms ease; }
.star:hover { border-color: var(--saffron); color: var(--saffron); }
.star.on { color: var(--saffron); border-color: var(--saffron); }
.star:active { transform: scale(0.9); }
.starmark { color: var(--saffron); }
.tomenu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--sunk); border-radius: 12px; padding: 10px 12px; }
.tomenu select.field { width: auto; padding: 6px 10px; }
.ingr-head { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 14px 0 2px; }
.ingr-head:first-child { margin-top: 4px; }
.ingr li.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.ingr li.done .q, .ingr li.done span:last-child { text-decoration: line-through; color: var(--muted); }
.proposal { background: var(--sunk); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.restday { border-style: dashed; background: transparent; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; margin-top: 16px; }

.shop-group { margin-top: 18px; }
.shop-group h3 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.item .name { font-weight: 700; }
.item .used { font-size: 0.8rem; color: var(--muted); }
.item .qty { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.item.have .name, .item.have .qty { text-decoration: line-through; color: var(--muted); }
.addrow { display: flex; gap: 8px; }
.addrow .field { flex: 1; min-width: 0; }
.x { border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; padding: 0 4px; }

.tablewrap { overflow-x: auto; }
.carthead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.cartbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.9rem; }
.cartbtns .btn { padding: 5px 12px; font-size: 0.85rem; }
.pick { font-size: 0.8rem; color: var(--accent); }
.prodlist { display: grid; }
.prow { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pmain { display: grid; gap: 4px; flex: 1 1 260px; min-width: 0; }
.pmain .name { font-weight: 700; }
.pmain .used { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pinput { padding: 6px 10px; font-size: 0.92rem; }
.pctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.pchk { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; }
.pchk input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.psel { width: auto; padding: 4px 8px; font-size: 0.85rem; }
.kipline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.kipline input { width: 4.2em; padding: 2px 6px; border-radius: 6px; font-size: 0.85rem; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; font-size: inherit; }
.slim { font-size: 0.8rem; color: var(--accent); font-weight: 700; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bonus { font-size: 0.72rem; font-weight: 700; color: var(--saffron); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; margin-left: 4px; }

.reclist { display: grid; gap: 8px; }
.recrow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-align: left; width: 100%; }
.recrow:hover { border-color: var(--accent); }
.recrow .dayname { width: 2.4em; flex: none; }
.recrow .t { flex: 1; min-width: 0; font-weight: 700; }

.recipe { display: grid; gap: 18px; }
.recipe .intro { display: grid; gap: 8px; }
.recipe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
@media (max-width: 680px) { .recipe-grid { grid-template-columns: 1fr; } }
.ingr { list-style: none; padding: 0; margin: 0; }
.ingr li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ingr .q { min-width: 5.2em; font-variant-numeric: tabular-nums; font-weight: 700; }
.servings { display: flex; align-items: center; gap: 8px; }
.servings button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.servings output { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 4.5em; text-align: center; }
.method { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.method li { counter-increment: s; display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.method li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--accent); }
.method li.done { opacity: 0.5; }
.method li.done p { text-decoration: line-through; }
.method .min { font-size: 0.8rem; color: var(--muted); }
.tip { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }

.empty { text-align: center; padding: 48px 16px; display: grid; gap: 10px; justify-items: center; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 20; max-width: calc(100% - 32px); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
/* mandje wordt gevuld */
.fill { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
@media (max-width: 460px) { .fill { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; } }
.fill-art { position: relative; width: 100%; aspect-ratio: 1 / 0.9; max-width: 100%; }
.fill-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fill-art .basket { transform-origin: 50% 90%; }
.fill-art.bump .basket { animation: bump 420ms ease-out; }
.goods { position: absolute; left: 14%; right: 14%; bottom: 20%; height: 42%; }
.good { position: absolute; width: 20%; aspect-ratio: 1; border-radius: 40%; border: 1.5px solid var(--ink); }
.good.round { border-radius: 50%; }
.good.box { border-radius: 4px; aspect-ratio: 0.8; }
.good.g0 { background: var(--t-pizza); } .good.g1 { background: var(--t-rijst); } .good.g2 { background: var(--t-pasta); }
.good.g3 { background: var(--t-gezond); } .good.g4 { background: var(--t-vlees); } .good.g5 { background: var(--t-vega); }
.good.new { animation: drop 620ms cubic-bezier(.3,1.4,.5,1) both; }
@keyframes drop { 0% { transform: translateY(-260%) rotate(-25deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(0) rotate(var(--r, 0deg)); opacity: 1; } }
@keyframes bump { 0%, 100% { transform: scale(1, 1); } 35% { transform: scale(1.05, 0.93); } 65% { transform: scale(0.98, 1.03); } }
.fill-info { display: grid; gap: 6px; min-width: 0; }
.fill-info strong { font-family: var(--display); font-size: 1.15rem; }
.fill-bar { height: 10px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.fill-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 600ms ease; }
.fill-last { font-size: 0.88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fill-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.fill.done { border-color: var(--line); }
.dots::after { content: "…"; animation: dots 1.4s steps(4) infinite; display: inline-block; width: 1em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { 0% { width: 0; } 100% { width: 1em; } }
@media (prefers-reduced-motion: reduce) { .spin, .good.new, .fill-art.bump .basket, .dots::after { animation: none; } }
select.field { width: auto; }
/* voorraadcheck, elders, vriezer, beoordelen, timers */
.likely { font-size: 0.75rem; font-weight: 700; color: var(--accent); margin-left: 6px; white-space: nowrap; }
.checklist { display: grid; gap: 0; }
.checklist .item { grid-template-columns: auto 1fr auto; }
.item.skip .name { text-decoration: line-through; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 6px; }
.fz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fz .t { flex: 1 1 180px; min-width: 0; font-weight: 700; }
.fz .age { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fz .age.old { color: var(--danger); font-weight: 700; }
.rate { display: grid; gap: 8px; margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.rate .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.thumb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.25rem; line-height: 1; }
.thumb.on.up { border-color: var(--accent); background: var(--accent-soft); }
.thumb.on.down { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }
.ratemark { font-size: 0.85rem; margin-left: 4px; }
.tbtn { margin-top: 6px; border: 1px solid var(--line); background: var(--sunk); border-radius: 999px; padding: 3px 10px; font-size: 0.8rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.tbtn:hover { border-color: var(--accent); }
#timers { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 19; display: grid; gap: 6px; justify-items: end; }
.timer { display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 8px 8px 8px 14px; font-weight: 700; box-shadow: 0 6px 18px var(--shadow); max-width: calc(100vw - 32px); }
.timer .left { font-family: var(--display); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.timer .lbl { font-size: 0.82rem; opacity: 0.8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.timer.ring { background: var(--accent); color: var(--accent-ink); animation: ring 0.9s ease-in-out infinite; }
.timer button { border: 0; background: transparent; color: inherit; font-size: 1.1rem; width: 28px; height: 28px; border-radius: 50%; }
@keyframes ring { 50% { transform: scale(1.05); } }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--saffron); }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .ref { stroke: var(--ink); stroke-opacity: 0.5; stroke-dasharray: 4 4; }
.months { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.coco { display: grid; gap: 6px; }
.foldhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; width: 100%; border: 0; background: none; padding: 0; text-align: left; color: inherit; }
.foldhead h2 { flex: 1 1 auto; }
.chev { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.extra.dragging { position: relative; z-index: 30; cursor: grabbing; box-shadow: 0 10px 26px var(--shadow); }
.extra select.field { width: auto; padding: 2px 6px; font-size: 0.82rem; }
@media (prefers-reduced-motion: reduce) { .timer.ring { animation: none; } }
/* soort gerecht: smal gekleurd randje links, de vakken blijven even groot */
.day.t-pasta { border-left: 5px solid var(--t-pasta); } .day.t-rijst { border-left: 5px solid var(--t-rijst); } .day.t-pizza { border-left: 5px solid var(--t-pizza); }
.day.t-gezond { border-left: 5px solid var(--t-gezond); } .day.t-vlees { border-left: 5px solid var(--t-vlees); } .day.t-vega { border-left: 5px solid var(--t-vega); }
.day.t-gezellig { border-left: 5px solid var(--t-gezellig); }
/* boodschappen: afdelingsnaam blijft staan tijdens scrollen */
.shop-group h3 { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 60px); z-index: 2; background: var(--bg); padding: 6px 0; margin-bottom: 0; }
.togo { font-family: var(--body); font-size: 0.9rem; font-weight: 400; color: var(--muted); margin-left: 8px; }
/* kookmodus: één stap tegelijk, groot */
#cook { position: fixed; inset: 0; z-index: 15; background: var(--bg); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
#cook .cookhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#cook .cookhead strong { font-family: var(--display); font-size: 1.05rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cook .cookbar { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
#cook .cookbar i { display: block; height: 100%; background: var(--accent); transition: width 300ms ease; }
/* lange stap op de telefoon: gecentreerd zolang het past, anders bovenaan beginnen en scrollen (auto-marges vallen dan weg) */
#cook .cookstep { overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 760px; width: 100%; margin: 0 auto; }
#cook .cookstep > :first-child { margin-top: auto; }
#cook .cookstep > :last-child { margin-bottom: auto; }
#cook .cooknum { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--accent); line-height: 1; }
#cook .cooktext { font-size: clamp(1.25rem, 3.6vw + 0.5rem, 2rem); line-height: 1.5; overflow-wrap: break-word; max-width: 34em; }
@media (max-width: 520px) { #cook { gap: 10px; } #cook .cooknum { font-size: 2.2rem; } }
/* lopende wekker zweeft boven de knoppen: laat de tekst eronder doorschuiven */
body:has(#timers:not(:empty)) #cook .cookstep { padding-bottom: 64px; }
#cook .cooknav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
#cook .cooknav .btn { justify-content: center; padding: 14px; font-size: 1.05rem; }
#cook .tbtn { font-size: 1rem; padding: 8px 14px; }
