:root {
  /* Huisstijl Ricetta: trattoria met invloeden uit een Napolitaans pizzaboek */
  --bg: #f7f2e8;          /* papier */
  --surface: #fffdf8;
  --text: #2b1d14;        /* espresso */
  --muted: #8a7666;
  --line: #e4d9c6;
  --accent: #c62d1f;      /* pomodoro */
  --accent-dark: #8e1a12;
  --accent-soft: #f2ddd6;
  --teal: #5fa3a0;        /* kaderlijn */
  --mustard: #a8821f;     /* gespatieerde hoofdletters */
  --done: #b0a291;
  --radius: 4px;
  --font-title: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-label: 'Oswald', 'Arial Narrow', sans-serif;
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1611;
    --surface: #2a211b;
    --text: #f4ecdd;
    --muted: #b3a493;
    --line: #42352b;
    --accent: #e04a38;
    --accent-dark: #a8261a;
    --accent-soft: #4a2620;
    --teal: #6fb7b3;
    --mustard: #d6b25a;
    --done: #76695c;
  }
}

@font-face { font-family: 'Bebas Neue'; font-weight: 400; font-display: swap; src: url(fonts/bebas-neue-400.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url(fonts/oswald-500.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url(fonts/oswald-600.woff2) format('woff2'); }

[hidden] { display: none !important; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; }

body {
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(96px + var(--safe-bottom));
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

/* Kopbalk */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 4px;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  flex-wrap: wrap;
}
.topbar h1 {
  flex: 1; margin: 0 4px; font-size: 20px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-actions { display: flex; gap: 2px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
}
.icon-btn:active { background: var(--accent-soft); }
.icon-btn.active svg { fill: var(--accent); }
.text-btn { color: var(--accent); font-weight: 600; padding: 8px 10px; }

main { max-width: 720px; margin: 0 auto; padding: 12px 16px; }

/* Zoeken + filters */
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 12px; color: var(--muted);
}
.search input {
  flex: 1; border: 0; background: none; color: var(--text);
  font: inherit; padding: 11px 0; outline: none; min-width: 0;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 4px; padding: 0 16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 6px 14px; border-radius: 999px; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Receptenlijst: foto links, gegevens rechts, geen kaartjes */
.cards {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px;
}
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards > li { min-width: 0; border-bottom: 1px solid var(--line); }
.card {
  display: flex; gap: 14px; align-items: center; padding: 12px 0; min-width: 0;
}
.card:active { opacity: .6; }
.thumb {
  width: 88px; height: 88px; border-radius: 14px; overflow: hidden; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 34px; font-weight: 700;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { flex: 1; min-width: 0; }
.card-title {
  font-size: 17px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
}
.card-meta { color: var(--muted); font-size: 14px; margin-top: 3px; }
.card-chevron { flex: none; color: var(--line); display: grid; }
.card-chevron svg { width: 18px; height: 18px; transform: rotate(-90deg); stroke-width: 2.4; }
.fav { color: var(--accent); }
.none { color: var(--muted); text-align: center; padding: 32px 0; }

.empty { text-align: center; padding: 56px 16px; }
.empty-emoji { font-size: 56px; }
.empty h2 { margin: 8px 0 4px; }
.empty p { color: var(--muted); margin: 0 0 20px; }

/* Zwevende knop */
.fab {
  position: fixed; right: 20px; bottom: calc(20px + var(--safe-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgb(0 0 0 / .22);
}
.fab svg { width: 28px; height: 28px; stroke-width: 2.4; }
.fab:active { transform: scale(.94); }

/* Knoppen */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 16px; border-radius: 12px; font-weight: 600;
  background: var(--accent); color: #fff;
}
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: none; color: #d23b3b; border: 1px solid currentColor; margin-top: 12px; }
.empty .btn { width: auto; display: inline-flex; }
.link { color: var(--accent); padding: 4px 0; font-size: 15px; }
.link.danger { color: #d23b3b; }

/* Detail */
.hero {
  display: block; width: calc(100% + 32px); margin: -12px -16px 0;
  aspect-ratio: 4 / 3; object-fit: cover; max-height: 420px;
}
@media (min-width: 752px) { .hero { width: 100%; margin: 0; border-radius: var(--radius); } }
.detail-title { font-size: 28px; line-height: 1.15; margin: 16px 0 6px; }
.lead { color: var(--muted); margin: 0 0 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 16px; height: 16px; }
.pill { background: var(--accent-soft); color: var(--accent); padding: 2px 10px; border-radius: 999px; font-weight: 600; }


h3 { font-size: 20px; margin: 26px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.section-head h3 { margin-bottom: 10px; }
.copy-btn { margin: 16px auto 0 -4px; width: 34px; height: 34px; }
.copy-btn svg { width: 23px; height: 23px; transition: transform .15s; }
.copy-btn.copied svg { transform: scale(1.15); stroke-width: 2.6; }
.stepper {
  display: flex; align-items: center; gap: 4px; margin-top: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.stepper button { width: 30px; height: 34px; font-size: 22px; color: var(--accent); }
.stepper span { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; min-width: 40px; justify-content: center; }
.stepper svg { width: 18px; height: 18px; }
.cook-btn { margin: 16px 0 0; width: 36px; height: 36px; transition: background .15s, color .15s; }
.cook-btn svg { width: 23px; height: 23px; }
.cook-btn.on { background: var(--accent-soft); color: var(--accent); }
.cook-btn.on:active { background: var(--accent-soft); }

.ingredients, .steps { list-style: none; margin: 0; padding: 0; }
.ingredients li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.ingredients li.sub, .steps li.sub {
  border: 0; padding: 14px 0 2px; font-weight: 700; color: var(--muted);
  font-size: 13px; text-transform: uppercase; letter-spacing: .05em; cursor: default;
}
.check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  flex: none; margin-top: 1px; display: grid; place-items: center;
}
.done .check { background: var(--accent); border-color: var(--accent); }
.done .check::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.ingredients li.done > span:last-child, .steps li.done p { color: var(--done); text-decoration: line-through; }

.steps li { display: flex; gap: 14px; padding: 10px 0; cursor: pointer; }
.steps li.sub { display: block; padding-top: 18px; }
.steps p { margin: 0; }
.num {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px;
  display: grid; place-items: center;
}
.steps li.done .num { background: var(--line); color: var(--done); }

.notes { background: var(--surface); border-radius: 12px; padding: 12px 14px; margin: 0; border: 1px solid var(--line); }
.detail-actions { margin-top: 28px; }

/* Kookmodus: grotere tekst */
body.cook .ingredients li:not(.sub), body.cook .steps li:not(.sub) { font-size: 21px; }
body.cook .steps li { padding: 14px 0; }

/* Kookmodus: alleen naam, ingrediënten en bereiding (plus de kookmodusknop) */
body.cook .hero, body.cook .lead, body.cook .meta,
body.cook #copyBtn, body.cook .stepper,
body.cook .notes-head, body.cook .notes, body.cook .detail-actions, body.cook .source,
body.cook #topActions { display: none; }

/* Kookstand: twee schermen, te kiezen met de vaste balk bovenin */
.cook-tabs { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.segmented {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: var(--line); border-radius: 12px;
}
.segmented button { padding: 9px 0; border-radius: 9px; font-weight: 600; color: var(--muted); }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.cook-tabs .cook-btn { margin: 0; flex: none; }
body.cook .part-ingr .section-head, body.cook .part-steps > h3 { display: none; }
body.cook .ingredients, body.cook .steps { margin-top: 8px; }
body.cook.cook-tab-steps .part-ingr, body.cook:not(.cook-tab-steps) .part-steps { display: none; }
body.cook .detail-title { margin-top: 8px; }

/* Formulier */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form label small { font-weight: 400; color: var(--muted); }
.form input:not([type=file]), .form textarea {
  font: inherit; font-size: 17px; font-weight: 400; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; width: 100%; outline: none; -webkit-appearance: none; appearance: none;
}
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { resize: vertical; line-height: 1.5; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-pick { cursor: pointer; }
.photo-preview {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1.5px dashed var(--line);
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-empty { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.photo-empty svg { width: 32px; height: 32px; }

/* Instellingen */
.settings { display: grid; gap: 14px; }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card-box h3 { margin: 0 0 8px; }
.card-box p { margin: 0 0 14px; color: var(--muted); }
.card-box .btn + .btn { margin-top: 10px; }
.file-btn { cursor: pointer; }
.howto { margin: 0; padding-left: 20px; }
.howto li { margin: 4px 0; }
.howto svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--accent); }

/* Melding */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 999px; font-size: 15px;
  transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.file-btn.busy { opacity: .5; pointer-events: none; }

.version { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* iPhone zoomt in op velden met tekst kleiner dan 16px */
input, textarea, select { font-size: max(16px, 1em); }

/* Heel smalle schermen: ingrediëntenkop compacter */
@media (max-width: 359px) {
  .section-head h3 { font-size: 18px; }
  .stepper svg { display: none; }
}

/* Kookwekker */
.time-chip {
  display: inline; padding: 1px 8px; margin: 0 1px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; white-space: nowrap;
}
.time-chip:active { filter: brightness(.95); }
.steps li.done .time-chip { background: none; color: inherit; }

.timer-tray {
  position: fixed; z-index: 20; left: 16px; right: 92px;
  bottom: calc(18px + var(--safe-bottom));
  display: grid; gap: 8px; pointer-events: none;
}
body.no-fab .timer-tray { right: 16px; }
@media (min-width: 752px) { .timer-tray { left: calc(50% - 344px); right: auto; width: 420px; } }
body.has-timers { padding-bottom: calc(110px + var(--tray-h, 0px) + var(--safe-bottom)); }

.timer {
  pointer-events: auto; position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 0;
  background: var(--text); color: var(--bg); border-radius: 16px;
  box-shadow: 0 6px 20px rgb(0 0 0 / .2);
}
.timer::before {
  content: ''; position: absolute; inset: auto 0 0 0; height: 3px;
  width: var(--pct, 0%); background: var(--accent); transition: width .25s linear;
}
.timer-main { flex: 1; min-width: 0; text-align: left; padding: 6px 4px 6px 14px; color: inherit; }
.timer-label { display: block; font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer-time { display: block; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.timer.paused .timer-time { opacity: .6; }
.timer-btn {
  flex: none; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 12px;
  background: rgb(255 255 255 / .12); color: inherit; font-weight: 700; font-size: 17px;
}
.timer.done { background: var(--accent); color: #fff; animation: timer-pulse 1s ease-in-out infinite; }
.timer.done::before { display: none; }
.timer.done .timer-btn { background: #fff; color: var(--accent); padding: 0 18px; }
@keyframes timer-pulse { 50% { transform: scale(1.02); } }
@media (prefers-color-scheme: dark) { .timer-btn { background: rgb(0 0 0 / .1); } }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 30; background: rgb(0 0 0 / 0);
  display: flex; align-items: flex-end; justify-content: center; transition: background .2s;
}
.sheet-backdrop.open { background: rgb(0 0 0 / .35); }
.sheet {
  width: 100%; max-width: 520px; background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(20px + var(--safe-bottom));
  transform: translateY(100%); transition: transform .2s ease-out;
}
.sheet-backdrop.open .sheet { transform: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h3 { margin: 10px 0; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset {
  padding: 14px 0; border-radius: 12px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.preset:active { background: var(--accent-soft); }
.sheet-custom { display: flex; gap: 8px; margin-top: 12px; }
.sheet-custom .btn { width: auto; padding: 0 22px; }
.sheet input {
  font: inherit; font-size: 17px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; min-width: 0; outline: none;
}
.sheet input:focus { border-color: var(--accent); }
.sheet-label { display: grid; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 15px; }

.sheet-mode { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.sheet-mode .link { font-size: 15px; }
.choice { display: grid; gap: 8px; margin-bottom: 12px; }
.choice label {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.choice small { display: block; color: var(--muted); font-size: 14px; }
.howto-box summary { color: var(--accent); font-weight: 600; cursor: pointer; padding: 4px 0; }
.howto-box .howto { margin: 10px 0 14px; }
.howto-box .howto li { margin: 6px 0; }
.small-note { font-size: 14px; margin: 10px 0 0 !important; }

/* Categorie kiezen in het formulier */
.cat-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.cat-choices .chip { font-size: 15px; padding: 6px 12px; }

/* Online back-up */
.sync-form { display: grid; gap: 10px; }
.sync-form input {
  font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; outline: none;
}
.sync-form input:focus { border-color: var(--accent); }
.sync-form .btn:disabled { opacity: .5; }
.sync-msg { margin: 0 !important; color: var(--text) !important; font-size: 15px; }
.sync-state { font-weight: 600; margin-bottom: 6px !important; }
.sync-state.good { color: #2e7d4f !important; }
.sync-state.bad { color: #d23b3b !important; }
@media (prefers-color-scheme: dark) { .sync-state.good { color: #6cc495 !important; } }
#signOutBtn { margin-top: 10px; display: block; }
.settings-btn { position: relative; }
body.sync-problem .settings-btn::after {
  content: ''; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px;
  border-radius: 50%; background: #d23b3b; border: 2px solid var(--bg);
}

/* Inklapbare blokken in de instellingen */
details.fold { padding: 0; }
details.fold > summary {
  display: flex; align-items: center; gap: 10px; padding: 16px; cursor: pointer;
  list-style: none; -webkit-user-select: none; user-select: none;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h3 { flex: 1; margin: 0; font-size: 18px; }
.fold-badge { font-size: 14px; font-weight: 600; white-space: nowrap; }
.badge-muted { color: var(--muted); font-weight: 500; }
.badge-good { color: #2e7d4f; }
.badge-bad { color: #d23b3b; }
@media (prefers-color-scheme: dark) { .badge-good { color: #6cc495; } }
.fold-chevron { color: var(--muted); display: grid; transition: transform .2s; }
.fold-chevron svg { width: 20px; height: 20px; }
details.fold[open] > summary .fold-chevron { transform: rotate(180deg); }
.fold-body { padding: 0 16px 16px; }
.settings { gap: 10px; }

/* Favorietenfilter: alleen een hartje */
.chip-fav { display: grid; place-items: center; padding: 6px 12px; color: var(--accent); }
.chip-fav svg { width: 20px; height: 20px; }
.chip-fav.on { color: #fff; }
.chip-fav.on svg { fill: #fff; }

/* ================= Huisstijl Ricetta ================= */

/* Zachte papierstructuur */
body {
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23p)'/%3E%3C/svg%3E");
}

/* Kop: markies, glanzende titel, dubbele kaderlijn */
.topbar {
  padding-top: calc(var(--safe-top) + 14px + 6px);
  background-color: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 4px double var(--teal);
}
.topbar::before {
  content: ''; position: absolute; left: 0; right: 0; top: var(--safe-top); height: 14px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 36px);
}
.topbar h1 {
  font: 400 26px/1.1 var(--font-label); text-transform: uppercase; letter-spacing: .03em;
}
body:not(.no-fab) .topbar h1 {
  font: 400 40px/1 var(--font-title); letter-spacing: .05em;
  background: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 32%, #f0624f 46%, var(--accent) 60%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.icon-btn:active { background: var(--accent-soft); }

/* Zoeken en filters */
.search { border: 1.5px solid var(--text); border-radius: 2px; background: var(--surface); }
.chip {
  font: 500 14px var(--font-label); text-transform: uppercase; letter-spacing: .06em;
  border: 1.5px solid var(--text); border-radius: 3px; background: transparent; color: var(--text);
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-fav { color: var(--accent); }

/* Receptenlijst: rechte foto's zonder rand */
.cards > li { border-bottom-color: var(--line); }
.thumb { border-radius: 0; background: #ecdfca; color: var(--accent); font: 400 44px var(--font-title); }
@media (prefers-color-scheme: dark) { .thumb { background: #3a2d23; } }
.card-title { font: 500 18px/1.22 var(--font-label); text-transform: uppercase; letter-spacing: .01em; }
.card-meta { font: 500 12px var(--font-label); text-transform: uppercase; letter-spacing: .14em; color: var(--mustard); margin-top: 5px; }
.card-chevron { color: var(--muted); opacity: .5; }

/* Knoppen */
.fab { border-radius: 6px; box-shadow: none; }
.btn { border-radius: 3px; font: 500 16px var(--font-label); text-transform: uppercase; letter-spacing: .06em; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.text-btn { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }

/* Recept */
.hero { border-radius: 0 !important; }
@media (min-width: 752px) { .hero { width: calc(100% + 32px); margin: -12px -16px 0; } }
.detail-title { font: 400 40px/1 var(--font-title); letter-spacing: .02em; margin: 18px 0 8px; }
.lead { font-style: italic; }
.pill { background: var(--accent); color: #fff; border-radius: 2px; font: 500 12px var(--font-label); text-transform: uppercase; letter-spacing: .12em; padding: 3px 8px; }
.meta { font: 500 12px var(--font-label); text-transform: uppercase; letter-spacing: .12em; color: var(--mustard); }
.meta svg { width: 14px; height: 14px; }
.tag { color: var(--muted); text-transform: none; letter-spacing: 0; font: 400 14px -apple-system, system-ui, sans-serif; }

/* Kopjes als strak rood lint */
.detail h3, .detail-ribbon {
  display: inline-block; background: var(--accent); color: #fffdf8;
  font: 400 22px/1 var(--font-title); letter-spacing: .12em; padding: 7px 14px 5px; margin: 26px 0 10px;
}
.section-head h3 { margin-bottom: 10px; }
.stepper { border: 1.5px solid var(--text); border-radius: 3px; background: var(--surface); }
.stepper span { font-family: var(--font-label); font-weight: 500; }
.stepper button { color: var(--text); }
.cook-btn { border-radius: 50%; }
.check { border-radius: 2px; border: 1.5px solid var(--text); }
.ingredients li, .steps li { border-bottom: 1px dashed var(--line); }
.ingredients li.sub, .steps li.sub { font: 500 13px var(--font-label); letter-spacing: .14em; color: var(--mustard); border: 0; }
.num { border-radius: 2px; background: transparent; color: var(--accent); font: 400 24px/1 var(--font-title); width: 26px; place-items: start center; }
.steps li.done .num { background: transparent; color: var(--done); }
.notes { border-radius: 2px; border-color: var(--line); }
.time-chip { border-radius: 3px; }

/* Kookstand-balk */
.segmented { border-radius: 4px; background: var(--line); }
.segmented button { font: 500 15px var(--font-label); text-transform: uppercase; letter-spacing: .06em; border-radius: 3px; }
.segmented button.on { box-shadow: none; }

/* Formulier en instellingen */
.form input:not([type=file]), .form textarea, .sheet input, .sync-form input { border-radius: 3px; }
.form label { font-family: var(--font-label); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.form label small { text-transform: none; letter-spacing: 0; font-family: -apple-system, system-ui, sans-serif; }
.photo-preview { border-radius: 0; }
.card-box { border-radius: 4px; }
details.fold > summary h3 { font: 500 17px var(--font-label); text-transform: uppercase; letter-spacing: .06em; }
.choice label { border-radius: 4px; }
.preset { border-radius: 3px; font-family: var(--font-label); }
.sheet { border-radius: 8px 8px 0 0; }
.sheet-head h3 { font: 400 26px var(--font-title); letter-spacing: .06em; }
.timer { border-radius: 6px; }
.timer-time { font-family: var(--font-label); font-weight: 600; }
.empty h2 { font: 400 34px var(--font-title); letter-spacing: .04em; }
/* Invulvelden houden de gewone, goed leesbare letter */
.form input:not([type=file]), .form textarea, .sheet input, .sync-form input, .search input {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  text-transform: none; letter-spacing: normal;
}

/* Recept toevoegen (plusknop) */
.add-sheet { max-height: 88vh; overflow-y: auto; }
.add-part h4 { margin: 8px 0 8px; font: 500 15px var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--mustard); }
.add-row { display: flex; gap: 8px; margin-bottom: 10px; }
.add-row input { flex: 1; }
.btn.small { width: auto; padding: 0 16px; }
.add-msg { margin: 10px 0 0; font-size: 15px; line-height: 1.4; }
.add-msg.warn { color: var(--text); background: var(--accent-soft); padding: 10px 12px; border-radius: 3px; }
.add-msg.bad { color: #d23b3b; }
.add-msg a { color: var(--accent); font-weight: 600; }
.add-help { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.add-part textarea {
  width: 100%; font: 16px/1.4 -apple-system, system-ui, sans-serif; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; margin-bottom: 10px; resize: vertical;
}
.add-part + .add-part { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.add-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font: 500 13px var(--font-label); text-transform: uppercase; letter-spacing: .14em; }
.add-or::before, .add-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.add-alt { display: grid; gap: 6px; justify-items: center; }
.btn:disabled { opacity: .6; }
.source { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.source a { color: var(--accent); }

/* Boodschappenlijst */
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font: 600 11px/18px var(--font-label); text-align: center;
}
.shop-add { display: flex; gap: 8px; margin: 4px 0 8px; }
.shop-add input {
  flex: 1; min-width: 0; font: 17px -apple-system, system-ui, sans-serif; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--text); border-radius: 2px; padding: 11px 12px; outline: none;
}
.shop-add .btn.small { font-size: 24px; padding: 0 18px; }
.shop-list { list-style: none; margin: 0; padding: 0; }
.shop-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.shop-text { flex: 1; min-width: 0; }
.shop-text { font-size: 18px; line-height: 1.3; color: var(--text); }
.shop-text b { font-weight: 700; }
.shop-text small { display: block; margin-top: 3px; font: italic 400 13px/1.3 -apple-system, system-ui, sans-serif; color: var(--muted); }
.shop-item.done .shop-text { color: var(--done); text-decoration: line-through; }
.shop-item.done .shop-text small { text-decoration: none; }
.shop-del { flex: none; width: 32px; height: 28px; margin: -3px -6px 0 0; color: var(--muted); font-size: 22px; line-height: 1; }
.shop-done-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; }
.shop-done-head h3 { margin: 0; font: 500 15px var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.shop-actions { display: grid; gap: 10px; justify-items: center; margin-top: 26px; }
.shop .empty { padding: 40px 16px; }

/* Heel smalle schermen: porties en kookstand onder het lint */
@media (max-width: 359px) {
  .section-head { flex-wrap: wrap; row-gap: 0; }
  .section-head h3 { margin-bottom: 4px; }
  .section-head .stepper { margin-left: auto; margin-top: 4px; }
  .section-head .cook-btn { margin-top: 4px; }
}

/* Gang (voor-, tussen-, hoofd-, nagerecht, patisserie) */
.course-chips { margin-top: 10px; margin-bottom: -4px; }
.chip-course { border-style: dashed; }
.chip-course.on { background: var(--text); border-color: var(--text); border-style: solid; color: var(--bg); }
.pill.pill-course { background: var(--text); color: var(--bg); }
.field { display: grid; gap: 8px; }
.field-label { font: 500 14px var(--font-label); text-transform: uppercase; letter-spacing: .06em; }
.field-label small { text-transform: none; letter-spacing: 0; font: 400 13px -apple-system, system-ui, sans-serif; color: var(--muted); }
.course-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.course-choices .chip { font-size: 15px; padding: 6px 12px; }

/* Instellingen → Gangen */
.course-admin { list-style: none; margin: 0 0 12px; padding: 0; }
.course-admin li { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ca-name { flex: 1; min-width: 0; font: 500 16px var(--font-label); text-transform: uppercase; letter-spacing: .05em; }
.ca-name small { display: block; font: 400 12px -apple-system, system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--muted); }
.ca-btn { width: 36px; height: 34px; border-radius: 3px; color: var(--text); font-size: 18px; }
.ca-btn:disabled { opacity: .25; }
.ca-btn:active:not(:disabled) { background: var(--accent-soft); }
.ca-del { color: var(--accent); font-size: 22px; }

/* Postvak: recepten uit Safari */
.inbox-banner {
  display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; padding: 10px 6px 10px 14px;
  background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 2px;
}
.inbox-text { flex: 1; min-width: 0; font-size: 15px; }
.inbox-text small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-banner .btn.small { padding: 8px 14px; font-size: 14px; }
.inbox-del { width: 34px; height: 34px; color: var(--muted); font-size: 22px; flex: none; }
.howto code { font: 600 14px ui-monospace, Menlo, monospace; background: var(--line); padding: 1px 5px; border-radius: 2px; }

/* Instellingen: icoontje voor de kopjes, tussenkopjes in een blok */
.fold-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; color: var(--accent); }
.fold-icon svg { width: 22px; height: 22px; }
.sub-head { margin: 4px 0 8px; font: 500 14px var(--font-label); text-transform: uppercase; letter-spacing: .1em; color: var(--mustard); }
.sub-head ~ .sub-head { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }

/* Gang hernoemen */
.ca-edit svg { width: 17px; height: 17px; }
.ca-rename { display: flex; align-items: center; gap: 4px; flex: 1; }
.ca-rename input {
  flex: 1; min-width: 0; font: 17px -apple-system, system-ui, sans-serif; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--text); border-radius: 2px; padding: 7px 10px; outline: none;
}
.ca-ok { color: var(--accent); font-size: 20px; font-weight: 700; }
/* Gangenlijst past ook met vijf knopjes: smallere knopjes, lange naam inkorten */
.course-admin li { gap: 2px; }
.course-admin .ca-btn { width: 32px; flex: none; }
.ca-name { overflow: hidden; }
.ca-name, .ca-name small { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

/* Instellingen: raster nooit breder dan het scherm */
.settings { grid-template-columns: minmax(0, 1fr); }
.ca-rename { min-width: 0; }
.ca-rename input { width: 0; }

/* Kruisje in het zoekveld */
.search-clear {
  flex: none; align-self: stretch; width: 36px; margin-right: -8px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted);
}
.search-clear[hidden] { display: none; }
.search-clear svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.search-clear:active { color: var(--text); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }

/* Eet smakelijk! als banner (zoals op het app-icoon), na de laatste afgestreepte stap */
.bon-appetit {
  display: flex; justify-content: center; margin: 28px 0 10px; padding: 6px 0 12px;
  isolation: isolate; /* staartjes achter het lint, maar boven de achtergrond */
}
.bon-appetit[hidden] { display: none; }
.ba-ribbon { position: relative; display: block; animation: ba-bounce .9s cubic-bezier(.3, 0, .3, 1) both; }
.ba-band {
  position: relative; z-index: 1; display: block;
  background: var(--accent); color: #fff8ee;
  font: 400 32px/1 var(--font-title); letter-spacing: .07em; white-space: nowrap;
  padding: 10px 26px 8px;
  outline: 1.5px solid rgba(255, 248, 238, .85); outline-offset: -5px;
}
.ba-ribbon::before, .ba-ribbon::after {
  content: ''; position: absolute; z-index: 0; top: 10px; height: 100%; width: 34px;
  background: color-mix(in srgb, var(--accent) 70%, #000);
}
.ba-ribbon::before { left: -24px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 32% 50%); }
.ba-ribbon::after { right: -24px; clip-path: polygon(0 0, 100% 0, 68% 50%, 100% 100%, 0 100%); }
@keyframes ba-bounce {
  0%   { opacity: 0; transform: translateY(-40px) scale(.6); }
  35%  { opacity: 1; transform: translateY(0) scale(1.08); }
  52%  { transform: translateY(-14px) scale(.98); }
  68%  { transform: translateY(0) scale(1.02); }
  82%  { transform: translateY(-5px); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ba-ribbon { animation: none; } }

/* Kookstand bereiding: vorige stappen lichter, huidige stap uitgelicht en in het midden */
body.cook .steps li:not(.sub) { transition: opacity .3s, background-color .3s; }
body.cook .steps li.done p { text-decoration: none; color: var(--text); }
body.cook .steps li.done { opacity: .35; }
body.cook .steps li.done .num { color: var(--accent); }
body.cook .steps li.current {
  background: var(--surface); margin: 0 -12px; padding: 18px 12px 18px 9px;
  border-left: 3px solid var(--accent); border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line);
}
body.cook .steps li.current p { font-weight: 600; }
body.cook .steps li.current .num { font-size: 30px; }
body.cook .part-steps { padding-bottom: 40vh; } /* ruimte zodat ook de laatste stap in het midden kan */

/* ================= Magazine op iPad en laptop ================= */
.list-tools { display: flex; gap: 12px; align-items: stretch; }
.list-tools .search { flex: 1; min-width: 0; }
.shuf-btn, .add-top { display: none; }

@media (min-width: 700px) {
  body[data-page=list] { --page-w: 1320px; }
  body[data-page=list] main { max-width: var(--page-w); padding: 22px 32px 64px; }
  body[data-page=list] .topbar { padding-left: max(24px, calc((100% - var(--page-w)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--page-w)) / 2 + 32px)); }
  body[data-page=list] .fab { display: none; }
  body[data-page=list] .topbar-actions { align-items: center; gap: 6px; }
  .add-top {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px;
    background: var(--accent); color: #fff; border-radius: 3px;
  }
  .add-top svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .add-top:active { background: var(--accent-dark); }
  .list-tools .search { max-width: 620px; }
  .shuf-btn { display: grid; }
  body[data-page=list] .chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
  body[data-page=list] .chip { cursor: pointer; }

  .cards.mag {
    margin-top: 26px; display: grid; gap: 26px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards.mag > li { border: 0; }
  .cards.mag > li.none { grid-column: 1 / -1; }

  /* Uitgelicht recept: foto + witte pagina met vaandel, in een gouden lijst met een zachte schaduw */
  .mag-hero {
    grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr);
    background: var(--surface); margin: 6px 0 22px;   /* even breed als de kolommen eronder */
  }
  .cards.mag > li.mag-hero {
    border: 7px solid transparent;
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
      linear-gradient(135deg, #8f6b1e 0%, #e9c96f 22%, #b08427 45%, #f5e2a0 62%, #a57a22 82%, #d9b45a 100%) border-box;
    box-shadow: inset 0 0 0 1px rgba(143, 107, 30, .5), 0 14px 30px -12px rgba(60, 40, 10, .35);
  }
  .mh-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
  .mh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mh-text { padding: 28px 34px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
  .mh-lead { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 52ch; }
  .mh-actions { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
  .mh-open { width: auto; padding: 12px 24px; }
  .mh-next { font: 500 15px var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 10px 0; }
  .mag-kicker { font: 500 13px var(--font-label); letter-spacing: .18em; text-transform: uppercase; color: var(--mustard); }
  .mag-meta { font: 500 13px var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

  /* Vaandel met gevouwen staartjes, zoals op het app-icoon */
  .flag { position: relative; isolation: isolate; margin: 4px 30px 10px 26px; max-width: calc(100% - 56px); font-weight: 400; }
  .flag a, .flag > span {
    position: relative; z-index: 1; display: block; background: var(--accent); color: #fff8ee;
    font: 400 clamp(40px, 4.6vw, 62px)/1 var(--font-title); letter-spacing: .04em;
    padding: 14px 26px 10px; outline: 2px solid rgba(255, 248, 238, .85); outline-offset: -7px;
    overflow-wrap: anywhere;
  }
  .flag::before, .flag::after {
    content: ''; position: absolute; z-index: 0; top: 14px; height: 100%; width: 40px;
    background: color-mix(in srgb, var(--accent) 70%, #000);
  }
  .flag::before { left: -28px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 32% 50%); }
  .flag::after { right: -28px; clip-path: polygon(0 0, 100% 0, 68% 50%, 100% 100%, 0 100%); }

  /* Receptkaarten: vierkante foto met papieren label */
  .mag-card a { display: block; position: relative; }
  .mc-photo { aspect-ratio: 1; overflow: hidden; background: #ecdfca; display: grid; place-items: center; }
  .mc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
  .mag-nophoto { color: var(--muted); opacity: .5; }
  .mag-nophoto svg { width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 1.2; }
  .mc-fav {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--accent); display: grid; place-items: center;
  }
  .mc-fav svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
  .mc-label {
    position: absolute; left: 14px; right: 14px; bottom: 14px; text-align: center;
    background: var(--surface); padding: 11px 12px 10px; outline: 3px double var(--teal); outline-offset: -6px;
  }
  .mc-label h3 {
    margin: 3px 0 2px; font: 400 26px/1.02 var(--font-title); letter-spacing: .03em; color: var(--text);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; overflow-wrap: anywhere;
  }
  .mc-label .mag-kicker { font-size: 11px; }
  .mc-label .mag-meta { font-size: 11px; }
  @media (hover: hover) {
    .mag-card a:hover img, .mh-photo:hover img { transform: scale(1.035); }
    .mh-photo img { transition: transform .5s ease; }
  }
  .mag-card a:active { opacity: .85; }
}
@media (min-width: 700px) and (prefers-color-scheme: dark) { .mc-photo { background: #3a2d23; } }

/* iPad liggend en laptop: foto en pagina naast elkaar, 3 kolommen met grote kaarten */
@media (min-width: 1000px) {
  .cards.mag { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mag-card.big a, .mag-card.big .mc-photo { height: 100%; aspect-ratio: auto; }
  .mag-card.big .mc-label h3 { font-size: 40px; }
  .mag-card.big .mc-label { left: 18px; right: 18px; bottom: 18px; padding: 14px 16px 12px; }
  .mag-hero { grid-template-columns: 3fr 2fr; }
  .mh-photo { aspect-ratio: 4 / 3; }
  .mh-text { justify-content: center; padding: 36px 34px 34px 0; }
  .mh-text > :not(.flag) { margin-left: 34px; }
  .mag-hero .flag { margin-left: -26px; } /* vaandel steekt over de foto heen */
}
@media (min-width: 1380px) { .cards.mag { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Titel-label boven als het eten onderin de foto staat */
@media (min-width: 700px) {
  .mc-label { transition: opacity .25s; }
  .mag-card.focusing .mc-label { opacity: 0; }
  .mag-card.label-top .mc-label { top: 14px; bottom: auto; }
  .mag-card.label-top .mc-fav { top: auto; bottom: 12px; }
}
@media (min-width: 1000px) {
  .mag-card.big.label-top .mc-label { top: 18px; bottom: auto; }
}

/* Uitsnede: foto geschoven/ingezoomd binnen het vierkant */
@media (min-width: 700px) {
  .mc-photo, .mh-photo { position: relative; }
  .mc-photo img.cropped, .mh-photo img.cropped { position: absolute; max-width: none; object-fit: fill; }
  .mag-card.big a { height: 100%; }
  .mag-card.big .mc-photo { height: 100%; }
  /* Opvultegel: zelfde vierkant, papier met kader */
  .mag-filler { min-width: 0; }
  .mag-filler button {
    width: 100%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: var(--surface); outline: 3px double var(--teal); outline-offset: -10px; color: var(--accent); padding: 20px; text-align: center;
  }
  .mag-filler svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .mag-filler b { font: 400 30px/1 var(--font-title); letter-spacing: .05em; }
  .mag-filler small { font: 500 12px var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .mag-filler button:active { background: var(--accent-soft); }
}

/* iPad en laptop: zoekbalk en filters blijven bovenaan staan */
@media (min-width: 700px) {
  body[data-page=list] .list-head {
    position: sticky; top: calc(var(--topbar-h, 72px) - 2px); z-index: 5;   /* 2px onder de kop schuiven: geen kier */
    margin-top: -22px; padding: 18px 0 14px;
    background: var(--bg);
  }
  /* balk over de volle breedte met dubbele turquoise lijn; inhoud blijft in het midden */
  body[data-page=list] { --gutter: max(32px, calc((100% - var(--page-w)) / 2 + 32px)); }
  body[data-page=list] main { max-width: none; padding-left: 0; padding-right: 0; }
  body[data-page=list] .topbar { background-color: var(--bg); }   /* kop en filters één vlak */
  body[data-page=list] .list-head { padding-left: var(--gutter); padding-right: var(--gutter); }
  body[data-page=list] .cards, body[data-page=list] .inbox-banner, body[data-page=list] .empty { margin-left: var(--gutter); margin-right: var(--gutter); }
}

/* Zoeken en filters in- en uitklappen */
.list-head { display: grid; grid-template-rows: 1fr; }   /* de animatie zit in foldFilters() */
.list-head.closed { grid-template-rows: 0fr; padding-top: 2px !important; padding-bottom: 0 !important; }
.lh-inner { min-height: 0; overflow: hidden; padding: 2px 16px; margin: -2px -16px; }   /* ruimte voor focusranden en de veegbalk tot de rand */
@media (min-width: 700px) { .lh-inner { padding: 2px; margin: -2px; } }
.list-head.closed .lh-inner { visibility: hidden; }
.filter-toggle { position: relative; }
.filter-toggle svg { fill: none; }
.filter-toggle.on { background: var(--accent-soft); }
.filter-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

/* Mooiere regelval in titels (regels ongeveer even lang) */
.flag a, .mc-label h3 { text-wrap: balance; }

/* iPhone: zoeken en filters blijven nu ook bovenaan staan (in te klappen met het filtericoon) */
@media (max-width: 699.98px) {
  body[data-page=list] .topbar { background-color: var(--bg); }
  body[data-page=list] .list-head {
    position: sticky; top: calc(var(--topbar-h, 72px) - 2px); z-index: 5;
    margin: -12px -16px 12px; padding: 14px 16px 10px;
    background: var(--bg);
  }
}

/* Schaduwrandje onder het uitgeklapte filtermenu: verschil met de pagina die eronder scrolt */
body[data-page=list] .list-head { box-shadow: 0 8px 10px -8px rgba(40, 20, 10, .28); }
body[data-page=list] .list-head.closed { box-shadow: none; }

/* Titel in het vaandel gecentreerd */
.flag a, .flag > span { text-align: center; }

/* iPad en laptop: logo twee keer zo groot, met hetzelfde verloopje als op de iPhone
   (de titel is daar net zo breed als het woord, zodat het verloop niet over de hele kop wordt uitgerekt) */
@media (min-width: 700px) {
  body:not(.no-fab) .topbar h1 {
    flex: 0 1 auto; margin-right: auto; padding-right: .3em;
    font-size: 80px; line-height: .95;
    background-size: 125% 100%;
  }
}

/* Receptpagina op iPad liggend en laptop: foto (met titel) links vast, recept rechts dat scrolt.
   In de kookmodus en op smallere schermen blijft alles onder elkaar. */
@media (min-width: 900px) {
  /* foto staat vast op het scherm (ook aan het eind van de pagina); het recept krijgt de rechterkant */
  body[data-page=detail]:not(.cook) main { max-width: none; padding: 0 0 0 40%; }
  body[data-page=detail]:not(.cook) .photo-col {
    position: fixed; left: 0; top: var(--topbar-h); width: 40%; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
    overflow: hidden; background: #2a1a10;
  }
  body[data-page=detail]:not(.cook) .photo-col.no-photo {
    background: repeating-linear-gradient(45deg, #2a1a10 0 22px, #33210f 22px 44px);
  }
  body[data-page=detail]:not(.cook) .photo-col .hero {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0 !important;
    max-height: none; max-width: none; aspect-ratio: auto; object-fit: cover;
  }
  /* uitsnede zo dat het eten boven de titel valt (berekend in PhotoFocus) */
  body[data-page=detail]:not(.cook) .photo-col .hero.cropped { right: auto; bottom: auto; object-fit: fill; }
  body[data-page=detail]:not(.cook) .photo-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 140px 36px 34px;
    background: linear-gradient(to top, rgba(20, 10, 5, .85), rgba(20, 10, 5, .55) 55%, transparent);
    color: #fff8ee;
  }
  body[data-page=detail]:not(.cook) .photo-cap .detail-title {
    color: #fff8ee; font-size: clamp(44px, 4vw, 64px); margin: 0 0 10px; text-wrap: balance; overflow-wrap: anywhere;
  }
  body[data-page=detail]:not(.cook) .photo-cap .lead { color: rgba(255, 248, 238, .9); font-size: 18px; margin: 0 0 14px; }
  body[data-page=detail]:not(.cook) .photo-cap .meta,
  body[data-page=detail]:not(.cook) .photo-cap .meta span,
  body[data-page=detail]:not(.cook) .photo-cap .tag { color: #fff8ee; }
  body[data-page=detail]:not(.cook) .photo-cap .meta svg { stroke: #fff8ee; }
  body[data-page=detail]:not(.cook) .photo-cap .pill { background: var(--accent); color: #fff; }
  body[data-page=detail]:not(.cook) .photo-cap .pill.pill-course { background: #fff8ee; color: #2a1a10; }
  body[data-page=detail]:not(.cook) .detail { padding: 44px clamp(32px, 4vw, 64px) 96px; max-width: 760px; }
  body[data-page=detail]:not(.cook) .part-steps { margin-top: 36px; }
}

/* Receptpagina iPad/laptop: kop staat (net als de foto) vast aan het scherm, zodat hij bij het
   omlaagtrekken van de pagina (rubberband op de iPad) niet over de foto schuift. */
@media (min-width: 900px) {
  html:has(body[data-page=detail]:not(.cook)), body[data-page=detail]:not(.cook) { overscroll-behavior-y: none; }
  body[data-page=detail]:not(.cook) .topbar { position: fixed; left: 0; right: 0; top: 0; }
  body[data-page=detail]:not(.cook) main { margin-top: var(--topbar-h); }
}

/* Kookstand op iPad liggend en laptop: gesplitst scherm met een rode lijn. Links de naam en de
   ingrediënten, rechts de bereiding; elk scrolt apart. Geen schakelknoppen zoals op de iPhone. */
@media (min-width: 900px) {
  html:has(body.cook), body.cook { overflow: hidden; overscroll-behavior: none; }
  body.cook #cookTabs { flex-basis: auto; margin-left: auto; padding-top: 0; }
  body.cook #cookTabs .segmented { display: none; }
  body.cook main {
    max-width: none; padding: 0; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h));
    display: grid; grid-template-columns: minmax(340px, 40%) 1fr; grid-template-rows: auto minmax(0, 1fr);
  }
  body.cook .detail { display: contents; }
  body.cook .photo-col { grid-column: 1; grid-row: 1; padding: 28px 36px 6px; }
  body.cook .detail-title { margin: 0; font-size: 44px; text-wrap: balance; }
  body.cook .part-ingr, body.cook.cook-tab-steps .part-ingr {
    grid-column: 1; grid-row: 2; display: block; overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 36px 48px;
  }
  body.cook .part-steps, body.cook:not(.cook-tab-steps) .part-steps {
    grid-column: 2; grid-row: 1 / 3; display: block; overflow-y: auto; overscroll-behavior: contain;
    padding: 28px 44px 40vh; border-left: 1.5px solid var(--accent);
  }
  body.cook .part-ingr .section-head { display: flex; }
  body.cook .part-ingr .section-head > :not(h3) { display: none; }
  body.cook .part-steps > h3 { display: inline-block; margin-top: 0; }
  body.cook .ingredients li:not(.sub) { font-size: 19px; }
}

/* Kookstand: geen receptnaam in de kopbalk (die staat al in beeld); terug-pijltje, schakelknoppen
   en koksmuts op één regel */
body.cook #title { display: none; }

/* Kookstand op iPad liggend en laptop: aantal personen in de kopbalk, links van de koksmuts
   (op de iPhone en iPad staand niet) */
.cook-tabs .cook-stepper { display: none; }
@media (min-width: 900px) { body.cook .cook-tabs .cook-stepper { display: flex; flex: none; margin: 0; height: 36px; } }
.cook-stepper button { width: 28px; height: 100%; }
.cook-stepper span { min-width: 34px; }

/* Kookstand: 'Eet smakelijk!' / 'Proost!' groter en verticaal gecentreerd in de lege ruimte onder de
   laatste stap (die ruimte is er zodat ook de laatste stap in het midden kan staan) */
body.cook.cook-tab-steps .part-steps { display: flex; flex-direction: column; padding-bottom: 0; }
@media (min-width: 900px) {
  body.cook .part-steps, body.cook:not(.cook-tab-steps) .part-steps { display: flex; flex-direction: column; padding-bottom: 0; }
}
body.cook .part-steps > h3 { align-self: flex-start; }
body.cook .part-steps::after { content: ''; flex: none; height: 40vh; }
body.cook .part-steps:has(> .bon-appetit:not([hidden]))::after { display: none; }
body.cook .bon-appetit { flex: 1 0 40vh; align-items: center; margin: 0; padding: 0; }
body.cook .ba-band { font-size: min(44px, 10vw); padding: 13px 34px 10px; outline-offset: -6px; }
body.cook .ba-ribbon::before, body.cook .ba-ribbon::after { top: 13px; width: 44px; }
body.cook .ba-ribbon::before { left: -32px; }
body.cook .ba-ribbon::after { right: -32px; }
@media (min-width: 900px) {
  body.cook .ba-band { font-size: 68px; padding: 18px 50px 13px; outline-width: 2px; outline-offset: -8px; }
  body.cook .ba-ribbon::before, body.cook .ba-ribbon::after { top: 18px; width: 64px; }
  body.cook .ba-ribbon::before { left: -46px; }
  body.cook .ba-ribbon::after { right: -46px; }
}

/* ---------- Account: welkom, inloggen, gebruikers ---------- */
body[data-page=welcome] #title { visibility: hidden; }
.acc-welcome { max-width: 420px; margin: 0 auto; min-height: calc(100vh - var(--topbar-h) - 40px); display: flex; flex-direction: column; justify-content: center; padding: 8px 8px 40px; }
.acc-flag { align-self: center; position: relative; isolation: isolate; margin: 0 30px 26px; }
.acc-flag span { position: relative; z-index: 1; display: block; background: var(--accent); color: #fff8ee; font: 400 46px/1 var(--font-title); letter-spacing: .06em; padding: 14px 30px 10px; outline: 2px solid rgba(255, 248, 238, .85); outline-offset: -7px; }
.acc-flag::before, .acc-flag::after { content: ''; position: absolute; z-index: 0; top: 14px; height: 100%; width: 40px; background: color-mix(in srgb, var(--accent) 70%, #000); }
.acc-flag::before { left: -28px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 32% 50%); }
.acc-flag::after { right: -28px; clip-path: polygon(0 0, 100% 0, 68% 50%, 100% 100%, 0 100%); }
.acc-lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
.acc-form { display: grid; gap: 10px; }
.acc-form label { display: grid; gap: 6px; font: 500 12px var(--font-label); text-transform: uppercase; letter-spacing: .12em; color: var(--mustard); }
.acc-form input { font: inherit; font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--text); padding: 12px 14px; border: 1.5px solid var(--text); border-radius: 2px; background: var(--surface); outline: none; width: 100%; min-width: 0; }
.acc-form input:focus { border-color: var(--accent); }
.acc-form .btn { margin-top: 8px; }
.acc-form .btn:disabled { opacity: .5; }
.acc-note { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; line-height: 1.6; }
.acc-note .link { font-size: 14px; }
.acc-who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.acc-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff8ee; display: grid; place-items: center; font: 400 24px/1 var(--font-title); flex: none; }
.acc-who b, .users b { display: block; font-size: 17px; }
.acc-who small, .users small { color: var(--muted); font-size: 13px; }
.acc-role { font: 500 11px var(--font-label); letter-spacing: .1em; text-transform: uppercase; background: var(--text); color: var(--bg); padding: 2px 6px; border-radius: 2px; margin-left: 4px; vertical-align: 2px; }
.acc-actions { display: grid; gap: 10px; margin-bottom: 6px; }
.card-box .acc-actions .btn + .btn { margin-top: 0; }
#syncCard > .link { display: block; margin-top: 12px; }
#syncCard .small-note { margin-top: 10px; }
.users { list-style: none; margin: 0 0 16px; padding: 0; }
.users li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.users-text { flex: 1; min-width: 0; }
.users-more { font-size: 22px; color: var(--accent); }
.acc-sheet .btn { margin-top: 12px; }
.acc-sheet .btn.danger { margin-top: 18px; }
.acc-sheet-text { color: var(--muted); font-size: 15px; margin: 10px 0; }
.acc-sheet .sync-msg { margin: 10px 0 0; }
.pw-box { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1.5px dashed var(--accent); background: var(--surface); }
.pw-box > div { flex: 1; min-width: 0; }
.pw-box small { display: block; font: 500 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); }
.pw-box b { font-size: 19px; overflow-wrap: anywhere; }
.pw-box .pw-mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .03em; }

/* ---------- Vegetarisch en vegan: logo met tekst ---------- */
/* Tekst in dezelfde letter als de labels (Hoofdgerecht, Soep…), alleen in het groen */
.diet { display: inline-flex; align-items: center; gap: .4em; vertical-align: middle; white-space: nowrap; line-height: 1; margin-right: .7em; cursor: help; }
.diet svg { width: 1.5em; height: 1.5em; flex: none; fill: initial; overflow: visible; }
.diet svg use, symbol[id^=diet-] { overflow: visible; }
/* Alleen het logo (in de overzichten): iets omhoog, optisch midden van de hoofdletters ernaast */
.diet:not(:has(.diet-text)) svg { transform: translateY(-.12em); }
.diet svg, .diet svg * { stroke: none !important; }   /* geen lichte rand van de andere iconen */
.diet-text { font-family: var(--font-label); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: #008C44; }
.diet .diet-text { color: #008C44; }
.meta .diet { margin-right: 0; }
.diet:not(:has(.diet-text)) { margin-right: .5em; }
.diet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 50%; }
/* Op de donkere foto (receptpagina iPad/laptop) */
@media (min-width: 900px) {
  body[data-page=detail]:not(.cook) .photo-cap .meta .diet-vegan .diet-text { color: #FFF200; }
  body[data-page=detail]:not(.cook) .photo-cap .meta .diet-vegetarisch .diet-text { color: #7DDC9F; }
}
/* Filterknoppen */
.chip-diet { display: inline-flex; align-items: center; }
.chip-diet .diet { margin: 0; cursor: pointer; }
.chip-diet .diet-text { padding-top: .08em; }   /* hoofdletters optisch in het midden naast het logo */
.chip-diet.on .diet-text { color: #fff; }
/* Bewerken: vinkjes naast Porties */
.diet-pick { display: grid; gap: 8px; align-content: end; }
.diet-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; cursor: pointer; }
.diet-check .diet { margin: 0; cursor: pointer; }
/* Uitleg bij het logo */
.tip { position: fixed; z-index: 50; max-width: min(300px, calc(100vw - 16px)); padding: 8px 12px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-size: 14px; line-height: 1.35; box-shadow: 0 4px 14px rgb(0 0 0 / .2);
  opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.tip.on { opacity: 1; transform: none; }
.form .diet-check input[type=checkbox] {
  -webkit-appearance: auto; appearance: auto; width: 22px; height: 22px; min-width: 0; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; flex: none; accent-color: #008C44;
}

/* Bewerken op iPad/laptop: Vegetarisch en Vegan naast elkaar */
@media (min-width: 700px) {
  .diet-pick { display: flex; align-items: flex-end; gap: 24px; padding-bottom: 10px; }
}

/* Uitgelicht recept: VEGAN/VEGETARISCH en de gang/categorieën op precies dezelfde hoogte */
.mag-hero .mag-kicker:has(.diet) { display: inline-flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
.mag-hero .mag-kicker .diet-text { letter-spacing: inherit; }

/* ---------- Recepten koppelen ---------- */
.ingredients .ing-link { color: var(--accent); text-decoration: underline dotted 1.5px; text-underline-offset: 3px; }
.ing-go { display: inline-flex; align-items: center; margin-left: 6px; padding: 2px 7px 1px; border-radius: 3px; background: var(--accent-soft); color: var(--accent);
  font: 500 11px var(--font-label); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.ingredients li.done .ing-link, .ingredients li.done .ing-go { color: inherit; }
.links-box { margin: 34px 0 12px; }
.links-box h3 { margin-bottom: 4px; }
.links-sub { font: 500 12px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin: 14px 0 8px; }
.link-cards { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; }
.link-cards::-webkit-scrollbar { display: none; }
.link-card { flex: none; width: 140px; display: block; background: var(--surface); outline: 3px double var(--teal); outline-offset: -6px; color: var(--text); }
.link-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.link-nophoto, .pick-nophoto { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.link-nophoto { aspect-ratio: 1; }
.link-nophoto svg { width: 44px; height: 44px; }
.link-card b { display: block; padding: 8px 10px 11px; font: 400 18px/1.05 var(--font-title); letter-spacing: .02em; text-align: center; overflow-wrap: anywhere; }
.link-card:active { transform: scale(.98); }
@media (min-width: 700px) { .link-cards { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 6px; } .link-card { width: 160px; } }
body.cook .links-box { display: none; }
/* Bewerken */
.field-links { display: grid; gap: 8px; }
.field-label { font-family: var(--font-label); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.field-label small { font-weight: 400; text-transform: none; letter-spacing: 0; font-family: -apple-system, system-ui, sans-serif; color: var(--muted); }
.edit-links { display: flex; flex-wrap: wrap; gap: 8px; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font: 600 15px -apple-system, system-ui, sans-serif; }
.link-chip i { font-style: normal; font-weight: 400; color: var(--muted); }
.link-chip span { color: var(--accent); }
.link-add { border-style: dashed; color: var(--accent); }
.pick { list-style: none; margin: 10px 0 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.pick li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pick img, .pick-nophoto { width: 44px; height: 44px; object-fit: cover; flex: none; }
.pick-nophoto svg { width: 24px; height: 24px; }
.pick b { flex: 1; min-width: 0; font-weight: 600; }
.pick .seg { display: flex; gap: 4px; flex: none; }
.pick .seg button { font: 500 11px var(--font-label); letter-spacing: .08em; text-transform: uppercase; padding: 6px 7px; border: 1.5px solid var(--text); color: var(--text); border-radius: 2px; }
.pick .seg button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pick-none { color: var(--muted); justify-content: center; }
/* Spiekvenster in de kookstand */
.peek { max-height: 70vh; overflow-y: auto; }
.peek h4 { font: 500 12px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin: 14px 0 6px; }
.peek ul, .peek ol { margin: 0; padding-left: 22px; font-size: 18px; }
.peek li { margin: 6px 0; }
.peek .peek-sub { list-style: none; margin-left: -22px; font: 500 12px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); }
.peek .btn { margin-top: 16px; }
/* Boodschappenlijst: onderdelen kiezen */
.parts-pick { display: grid; gap: 10px; margin: 6px 0 4px; }
.parts-check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.parts-check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.sheet .parts-check input[type=checkbox] { width: 22px; height: 22px; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; -webkit-appearance: auto; appearance: auto; }
.link-suggest { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; border-color: #008C44; color: #008C44; text-transform: none; letter-spacing: 0; font: 600 15px -apple-system, system-ui, sans-serif; }
.link-suggest i { font-style: normal; font-weight: 400; color: var(--muted); }
.link-suggest, .link-chip { flex: 0 1 auto; max-width: 100%; white-space: normal; text-align: left; flex-wrap: wrap; row-gap: 2px; }

/* ---------- Account aanvragen ---------- */
.acc-request { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); text-align: center; display: grid; gap: 10px; }
.acc-request p { margin: 0; color: var(--muted); }
.req-form .btn { margin-top: 14px; }
.req-form .small-note { margin-top: 10px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Beheerder: stipje op het tandwiel bij een nieuwe aanvraag */
body.has-requests:not(.sync-problem) .settings-btn::after {
  content: ''; position: absolute; top: 7px; right: 7px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
}
.req-count { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8em; letter-spacing: .04em; vertical-align: 1px; }
.req-box { border-color: var(--accent); }
.req-avatar { background: var(--mustard); }
.users li.req-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-bottom: 1px dashed var(--line); padding-top: 0; }
.card-box .req-actions .btn + .btn { margin-top: 0; }
.acc-sheet-text.warn { color: var(--accent); }
.mail-result { margin: 12px 0 0 !important; color: var(--text) !important; font-size: 15px; line-height: 1.45; }
.mail-result.good { color: #2e7d4f !important; }
.mail-result code { font-size: 13px; background: var(--accent-soft); padding: 1px 5px; border-radius: 3px; }

/* ---------- Delen met andere gebruikers ---------- */
.people-search { width: 100%; margin-top: 6px; }
.people-head { font: 500 12px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin: 14px 0 6px; }
.people-head:empty { display: none; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.people li b { flex: 1; min-width: 0; font-weight: 600; }
.people li b small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.people li.off { opacity: .5; cursor: default; }
.people .acc-avatar, .inbox-av { width: 36px; height: 36px; font-size: 20px; }
.people .tick, .rec-pick .tick { width: 24px; height: 24px; flex: none; border: 1.5px solid var(--text); border-radius: 3px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.people li.on .tick, .rec-pick li.on .tick { background: var(--accent); border-color: var(--accent); }
.people-none { color: var(--muted); margin: 12px 0; }
.share-sheet, .acc-sheet { max-height: 88vh; overflow-y: auto; }
.msg-in { margin-top: 14px; }
.share-or { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 2px; }
.acc-sheet #sysShare { display: flex; align-items: center; justify-content: center; gap: 8px; }
.acc-sheet #sysShare svg { width: 18px; height: 18px; }
/* Ontvangen of uit een kookboek: van wie, en onderaan bewaren */
.from-strip { display: flex; align-items: center; gap: 10px; margin: 0 -16px; padding: 10px 16px; background: var(--accent-soft); border-left: 4px solid var(--accent); font-size: 15px; }
.from-strip .acc-avatar { width: 30px; height: 30px; font-size: 17px; }
.from-strip q { color: var(--muted); font-style: italic; }
.save-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 2fr 1fr; gap: 10px;
  padding: 12px 16px calc(14px + var(--safe-bottom)); background: var(--bg); box-shadow: 0 -6px 16px -8px rgba(0, 0, 0, .25); }
.save-bar.single { grid-template-columns: 1fr; }
.save-bar .btn + .btn { margin-top: 0; }
body:has(.save-bar) main { padding-bottom: 96px; }
body.cook .from-strip, body.cook .save-bar { display: none; }
@media (min-width: 900px) {
  body[data-page=detail]:not(.cook) .from-strip { margin: 0; }
  .save-bar { left: 40%; padding-left: clamp(32px, 4vw, 64px); padding-right: clamp(32px, 4vw, 64px); }
}
/* Ingang en overzicht van kookboeken */
.chip-books { display: inline-flex; align-items: center; gap: 6px; border-style: dashed; color: var(--accent); }
.chip-books svg { width: 16px; height: 16px; }
.books-intro { color: var(--muted); margin: 4px 0 10px; }
.books { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.book { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface); outline: 3px double var(--teal); outline-offset: -6px; color: var(--text); }
.book .covers { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; width: 84px; height: 84px; flex: none; }
.book .cover { position: relative; overflow: hidden; background: #ecdfca; }
.book .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.book .cover img.in, img.fade.in { opacity: 1; }
img.fade { opacity: 0; transition: opacity .35s ease; }
.cover-empty { width: 100%; height: 100%; }
.cover-empty { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cover-empty svg { width: 20px; height: 20px; }
.book b { display: block; font: 400 24px/1.05 var(--font-title); letter-spacing: .02em; }
.book small { color: var(--muted); }
.book-page { max-width: 720px; margin: 0 auto; }
.book-flag { display: flex; justify-content: center; margin: 10px 0 14px; }
.book-flag .acc-flag span { font-size: 30px; }
.book-search { margin-bottom: 8px; }
.book-cards .card { padding-right: 4px; }
.keep-btn, .keep-done { flex: none; font: 500 12px var(--font-label); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 3px; }
.keep-btn { background: var(--accent-soft); color: var(--accent); }
.keep-done { color: #2e7d4f; }
/* Instellingen */
.opt-head { font: 500 12px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin: 14px 0 8px !important; }
.choice-list { display: grid; gap: 10px; }
.choice-list label { display: flex; gap: 10px; align-items: flex-start; }
.choice-list input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.choice-list small { display: block; color: var(--muted); }
.mini-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 4px 30px; }
#pickRecipes { margin-top: 14px; }
.pick-tools { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.pick-tools input { flex: 1; }
.pick-tools .chip { flex: none; }
.rec-pick li { cursor: pointer; }
.acc-sheet #recSave { margin-top: 14px; }
/* Bewerken: zichtbaar in mijn kookboek */
.share-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; cursor: pointer; }
.share-check input { width: 22px !important; height: 22px; flex: none; padding: 0 !important; margin: 2px 0 0; accent-color: var(--accent); -webkit-appearance: auto; appearance: auto; }
.share-check > span { display: flex; gap: 8px; align-items: flex-start; }
.share-check svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--accent); }
.share-check small { display: block; text-transform: none; letter-spacing: 0; font: 400 13px -apple-system, system-ui, sans-serif; color: var(--muted); margin-top: 2px; }
.empty .empty-books { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.empty .empty-books svg { width: 18px; height: 18px; }
.form .share-check input[type=checkbox] { -webkit-appearance: auto; appearance: auto; width: 22px; height: 22px; min-width: 0; padding: 0; margin: 2px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; flex: none; accent-color: var(--accent); }
.share-count { margin: 8px 0 0 !important; }

/* ---------- Laden: pannetje met roerende pollepel ---------- */
.loader { display: grid; justify-items: center; gap: 10px; padding: 56px 16px; color: var(--accent); }
.loader svg { width: 88px; height: 88px; stroke-width: 2.4; overflow: visible; }
.loader p { margin: 0; font: 500 13px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); }
.loader .ld-pot { fill: var(--bg); }
.loader .ld-ladle { transform-origin: 33px 42px; animation: ld-stir 1.6s ease-in-out infinite; }
.loader .ld-steam path { opacity: 0; animation: ld-steam 2.4s ease-out infinite; }
.loader .ld-steam path:nth-child(2) { animation-delay: .8s; }
.loader .ld-steam path:nth-child(3) { animation-delay: 1.6s; }
@keyframes ld-stir {
  0%, 100% { transform: rotate(-16deg) translateX(-3px); }
  50% { transform: rotate(16deg) translateX(3px); }
}
@keyframes ld-steam {
  0% { opacity: 0; transform: translateY(4px); }
  30% { opacity: .7; }
  100% { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { .loader .ld-ladle, .loader .ld-steam path { animation: none; } .loader .ld-steam path { opacity: .5; } }

/* Letter in het rondje optisch in het midden (de hoofdletters van Bebas staan iets te hoog) */
.acc-avatar { line-height: 1; padding-top: .13em; box-sizing: border-box; }
/* 'Van …'-balk boven de foto: niet onder de foto laten schuiven (de foto heeft op de iPhone een negatieve marge) */
.from-strip { margin: -12px -16px 12px; }
@media (min-width: 900px) { body[data-page=detail]:not(.cook) .from-strip { margin: 0; } }
/* Kookboek-vaandel: regel 1 'Kookboek van', regel 2 de naam, gecentreerd */
.book-flag .acc-flag { max-width: calc(100% - 56px); }
.book-flag .acc-flag span { text-align: center; font-size: 38px; line-height: 1; overflow-wrap: anywhere; text-wrap: balance; }
.book-flag .acc-flag small { display: block; font-size: .5em; letter-spacing: .14em; margin-bottom: 4px; opacity: .9; }

/* ---------- Mandje: kiezen wat op de boodschappenlijst komt ---------- */
.shop-pick { margin: 4px 0 14px; }
.shop-group { margin-top: 10px; }
.shop-group.off { opacity: .75; }
.shop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1.5px solid var(--text); }
.shop-head b { font: 500 13px var(--font-label); letter-spacing: .12em; text-transform: uppercase; }
.shop-all { font-size: 14px; }
.shop-part { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.sheet .shop-part input[type=checkbox] { width: 22px; height: 22px; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; -webkit-appearance: auto; appearance: auto; accent-color: var(--accent); flex: none; }
.shop-sub { margin: 10px 0 2px; font: 500 11px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); }
.shop-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 2px; border-bottom: 1px dashed var(--line); text-align: left; font-size: 16px; color: var(--muted); }
.shop-row.on { color: var(--text); }
.shop-row:not(.on) .shop-name { text-decoration: line-through; text-decoration-color: var(--muted); }
.shop-row .tick { width: 24px; height: 24px; flex: none; border: 1.5px solid var(--text); border-radius: 3px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.shop-row.on .tick { background: var(--accent); border-color: var(--accent); }
.shop-text { flex: 1; min-width: 0; }
.shop-text small { display: block; font-size: 12px; color: var(--mustard); text-decoration: none; }
.shop-stepper { margin: 0 !important; flex: none; }
.shop-stepper button { width: 30px; height: 32px; }
.shop-tools { display: flex; justify-content: flex-end; padding: 2px 0 0; }
.shop-head { flex-wrap: wrap; row-gap: 6px; }
/* Boodschappen-venster: 'Toevoegen' ook bovenaan, blijft in beeld bij scrollen */
.shop-sheet-head { position: sticky; top: -8px; z-index: 2; background: var(--bg); margin: -8px -16px 0; padding: 8px 16px; }
.shop-sheet-head .btn.small { width: auto; padding: 9px 16px; font-size: 14px; }
.shop-sheet-head .btn.small:disabled { opacity: .5; }
.shop-title { margin: 6px 0 0; font: 400 26px var(--font-title); letter-spacing: .06em; }
/* Kookboek van een ander: zoeken en filters, in te klappen zoals in je eigen overzicht */
.book-head { margin-bottom: 8px; }
.book-head .book-search { margin-bottom: 0; }
.book-head .chips { margin-top: 10px; }
@media (min-width: 700px) { .book-head .chips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; } }

/* ---------- Kookboek van een ander: vaste kop (vaandel, zoeken, filters), recepten scrollen eronder ---------- */
body[data-page=book] .topbar { background-color: var(--bg); }
.book-top {
  position: sticky; top: calc(var(--topbar-h, 72px) - 2px); z-index: 5;
  margin: -12px -16px 0; padding: 12px 16px 10px; background: var(--bg);
  box-shadow: 0 8px 10px -8px rgba(40, 20, 10, .28);
}
.book-top .book-flag { margin: 0 0 10px; }
.book-top .book-head { margin-bottom: 0; }
.book-page .book-cards { margin-top: 6px; }
@media (max-width: 699.98px) {
  .book-top .book-flag .acc-flag span { font-size: 28px; padding: 10px 24px 7px; }
  .book-top .book-flag .acc-flag::before, .book-top .book-flag .acc-flag::after { top: 10px; }
}
@media (min-width: 700px) {
  body[data-page=book] { --page-w: 1320px; --gutter: max(32px, calc((100% - var(--page-w)) / 2 + 32px)); }
  body[data-page=book] main { max-width: none; padding: 0 0 64px; }
  body[data-page=book] .topbar { padding-left: max(24px, calc((100% - var(--page-w)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--page-w)) / 2 + 32px)); }
  .book-page { max-width: none; }
  .book-top { margin: 0; padding: 18px var(--gutter) 14px; }
  .book-top .book-search { max-width: 620px; }
  .book-head .chips .chip { cursor: pointer; }
  .book-page .book-cards { margin-left: var(--gutter); margin-right: var(--gutter); }
  .book-page .book-cards:not(.mag) { max-width: 720px; margin-left: auto; margin-right: auto; }
}

/* Vaste kop van een kookboek: vaandel en filters elk met eigen achtergrond. Bij in-/uitklappen schuift
   het filtermenu onder het vaandel door en schuiven de recepten direct mee (geen lege band, geen sprong). */
.book-top { padding: 0 !important; background: none; box-shadow: none; pointer-events: none; }
.book-top > * { pointer-events: auto; }
.book-top .book-flag { position: relative; z-index: 2; margin: 0; padding: 12px 16px 10px; background: var(--bg); }
.book-top .book-head { position: relative; z-index: 1; padding: 0 16px 10px; background: var(--bg); box-shadow: 0 8px 10px -8px rgba(40, 20, 10, .28); }
.book-top .book-head.closed { padding-bottom: 2px !important; }
@media (min-width: 700px) {
  .book-top .book-flag { padding: 18px var(--gutter) 12px; }
  .book-top .book-head { padding: 0 var(--gutter) 14px; }
}

/* Menubalk: geen schermtitels, alleen de iconen (en Ricetta op het overzicht). De ruimte blijft, zodat de iconen rechts blijven. */
.topbar h1.title-hidden { visibility: hidden; }
/* Titel van het scherm Kookboeken, onder de dubbele streep */
.page-flag { display: flex; justify-content: center; margin: 10px 0 14px; }
.page-flag .acc-flag { margin-bottom: 0; }
.page-flag .acc-flag span { font-size: 34px; }
/* Eenvoudige kop onder de dubbele streep (Instellingen, Boodschappen) */
.page-title { margin: 8px 0 14px; font: 400 38px/1 var(--font-title); letter-spacing: .03em; color: var(--text); }

/* Kookstand: schakelknop Ingrediënten/Bereiding onder de dubbele streep, blijft staan bij scrollen */
.cook-switch[hidden] { display: none; }
.cook-switch {
  position: sticky; top: calc(var(--topbar-h, 60px) - 2px); z-index: 9;
  padding: 12px 16px 10px; background: var(--bg);
  box-shadow: 0 8px 10px -8px rgba(40, 20, 10, .28);
}
.cook-switch .segmented { max-width: 520px; margin: 0 auto; }
@media (min-width: 900px) { .cook-switch { display: none !important; } }
/* Schakelknop staat al op zijn vaste plek (2px onder de kopbalk geschoven, net als bij sticky), dus hij beweegt niet bij scrollen */
.cook-switch { margin-top: -2px; }

/* ---------- Inlogscherm: op je beginscherm zetten ---------- */
.install-card { background: var(--surface); outline: 3px double var(--teal); outline-offset: -6px; padding: 18px 20px 14px; margin: 0 0 22px; text-align: left; }
.install-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.install-head h3 { margin: 0; font: 400 24px/1 var(--font-title); letter-spacing: .04em; }
.os-tabs { display: flex; gap: 6px; }
.os-tabs button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 999px; font: 500 12px var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.os-tabs button.on { border-color: var(--text); color: var(--text); }
.os-tabs .os-logo { width: 15px; height: 15px; }
.install-card p.why { margin: 2px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.install-card p.why strong { color: var(--text); }
.install-card .install-or { margin: 12px 0 8px !important; }
.install-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.install-steps li { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 12px; font-size: 16px; line-height: 1.9; counter-increment: s; }
.install-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff8ee; display: grid; place-items: center; font: 400 15px/1 var(--font-title); padding-top: 2px; }
.install-steps .key { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; margin: 0 2px; }
.install-steps .key svg { width: 19px; height: 19px; }
.install-card .install-now { display: flex; align-items: center; justify-content: center; gap: 8px; }
.install-card .install-now[hidden] { display: none; }
.install-card .install-now svg { width: 20px; height: 20px; }
.install-later { display: block; margin: 12px auto 0; font-size: 14px; }
/* Geen kader; in te klappen. Kop 'Inloggen' boven de velden. */
.install-card { background: none; outline: 0; padding: 0; margin: 0 0 18px; border-bottom: 1px dashed var(--line); }
.install-card > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.install-card > summary::-webkit-details-marker { display: none; }
.install-card > summary h3 { flex: 1; margin: 0; font: 400 24px/1 var(--font-title); letter-spacing: .04em; }
.install-card .fold-chevron svg { width: 20px; height: 20px; transition: transform .2s; color: var(--accent); }
.install-card[open] .fold-chevron svg { transform: rotate(180deg); }
.install-body { padding: 2px 0 18px; }
.install-head { margin-bottom: 10px; }
.login-title { margin: 4px 0 4px; font: 400 32px/1 var(--font-title); letter-spacing: .04em; text-align: center; }
.login-title + .acc-lead { margin-top: 4px; }

/* Laptop: installatie-uitleg naast het inloggen */
.install-desktop .install-more { margin-top: 12px !important; }
.install-card .addr { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 6px 8px 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); max-width: 360px; }
.install-card .addr > span:first-child { flex: 1; }
.install-card .key { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; margin: 0 2px; }
.install-card .key svg { width: 19px; height: 19px; }
.install-card .addr .key { width: 26px; height: 26px; flex: none; }
.install-card .addr-note { font-size: 13px; color: var(--muted); margin: 6px 0 0 14px; }
@media (min-width: 900px) {
  body[data-page=welcome] main { max-width: 1080px; }
  .acc-welcome.acc-split:has(.install-card[open]) { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: start; justify-content: stretch; padding-top: 28px; }
  .acc-welcome.acc-split:has(.install-card[open]) > .welcome-logo { grid-column: 1 / -1; justify-self: center; margin-bottom: 30px; left: auto; transform: none; }
  .acc-split .install-card[open] { border-bottom: 0; margin: 0; padding-right: 64px; border-right: 1px dashed var(--line); min-width: 0; }
  .acc-split .install-card[open] > summary { padding-top: 0; }
  .acc-split .install-card[open] > summary h3 { font-size: clamp(22px, 2.6vw, 28px); white-space: nowrap; }
  .acc-split:has(.install-card[open]) .login-title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.07; }
  .acc-split .install-card p.why { font-size: 15px; line-height: 1.5; }
  .acc-split .install-card .install-now { display: inline-flex; width: auto; padding: 12px 22px; }
  .acc-split .install-card .install-now[hidden] { display: none; }
  .acc-split:has(.install-card[open]) .login-col { min-width: 0; padding-top: 0; }
  .acc-split:has(.install-card[open]) .login-title,
  .acc-split:has(.install-card[open]) .acc-lead,
  .acc-split:has(.install-card[open]) .acc-request,
  .acc-split:has(.install-card[open]) .acc-note { text-align: left; }
  .acc-split:has(.install-card[open]) .login-title { margin-top: 0; }
  .acc-split:has(.install-card[open]) .acc-request .btn { justify-self: start; }
}

/* Wat is er nieuw: melding en wijzigingsregister */
.news h4, .change-body h4 { margin: 16px 0 4px; font: 500 13px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); }
.news ul, .change-body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.news li, .change-body li { line-height: 1.45; font-size: 15px; }
.news li::marker, .change-body li::marker { color: var(--accent); }
.news-intro { margin: 6px 0 0; color: var(--muted); }
.news-outro { margin: 16px 0 0; font-weight: 600; }
.news-sheet .sheet { max-width: 560px; }
.news-later { text-align: center; margin-top: 10px; }
.changelog { display: grid; }
.change { border-top: 1px dashed var(--line); }
.change:first-child { border-top: 0; }
.change > summary { list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 10px 0; cursor: pointer; }
.change > summary::-webkit-details-marker { display: none; }
.change > summary small { flex: 1; color: var(--muted); font-size: 13px; }
.change .fold-chevron svg { width: 18px; height: 18px; color: var(--accent); transition: transform .2s; }
.change[open] .fold-chevron svg { transform: rotate(180deg); }
.change-body { padding: 0 0 12px; }
.change-body h4:first-child { margin-top: 0; }
.nowrap { white-space: nowrap; }
.news-intro, .news-later { text-wrap: pretty; }

/* Recept bewerken (1.2) */
.ed { padding: 0 0 60px; }
.ed input, .ed textarea { font: inherit; font-size: 16px; color: var(--text); letter-spacing: 0; text-transform: none; }
.ed input:focus, .ed textarea:focus { outline: none; border-color: var(--accent); }
.ed-photo { position: relative; display: block; margin: 0 -16px; aspect-ratio: 16/10; background: var(--surface); cursor: pointer; overflow: hidden; border-bottom: 1px dashed var(--line); }
.ed-photo-img { position: absolute; inset: 0; }
.ed-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ed-photo .ph-btns { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; line-height: 1; }
.ed-photo .ph-btns > .ph-btn { box-sizing: border-box; height: 36px; margin: 0; vertical-align: top; -webkit-appearance: none; appearance: none; border: 0; line-height: 1; }
.ed-photo .ph-btn > span { line-height: 1; padding-top: 2px; }
.ed-photo .ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 14px; border-radius: 999px; background: rgba(30, 20, 12, .72); color: #fff; font: 500 13px var(--font-label); letter-spacing: .08em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ed-photo button.ph-btn { padding: 0; width: 36px; margin: 0; }
.ed-photo .ph-btn[hidden] { display: none; }
.ed-photo .ph-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ed-title { margin: 18px 0 0; }
.ed-title textarea.ttl.plain { display: block; width: 100%; border: 0; border-bottom: 1.5px solid var(--text); background: none; padding: 4px 0 6px; font: 400 34px/1.05 var(--font-title); letter-spacing: .03em; border-radius: 0; resize: none; overflow: hidden; color: var(--text); }
.ed-title textarea.desc.plain { display: block; width: 100%; font: 16px/1.4 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; border: 0; border-radius: 0; background: none; padding: 10px 0 8px; color: var(--muted); resize: none; overflow: hidden; }
.ed-sec { margin-top: 28px; }
.ed-sec > h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font: 400 24px/1 var(--font-title); letter-spacing: .05em; }
.ed-sec > h3::after { content: ''; flex: 1; border-bottom: 1px dashed var(--line); transform: translateY(-6px); }
.ed-sub { display: block; margin: 16px 0 7px; font: 500 12px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); }
.ed-sec > h3 + .ed-sub, .ed-sec > h3 + input + .ed-sub { margin-top: 0; }
.ed .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed .stat { background: var(--surface); border: 1.5px solid var(--line); padding: 8px 10px 4px; display: grid; gap: 0; cursor: text; }
.ed .stat:focus-within { border-color: var(--accent); }
.ed .stat > span { font: 500 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); }
.ed .stat b { display: flex; align-items: baseline; gap: 4px; font-weight: 400; }
.ed .stat input { width: 100%; min-width: 0; border: 0; background: none; padding: 0; font: 400 28px/1.15 var(--font-title); letter-spacing: .02em; -moz-appearance: textfield; }
.ed .stat input::-webkit-outer-spin-button, .ed .stat input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ed .stat b input { width: 2.4ch; flex: 0 1 auto; }
.ed .stat b small { font: 500 12px var(--font-label); letter-spacing: .08em; color: var(--muted); }
.ed .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ed input.chip-new { border-style: dashed; border-color: var(--accent); color: var(--text); background: none; width: 7.2em; padding: 6px 12px; font: 500 15px var(--font-label); text-transform: uppercase; letter-spacing: .06em; border-radius: 3px; transition: width .15s; }
.ed input.chip-new::placeholder { color: var(--accent); opacity: 1; }
.ed input.chip-new:focus { width: 200px; border-style: solid; background: var(--surface); text-transform: none; letter-spacing: 0; font: 15px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.ed input.chip-new:focus::placeholder { color: var(--muted); }
.ed .chip-input { align-self: stretch; width: 170px; border: 1.5px solid var(--accent); background: var(--surface); padding: 6px 10px; font-size: 15px; border-radius: 3px; }
.ed .diet-check { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.ed .diet-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ed .diet-check.on { background: #DDF1E4; border-color: #008C44; box-shadow: inset 0 0 0 1px #008C44; }
.ed .diet-check .diet-on { display: none; width: 16px; height: 16px; margin-left: 2px; color: #008C44; }
.ed .diet-check.on .diet-on { display: block; }
.ed .diet-check .diet-on svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ed .diet-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ed .switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; }
.ed .switch-row > span:first-child { flex: 1; display: grid; gap: 2px; }
.ed .switch-row b { font-size: 15px; }
.ed .switch-row small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.ed .switch { position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); transition: background .15s; }
.ed .switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.ed .switch:has(input:checked) { background: var(--accent); }
.ed .switch:has(input:checked)::after { transform: translateX(18px); }
.ed .switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ed textarea.grow:not(.plain) { display: block; width: 100%; resize: none; overflow: hidden; line-height: 1.55; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 3px; }
.ed .plain { display: block; width: 100%; background: var(--surface); border: 1.5px solid var(--line); padding: 11px 14px; border-radius: 3px; }
.ed textarea.plain { resize: none; overflow: hidden; line-height: 1.5; }
.ed .hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.ed .hint code { background: var(--accent-soft); color: var(--accent); padding: 0 5px; border-radius: 3px; font-size: 12px; }
.ed .edit-links { display: flex; flex-wrap: wrap; gap: 7px; }
.ed .ed-del { display: block; margin: 36px auto 0; color: var(--accent); font: 500 14px var(--font-label); letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; }
@media (min-width: 900px) {
  body[data-page=edit] main { max-width: 1180px; }
  .ed { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0 56px; align-items: start; padding-top: 22px; }
  .ed-side { position: sticky; top: calc(var(--topbar-h) + 18px); }
  .ed-photo { margin: 0; aspect-ratio: 4/3; border: 0; }
  .ed-main > :first-child .ed-sec, .ed-main > .ed-sec:first-child { margin-top: 0; }
  .ed-two { display: grid; grid-template-columns: 1fr 1.35fr; gap: 28px; align-items: start; }
}

/* Fout melden of idee insturen */
.fb-box { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.fb-open { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.fb-open svg, .fb-kinds svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fb-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.fb-kinds button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1.5px solid var(--line); background: var(--surface); font: 500 13px var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-radius: 3px; }
.fb-kinds button svg { width: 24px; height: 24px; }
.fb-kinds button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.acc-sheet #fbText { width: 100%; font: inherit; font-size: 16px; line-height: 1.45; padding: 10px 12px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 3px; resize: vertical; }
.fb-head { margin: 18px 0 8px; font: 500 13px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); display: flex; gap: 8px; align-items: baseline; }
.fb-head small { font: 13px -apple-system, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--muted); }
.fb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fb-item { background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; }
.fb-item.done { opacity: .55; }
.fb-item.done p { text-decoration: line-through; text-decoration-color: var(--line); }
.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.fb-meta b { color: var(--text); font-size: 14px; }
.fb-tag { font: 500 11px var(--font-label); letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; color: #fff; background: var(--accent); }
.fb-tag.fb-idee { background: var(--teal); }
.fb-item p { margin: 6px 0 4px; font-size: 15px; line-height: 1.45; color: var(--text); }
.fb-device { display: block; color: var(--muted); font-size: 12px; }
.fb-actions { display: flex; gap: 16px; margin-top: 6px; }
.fb-actions .link { font-size: 14px; }
.book .cover:has(img:not(.in):not([hidden])) { animation: cover-pulse 1.2s ease-in-out infinite alternate; }
@keyframes cover-pulse { from { background: #ecdfca; } to { background: #f4ead9; } }
@media (prefers-reduced-motion: reduce) { .book .cover { animation: none !important; } }

/* Feestbanners: Kerst (hulst) en Sinterklaas (Sint op paard, piet aan de band) */
.holly, .sint-svg, .piet-svg { stroke: none; stroke-width: 1; }
.bon-appetit.feest { padding-top: 80px; padding-bottom: 90px; }
body.cook .bon-appetit.feest { padding: 80px 0 90px; }
.feest .ba-ribbon { animation: none; }
.feest-kerst .ba-band { padding: 12px 34px 9px; }
.holly { position: absolute; z-index: 2; width: 74px; height: 50px; top: -26px; left: -30px; transform: rotate(-12deg); }
.holly.r { left: auto; right: -30px; transform: scaleX(-1) rotate(-12deg); }
.feest-kerst .ba-band::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.55) 1px, transparent 1.6px); background-size: 14px 12px; opacity: .5; pointer-events: none; }
.sint { position: absolute; z-index: 2; bottom: calc(100% - 13px); left: 0; width: 84px; height: 80px; animation: sint-walk 9s linear infinite; }
.sint-svg { width: 100%; height: 100%; animation: sint-bob .5s ease-in-out infinite alternate; }
.legs-a { animation: legs .5s ease-in-out infinite alternate; transform-origin: 50% 61%; }
.legs-b { animation: legs .5s ease-in-out infinite alternate-reverse; transform-origin: 50% 61%; }
@keyframes legs { from { transform: skewX(10deg); } to { transform: skewX(-10deg); } }
@keyframes sint-bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes sint-walk { 0% { left: -10px; transform: scaleX(1); } 48% { left: calc(100% - 74px); transform: scaleX(1); } 50% { left: calc(100% - 74px); transform: scaleX(-1); } 98% { left: -10px; transform: scaleX(-1); } 100% { left: -10px; transform: scaleX(1); } }
.piet { position: absolute; z-index: 2; top: calc(100% - 6px); right: 30px; width: 46px; height: 80px; transform-origin: 50% 4px; animation: piet-swing 2.4s ease-in-out infinite alternate; }
.piet-svg { width: 100%; height: 100%; overflow: visible; }
.piet-legs { transform-origin: 50% 66%; animation: piet-kick 1.2s ease-in-out infinite alternate; }
@keyframes piet-swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes piet-kick { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .sint, .sint-svg, .legs-a, .legs-b, .piet, .piet-legs { animation: none !important; } .sint { left: 12%; } }
.feest .ba-band { font-size: clamp(24px, 6.8vw, 32px); }
@media (max-width: 699px) { .feest-sint .ba-band { font-size: clamp(20px, 5.6vw, 26px); padding: 9px 18px 7px; } }

/* Inlogscherm: groot woordmerk Ricetta, zoals in de menubalk (rood met glans) */
.welcome-logo {
  position: relative; left: 50%; transform: translateX(-50%); margin: 0 0 18px; align-self: flex-start; width: max-content; padding-left: .05em; text-align: center; font: 400 clamp(84px, 27vw, 150px)/.9 var(--font-title); letter-spacing: .05em;
  background: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 32%, #f0624f 46%, var(--accent) 60%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: .06em;
}
@media (min-width: 900px) { .welcome-logo { font-size: 160px; } }

.acc-role.test-role { background: var(--teal); color: #fff; }
#testRemove { margin-top: 8px; }

/* Beheerder: mislukte imports */
.fails { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.fails li { position: relative; background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 4px; }
.fail-top { display: flex; align-items: baseline; gap: 8px; padding-right: 64px; }
.fail-top b { font-size: 16px; word-break: break-all; }
.fail-n { font: 400 20px/1 var(--font-title); color: var(--accent); }
.fail-why { display: flex; flex-wrap: wrap; gap: 5px; }
.fail-tag { font: 500 11px var(--font-label); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; background: var(--accent-soft); color: var(--accent); }
.fail-tag.fail-norecipe { background: #f3e9cf; color: var(--mustard); }
.fail-tag.fail-iphone { background: var(--text); color: var(--bg); }
.fails small { color: var(--muted); font-size: 13px; }
.fail-url { font-size: 13px; color: var(--accent); word-break: break-all; }
.fail-clear { position: absolute; top: 10px; right: 12px; font-size: 13px; }

/* Husselknop (Verras me): twee vierkantjes met draaiende pijltjes, rechts naast het zoekveld */
.list-tools { align-items: center; }
.shuf-btn { margin-left: auto; width: 50px; height: 50px; flex: none; place-items: center; border-radius: 50%; color: var(--accent); }
.shuf-btn:hover, .shuf-btn:active { background: var(--accent-soft); }
.shuf { width: 38px; height: 38px; overflow: visible; }
.shuf-arrows path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.shuf-arrows path.head { fill: currentColor; stroke-width: 1.2; }
.shuf-arrows { transform-origin: 24px 24px; }
.shuf .sq { stroke: currentColor; stroke-width: 2.2; transition: transform .6s cubic-bezier(.5, 0, .3, 1); }
.shuf .sq-a { fill: var(--bg); }
.shuf .sq-b { fill: currentColor; }
.swapped > .shuf .sq-a { transform: translate(6px, 6px); fill: currentColor; }
.swapped > .shuf .sq-b { transform: translate(-6px, -6px); fill: var(--bg); }
.spin > .shuf .shuf-arrows { animation: shuf-spin .7s cubic-bezier(.5, 0, .3, 1); }
.mag-filler .shuf { width: 66px; height: 66px; }
.mag-filler .shuf .sq-a { fill: var(--surface); }
@keyframes shuf-spin { to { transform: rotate(360deg); } }
@media (min-width: 700px) { .book-head .list-tools .search { max-width: 620px; } }
@media (prefers-reduced-motion: reduce) { .spin > .shuf .shuf-arrows { animation: none; } .shuf .sq { transition: none; } }

/* Ricette van anderen: zoeken en filters bovenaan, precies zoals in je eigen overzicht; het vaandel scrolt mee met de recepten */
body[data-page=book] .list-head { position: sticky; top: calc(var(--topbar-h, 72px) - 2px); z-index: 5; background: var(--bg); box-shadow: 0 8px 10px -8px rgba(40, 20, 10, .28); }
body[data-page=book] .list-head.closed { box-shadow: none; }
@media (max-width: 699.98px) { body[data-page=book] .list-head { margin: -12px -16px 12px; padding: 14px 16px 10px; } }
@media (min-width: 700px) { body[data-page=book] .list-head { margin: 0; padding: 18px var(--gutter) 14px; } }
.book-page > .book-flag { margin: 10px 0 18px; }
@media (min-width: 700px) { .book-page > .book-flag { margin: 26px 0 22px; } }

/* Ricette van anderen (tijdschrift): + Bewaar op elke kaart en bij het uitgelichte recept */
.mag-keep.card { position: absolute; z-index: 2; top: 12px; right: 12px; background: #fffdf8; box-shadow: 0 2px 6px rgba(43, 29, 20, .18); }
.mag-keep.card.keep-done { background: #e6f3ea; }
.mag-keep.card:hover { background: var(--accent); color: #fff; }
/* Bekijk recept en Bewaar: twee even grote knoppen naast elkaar */
.mag-hero .mh-actions { display: flex; align-items: stretch; gap: 10px; }
.mag-hero .mh-actions > .btn { border-radius: 3px; flex: 0 0 auto; width: 190px; min-width: 0; aspect-ratio: auto; height: auto; margin: 0; padding: 12px 18px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; }
.mag-hero .mh-actions > .btn.ghost { border: 1.5px solid var(--accent); background: transparent; color: var(--accent); }
.mag-hero .mh-actions > .btn.ghost:hover { background: var(--accent-soft); }
.mag-hero .mh-actions > .btn.done { border-color: #2e7d4f; color: #2e7d4f; }
.mh-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mc-photo { position: relative; }

/* ---------- Menu's ---------- */
body[data-page=menus] main { max-width: 640px; }
.menus-btn svg { fill: none; }
.mx { padding-bottom: 60px; }
.mx-intro { text-align: center; color: var(--muted); margin: 0 0 18px; }
.mx-new { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 0 22px; }
.mx-new .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.mx-new .chip svg { width: 16px; height: 16px; stroke-width: 1.8; }
.mx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mx-card { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--surface); outline: 3px double var(--teal); outline-offset: -6px; color: var(--text); }
.mx-card.past { opacity: .7; }
.mx-card .covers { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; width: 84px; height: 84px; flex: none; }
.mx-card .covers img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mx-card b { display: block; font: 400 24px/1.05 var(--font-title); letter-spacing: .02em; }
.mx-card small { color: var(--muted); display: block; margin-top: 3px; }
.mx-tag { display: block; font: 500 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); margin-bottom: 2px; }
.mx-empty p { margin: 0; color: var(--muted); text-align: center; }
/* De menukaart */
.mk-wrap { padding: 14px 6px 0; }
.mk { position: relative; max-width: 560px; margin: 0 auto; background: #fffdf8; padding: 34px 22px 30px; text-align: center; outline: 1.5px solid #c9a24a; outline-offset: -10px; box-shadow: 0 8px 24px rgba(43, 29, 20, .12); }
.mk::before { content: ''; position: absolute; inset: 16px; border: 1px solid #e8d9a8; pointer-events: none; }
.mk-deco { position: absolute; width: 120px; height: 80px; top: -26px; left: -26px; transform: rotate(-14deg); pointer-events: none; }
.mk-deco.r { left: auto; right: -26px; transform: scaleX(-1) rotate(-14deg); }
.mk-kicker { font: 500 12px var(--font-label); letter-spacing: .3em; text-transform: uppercase; color: var(--mustard); }
.mk h1 { font: 400 44px/1 var(--font-title); letter-spacing: .04em; margin: 6px 0; color: var(--accent); overflow-wrap: anywhere; text-wrap: balance; }
.mk-sub { color: var(--muted); font-style: italic; margin: 0 0 4px; }
.mk-orn { color: #c9a24a; letter-spacing: .6em; margin: 14px 0; }
.mk-course { margin: 18px 0 0; }
.mk-course h4 { margin: 0 0 6px; font: 500 12px var(--font-label); letter-spacing: .28em; text-transform: uppercase; color: var(--mustard); }
.mk-dish { display: flex; align-items: center; gap: 12px; text-align: left; padding: 7px 0; max-width: 380px; margin: 0 auto; color: var(--text); }
.mk-dish img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fffdf8, 0 0 0 4px #e8d9a8; }
.mk-dish b { display: block; font: 400 22px/1.05 var(--font-title); letter-spacing: .03em; }
.mk-dish small { color: var(--muted); font-size: 13px; }
.mk-none { color: var(--muted); margin: 18px 0; }
.mk-actions { max-width: 560px; margin: 18px auto 0; display: grid; gap: 10px; }
.mk-actions .btn { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.mk-actions .btn svg { width: 20px; height: 20px; fill: none; }
.mk-actions .btn[disabled] { opacity: .45; }
@media (min-width: 900px) {
  body[data-page=menus]:has(.mx-wide) main { max-width: 1120px; }
  .mx-wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding-top: 10px; }
  .mx-wide .mk-actions { margin-top: 30px; }
}
@media (prefers-color-scheme: dark) { .mk { color: #2b1d14; } .mk-dish { color: #2b1d14; } }
/* Samenstellen */
.ms { padding-bottom: 60px; }
.ms-top { display: grid; gap: 12px; }
.ms-top input#msTitle { width: 100%; font: 400 32px/1.1 var(--font-title); letter-spacing: .03em; border: 0; border-bottom: 1.5px solid var(--text); background: none; padding: 4px 0; color: var(--text); border-radius: 0; }
.ms-kinds { flex-wrap: wrap; }
.ms-kinds .chip { cursor: pointer; }
.ms-kinds .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.ms-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-stat label { background: var(--surface); border: 1.5px solid var(--line); padding: 8px 10px 6px; display: grid; gap: 4px; }
.ms-stat label > span:first-child { font: 500 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); }
.ms-stat input[type=date] { border: 0; background: none; font: 400 22px var(--font-title); color: var(--text); padding: 0; width: 100%; min-height: 30px; }
.ms-pers { display: inline-flex; align-items: center; justify-self: start; }
.ms-pers b { min-width: 34px; text-align: center; font: 400 22px var(--font-title); }
.ms h3 { display: flex; align-items: baseline; gap: 10px; font: 400 22px/1 var(--font-title); letter-spacing: .05em; margin: 24px 0 10px; }
.ms h3::after { content: ''; flex: 1; border-bottom: 1px dashed var(--line); }
.ms-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.ms-row img { width: 44px; height: 44px; object-fit: cover; flex: none; }
.ms-row b { flex: 1; font-weight: 600; min-width: 0; }
.ms-x { color: var(--accent); font-size: 24px; line-height: 1; padding: 4px 8px; }
.ms-add { width: 100%; padding: 11px; border: 1.5px dashed var(--accent); color: var(--accent); font: 500 13px var(--font-label); letter-spacing: .1em; text-transform: uppercase; background: none; border-radius: 3px; }
.ms-more { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 24px; }
.ms-more span { color: var(--muted); font-size: 14px; margin-right: 4px; }
.ms-more .chip { border-style: dashed; cursor: pointer; }
.ms .ed-del { display: block; margin: 36px auto 0; color: var(--accent); font: 500 14px var(--font-label); letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; }
.mp-pick li { padding: 0; }
.mp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 2px; text-align: left; }
.mp-row b { flex: 1; }
.mp-row .tick { width: 28px; height: 28px; flex: none; border: 1.5px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font-weight: 700; }
.mp-row.on .tick { background: var(--accent); color: #fff; }
.mx-shop-head { margin-top: 14px; }
/* Menukaart: alles gecentreerd (fotootje boven de naam), hulst kleiner en binnen de kaart */
.mk-dish { flex-direction: column; justify-content: center; gap: 6px; text-align: center; max-width: none; padding: 8px 0 10px; }
.mk-dish img { width: 64px; height: 64px; }
.mk-dish small { display: block; margin-top: 3px; }
.mk-course + .mk-course { margin-top: 22px; }
.mk-deco { width: 86px; height: 58px; top: -14px; left: -12px; }
.mk-deco.r { right: -12px; }
.mk { padding-top: 40px; }
@media (min-width: 900px) { .mk-deco { width: 110px; height: 74px; top: -22px; left: -22px; } .mk-deco.r { right: -22px; } }

/* Zoekvensters (recept kiezen): vaste hoogte, zodat zoekveld en resultaten boven het toetsenbord blijven */
.sheet.tall { height: 88vh; height: 88dvh; display: flex; flex-direction: column; }
.sheet.tall .pick { flex: 1; max-height: none; min-height: 0; }
/* Menu's: vier gelijke vierkantjes (Safari rekt de rijen anders op naar de foto's) */
.mx-card .covers { grid-template-columns: repeat(2, 40.5px); grid-template-rows: repeat(2, 40.5px); overflow: hidden; }
.mx-card .covers img { width: 40.5px; height: 40.5px; min-width: 0; min-height: 0; aspect-ratio: 1; object-fit: cover; }
.mx-shop-head small { color: var(--muted); font-size: 13px; }
.mx-shop-title { display: grid; min-width: 0; flex: 1; }
.mx-shop-head { margin-top: 14px; }

/* ---------- Tabbladen ---------- */
.tabbar[hidden], .toptabs[hidden] { display: none !important; }
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--tabs, 4), 1fr); background: var(--bg); box-shadow: 0 -6px 14px -10px rgba(40, 20, 10, .35); padding: 6px 4px calc(4px + var(--safe-bottom, 0px)); }
.tabbar::before { content: ''; position: absolute; left: 0; right: 0; top: -5px; height: 3px; border-top: 1px solid var(--teal); border-bottom: 1px solid var(--teal); background: var(--bg); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; color: var(--muted); font: 500 11px var(--font-label); letter-spacing: .1em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
.tabbar a svg, .toptabs a svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--accent); }
.tabbar a.on::after { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; background: var(--accent); }
.tb-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/18px -apple-system, system-ui, sans-serif; letter-spacing: 0; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.tb-badge[hidden] { display: none; }
body.has-tabbar main { padding-bottom: calc(96px + var(--safe-bottom, 0px)) !important; }
body.has-tabbar .fab { bottom: calc(84px + var(--safe-bottom, 0px)); }
body.no-fab-btn .fab { display: none; }
.toptabs { display: none; }
@media (min-width: 700px) {
  .tabbar { display: none !important; }
  body.has-tabbar main { padding-bottom: 64px !important; }
  .toptabs:not([hidden]) { display: flex; gap: 2px; align-self: center; margin-left: 26px; margin-right: auto; }
  .topbar:has(.toptabs:not([hidden])) h1 { margin-right: 0 !important; }
  .toptabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--muted); font: 500 15px var(--font-label); letter-spacing: .1em; text-transform: uppercase; border-radius: 3px; white-space: nowrap; }
  .toptabs a svg { width: 20px; height: 20px; }
  .toptabs a:hover { background: var(--accent-soft); color: var(--accent); }
  .toptabs a.on { color: var(--accent); }
  .toptabs a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -12px; height: 3px; background: var(--accent); }
  .toptabs .tb-badge { position: static; box-shadow: none; }
}
@media (min-width: 700px) and (max-width: 1100px) { .toptabs a span:not(.tb-badge) { display: none; } .toptabs a { padding: 9px 10px; } }
/* iPad/laptop: op alle tabbladen dezelfde menubalk als op het overzicht (zelfde breedte en logo) */
@media (min-width: 700px) {
  body.has-tabbar { --page-w: 1320px; }
  body.has-tabbar .topbar { padding-left: max(24px, calc((100% - var(--page-w)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--page-w)) / 2 + 32px)); background-color: var(--bg); }
  body.has-tabbar .topbar-actions { align-items: center; gap: 6px; }
}
/* Tabbalk: rood streepje knopbreed tussen de twee turquoise lijnen; bolletje bij Boodschappen klein en rond */
.tabbar::before { top: -7px; height: 7px; box-sizing: border-box; }
.tabbar a.on::after { top: -12px; left: 0; right: 0; height: 5px; }
.tabbar .tb-badge { position: absolute; top: 0; left: calc(50% + 6px); right: auto; width: auto; min-width: 18px; height: 18px; padding: 0 5px; transform: none; }
.tabbar a.on:first-child::after { left: -4px; } .tabbar a.on:last-child::after { right: -4px; }
/* iPad/laptop: in iemands Ricette dezelfde menubalk als bij alle Ricette (groot logo en tabbladen, geen terugknop) */
@media (min-width: 700px) {
  body.has-tabbar[data-page=book] #backBtn, body.has-tabbar[data-route=settings] #backBtn { display: none; }
  body.has-tabbar[data-page=book] .topbar h1, body.has-tabbar[data-route=settings] .topbar h1, body.has-tabbar[data-route=gebruikers] .topbar h1 {
    visibility: visible; flex: 0 1 auto; margin-right: 0; padding-right: .3em;
    font: 400 80px/.95 var(--font-title); letter-spacing: .05em; text-transform: uppercase;
    background: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 32%, #f0624f 46%, var(--accent) 60%, var(--accent-dark) 100%);
    background-size: 125% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}

/* E-mailadres bij Account en voor de beheerder */
.acc-email { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 4px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); }
.acc-email span { font: 500 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); }
.acc-email b { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.acc-email b i { color: var(--muted); font-weight: 400; }
.acc-email .link { font-size: 14px; }
.users-mail { display: block; font-size: 13px; color: var(--accent); overflow-wrap: anywhere; }
.users-nomail { display: block; color: var(--muted); font-style: italic; }
.fb-mail { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--accent); overflow-wrap: anywhere; }
.em-remove { display: block; margin: 12px auto 0; }
.sheet-backdrop { z-index: 50; }   /* vensters boven de tabbalk */
.acc-email { flex-wrap: wrap; row-gap: 2px; }
.acc-email span { flex: 0 0 100%; }
.acc-email b { font-size: 16px; }
.settings-btn.on { background: var(--accent-soft); }

/* ---------- Instellingen: lagen (iPhone) en zijbalk (laptop) ---------- */
.st-wrap { padding-bottom: 30px; }
.st-wrap .st-main:empty { display: none; }
.st-root .st-main { display: none; }
.st-in .st-side { display: none; }
.st-new, .st-me { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.st-new { padding: 12px 14px; margin: 0 0 14px; background: var(--surface); outline: 1.5px solid #c9a24a; outline-offset: -5px; }
.st-new-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.st-new-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.st-new b { display: block; font: 400 20px/1.1 var(--font-title); letter-spacing: .04em; text-transform: uppercase; }
.st-tx small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.st-chev { color: var(--muted); display: grid; margin-left: auto; }
.st-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-new .st-chev { color: var(--accent); }
.st-me { padding: 14px; background: var(--surface); outline: 3px double var(--teal); outline-offset: -6px; margin-bottom: 18px; }
.st-av { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 400 28px var(--font-title); flex: none; }
.st-av svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.st-me b { display: block; font: 400 26px/1 var(--font-title); letter-spacing: .03em; text-transform: uppercase; }
.st-me .st-tx { flex: 1; min-width: 0; }
.st-me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.st-list > li + li { border-top: 1px dashed var(--line); }
.st-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: var(--text); text-decoration: none; width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
div.st-row { cursor: default; }
.st-ic { width: 40px; height: 40px; border-radius: 50%; color: var(--accent); display: grid; place-items: center; flex: none; transition: background .15s; }
.st-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-row .st-tx { flex: 1; min-width: 0; }
.st-row b { display: block; font: 500 16px/1.2 var(--font-label); letter-spacing: .06em; text-transform: uppercase; }
.st-right { display: flex; align-items: center; margin-left: auto; flex: none; }
.st-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font: 600 12px/20px -apple-system, system-ui, sans-serif; text-align: center; }
.st-row.on b { color: var(--accent); }
.st-row.on .st-ic { background: var(--accent-soft); }
@media (hover: hover) { a.st-row:hover .st-ic, button.st-row:hover .st-ic, label.st-row:hover .st-ic { background: var(--accent-soft); } }
.st-row.stack { flex-wrap: wrap; }
.st-row.stack .st-right { flex-basis: 100%; padding-left: 52px; margin-top: 4px; }
.seg3 { display: inline-flex; border: 1.5px solid var(--text); border-radius: 3px; overflow: hidden; }
.st-row.stack .seg3 { display: flex; width: 100%; }
.seg3 button { flex: 1; padding: 7px 10px; border: 0; background: none; color: var(--text); font: 500 13px var(--font-label); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.seg3 button.on { background: var(--text); color: var(--bg); }
.st-row.soon { opacity: .55; }
.soon-tag { font: 500 10px var(--font-label); letter-spacing: .1em; color: var(--mustard); border: 1px solid currentColor; padding: 1px 5px; border-radius: 2px; margin-left: 6px; vertical-align: 2px; }
.st-sec { margin: 22px 0 8px; font: 500 12px var(--font-label); letter-spacing: .16em; text-transform: uppercase; color: var(--mustard); }
.st-ver { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.st-h { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.st-h-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.st-h-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.st-h h2 { margin: 0; font: 400 34px/1 var(--font-title); letter-spacing: .03em; text-transform: uppercase; }
.st-intro { color: var(--muted); margin: 6px 0 4px; }
.st-crumb { font: 500 12px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 0 8px; }
.st-crumb a { color: var(--accent); text-decoration: none; }
.st-card { margin-top: 14px; border-radius: 0; }
.st-note { margin: 10px 2px 0; }
.st-changelog { margin-top: 14px; }
.st-main > .st-list:first-of-type { margin-top: 14px; }
.st-main .version { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
@media (min-width: 700px) {
  body[data-route=settings] main { max-width: none; }
  .st-wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; max-width: 1180px; margin: 0 auto; padding: 6px 8px 60px; }
  .st-wrap .st-side, .st-root .st-main { display: block; }
  .st-side { position: sticky; top: calc(var(--head-h, 110px) + 16px); align-self: start; }
  .st-me { margin-bottom: 14px; }
  .st-main { max-width: 760px; }
  .st-row.stack .seg3 { max-width: 380px; }
}
.st-users { margin-top: 14px; }
.st-users .card-box { border-radius: 0; }
.st-users h3 { font: 400 22px/1.1 var(--font-title); letter-spacing: .03em; text-transform: uppercase; margin: 0 0 6px; }
.st-fold > summary { list-style: none; }
.st-fold > summary::-webkit-details-marker { display: none; }
.st-fold-chev svg { transition: transform .2s; }
.st-fold[open] .st-fold-chev svg { transform: rotate(90deg); }
.st-fold[open] > summary .st-ic { background: var(--accent-soft); }
.st-fold[open] > summary b { color: var(--accent); }
.st-fold-body { padding: 2px 16px 16px 66px; }
.st-fold-body > p:first-child { margin-top: 0; }
.st-fold-body .req-box { background: none; border: 0; padding: 0; }
.st-users .fb-head { display: none; }
@media (max-width: 699px) { .st-fold-body { padding-left: 16px; } }
.st-subhead { margin: 26px 0 6px; padding-top: 18px; border-top: 1px dashed var(--line); font: 500 13px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); }

/* iPad en laptop: overal de menubalk met het logo (behalve in de kookstand) */
@media (min-width: 700px) {
  body.brand-head .topbar h1 {
    visibility: visible; flex: 0 1 auto; margin-right: 0; padding-right: .3em;
    font: 400 80px/.95 var(--font-title); letter-spacing: .05em; text-transform: uppercase;
    background: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 32%, #f0624f 46%, var(--accent) 60%, var(--accent-dark) 100%);
    background-size: 125% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  body.brand-head #closeBtn { display: none; }
  /* Kookstand: geen menu, geen terugpijl; rechts porties, koksmuts en een kruisje. Geen turquoise lijnen. */
  body.cook #backBtn { display: none; }
  body.cook .topbar { border-bottom: 0; }
  body.cook #cookTabs { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  body.cook .cook-tabs .cook-stepper { display: flex; flex: none; margin: 0; height: 36px; }
  .cook-close { display: none; }
  body.cook .cook-close { display: grid; }
}
@media (max-width: 699px) { .cook-close { display: none; } }

/* Altijd Ricetta in de kopbalk (ook op de iPhone); terug gaat via het kruimelpad boven de inhoud */
body.brand-head #backBtn, body.brand-head #closeBtn { display: none !important; }
body.brand-head .topbar h1 {
  visibility: visible; flex: 0 1 auto; margin-right: auto; padding-right: .3em; cursor: pointer;
  font: 400 40px/1 var(--font-title); letter-spacing: .05em; text-transform: uppercase;
  background: linear-gradient(100deg, var(--accent-dark) 0%, var(--accent) 32%, #f0624f 46%, var(--accent) 60%, var(--accent-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.crumb-back { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin: 0 0 10px; padding: 4px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font: 500 13px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.crumb-back svg { width: 15px; height: 15px; align-self: center; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.crumb-back b { font-weight: 500; }
.crumb-back span { color: var(--muted); }
.photo-col .crumb-photo { margin: 16px 0 -4px; }
.part-ingr .crumb-ingr { display: none; }
.crumb-edit { margin: 14px 0 2px; }
.crumb-top { margin: 2px 0 10px; }
body.cook .crumb-back { display: none !important; }
@media (min-width: 700px) { .crumb-back { font-size: 14px; } .crumb-st { display: none; } }
@media (min-width: 900px) {
  .photo-col .crumb-photo { display: none; }
  .part-ingr .crumb-ingr { display: flex; margin: 0 0 18px; }
}
@media (min-width: 700px) { body.brand-head .topbar h1 { font-size: 80px; line-height: .95; background-size: 125% 100%; } }
/* Bewaar-balk bij recepten van anderen boven de tabbladen (iPhone) */
@media (max-width: 699px) {
  body.has-tabbar .save-bar { bottom: calc(66px + var(--safe-bottom, 0px)); padding-bottom: 12px; box-shadow: none; }
  body.has-tabbar:has(.save-bar) main { padding-bottom: calc(170px + var(--safe-bottom, 0px)) !important; }
}

/* Recept: kruimelpad met rechts hartje, koksmuts en potlood; porties helemaal rechts */
.crumb-row { display: flex; align-items: center; gap: 8px; }
.crumb-row .crumb-back { margin: 0; flex: 1; min-width: 0; }
.crumb-acts { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.crumb-acts .icon-btn { width: 38px; height: 38px; }
.crumb-acts .cook-btn { margin: 0; }
.crumb-acts svg { width: 22px; height: 22px; }
.photo-col .crumb-photo { margin: 12px 0 -6px; }
.part-ingr .crumb-ingr { display: none; }
body.cook .crumb-row { display: none !important; }
.section-head .stepper { margin-left: auto; }
.section-head .copy-btn { margin-right: 0; }
@media (min-width: 900px) {
  .photo-col .crumb-photo { display: none; }
  .part-ingr .crumb-ingr { display: flex; margin: 0 0 14px; }
}

/* Wekker met plusje naast Bereiding; in de kookstand in de kopbalk links van de koksmuts */
.timer-add { display: inline-grid; vertical-align: top; width: 38px; height: 38px; margin: 24px 0 0 6px; }
.timer-add svg, .cook-timer svg { width: 24px; height: 24px; }
body.cook .timer-add { display: none; }
.cook-timer { display: none; flex: none; margin: 0; }
body.cook .cook-timer { display: grid; }
/* iPhone: ook in de kookstand de portiekiezer in de kopbalk */
body.cook .cook-tabs .cook-stepper { display: flex; flex: none; margin: 0; height: 36px; }
@media (max-width: 359px) { body.cook .cook-tabs .cook-stepper span { min-width: 30px; } body.cook .cook-tabs .cook-stepper button { width: 24px; } }

/* Kookstand: tekstgrootte (A A) naast de portiekiezer */
.cook-fs { display: none; }
body.cook .cook-tabs .cook-fs { display: flex; flex: none; margin: 0; height: 36px; gap: 0; }
.cook-fs button { width: 32px; height: 100%; display: grid; place-items: center; color: var(--accent); font-family: var(--font-title); line-height: 1; }
.cook-fs button + button { border-left: 1px solid var(--line); }
.cook-fs button:disabled { opacity: .3; }
.cook-fs .fs-s { font-size: 15px; } .cook-fs .fs-l { font-size: 23px; }
body.cook .ingredients li:not(.sub), body.cook .steps li:not(.sub) { font-size: calc(21px * var(--cook-fs, 1)); }
@media (min-width: 900px) { body.cook .ingredients li:not(.sub) { font-size: calc(19px * var(--cook-fs, 1)); } }
@media (max-width: 359px) { .cook-fs button { width: 28px; } }
.cook-fs button span { min-width: 0 !important; display: inline; }
.cook-fs button { color: var(--text); }

/* Kookstand: vegen tussen ingrediënten en bereiding, met een korte schuif */
@keyframes swipeInL { from { transform: translateX(40px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes swipeInR { from { transform: translateX(-40px); opacity: .3; } to { transform: none; opacity: 1; } }
.swipe-in-l { animation: swipeInL .22s ease-out; }
.swipe-in-r { animation: swipeInR .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .swipe-in-l, .swipe-in-r { animation: none; } }
.topbar-actions .cook-btn { margin: 0; width: 40px; height: 40px; }
.topbar-actions .cancel-btn { color: var(--muted); font-weight: 500; }
/* Dubbele lijn boven de tabbladen net zo dik als onder de kopbalk (4px double) */
.tabbar::before { top: -4px; height: 0; border: 0; border-top: 4px double var(--teal); background: none; }
.tabbar a.on::after { top: -10px; height: 4px; }
/* Tussen de twee lijnen boven de tabbladen geen doorschijnende recepten */
.tabbar::before { background: var(--bg); }
/* Foto's in het overzicht iets groter (eindigen duidelijk voorbij het rode streepje van het tabblad) */
.card .thumb { width: 104px; height: 104px; }
/* Bereidingsstappen alleen in de kookstand aantikbaar */
body:not(.cook) .steps li { cursor: default; }
/* Menu's: 'Nieuw menu' als rode knop achteraan */
.mx-new .chip.mx-new-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.mx-new .chip.mx-new-btn svg { color: #fff; stroke: #fff; }
/* Overzicht: minder ruimte boven het eerste recept (filters dicht) */
body[data-page=list] .list-head.closed { margin-bottom: 0; }
.cards > li:first-child > .card { padding-top: 6px; }
/* Recept kiezen voor een menu: zelfde zoekveld (met vergrootglas en kruisje) als in je overzicht */
.mp-search { margin: 0 0 10px; }
.mp-search input { margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 11px 0 !important; }
.topbar-actions .icon-btn:disabled { opacity: .35; }
.crumb-acts .icon-btn:disabled { opacity: .35; }

/* Recept toevoegen aan een menu */
.tm-sub { color: var(--muted); margin: -4px 0 6px; font-size: 14px; }
.tm-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.tm-list li { border-bottom: 1px dashed var(--line); }
.tm-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; background: none; border: 0; text-align: left; color: var(--text); cursor: pointer; }
.tm-row.past { opacity: .6; }
.tm-covers { width: 52px; height: 52px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.tm-covers img { width: 100%; height: 100%; object-fit: cover; }
.tm-tx { flex: 1; min-width: 0; }
.tm-tx small { display: block; font: 500 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); }
.tm-tx b { display: block; font: 400 22px/1.1 var(--font-title); letter-spacing: .03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-tx > span { display: block; color: var(--muted); font-size: 13px; }
.tm-in { flex: none; font: 500 11px var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: #2f7a3d; border: 1px solid currentColor; padding: 2px 6px; border-radius: 2px; }
.tm-chev { color: var(--muted); display: grid; }
.tm-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tm-new { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; width: 100%; }
.tm-new svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tm-back { background: none; border: 0; padding: 0; color: var(--accent); font: 500 13px var(--font-label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.tm-q { font: 500 12px var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin: 14px 0 8px; }
.tm-courses { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-courses .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tm-go { margin-top: 18px; width: 100%; }
@media (prefers-color-scheme: dark) { .tm-in { color: #7cc48a; } }
/* Afgestreepte stappen uit de kookstand niet tonen in het gewone recept */
body:not(.cook) .steps li.done p { color: inherit; text-decoration: none; }
body:not(.cook) .steps li.done .num { background: var(--surface); color: var(--accent); }
body:not(.cook) .steps li.done .time-chip { background: var(--accent-soft); color: var(--accent); }
body:not(.cook) .bon-appetit { display: none; }
/* iPhone: logo iets groter, evenveel ruimte boven en onder de letters */
@media (max-width: 699px) { body.brand-head .topbar h1 { font-size: 48px; line-height: 40px; position: relative; top: 4px; } }
/* Bewerken: porties-vak met links de koppelknop en rechts + en − onder elkaar */
.ed .stat-serv { cursor: default; padding-right: 6px; }
.ed .stat-serv > label { font: 500 11px var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--mustard); }
.ed .stat-serv > .serv-pm { display: flex; align-items: center; gap: 4px; font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.ed .stat-serv input { text-align: center; flex: 1 1 auto; width: 0; }
.ed .stat-serv .serv-link { flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1.5px solid var(--line); border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.ed .stat-serv .serv-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed .stat-serv .serv-link.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ed .stat-serv .pm-col { flex: none; display: grid; gap: 0; }
.ed .stat-serv .pm { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--text); font: 500 20px/1 var(--font-label); cursor: pointer; }
.ed .stat-serv .pm:active { opacity: .5; }
@media (max-width: 379px) {
  .ed .stats:has(.stat-serv) { grid-template-columns: 1.35fr 1fr 1fr; }
  .ed .stat-serv .serv-link { width: 24px; height: 24px; }
  .ed .stat-serv .serv-link svg { width: 14px; height: 14px; }
  .ed .stat-serv > .serv-pm { gap: 3px; }
}
/* Verhuismelding */
.move-sheet .move-lead { font-size: 17px; line-height: 1.45; margin: 4px 0 10px; }
.move-sheet .move-go { display: flex; justify-content: center; width: 100%; margin: 14px 0 6px; text-decoration: none; }
.move-sheet #moveBackup { width: 100%; margin-top: 4px; }
.move-sheet .howto { margin: 4px 0 8px; padding-left: 20px; line-height: 1.45; }
.move-sheet .howto li { margin-bottom: 6px; }
/* Boodschappen: emoji vooraan bij bekende artikelen */
.shop-emo { flex: none; font-size: 20px; line-height: 1.15; margin: 0 -4px 0 -2px; }
.shop-item.done .shop-emo { opacity: .45; filter: grayscale(1); }
.shop-item.just .shop-text { transition: color .2s; }
/* Klantkaarten op de boodschappenlijst */
.shop-cards { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 12px; }
.shop-card { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1.5px solid var(--text); border-radius: 3px; background: var(--surface); color: var(--text);
  font: 500 13px var(--font-label); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.shop-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.shop-card.add { border-style: dashed; border-color: var(--line); color: var(--muted); }
.shop-card.add:only-child { color: var(--accent); border-color: var(--accent); }
.card-code { background: #fff; padding: 18px 14px 10px; border-radius: 6px; margin: 8px 0 6px; }
.card-code .barcode { display: block; width: 100%; height: 110px; }
.card-num { margin: 8px 0 0; text-align: center; font: 500 18px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #000; }
.card-preview:empty { display: none; }
.card-preview .barcode { height: 70px; }
.card-tip { text-align: center; }
.card-sheet #cardEdit { display: block; margin: 10px auto 0; }
.card-stores.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; overflow: visible; }
.card-stores .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Klantkaarten als kaarten bovenaan de boodschappenlijst: swipen, direct scanbaar */
.loyal-wrap { margin: -2px 0 14px; }
.loyal-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 8px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.loyal-rail::-webkit-scrollbar { display: none; }
.loyal { flex: 0 0 calc(100% - 40px); max-width: 420px; scroll-snap-align: center; box-sizing: border-box; padding: 12px 14px 14px; border-radius: 14px; background: var(--c, #2B1D16); color: var(--ink, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14); display: grid; gap: 10px; }
.loyal-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.loyal-head b { font: 500 15px var(--font-label); letter-spacing: .12em; text-transform: uppercase; }
.loyal-edit { width: 32px; height: 32px; display: grid; place-items: center; margin: -4px -6px -4px 0; border: 0; background: none; color: inherit; opacity: .85; }
.loyal-edit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loyal-code { background: #fff; border-radius: 8px; padding: 12px 12px 8px; text-align: center; }
.loyal-code .barcode { display: block; width: 100%; height: 84px; }
.loyal-code span { display: block; margin-top: 6px; font: 500 15px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #000; }
.loyal-code .loyal-empty { font: 400 14px/1.4 -apple-system, system-ui, sans-serif; letter-spacing: 0; color: #888; padding: 30px 0; }
.loyal-add { flex-basis: 120px; place-content: center; justify-items: center; background: none; color: var(--muted); border: 1.5px dashed var(--line); box-shadow: none;
  font: 500 12px var(--font-label); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.loyal-add span { font-size: 30px; line-height: 1; }
.loyal-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.loyal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.loyal-dots i.on { background: var(--text); }
.loyal-first { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1.5px dashed var(--accent); border-radius: 3px; background: none; color: var(--accent);
  font: 500 13px var(--font-label); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.loyal-preview { margin-top: 10px; max-width: none; }
.card-stores .chip .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.card-stores .chip.on .swatch { box-shadow: 0 0 0 1.5px #fff; }
.card-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.swatch-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.swatch-btn.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.swatch-other { width: auto; padding: 0 12px; border-radius: 17px; display: inline-flex; align-items: center; background: var(--surface); font: 500 12px var(--font-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.swatch-other.on span { color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.swatch-other input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
@media (min-width: 700px) { .loyal-rail { margin: 0; padding: 4px 0 8px; scroll-padding: 0; } .loyal { flex-basis: 380px; } }
/* Klantkaart (ontwerp C): wit met een kleurstreep links, half zo hoog */
.loyal[data-card], .loyal-preview { grid-template-columns: 10px 1fr; gap: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #fff; position: relative; }
.loyal[data-card] .loyal-head, .loyal-preview .loyal-head { grid-column: 1; grid-row: 1; background: var(--c); min-height: 0; }
.loyal[data-card] .loyal-head b, .loyal-preview .loyal-head b { position: absolute; left: 22px; top: 6px; font-size: 11px; color: #555; letter-spacing: .1em; }
.loyal[data-card] .loyal-edit { position: absolute; right: 4px; top: 2px; width: 26px; height: 26px; margin: 0; color: #888; }
.loyal[data-card] .loyal-edit svg { width: 15px; height: 15px; }
.loyal[data-card] .loyal-code, .loyal-preview .loyal-code { grid-column: 2; grid-row: 1; border-radius: 0; padding: 24px 12px 6px; }
.loyal[data-card] .loyal-code .barcode, .loyal-preview .loyal-code .barcode { height: 50px; }
.loyal[data-card] .loyal-code span, .loyal-preview .loyal-code span { font-size: 12px; margin-top: 3px; }
.loyal-preview .loyal-code .loyal-empty { padding: 10px 0 14px; }
.loyal-add { padding: 8px; }
/* Kaarten boven de titel Boodschappen */
.shop .loyal-wrap { margin: 4px 0 6px; }
.shop .loyal-wrap:has(.loyal-first) { margin: 4px 0 2px; }
/* Klantkaart scannen met de camera */
.scan-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 6px 0 4px; }
.scan-btn svg { width: 20px; height: 20px; }
.scan-or { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 2px; }
.found-note { color: #2f7a3d; }
body.scanning { overflow: hidden; }
.scan-view { position: fixed; inset: 0; z-index: 300; background: #000; }
.scan-view .cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-top { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 18px) 18px 12px; color: #fff; }
.scan-top b { font: 500 15px var(--font-label); letter-spacing: .14em; text-transform: uppercase; }
.scan-top button { justify-self: start; color: #fff; font: 500 15px var(--font-label); letter-spacing: .12em; text-transform: uppercase; background: none; border: 0; padding: 8px 0; }
.scan-frame { position: absolute; z-index: 2; left: 6%; right: 6%; top: 38%; height: 18%; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); }
.scan-frame::before { content: ''; position: absolute; inset: -3px; border: 3px solid #fff; border-radius: 16px; clip-path: polygon(0 0, 22% 0, 22% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%, 0 100%); }
.scan-frame.found::before { border-color: #3ccf6e; clip-path: none; }
.scan-line { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { top: 20%; } to { top: 80%; } }
.scan-hint { position: absolute; z-index: 4; left: 0; right: 0; top: 60%; margin: 0; text-align: center; color: #fff; font-size: 16px; line-height: 1.4; padding: 0 30px; }
.scan-ok { position: absolute; z-index: 4; left: 50%; top: 60%; transform: translateX(-50%); background: #fff; color: #000; border-radius: 30px; padding: 10px 18px; font-weight: 600; white-space: nowrap; }
.scan-bottom { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 30px); display: grid; justify-items: center; }
.scan-photo { background: #fff; color: #000; border-color: #fff; cursor: pointer; }
.scan-view .scan-photo.btn { width: auto; padding: 0 22px; background: #fff; color: #000; border-color: #fff; }
/* Eigen kleur: rond pipetknopje in de rij kleuren */
.swatch-other { width: 34px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); color: var(--text); }
.swatch-other svg { width: 18px; height: 18px; pointer-events: none; }
/* Klantkaarten blijven bovenaan staan als je door de lijst scrolt */
.shop .loyal-wrap:has(#cardRail) { position: sticky; top: calc(var(--topbar-h, 72px) - 2px); z-index: 5; background: var(--bg);
  margin: 0 -16px 6px; padding: 8px 16px 6px; box-shadow: 0 8px 10px -8px rgba(40, 20, 10, .28); }
@media (min-width: 700px) { .shop .loyal-wrap:has(#cardRail) { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
.shop .loyal-wrap:has(#cardRail) { box-shadow: none; border-bottom: 1.5px solid var(--teal); }
/* Begin precies op de vaste plek, dan schuiven de kaarten niet eerst een stukje mee */
.shop .loyal-wrap:has(#cardRail) { margin-top: -14px; }
/* Titel met rechts (boven de rode plus) het knopje om de klantkaarten in en uit te klappen */
.shop-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-title-row .page-title { margin-right: auto; }
.card-toggle { flex: none; width: 48px; height: 40px; margin: 0 0 6px; display: grid; place-items: center; border: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer; }
.card-toggle.on { color: var(--text); }
.card-toggle svg { width: 24px; height: 24px; }
.card-toggle .ct-chev { transition: transform .2s; transform-origin: 29.5px 12px; }
.card-toggle.on .ct-chev { transform: rotate(180deg); }
.shop .loyal-wrap.hidden { display: none; }
/* Inklapknop: altijd rood; uitgeklapt met een lichtrode stip erachter */
.card-toggle, .card-toggle.on { color: var(--accent); width: 48px; height: 48px; border-radius: 50%; }
.card-toggle.on { background: var(--accent-soft); }
/* Kruisje in het invoerveld van de boodschappen (zelfde als de zoekvelden) */
.shop-field { flex: 1; min-width: 0; position: relative; display: flex; }
.shop-field input { flex: 1; padding-right: 40px; }
.shop-field .search-clear { position: absolute; right: 8px; top: 0; bottom: 0; margin: 0; }
/* Inklapknop klantkaarten in de menubalk */
.topbar-actions .card-toggle { width: 44px; height: 44px; margin: 0; }
/* Klantkaarten in- en uitklappen (animatie via foldFilters, net als het filtermenu) */
.shop .loyal-wrap:has(#cardRail) { display: grid; grid-template-rows: 1fr; }
.shop .loyal-in { min-height: 0; overflow: hidden; }
.shop .loyal-wrap.closed:has(#cardRail) { grid-template-rows: 0fr; padding-top: 14px !important; padding-bottom: 0 !important; border-bottom-color: transparent; }
.shop .loyal-wrap.closed .loyal-in { visibility: hidden; }
/* Toch een schaduw onder de klantkaarten, net als onder het filtermenu */
.shop .loyal-wrap:has(#cardRail) { border-bottom: 0; box-shadow: 0 8px 10px -8px rgba(40, 20, 10, .28); }
.shop .loyal-wrap.closed:has(#cardRail) { box-shadow: none; }
/* Zijruimte in de binnenlaag, zodat de kaartstrook tot de schermrand doorloopt (niet afgeknipt) */
.shop .loyal-wrap:has(#cardRail) { padding-left: 0; padding-right: 0; }
.shop .loyal-in { padding: 0 16px; }
@media (min-width: 700px) { .shop .loyal-in { padding: 0; } }
/* Ingeklapt net zo laag als het filtermenu (2px), dan blijft er onder de kopbalk niets hangen */
.shop .loyal-wrap.closed:has(#cardRail) { padding-top: 2px !important; }
