/* ==========================================================================
   Ons Receptenboek – stijl
   Kleuren staan bovenaan als variabelen; de donkere modus wisselt alleen die.
   ========================================================================== */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --line: #e8e0d4;
  --line-strong: #d6cbbb;
  --text: #2b2520;
  --muted: #776d63;
  --accent: #c0532a;
  --accent-hover: #a54520;
  --accent-soft: #f8e7dd;
  --accent-ink: #ffffff;
  --green: #36774a;
  --green-soft: #e2efe3;
  --danger: #b3261e;
  --danger-soft: #fbe5e3;
  --scrim: rgba(30, 20, 10, .45);
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .06);
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 6px 20px rgba(60, 40, 20, .07);
  --shadow-lg: 0 12px 40px rgba(40, 25, 10, .18);
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --top-h: 64px;
  --tab-h: 64px;
  --wrap: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161311;
    --surface: #201c19;
    --surface-2: #2a2521;
    --line: #342e29;
    --line-strong: #4a423b;
    --text: #f2ece5;
    --muted: #a99e93;
    --accent: #e57d51;
    --accent-hover: #f09066;
    --accent-soft: #3b271d;
    --accent-ink: #1b120d;
    --green: #86c795;
    --green-soft: #1e3024;
    --danger: #f4877e;
    --danger-soft: #3a1f1c;
    --scrim: rgba(0, 0, 0, .6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161311;
  --surface: #201c19;
  --surface-2: #2a2521;
  --line: #342e29;
  --line-strong: #4a423b;
  --text: #f2ece5;
  --muted: #a99e93;
  --accent: #e57d51;
  --accent-hover: #f09066;
  --accent-soft: #3b271d;
  --accent-ink: #1b120d;
  --green: #86c795;
  --green-soft: #1e3024;
  --danger: #f4877e;
  --danger-soft: #3a1f1c;
  --scrim: rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 6px 20px rgba(0, 0, 0, .25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Basis ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 680px; }
.main { flex: 1; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.h2 { font-size: 1.6rem; }
.h3 { font-size: 1.2rem; }
.page-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -.01em; margin: 28px 0 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head .page-title { margin-bottom: 18px; }
.eyebrow { color: var(--muted); font-size: .92rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eyebrow .icon { width: 17px; height: 17px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-top: -6px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.back:hover { color: var(--text); }
.back .icon { width: 18px; height: 18px; }

/* ---------- Knoppen ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 19px; height: 19px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--accent-soft); color: var(--accent); }
.btn-secondary:hover { color: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-saved { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn-float { background: var(--surface); box-shadow: var(--shadow); width: 34px; height: 34px; border-radius: 50%; }
.icon-btn-float .icon { width: 17px; height: 17px; }

/* ---------- Bovenbalk ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; height: var(--top-h); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.brand-mark .icon { width: 23px; height: 23px; stroke-width: 2; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }

.topsearch { flex: 1; max-width: 440px; margin: 0 auto; position: relative; }
.topsearch .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.topsearch input {
  width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 16px 0 40px; font-size: .95rem;
}
.topsearch input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.topnav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.topnav a[aria-current="page"]:not(.btn) { color: var(--text); }
.topnav .btn { margin-left: 6px; }

.theme-toggle .show-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .show-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .show-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .show-dark { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .show-light { display: none; }
}

.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px;
}
.menu-head { padding: 10px 12px 8px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head span { color: var(--muted); font-size: .85rem; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
  color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: .95rem; text-align: left;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); }
.menu .icon { width: 18px; height: 18px; color: var(--muted); }
.menu form { margin: 0; }

/* ---------- Avatars en chips ---------- */

.avatar {
  --h: 20; display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: hsl(var(--h) 45% 88%); color: hsl(var(--h) 55% 28%); font-weight: 700; letter-spacing: .02em;
}
:root[data-theme="dark"] .avatar { background: hsl(var(--h) 30% 26%); color: hsl(var(--h) 60% 82%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { background: hsl(var(--h) 30% 26%); color: hsl(var(--h) 60% 82%); } }
.avatar-xs { width: 22px; height: 22px; font-size: .62rem; }
.avatar-sm { width: 36px; height: 36px; font-size: .8rem; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.6rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  font-size: .9rem; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; flex: none;
}
button.chip { font: inherit; font-size: .9rem; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.chip-sm { height: 26px; padding: 0 10px; font-size: .8rem; border-color: var(--line); background: var(--surface-2); }
.chip-green { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); color: var(--green); }
.chip-green:hover { color: var(--green); border-color: var(--green); }
.chip-on, .chip-on:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-green.chip-on { background: var(--green); border-color: var(--green); color: var(--surface); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 600; }
.badge .icon { width: 13px; height: 13px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 700; }

/* ---------- Startpagina ---------- */

.hero { padding: 44px 0 26px; text-align: center; }
.hero .eyebrow { justify-content: center; font-size: 1rem; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.02em; margin: 4px 0 22px; }
.hero .chips-scroll { margin-top: 18px; }
@media (min-width: 761px) { .hero .chips-scroll { justify-content: center; flex-wrap: wrap; overflow: visible; margin: 18px auto 0; padding: 0; max-width: 820px; } }

.bigsearch {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px; box-shadow: var(--shadow);
}
.bigsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.bigsearch > .icon { margin-left: 12px; color: var(--muted); }
.bigsearch input { flex: 1; min-width: 0; border: 0; background: none; height: 46px; font-size: 1.05rem; outline: none; }
.bigsearch .btn { border-radius: 999px; height: 46px; padding: 0 22px; }

.notice {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 10px 0 8px;
}
.notice-actions { display: flex; gap: 8px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 16px; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.section-head h2.h3 { font-size: 1.25rem; }
.section-head a { text-decoration: none; font-weight: 600; }

/* ---------- Receptkaarten ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, box-shadow .18s; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-time {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(20, 14, 10, .62); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card-time .icon { width: 14px; height: 14px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 1.08rem; font-weight: 650; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.recipe-title, .page-title { overflow-wrap: break-word; hyphens: auto; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; margin-top: auto; min-width: 0; }
.card-meta span:not(.avatar) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { opacity: .6; }
.card-wrap { position: relative; }
.card-remove { position: absolute; top: 10px; right: 10px; margin: 0; }

.img-placeholder {
  --h: 20; width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--h) 55% 88%), hsl(calc(var(--h) + 30) 50% 80%));
  color: hsl(var(--h) 40% 40%);
}
.img-placeholder .icon { width: 48px; height: 48px; stroke-width: 1.4; opacity: .7; }
:root[data-theme="dark"] .img-placeholder { background: linear-gradient(135deg, hsl(var(--h) 25% 22%), hsl(calc(var(--h) + 30) 25% 17%)); color: hsl(var(--h) 40% 65%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .img-placeholder { background: linear-gradient(135deg, hsl(var(--h) 25% 22%), hsl(calc(var(--h) + 30) 25% 17%)); color: hsl(var(--h) 40% 65%); } }

/* ---------- Lijstkaarten ---------- */

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.list-card { display: block; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.list-covers { display: grid; aspect-ratio: 16 / 9; gap: 2px; background: var(--surface-2); }
.list-covers img { width: 100%; height: 100%; object-fit: cover; }
.list-covers.n2 { grid-template-columns: 1fr 1fr; }
.list-covers.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.list-covers.n3 img:first-child { grid-row: span 2; }
.list-card-body { padding: 14px 16px 16px; }
.list-card-body h3 { font-size: 1.08rem; font-weight: 650; margin-bottom: 4px; }
.list-card-body .badge { vertical-align: 1px; }

/* ---------- Leeg / meldingen ---------- */

.empty { text-align: center; padding: 56px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty > .icon { width: 52px; height: 52px; stroke-width: 1.3; color: var(--line-strong); }
.empty h3, .empty h1 { color: var(--text); font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.empty p { max-width: 42ch; }
.empty .btn { margin-top: 8px; }

.toasts { position: fixed; top: calc(var(--top-h) + 12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 460px); }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg);
  padding: 12px 10px 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 500; font-size: .95rem;
  animation: toast-in .25s ease-out;
}
.toast-error { background: var(--danger); color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: .25s; }
.toast-x { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 4px; display: grid; }
.toast-x .icon { width: 18px; height: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.alert { background: var(--danger-soft); color: var(--danger); padding: 12px 14px; border-radius: 12px; font-weight: 500; margin: 14px 0 0; }

/* ---------- Receptpagina ---------- */

.recipe-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; padding-top: 32px; }
.recipe-photo { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-head { display: flex; flex-direction: column; gap: 16px; }
.recipe-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -.02em; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; align-self: flex-start; }
.byline:hover { color: var(--text); }
.byline:hover strong { text-decoration: underline; }
.recipe-desc { font-size: 1.06rem; color: var(--muted); max-width: 58ch; }
.facts { display: flex; gap: 12px; margin: 0; flex-wrap: wrap; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; min-width: 120px; }
.facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.facts dt .icon { width: 16px; height: 16px; }
.facts dd { margin: 2px 0 0; font-weight: 650; font-size: 1.05rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.recipe-body { max-width: 780px; padding-top: 36px; }
.tabs {
  position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top)); z-index: 20;
  display: flex; align-items: center; gap: 6px; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line);
}
.tabs [role="tab"] {
  position: relative; background: none; border: 0; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  font-size: 1.05rem; font-weight: 650; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.tabs [role="tab"]:hover { color: var(--text); background: var(--surface-2); }
.tabs [role="tab"][aria-selected="true"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.tabs [role="tab"][aria-selected="true"] .count { background: var(--accent); color: var(--accent-ink); }
.wake {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.wake .icon { width: 16px; height: 16px; }
.wake[aria-pressed="true"] { background: var(--green-soft); color: var(--green); border-color: transparent; }

.panel { padding: 22px 0 8px; }
.panel[hidden] { display: none; }
.panel-note { margin-bottom: 14px; }
.ingredients, .steps { list-style: none; margin: 0; padding: 0; }
.ingredients li:not(.sub) { border-bottom: 1px solid var(--line); }
.ingredients label { display: flex; align-items: flex-start; gap: 14px; padding: 13px 4px; cursor: pointer; font-size: 1.06rem; }
.ingredients input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border: 2px solid var(--line-strong); border-radius: 7px; background: var(--surface); cursor: pointer; display: grid; place-items: center; transition: .15s; }
.ingredients input::after { content: ""; width: 12px; height: 7px; border: solid var(--accent-ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ingredients input:checked { background: var(--accent); border-color: var(--accent); }
.ingredients input:checked::after { opacity: 1; }
.ingredients input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.sub { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; padding: 22px 4px 6px; color: var(--text); }
.ingredients .sub:first-child, .steps .sub:first-child { padding-top: 0; }

.steps { display: flex; flex-direction: column; gap: 12px; }
.step {
  display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 16px 18px; cursor: pointer; transition: opacity .2s, background .2s; font-size: 1.06rem; line-height: 1.65;
}
.step-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 750; font-size: .95rem; margin-top: 1px; }
.step.done { opacity: .5; background: transparent; }
.step.done .step-n { background: var(--green); color: var(--surface); font-size: 0; }
.step.done .step-n::after { content: "✓"; font-size: 1rem; }

.source { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin-top: 26px; flex-wrap: wrap; }
.source .icon { width: 16px; height: 16px; }
.danger-zone { margin-top: 30px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.more { margin-top: 20px; }

/* ---------- Dialoog (onder op telefoon, midden op computer) ---------- */

dialog.sheet {
  border: 0; padding: 0; background: var(--surface); color: var(--text); border-radius: 22px; box-shadow: var(--shadow-lg);
  width: min(460px, calc(100vw - 32px)); max-height: 85vh;
}
dialog.sheet::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: sheet-in .22s ease-out; }
dialog.sheet form { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -8px 0 0; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }

.checklist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: 0; }
.check-row:hover { background: var(--surface-2); }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: .15s; }
.check-box .icon { width: 16px; height: 16px; stroke-width: 3; opacity: 0; color: var(--accent-ink); }
.check-row input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check-row input:checked + .check-box .icon { opacity: 1; }
.check-row input:focus-visible + .check-box { outline: 3px solid var(--accent-soft); }
.check-label { flex: 1; font-weight: 550; }
.check-row .muted .icon { width: 16px; height: 16px; }

/* ---------- Formulieren ---------- */

.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; border: 0; margin: 0; padding: 0; min-width: 0; }
.label { font-weight: 650; font-size: .95rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.hint { color: var(--muted); font-size: .86rem; margin-top: -3px; }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 550; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

input[type="text"], input[type="url"], input[type="number"], input[type="password"], input[type="email"], textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 12px;
  padding: 11px 14px; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
input[type="text"], input[type="url"], input[type="number"], input[type="password"], input[type="email"] { height: 48px; }
textarea { resize: vertical; line-height: 1.55; min-height: 80px; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { background: var(--surface-2); color: var(--muted); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }

.pw { position: relative; display: block; }
.pw input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 650; border-radius: 8px; padding: 6px 10px; cursor: pointer; }

.photo-drop {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: var(--radius-md);
  border: 2px dashed var(--line-strong); background: var(--surface); cursor: pointer; overflow: hidden; color: var(--muted); transition: border-color .15s;
}
.photo-drop:hover, .photo-drop.is-drag { border-color: var(--accent); color: var(--accent); }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; }
.photo-drop-empty .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.photo-drop-change { position: absolute; right: 12px; bottom: 12px; display: none; align-items: center; gap: 6px; background: rgba(20, 14, 10, .7); color: #fff; padding: 7px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.photo-drop-change .icon { width: 16px; height: 16px; }
.photo-drop.has-image { border-style: solid; border-color: transparent; }
.photo-drop.has-image .photo-drop-empty { display: none; }
.photo-drop.has-image .photo-drop-change { display: inline-flex; }

.tag-picker { margin-bottom: 4px; }

.import-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.import-text { display: flex; gap: 14px; align-items: center; }
.import-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.import-row { display: flex; gap: 10px; }
.import-row input { flex: 1; min-width: 0; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .88rem; margin: 26px 0 22px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.visibility { gap: 10px; }
.visibility legend { margin-bottom: 8px; }
.radio-card { display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; transition: .15s;
}
.radio-card > span .icon { grid-row: span 2; color: var(--muted); }
.radio-card small { color: var(--muted); font-size: .84rem; }
.radio-card input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.radio-card input:checked + span .icon { color: var(--accent); }
.radio-card input:focus-visible + span { outline: 3px solid var(--accent-soft); }

.switch-row { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 4px 0; }
.switch-row input { position: absolute; opacity: 0; }
.switch { flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.switch-row > span:last-child { display: flex; flex-direction: column; }
.switch-row small { color: var(--muted); font-size: .85rem; }

/* ---------- Inloggen ---------- */

.auth { display: grid; place-items: center; padding-top: 36px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--serif); font-weight: 600; margin-top: 16px; }
.auth-card > .muted { margin-top: 4px; }
.auth-card .form { margin-top: 22px; }
.auth-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); }
.auth-mark .icon { width: 30px; height: 30px; stroke-width: 1.9; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); }

.panel-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel-card h2 { margin-bottom: 16px; }
.panel-card > p { margin-bottom: 16px; }

/* ---------- Profiel en lijsten ---------- */

.profile { display: flex; align-items: center; gap: 20px; padding: 32px 0 8px; position: relative; }
.profile .page-title { margin: 0 0 2px; }
.bio { margin-top: 8px; max-width: 60ch; }
.profile-edit { margin-left: auto; align-self: flex-start; }
.subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 20px 0 24px; }
.subtabs a { padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.subtabs a:hover { color: var(--text); }
.subtabs a[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.list-head { padding-top: 32px; }
.list-head .page-title { margin: 6px 0 12px; }
.list-head .actions { margin-top: 18px; }
.list-head .eyebrow a { font-weight: 600; }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }

.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 20px 32px; }


/* ---------- Navigatie-extra's ---------- */
.topsearch { display: none !important; }
.brand { margin-right: auto; }
.nav-badge {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 6px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 750; line-height: 1; vertical-align: 1px; font-variant-numeric: tabular-nums;
}
.menu .nav-badge { margin-left: auto; }
.tab-icon { position: relative; display: inline-grid; }
.tab-icon .nav-badge { position: absolute; top: -6px; right: -12px; margin: 0; min-width: 17px; height: 17px; font-size: .62rem; box-shadow: 0 0 0 2px var(--surface); }
.hub-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.hub-link:hover { color: var(--accent); }
.hub-link .icon { width: 16px; height: 16px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--accent); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; }
.link-btn .icon { width: 17px; height: 17px; }
.btn-lg { min-height: 54px; font-size: 1.05rem; border-radius: 14px; }

/* ---------- Boodschappenlijst ---------- */
.shop .page-head { align-items: flex-end; margin-bottom: 18px; }
.shop .page-title { margin-bottom: 4px; }
.shop-count { min-height: 1.5em; }
.shop-add { display: flex; gap: 10px; margin-bottom: 26px; }
.shop-add input { flex: 1; min-width: 0; height: 50px; }
.shop-add .btn { min-height: 50px; }
.shop-group { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0 4px; margin-bottom: 18px; }
.shop-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 8px; }
.shop-group-head h2 { font-family: var(--serif); font-weight: 600; min-width: 0; overflow-wrap: break-word; }
.shop-group-head a { color: var(--text); text-decoration: none; }
.shop-group-head a:hover { color: var(--accent); }
.shop-group-head form { flex: none; }
.shop-list { list-style: none; margin: 0; padding: 0; }
.shop-item { display: flex; align-items: center; border-top: 1px solid var(--line); padding-right: 8px; }
.shop-item form:first-child { flex: 1; min-width: 0; }
.shop-check { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 18px; background: none; border: 0; text-align: left; cursor: pointer; font-size: 1.04rem; color: var(--text); }
.shop-check:hover .check-box { border-color: var(--accent); }
.shop-text { min-width: 0; overflow-wrap: break-word; }
.shop-item.is-done .check-box { background: var(--green); border-color: var(--green); }
.shop-item.is-done .check-box .icon { opacity: 1; color: var(--surface); }
.shop-item.is-done .shop-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.shop-del { width: 36px; height: 36px; color: var(--muted); opacity: .6; }
.shop-del:hover { opacity: 1; color: var(--danger); }
.shop-del .icon { width: 17px; height: 17px; }
.shop-footer { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.checklist-scroll { max-height: 48vh; overflow-y: auto; }
.check-sub { padding: 12px 14px 6px; font-family: var(--serif); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--surface-2); }

/* ---------- Maaltijdkiezer ---------- */
.picker-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 14px; padding: 4px; align-self: flex-start; }
.stepper .icon-btn { width: 44px; height: 44px; background: var(--surface); box-shadow: var(--shadow-sm); }
.stepper input[type="number"] {
  width: 64px; height: 44px; border: 0; background: none; text-align: center; font-size: 1.35rem; font-weight: 750; padding: 0;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; box-shadow: none;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip-check { position: relative; display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check .chip .icon { display: none; }
.chip-check input:checked + .chip { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-check input:checked + .chip .icon { display: block; }
.chip-check input:focus-visible + .chip { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.segmented { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; margin-top: 12px; align-self: flex-start; flex-wrap: wrap; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 8px 14px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent-soft); }

.pick-result { margin-top: 10px; scroll-margin-top: calc(var(--top-h) + 12px); }
.pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pick-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px 10px 10px;
  scroll-margin-top: calc(var(--top-h) + 12px);
}
.pick-row.is-new { animation: pick-in .35s ease-out; }
.pick-row.is-busy { opacity: .55; }
@keyframes pick-in { from { opacity: 0; transform: scale(.97); } }
.pick-img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-img .img-placeholder .icon { width: 28px; height: 28px; }
.pick-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pick-title { color: var(--text); text-decoration: none; font-weight: 650; font-size: 1.05rem; line-height: 1.3; overflow-wrap: break-word; }
.pick-title:hover { color: var(--accent); }
.pick-info .icon { width: 14px; height: 14px; vertical-align: -2px; }
.pick-actions { display: flex; align-items: center; gap: 4px; }
.pick-actions form { margin: 0; }
.pick-add { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; }

@media (max-width: 760px) {
  .picker-card { padding: 20px 16px; border-radius: 18px; }
  .choice-row { grid-template-columns: 1fr; }
  .pick-row { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .pick-actions { grid-column: 1 / -1; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 8px; }
  .shop-add .btn span { display: none; }
  .shop-add .btn { padding: 0 14px; }
  .shop-check { padding: 13px 14px; }
  .shop-group-head { padding: 12px 14px 8px; }
  .tabbar a { font-size: .62rem; letter-spacing: -.01em; }
  .tabbar a span:last-child { white-space: nowrap; }
}

/* ---------- Tabbalk (alleen telefoon) ---------- */

.tabbar { display: none; }

@media (max-width: 760px) {
  :root { --top-h: 56px; }
  .topsearch, .topnav { display: none; }
  .topbar-inner { padding: 0 12px 0 16px; gap: 4px; }
  .brand { margin-right: auto; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-mark .icon { width: 21px; height: 21px; }
  .brand-name { font-size: 1.1rem; }

  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
  .tabbar a .icon { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar .avatar-xs { width: 26px; height: 26px; font-size: .66rem; }
  .tabbar a[aria-current="page"] .avatar { box-shadow: 0 0 0 2px var(--accent); }
  .tab-add-circle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent); }
  .tab-add-circle .icon { width: 26px; height: 26px; stroke-width: 2.2; }
  .tabbar .tab-add[aria-current="page"] .tab-add-circle { background: var(--accent-hover); }

  .wrap { padding: 0 16px; }
  .chips-scroll { margin: 0 -16px; padding: 2px 16px; }
  .hero { padding: 26px 0 10px; }
  .hero-title { margin-bottom: 18px; }
  .bigsearch .btn { padding: 0 16px; }
  .section-head { margin-top: 28px; }
  .section-head h2 { font-size: 1.3rem; }

  .grid, .grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { border-radius: 14px; }
  .card-body { padding: 10px 11px 12px; gap: 7px; }
  .card-title { font-size: .95rem; }
  .card-tags { display: none; }
  .card-meta { font-size: .76rem; }
  .card-meta .dot, .card-meta span:last-child:not(:nth-child(2)) { display: none; }
  .card-time { left: 7px; bottom: 7px; font-size: .72rem; padding: 3px 7px; }
  .card:hover { transform: none; }
  .list-grid { grid-template-columns: 1fr; gap: 14px; }
  .list-card { display: grid; grid-template-columns: 116px 1fr; align-items: center; }
  .list-card .list-covers { aspect-ratio: 1; height: 100%; }
  .list-covers.n2, .list-covers.n3 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .list-covers.n2 img:not(:first-child), .list-covers.n3 img:not(:first-child) { display: none; }
  .list-covers.n3 img:first-child { grid-row: auto; }

  .recipe-top { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .recipe-photo { margin: 0 -16px; border-radius: 0; box-shadow: none; }
  .recipe-title { font-size: 2rem; }
  .actions .btn { flex: 1 1 40%; padding: 0 12px; }
  .recipe-body { padding-top: 22px; }
  .tabs [role="tab"] { padding: 9px 12px; font-size: 1rem; }
  .wake span { display: none; }
  .wake { padding: 8px; }
  .ingredients label, .step { font-size: 1.02rem; }
  .step { padding: 14px; gap: 12px; }

  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog.sheet[open] { animation: sheet-up .25s ease-out; }
  .import-row { flex-direction: column; }
  .field-row { gap: 12px; }
  .auth { padding-top: 16px; }
  .auth-card { padding: 26px 20px; box-shadow: none; background: transparent; }
  .notice { padding: 14px 16px; }
  .profile { gap: 14px; padding-top: 24px; align-items: flex-start; }
  .avatar-lg { width: 60px; height: 60px; font-size: 1.3rem; }
  .form-actions .btn { flex: 1; }
  .panel-card { padding: 20px 16px; }
  .toasts { top: calc(var(--top-h) + 8px + env(safe-area-inset-top)); }
}
@keyframes sheet-up { from { transform: translateY(100%); } }

@media (min-width: 761px) and (max-width: 1000px) {
  .topnav a:not(.btn) { display: none; }
  .recipe-top { gap: 28px; }
}

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

/* ---------- Afdrukken ---------- */

@media print {
  .topbar, .tabbar, .footer, .actions, .wake, .danger-zone, .more, .toasts, .tabs [role="tab"]:not([aria-selected]) { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .panel[hidden] { display: block !important; }
  .tabs { position: static; border: 0; }
  .recipe-top { grid-template-columns: 1fr 1fr; }
  .card, .step { box-shadow: none; }
}
