/* ReggeKookt — goudgeel, wit en marineblauw */
:root {
  --bg: #fffdf6;
  --surface: #ffffff;
  --surface-2: #fdf6dc;
  --navy: #1d3461;
  --navy-2: #2c4a80;
  --navy-soft: #e8edf7;
  --gold: #f2b705;
  --gold-2: #ffd23f;
  --gold-soft: #fff4c7;
  --ink: #1d3461;
  --text: #25304a;
  --muted: #66708a;
  --line: #ece5cf;
  --green: #2e8b57;
  --green-soft: #e3f4ea;
  --danger: #c0392b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 52, 97, .06), 0 8px 24px rgba(29, 52, 97, .07);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--sans);
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h2 { font-size: 1.22rem; }
h3 { font-size: 1.02rem; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
small { color: var(--muted); }
code { background: var(--navy-soft); padding: .05rem .35rem; border-radius: 6px; font-size: .88em; }
.hint { color: var(--muted); font-size: .88rem; margin: .2rem 0 .6rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
.ic { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }

/* ---------- kop & navigatie ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .9rem 16px .55rem;
  background: var(--surface);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 2px 12px rgba(29, 52, 97, .06);
}
.brand {
  display: flex; align-items: center; gap: .7rem; text-decoration: none;
  font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3rem); letter-spacing: -.015em;
  color: var(--navy); line-height: 1;
}
.brand-mark { width: 1.55em; height: 1.55em; margin-top: -.15em; }
.brand-name > span { position: relative; }
.brand-name > span::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.1em; height: .13em;
  background: var(--gold); border-radius: 99px;
}
.sync-dot { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; background: var(--muted); }
.topbar > .sync-dot { position: absolute; right: 16px; top: 1.3rem; }
.sync-dot.live { background: var(--green); }
.sync-dot.connecting, .sync-dot.offline { background: var(--gold); }
.sync-dot.error { background: var(--danger); }
.nav { display: flex; gap: .3rem; justify-content: center; }
.nav a {
  position: relative; display: flex; align-items: center; gap: .45rem;
  padding: .45rem .95rem; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500;
}
.nav a:hover { color: var(--navy); background: var(--navy-soft); }
.nav a.active { background: var(--navy); color: #fff; }
.badge {
  min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-size: .72rem; display: inline-grid; place-items: center; font-weight: 700;
}
@media (max-width: 760px) {
  .topbar { padding: .75rem 16px .65rem; }
  .nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    justify-content: space-around; padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(29, 52, 97, .06);
  }
  .nav a { flex-direction: column; gap: .1rem; font-size: .7rem; padding: .35rem .7rem; border-radius: 14px; }
  .nav a .ic { width: 1.4rem; height: 1.4rem; }
  .nav a.active { background: var(--gold-soft); color: var(--navy); }
  .nav .badge { position: absolute; top: 0; right: .25rem; }
}
@media (min-width: 761px) { body { padding-bottom: 2rem; } .only-mobile { display: none !important; } }

main { max-width: 1200px; margin: 0 auto; padding: 1.4rem 16px 2rem; outline: none; }
/* Nooit breder dan het scherm: zo zoomt een telefoon nooit uit naar "laptopweergave" */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; }
.layout > *, .r-grid > *, .ai-cols > *, .ai-top > *, .row2 > *, .row4 > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
h1, h2, h3, .rcard h3, .ai-title { overflow-wrap: anywhere; }

/* ---------- knoppen & velden ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.05rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--navy); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .08s, background .15s, border-color .15s;
}
.btn:hover { border-color: var(--navy); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.primary:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.primary:disabled { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); cursor: default; }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: .35rem .75rem; font-size: .88rem; }
.btn.big { padding: .9rem 1.3rem; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn.danger-ghost { color: var(--danger); background: transparent; }
.btn.danger-ghost:hover { border-color: var(--danger); }
.btn.disabled { opacity: .4; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy-2); cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; font-size: .9rem; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; padding: .65rem .85rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--gold-soft); }
.btn:focus-visible, .chip:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
textarea { resize: vertical; line-height: 1.45; }
input[type=checkbox] { accent-color: var(--navy); width: 1.15rem; height: 1.15rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem; }
.notice { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: .6rem .8rem; border-radius: 8px; margin: .5rem 0; font-size: .92rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: .88rem; white-space: nowrap;
}
.chip:hover { border-color: var(--navy); }
.chip small { font-size: .75rem; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.on small { color: inherit; opacity: .75; }
.chip.tag { cursor: default; background: var(--navy-soft); border-color: transparent; color: var(--navy); font-weight: 500; }
.chip.tag.bonus { background: var(--gold-soft); border-color: var(--gold); }
.chip.tag button { border: 0; background: none; cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 0 0 0 .15rem; color: var(--muted); }
.chip-input {
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
  padding: .4rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
}
.chip-input input { flex: 1; min-width: 9rem; border: 0 !important; padding: .3rem .4rem !important; background: transparent !important; box-shadow: none !important; }
.chip-input:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px var(--gold-soft); }
.tag { display: inline-block; font-size: .78rem; padding: .15rem .6rem; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-family: var(--sans); font-weight: 500; }
.tag.bonus { background: var(--gold-soft); color: var(--navy); box-shadow: inset 0 0 0 1px var(--gold); }
.switch { display: flex; gap: .5rem; align-items: center; margin: .6rem 0 .2rem; font-size: .92rem; }
.eff { display: inline-flex; align-items: center; gap: .35rem; }
.eff::before { content: ''; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); }
.eff.e-gemiddeld::before { background: var(--gold); }
.eff.e-uitdagend::before { background: var(--danger); }

/* ---------- overzicht ---------- */
.hero { margin: .3rem 0 1.1rem; text-align: center; }
.search { display: flex; gap: .5rem; max-width: 760px; margin: 0 auto; }
.search input { font-size: 1.05rem; padding: .85rem 1.1rem; border-radius: 999px; }
.search .btn { border-radius: 999px; white-space: nowrap; }
.bonusbox {
  background: linear-gradient(180deg, var(--gold-soft), var(--surface) 70%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1.3rem; box-shadow: var(--shadow);
}
.bonus-row { display: grid; grid-template-columns: 3fr 2fr; gap: 1.4rem; }
.bonus-col h2 { font-size: 1.1rem; margin-bottom: .1rem; }
@media (max-width: 760px) { .bonus-row { grid-template-columns: 1fr; } }

.layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.6rem; align-items: start; }
.filters { position: sticky; top: 150px; max-height: calc(100vh - 165px); overflow: auto; padding-right: .3rem; }
.f-head { display: flex; justify-content: space-between; align-items: baseline; }
.f-group { margin-bottom: 1rem; }
.f-group h3 { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .45rem; font-weight: 600; }
.resultbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: space-between; margin-bottom: .8rem; color: var(--muted); font-size: .92rem; }
.resultbar #count { margin-right: auto; }
.sort { display: flex; align-items: center; gap: .4rem; }
.sort select { width: auto; padding: .35rem .6rem; }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; overflow: visible; }
  .filters.open { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
}

.group { margin-bottom: 1.7rem; }
.group-title { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; padding-bottom: .35rem; border-bottom: 2px solid var(--line); }
.group-title .flag { font-size: 1.4rem; }
.group-title small { font-family: var(--sans); font-size: .8rem; font-weight: 600; background: var(--gold-soft); color: var(--navy); padding: .05rem .5rem; border-radius: 99px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.rcard { position: relative; padding: 0; overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; display: flex; flex-direction: column; }
.rcard:hover { transform: translateY(-3px); border-color: var(--gold); }
.rcard-img {
  aspect-ratio: 16 / 9; display: grid; place-items: center; font-size: 3.2rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .7) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--gold-soft), #ffe48a);
  border-bottom: 3px solid var(--navy);
}
.rcard-img img { width: 100%; height: 100%; object-fit: cover; }
.rcard-body { padding: .85rem .95rem 1rem; }
.rcard h3 { font-size: 1.12rem; margin: .15rem 0 .45rem; }
.rcard h3 a { color: inherit; text-decoration: none; }
.kicker { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .85rem; font-size: .85rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }
.fav {
  position: absolute; top: .55rem; right: .55rem; border: 0; background: var(--surface); color: var(--navy);
  width: 2.3rem; height: 2.3rem; border-radius: 50%; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center;
}
.fav .ic { width: 1.15rem; height: 1.15rem; }
[aria-pressed="true"] > .ic[viewBox] path { fill: var(--gold); stroke: var(--navy); }
.bonus-hit { margin-top: .55rem; font-size: .8rem; font-weight: 600; background: var(--gold-soft); color: var(--navy); padding: .2rem .6rem; border-radius: 99px; display: inline-block; box-shadow: inset 0 0 0 1px var(--gold); }
.cooked-note { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- recept ---------- */
.back { display: inline-block; margin-bottom: .8rem; text-decoration: none; font-weight: 600; color: var(--navy-2); }
.r-head { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 1.6rem; align-items: center; margin-bottom: 1.6rem; }
.r-photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; font-size: 5.5rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .7) 0 16%, transparent 17%),
    linear-gradient(135deg, var(--gold-soft), #ffe48a);
  border: 3px solid var(--navy);
}
.r-photo img { width: 100%; height: 100%; object-fit: cover; }
.r-title h1 { margin: .25rem 0 .45rem; }
.desc { color: var(--muted); margin: 0 0 .6rem; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin: .5rem 0; font-weight: 600; color: var(--navy); }
.facts > span { display: inline-flex; align-items: center; gap: .35rem; }
.facts small { font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0; }
.r-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
@media (max-width: 760px) {
  .r-head { grid-template-columns: 1fr; gap: 1rem; }
  .r-photo { aspect-ratio: 16 / 9; font-size: 4rem; }
  .r-photo.ph { aspect-ratio: auto; height: 110px; font-size: 3.4rem; }
}

.r-grid { display: grid; grid-template-columns: minmax(300px, 410px) 1fr; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .r-grid { grid-template-columns: 1fr; } }
.ing-card { position: sticky; top: 150px; border-top: 5px solid var(--gold); }
@media (max-width: 900px) { .ing-card { position: static; } }
.ing-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ing-head h2 { margin: 0; }
.stepper { display: flex; align-items: center; gap: .5rem; background: var(--navy-soft); border-radius: 999px; padding: .2rem; }
.stepper button { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.stepper span { min-width: 6.5rem; text-align: center; font-size: .92rem; color: var(--navy); }
.ing-group { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-2); margin: 1rem 0 .2rem; font-weight: 700; }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { display: flex; align-items: center; border-bottom: 1px dashed var(--line); }
.ing-list label { flex: 1; display: grid; grid-template-columns: auto 5.6rem 1fr; gap: .6rem; align-items: baseline; padding: .55rem 0; cursor: pointer; }
.ing-list input { align-self: center; }
.ing-list .amt { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); }
.ing-list li.have .amt, .ing-list li.have .nm { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(102, 112, 138, .5); }
.ing-list li.is-bonus .nm::after { content: 'bonus'; margin-left: .4rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--gold); color: var(--navy); padding: .05rem .4rem; border-radius: 99px; vertical-align: .1em; }
.star { border: 0; background: none; cursor: pointer; color: #c9c3b3; font-size: 1.1rem; padding: .3rem; }
.star.on { color: var(--gold); }
.ing-foot { display: flex; gap: 1rem; margin: .8rem 0; }

.steps-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.step {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: .85rem; padding: 1rem; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: opacity .2s;
}
.step:hover { border-color: var(--gold); }
.step p { margin: 0; font-size: 1.04rem; }
.step .num {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--navy); font-weight: 800; font-family: var(--serif);
}
.step.done { opacity: .5; }
.step.done p { text-decoration: line-through; }
.step.done .num { background: var(--green-soft); color: var(--green); }
.tmr {
  display: inline-flex; align-items: center; gap: .25rem;
  border: 1.5px solid var(--navy); background: var(--navy-soft); color: var(--navy); border-radius: 999px;
  padding: 0 .55rem; font-weight: 600; cursor: pointer; font-size: .95em;
}
.tmr:hover { background: var(--gold-soft); }
.notes { margin-top: 1rem; box-shadow: none; background: var(--gold-soft); border-color: transparent; }
.notes p { margin: 0; }
.source { color: var(--muted); font-size: .9rem; }

/* ---------- kookmodus ---------- */
body.cooking .topbar, body.cooking .nav { display: none; }
body.cooking { padding-bottom: 0; }
body.cooking main { padding: 0; max-width: none; }
.cook { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.cook-top { display: flex; align-items: center; gap: .8rem; padding: .8rem 16px; background: var(--navy); color: #fff; }
.cook-top .btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
.cook-title { flex: 1; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; display: flex; flex-direction: column; }
.cook-title small { font-family: var(--sans); font-weight: 400; font-size: .78rem; color: rgba(255, 255, 255, .7); }
.cook-count { font-weight: 700; color: var(--gold); }
.progress { height: 6px; background: var(--navy-soft); }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .25s; }
.cook-body { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 2rem 16px; }
.cook-num { color: var(--navy-2); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.cook-text { font-family: var(--serif); font-size: clamp(1.45rem, 4.5vw, 2.1rem); line-height: 1.35; margin: .5rem 0 1.5rem; color: var(--navy); }
.cook-ings { background: var(--gold-soft); border-radius: var(--radius); padding: .9rem 1.1rem; }
.cook-ings h3 { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-2); }
.cook-ings ul { margin: 0; padding-left: 1.1rem; font-size: 1.1rem; }
.cook-next { color: var(--muted); margin-top: 1.5rem; font-size: .95rem; }
.cook-next span { font-weight: 700; color: var(--navy); }
.cook-nav { display: flex; gap: .8rem; padding: 1rem 16px calc(1rem + env(safe-area-inset-bottom)); max-width: 760px; width: 100%; margin: 0 auto; }
.cook-nav > * { flex: 1; }

/* ---------- timers ---------- */
.timers { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 40; display: grid; gap: .4rem; max-width: min(340px, calc(100vw - 32px)); }
body.cooking .timers { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 761px) { .timers { bottom: 1.2rem; } }
.timer { display: flex; align-items: center; gap: .6rem; background: var(--navy); color: #fff; padding: .55rem .6rem .55rem .9rem; border-radius: 14px; box-shadow: var(--shadow); border-left: 5px solid var(--gold); }
.timer .tl { flex: 1; font-size: .8rem; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer b { font-variant-numeric: tabular-nums; font-size: 1.15rem; color: var(--gold-2); }
.timer button { border: 0; background: none; color: inherit; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.timer.done { background: var(--gold); color: var(--navy); animation: pulse 1s infinite; }
.timer.done b { color: var(--navy); }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* ---------- boodschappen ---------- */
.shop { max-width: 720px; margin: 0 auto; }
.shop-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.additem { display: flex; gap: .5rem; margin-bottom: 1rem; }
.additem .btn { flex: none; }
.menu { margin-bottom: 1.2rem; box-shadow: none; background: var(--navy-soft); border-color: transparent; }
.menu h2 { font-size: 1.05rem; }
.menu ul { list-style: none; padding: 0; margin: 0; }
.menu li { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.menu li a { color: var(--navy); font-weight: 600; }
.menu li small { margin-right: auto; }
.x { border: 0; background: none; color: var(--muted); font-size: 1.35rem; cursor: pointer; padding: 0 .4rem; line-height: 1; }
.aisle { margin-bottom: 1.1rem; }
.aisle h3 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-2); margin-bottom: .4rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.aisle h3::before { content: ''; width: .9rem; height: 3px; background: var(--gold); border-radius: 2px; }
.items { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.item:last-child { border-bottom: 0; }
.item .box { width: 1.6rem; height: 1.6rem; flex: none; border-radius: 8px; border: 2px solid #cfd5e3; display: grid; place-items: center; color: #fff; }
.item .box .ic { stroke-width: 3; }
.item .it-main { flex: 1; display: flex; flex-direction: column; }
.item .it-name { font-size: 1.07rem; }
.item .it-name b { color: var(--navy); }
.item small { font-size: .78rem; }
.item.checked .box { background: var(--green); border-color: var(--green); }
.item.checked .it-name { text-decoration: line-through; color: var(--muted); }
.item.checked .it-name b { color: var(--muted); }
.basket .items { opacity: .75; }
.shop-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }

/* ---------- editor ---------- */
.editor, .more { max-width: 820px; margin: 0 auto; }
.paste { margin-bottom: 1.2rem; border-top: 5px solid var(--gold); }
.paste textarea { margin-bottom: .7rem; font-size: .95rem; }
.form { display: grid; gap: 1rem; }
.form label { display: block; font-weight: 600; color: var(--navy); }
.form label > input, .form label > textarea, .form label > select { display: block; margin-top: .35rem; font-weight: 400; }
.form label .hint { display: inline; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 110px; gap: .8rem; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 640px) { .row4 { grid-template-columns: 1fr 1fr; } }
.methods { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.methods legend { font-weight: 600; color: var(--navy); margin-bottom: .3rem; padding: 0; }
.form label.chk { display: flex; align-items: center; gap: .4rem; font-weight: 400; color: var(--text); }
.auto { background: var(--navy-soft); border-left: 4px solid var(--navy); border-radius: 10px; padding: .7rem .9rem; font-size: .92rem; }
.preview { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: -.5rem; align-items: center; }
.pv { font-size: .78rem; background: var(--gold-soft); padding: .1rem .5rem; border-radius: 999px; }
.photo-field { display: grid; gap: .4rem; font-weight: 600; color: var(--navy); }
.photo-row { display: flex; align-items: center; gap: .8rem; }
.photo-prev { width: 88px; height: 66px; border-radius: 10px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; overflow: hidden; font-size: 1.4rem; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.form-actions { display: flex; gap: .6rem; }
.more .card { margin-bottom: 1rem; }
.btnrow { display: flex; flex-wrap: wrap; gap: .5rem; }
.sync-status { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--navy); margin: 0 0 .4rem; }

/* ---------- AI-recept ---------- */
.ai-card { margin-bottom: 1rem; }
.ai-start { border-top: 5px solid var(--gold); }
.ai-card h2, .ai-card h3 { margin-bottom: .2rem; }
.ai-preview { margin-bottom: 1rem; border: 2px solid var(--navy); }
.ai-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.pill { background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .7rem; border-radius: 99px; }
.ai-title { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: .2rem 0 .3rem; }
.ai-cols { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 1.5rem; margin-top: 1rem; }
@media (max-width: 760px) { .ai-cols { grid-template-columns: 1fr; } }
.ai-ings { list-style: none; padding: 0; margin: 0 0 .6rem; }
.ai-ings li { padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.ai-ings b { color: var(--navy); }
.tag.added { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); font-size: .68rem; }
.ai-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .55rem; }
.ai-steps li::marker { color: var(--navy); font-weight: 800; font-family: var(--serif); }
.ai-tips { background: var(--gold-soft); padding: .6rem .8rem; border-radius: 10px; margin: 0; }
.ai-busy { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: var(--radius); background: var(--navy); color: #fff; font-weight: 500; }
.spinner { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice.error { background: #fdecea; border-left-color: var(--danger); color: #7b1d14; }
.manual { margin-top: 1.5rem; }
.manual > summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: .8rem 1rem; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface); list-style: none; }
.manual > summary::-webkit-details-marker { display: none; }
.manual > summary::before { content: '+ '; color: var(--gold); font-weight: 800; }
.manual[open] > summary { margin-bottom: 1rem; }
.manual[open] > summary::before { content: '− '; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- welkomstscherm ---------- */
body.gated { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(circle at 50% 0%, var(--gold-soft), var(--bg) 60%);
}
.gate-card { width: min(400px, 100%); text-align: center; display: grid; gap: .8rem; justify-items: center; background: var(--surface); padding: 2rem 1.5rem; border-radius: 24px; box-shadow: var(--shadow); border-top: 6px solid var(--gold); }
.gate-card .brand-mark { width: 96px; height: 96px; }
.gate-card h1 { font-size: 2.3rem; margin: 0; font-weight: 800; }
.gate-card h1 span { box-shadow: inset 0 -.18em 0 var(--gold); }
.gate-card p { margin: 0; color: var(--muted); }
.gate-card input { text-align: center; font-size: 1.1rem; }
.gate-card .btn { width: 100%; }
.gate-msg { color: var(--danger) !important; min-height: 1.2em; font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; z-index: 50; border-left: 5px solid var(--gold);
  opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100vw - 32px); box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--gold-2); font-weight: 700; margin-left: .4rem; }
@media (min-width: 761px) { .toast { bottom: 1.5rem; } }

/* ---------- eigen AI: stappen ---------- */
.ai-steps-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.ai-steps-head h2 { margin: 0; }
.stepnr { width: 2rem; height: 2rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-family: var(--serif); font-weight: 800; }
.prompt-view { white-space: pre-wrap; font-size: .8rem; max-height: 280px; overflow: auto; background: var(--navy-soft); padding: .8rem; border-radius: 10px; margin: .6rem 0 0; user-select: text; }
.drop-zone { transition: box-shadow .15s, border-color .15s; }
.drop-zone.drag, .ai-preview.drag { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.ai-top { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; align-items: start; margin-top: .6rem; }
@media (max-width: 640px) { .ai-top { grid-template-columns: 1fr; } }
.ai-photo { display: grid; gap: .5rem; }
.photo-prev.big { width: 100%; height: auto; aspect-ratio: 4 / 3; font-size: 3rem; border: 2px solid var(--navy); }

/* foto-knop op de receptpagina */
.r-photo { position: relative; }
.photo-btn {
  position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255, 255, 255, .92); color: var(--navy); font-size: .82rem; font-weight: 600;
  padding: .35rem .7rem; border-radius: 99px; cursor: pointer; box-shadow: var(--shadow);
}
.photo-btn:hover { background: #fff; }

/* lijst */
.shop-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.2rem 0 .9rem; }

/* knoppen en bevestigingsvenster */
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); border-color: var(--danger); }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(29, 52, 97, .45); }
.modal-card { width: min(440px, 100%); background: var(--surface); border-radius: 20px; padding: 1.4rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); border-top: 6px solid var(--gold); display: grid; gap: .8rem; }
.modal-card.danger { border-top-color: var(--danger); }
.modal-card h2 { margin: 0; }
.modal-card p { margin: 0; color: var(--text); }
.modal-card .btnrow { justify-content: flex-end; margin-top: .3rem; }
.modal-card .chk { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.type-word { display: grid; gap: .35rem; font-size: .92rem; color: var(--muted); }
.type-word b { color: var(--danger); letter-spacing: .05em; }
.type-word input { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* gevarenzone */
.danger-zone { border: 1.5px solid #f3c6c1; box-shadow: none; }
.danger-zone > summary { cursor: pointer; font-weight: 700; color: var(--danger); list-style: none; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone > summary::before { content: '▸ '; }
.danger-zone[open] > summary::before { content: '▾ '; }
.dz-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.dz-row p { margin: .1rem 0 0; }
@media (max-width: 560px) { .dz-row { flex-direction: column; align-items: stretch; } }

/* ---------- telefoon ---------- */
@media (max-width: 760px) {
  main { padding: 1rem 14px 1.5rem; }
  h1 { font-size: 1.7rem; }
  .sort span { display: none; }
  .sort select { max-width: 11rem; }
  .bonusbox { padding: .9rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: .75rem; }
  .rcard-img { font-size: 2.6rem; }
  .rcard-body { padding: .7rem .75rem .85rem; }
  .rcard h3 { font-size: 1rem; }
  .meta { font-size: .8rem; gap: .2rem .6rem; }
  .search .btn { padding: .6rem .8rem; }
  .r-actions .btn { flex: 1 1 auto; }
  .card:not(.rcard) { padding: 1rem; }
  .step { padding: .85rem; gap: .65rem; grid-template-columns: 2.1rem 1fr; }
  .step .num { width: 2.1rem; height: 2.1rem; }
  .ing-list label { grid-template-columns: auto 4.8rem 1fr; gap: .5rem; }
  .shop-tools .btn { flex: 1 1 auto; }
  .btnrow > .btn { flex: 1 1 auto; }
  .form-actions .btn { flex: 1; }
  .modal-card { padding: 1.1rem; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.9rem; gap: .5rem; }
  .search { flex-wrap: wrap; }
  .search .btn { width: 100%; }
  .row4 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr 88px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: .35rem .45rem; font-size: .66rem; }
  .ing-list label { grid-template-columns: auto 4.2rem 1fr; }
}
/* Telefoon gekanteld: kop compacter zodat er ruimte blijft */
@media (max-height: 500px) and (orientation: landscape) {
  .topbar { position: static; }
  .brand { font-size: 1.6rem; }
}

/* keukencode tonen */
.gate-input { position: relative; width: 100%; }
.gate-input input { padding-right: 4.5rem; }
.gate-input .linkbtn { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); }
.gate-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .08em; color: var(--navy) !important; background: var(--gold-soft); padding: .3rem 1rem; border-radius: 12px; word-break: break-all; }
.code-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.code-val { letter-spacing: .06em; background: var(--navy-soft); padding: .1rem .5rem; border-radius: 6px; }

/* ---------- logo met 13-2 rechtsboven op receptkaartjes ---------- */
.rcard-img { position: relative; }
.card-logo {
  position: absolute; top: .5rem; right: .5rem; width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .85); border-radius: 12px; pointer-events: none;
}
.card-logo-svg { width: 38px; height: 38px; }
.fav { right: auto; left: .55rem; }
@media (max-width: 760px) {
  .card-logo { width: 38px; height: 38px; border-radius: 10px; top: .4rem; right: .4rem; }
  .card-logo-svg { width: 32px; height: 32px; }
  .fav { width: 2rem; height: 2rem; left: .4rem; top: .4rem; }
}

/* ---------- toegevoegd door ---------- */
.by { margin-top: .35rem; font-size: .78rem; color: var(--muted); }
.added-by { margin: -.1rem 0 .5rem; font-size: .9rem; color: var(--muted); }
.added-by b { color: var(--navy); font-weight: 600; }
.ai-by { margin: 1rem 0 .4rem; max-width: 320px; }

/* ---------- optioneel ---------- */
.tabfield { display: grid; gap: .4rem; }
.tabs { display: flex; gap: .3rem; border-bottom: 2px solid var(--line); }
.tab {
  border: 0; background: none; padding: .5rem .9rem; margin-bottom: -2px; cursor: pointer; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: .35rem;
}
.tab.on { color: var(--navy); border-bottom-color: var(--gold); }
.tab .cnt:not(:empty) { background: var(--gold); color: var(--navy); font-size: .7rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 99px; display: inline-grid; place-items: center; }
.tabfield .hint { margin: .1rem 0 0; }
.ing-group.opt { color: var(--muted); }
.ing-group small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ing-list.opt li .amt, .ing-list.opt li .nm { color: var(--muted); }
.opt-add { border: 1.5px solid var(--line); background: var(--surface); color: var(--navy); border-radius: 99px; font-size: .75rem; font-weight: 700; padding: .15rem .5rem; cursor: pointer; display: inline-flex; align-items: center; gap: .1rem; margin-right: .2rem; }
.opt-add:hover { border-color: var(--gold); background: var(--gold-soft); }
.opt-add .ic { width: .95em; height: .95em; }
.opt-head { margin: 1.2rem 0 .5rem; font-size: 1.05rem; }
.opt-head small { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: .8rem; }
.steps.opt .step { border-style: dashed; background: transparent; }
.steps.opt .num { background: var(--navy-soft); color: var(--navy); }
.ai-steps.opt { list-style: '+ '; color: var(--muted); }

/* ---------- vandaag eten we ---------- */
.today-box { margin: .2rem 0 1rem; }
.today-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); border-left: 6px solid var(--gold); }
.today-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.today-row + .today-row { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.today-text { display: grid; gap: .05rem; min-width: 0; }
.today-text small { color: var(--gold-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.today-text b { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.today-text span { font-size: .82rem; opacity: .75; }
.today-actions { display: flex; gap: .4rem; }
.today-actions .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.today-next { margin: .6rem 0 0; font-size: .85rem; opacity: .8; }
.today-empty { display: inline-flex; align-items: center; gap: .4rem; color: var(--navy-2); font-weight: 600; text-decoration: none; font-size: .9rem; }
.today-empty:hover { text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- weekmenu ---------- */
.week { max-width: 820px; margin: 0 auto; }
.week-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.week-head h1 { margin: 0; }
.week-nav { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--navy); }
.week-list { margin: 1rem 0; }
.days { display: grid; gap: .7rem; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; }
.day.today { border: 2px solid var(--gold); }
.day.past { opacity: .6; }
.day-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; color: var(--navy); }
.day-head small { color: var(--muted); }
.plan-item { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px dashed var(--line); }
.pi-img { width: 42px; height: 42px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--gold-soft); font-size: 1.3rem; }
.pi-img img { width: 100%; height: 100%; object-fit: cover; }
.pi-title { flex: 1; min-width: 0; color: var(--navy); font-weight: 600; text-decoration: none; display: grid; }
.pi-title small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.pi-serv { display: inline-flex; align-items: center; gap: .3rem; background: var(--navy-soft); border-radius: 99px; padding: .15rem; }
.pi-serv button { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 0; background: var(--surface); color: var(--navy); cursor: pointer; font-weight: 700; }
.pi-serv b { min-width: 1.2rem; text-align: center; color: var(--navy); }
.plan-add { margin-top: .3rem; }

/* recept kiezen / dag kiezen */
.picker { max-height: 85vh; display: flex; flex-direction: column; }
.pick-list { overflow: auto; display: grid; gap: .3rem; max-height: 55vh; margin: .2rem -.3rem; padding: 0 .3rem; }
.pick-row { display: flex; align-items: center; gap: .7rem; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .6rem; cursor: pointer; }
.pick-row:hover { border-color: var(--gold); background: var(--gold-soft); }
.pick-text { display: grid; min-width: 0; }
.pick-text b { color: var(--navy); }
.pick-text small { color: var(--muted); }
.day-pick { display: flex; flex-wrap: wrap; gap: .4rem; }
.day-pick .chip { padding: .5rem .8rem; font-size: .92rem; }
.pd-serv { display: inline-flex; align-items: center; gap: .3rem; }
.pd-serv button { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; }

@media (max-width: 380px) {
  .pi-serv button { width: 1.4rem; height: 1.4rem; }
  .pi-img { width: 36px; height: 36px; }
}

/* optioneel en tips als eigen vakjes */
.form label.opt-field textarea { background: var(--navy-soft); border-style: dashed; }
.form label.tips-field textarea { background: var(--gold-soft); }
.form label.opt-field, .form label.tips-field { margin-top: -.3rem; }
.notes h3 { display: flex; align-items: center; gap: .4rem; }
.notes h3::before { content: ''; width: .9rem; height: 3px; background: var(--gold); border-radius: 2px; }

/* vaste instructie voor je AI */
.howto { margin: .2rem 0 .8rem; padding-left: 1.1rem; font-size: .88rem; color: var(--text); display: grid; gap: .25rem; }
.howto b { color: var(--navy); }
.ai-standing { font-size: .85rem; color: var(--muted); background: var(--gold-soft); padding: .45rem .7rem; border-radius: 10px; margin: 0 0 .4rem; }
.ai-standing .linkbtn { font-size: inherit; }

/* ---------- bonuslijst plakken ---------- */
.bonus-actions { margin: .1rem 0 .6rem; align-items: center; }
.bonus-actions .btn { flex: none !important; }
.bonus-date { margin: -.1rem 0 .2rem; font-size: .8rem; color: var(--muted); }
.bonus-date.old { color: var(--danger); font-weight: 600; }
.bonus-import { max-height: 90vh; overflow: auto; }
.bonus-import textarea { font-size: .92rem; }
.bi-found { display: grid; gap: .3rem; }
.bi-head { margin: .3rem 0 0; font-weight: 600; color: var(--navy); font-size: .88rem; }
.bi-head small { font-weight: 400; color: var(--muted); }
.bchips { display: flex; flex-wrap: wrap; gap: .35rem; }
.bchip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: .88rem; }
.bchip input { width: 1rem; height: 1rem; }
.bchip.on { background: var(--gold-soft); border-color: var(--gold); color: var(--navy); }
.bchip small { background: var(--navy); color: #fff; border-radius: 99px; padding: 0 .4rem; font-size: .7rem; }
