/* Smulwijs web interface. Calm and clean: a cool light-blue ground, white
   cards, one blue accent and orange only for bonus labels. Phone first; from
   900px wide the bottom bar becomes a sidebar. */

:root {
  --ground: #F3F6FB;
  --surface: #FFFFFF;
  --sunken: #E4EAF3;
  --tile: #EBF0F7;
  --border: #DAE2ED;
  --divider: #E7ECF3;
  --text: #16213A;
  --muted: #53607A;
  --soft-muted: #8390A8;
  --accent: #1F5FC4;
  --accent-strong: #164A9C;
  --accent-soft: #E6EFFC;
  --bonus: #9A4309;
  --bonus-soft: #FDEEDF;
  --danger: #A3262A;
  --danger-soft: #FBE9E8;
  --radius: 16px;
  --nav-height: 70px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
h1, h2 { margin: 0; }
button, input { font: inherit; color: inherit; }

.icon { width: 22px; height: 22px; flex: none; }

/* Layout */

.app { min-height: 100vh; }

.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px calc(var(--nav-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.brand { display: none; }

/* Instellingen is a small gear: in the phone's top bar, and beside the
   name in the sidebar. */
.topbar { display: flex; align-items: center; justify-content: space-between; margin: -12px 0 -4px; }
.topbar-brand { --logo-knockout: var(--ground); display: inline-flex; font-size: 20px; }
.settings-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.settings-link .icon { width: 20px; height: 20px; }
.settings-link:hover { background: var(--ground); color: var(--text); }
.settings-link[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.nav { display: flex; padding: 4px 8px 8px; }

.nav a {
  flex: 1;
  min-height: 56px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  border-radius: 12px;
}

.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* The bottom bar has no room for a long label; the sidebar has. */
.nav-long { display: none; }

.nav-count {
  position: absolute;
  top: 6px;
  left: calc(50% + 6px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 900px) {
  .app { display: flex; }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 240px;
    flex: none;
    border-top: 0;
    border-right: 1px solid var(--border);
    padding: 28px 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .brand { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
  .topbar { display: none; }
  .nav { flex-direction: column; gap: 4px; padding: 0; }
  .nav a {
    flex: none;
    min-height: 44px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 12px;
    color: var(--text);
    font-size: 15px;
  }
  .nav a:hover { background: var(--ground); color: var(--text); }
  .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }
  .nav-label { flex: 1; }
  .nav-short { display: none; }
  .nav-long { display: inline; }
  .nav-count { position: static; background: var(--sunken); color: var(--text); }
  .nav a[aria-current="page"] .nav-count { background: var(--accent); color: #FFFFFF; }
  .content { flex: 1; min-width: 0; padding: 32px; gap: 20px; }
}

/* The logo: the mark beside the name. The size follows the font size of
   where it stands; the steam is cut out in the colour of the surface. */

.brand-lockup { display: inline-flex; align-items: center; gap: 0.4em; --logo-knockout: var(--surface); }
.logo-mark { flex: none; width: 1.5em; height: 1.5em; }
.logo-hat { fill: var(--accent); }
.logo-base { fill: var(--text); }
.logo-steam { stroke: var(--logo-knockout); }
.wordmark { font-family: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--text); }
.wordmark-wijs { color: var(--accent); }

/* Page parts */

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 900px) { .page-head h1 { font-size: 30px; } }

.muted { margin: 0; color: var(--muted); font-size: 14px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flash {
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 500;
}
.flash-error { background: var(--danger-soft); color: var(--danger); }

.empty { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.empty p { margin: 0; }

.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.split-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split-side { flex: 1 1 260px; min-width: 0; }
@media (min-width: 900px) { .split-side { position: sticky; top: 32px; } }

.group { display: flex; flex-direction: column; gap: 8px; }
.group-title { padding: 0 4px; font-size: 15px; font-weight: 600; }

/* A page that replaces another fades in instead of flashing, in browsers that
   can do it; the header stays where it is. */
@view-transition { navigation: auto; }
.lp-header { view-transition-name: lp-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.12s; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none; } }

/* ======== Shared parts: rows, buttons, fields and chips that every page uses ======== */

/* Product rows */

.list { overflow: hidden; }

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  scroll-margin-top: 24px;
}
.row + .row { border-top: 1px solid var(--divider); }

.tile {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 12px;
  background: var(--tile);
  object-fit: contain;
}
.tile-empty { display: flex; align-items: center; justify-content: center; color: var(--soft-muted); }

.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-title { font-weight: 500; line-height: 1.3; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

.badge {
  background: var(--bonus-soft);
  color: var(--bonus);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.was { color: var(--muted); font-weight: 400; font-size: 13px; }

.row-end { display: flex; flex-direction: column; align-items: flex-end; }
.row-end .amount { padding-right: 12px; }

.stepper { display: flex; align-items: center; }
.stepper form { margin: 0; }
.qty { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.row-action { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* Links on product rows */

.tile-link { flex: none; display: flex; }
.row-link { color: var(--text); text-decoration: none; }
.row-link:hover { color: var(--accent-strong); text-decoration: underline; }

/* Buttons and inputs */

.icon-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-button .icon { width: 18px; height: 18px; }
.icon-button:hover { background: var(--ground); }
.icon-button.accent { color: var(--accent); }

.button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-strong); color: #FFFFFF; }
.button .icon { width: 20px; height: 20px; }
.button-wide { width: 100%; min-height: 52px; font-size: 16px; }
.button[disabled] { opacity: 0.7; cursor: progress; }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.45; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 13px 'DM Sans', system-ui, sans-serif; flex: none; }
.ghost-list { display: grid; gap: 8px; margin-top: 8px; }
.ghostrow { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 14px; background: rgba(255, 255, 255, 0.55); color: var(--muted); font-weight: 600; }
.ghostrow .step-n { background: var(--tile); color: var(--muted); }
.ghostrow small { margin-left: auto; font-weight: 500; }
.form-ask { color: var(--text); font-weight: 600; }
.lp-form .cf-turnstile { width: 100%; display: flex; justify-content: center; }
.generate-hint { margin: 0; font-size: 14px; text-align: center; }

.round-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.round-button.filled { background: var(--accent); color: #FFFFFF; }
.round-caption { font-size: 11px; color: var(--muted); }

.summary { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.summary form { margin: 0; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; }
.total-figures { display: flex; align-items: baseline; gap: 8px; }
.total-figures .badge { align-self: center; }
.total-figures .was { font-size: 14px; font-variant-numeric: tabular-nums; }
.total { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }

.search { display: flex; flex-direction: column; gap: 6px; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
}
.search-field:focus-within { border-color: var(--accent); }

/* The input card: the field sits on a tinted ground inside a card, with its
   submit button and a camera at the end. */
.input-card { padding: 10px; }
.input-card .search-field { background: var(--ground); border-color: transparent; border-radius: 12px; }
.input-card .search-field:focus-within { background: var(--surface); border-color: var(--accent); }
.search-field form { margin: 0; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.search-field .scan-photo { flex: none; flex-direction: row; gap: 0; }
.search-field .icon-button { color: var(--muted); }
.search-field .icon-button .icon { width: 22px; height: 22px; color: inherit; }
.search-field .field-submit { color: var(--accent); }
.search-field .scan-button { cursor: pointer; }
.search-field .icon { color: var(--muted); width: 20px; height: 20px; }
.search-field input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; font-size: 16px; }

.chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.chip:hover { color: var(--text); border-color: var(--soft-muted); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.chip .icon { width: 16px; height: 16px; }

.result-count { padding: 0 4px; }

/* Password fields with a button that shows what is typed. */
.password-wrap { position: relative; display: block; }
.password-wrap input { width: 100%; padding-right: 48px; }
.password-eye {
  position: absolute; top: 0; right: 0; bottom: 0; width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--muted); cursor: pointer;
}
.password-eye:hover, .password-eye[aria-pressed="true"] { color: var(--accent); }

/* The × that takes something away: red on hover. */
.remove-x { color: var(--muted); }
.remove-x:hover { color: var(--danger); background: var(--danger-soft); }

/* The item row: how every list shows an ingredient or product. A checkbox
   on the left, the product or text in the middle, and on the right the
   amount as a pill at the top with the actions at the bottom. The buttons
   look small but their tappable area is larger. */

.item { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; scroll-margin-top: 24px; }
.item ~ .item { border-top: 1px solid var(--divider); }
.item .tile { width: 44px; height: 44px; border-radius: 10px; }
.item-ingredient { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: -2px; }
.item-done .row-title, .item-done .amount { text-decoration: line-through; color: var(--muted); }
.item-done .tile { opacity: 0.5; }
.item-done .bought-box { background: var(--accent); border-color: var(--accent); }

.item-remove { display: inline; margin: 0; }
.item-remove .remove-x { display: inline-flex; vertical-align: -3px; margin-left: 4px; padding: 2px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; position: relative; }
.item-remove .remove-x .icon { width: 16px; height: 16px; }
.item-remove .remove-x::after { content: ''; position: absolute; inset: -10px; }

.item-pick {
  align-self: flex-start;
  min-height: 34px;
  padding: 0 12px 0 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.item-pick:hover { background: var(--accent); color: #FFFFFF; }
.item-pick .icon { width: 16px; height: 16px; }

.item-side { flex: none; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 6px; }
.item-stepper { border: 1px solid var(--border); border-radius: 999px; padding: 0 2px; }
.item-stepper .icon-button { width: 26px; height: 30px; border-radius: 999px; position: relative; }
.item-stepper .icon-button::after { content: ''; position: absolute; inset: -7px -4px; }
.item-stepper .icon-button[disabled] { color: var(--soft-muted); cursor: default; background: transparent; }
.item-stepper .qty { min-width: 14px; }
.item-times { font-size: 13px; color: var(--muted); padding-right: 4px; }
.item-icons { display: flex; gap: 2px; }
.item-icons form { margin: 0; }
.item-icons .icon-button { width: 32px; height: 32px; border-radius: 10px; color: var(--muted); position: relative; }
.item-icons .icon-button::after { content: ''; position: absolute; inset: -6px -2px; }
.item-icons .item-ai[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.item-off .row-title { color: var(--muted); }
.item-off .tile { opacity: 0.5; }
.item-action { margin: 2px 0 0; }
.item-action .text-button { min-height: 32px; font-size: 13px; }
.item-select { display: flex; }
.selection-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }

/* Rows with a round checkbox, as the list's ticks look. */
.round-check { cursor: pointer; }
.round-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.round-box { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); color: #FFFFFF; }
.round-box .icon { width: 16px; height: 16px; visibility: hidden; }
.round-check input:checked + .round-box { background: var(--accent); border-color: var(--accent); }
.round-check input:checked + .round-box .icon { visibility: visible; }
.round-check input:focus-visible + .round-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.cook-list { margin: 0; }

/* A group of rows: a header that folds it shut, then its card. The header
   holds an optional check for the whole group, the title with a muted line
   below it, a tag, the count, an action and the chevron. A folded group is
   just that header, as a bar. */
.fold { display: flex; flex-direction: column; gap: 8px; }
.group-head { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 4px; list-style: none; cursor: pointer; user-select: none; }
.group-head::-webkit-details-marker { display: none; }
.group-head .bought-form { margin: 0; }
.group-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.group-name .group-title { padding: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group-sub { font-size: 13px; }
.group-count { flex: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.group-head .tag { flex: none; }
.group-head .group-action { width: 32px; height: 32px; color: var(--accent); margin: -4px 0; }
.group-chev { flex: none; width: 32px; height: 32px; margin-right: -4px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.group-chev .icon { width: 18px; height: 18px; transition: transform 0.15s; }
.fold[open] .group-chev .icon { transform: rotate(180deg); }
.group-head:hover .group-chev { color: var(--text); }
.fold:not([open]) > .group-head { padding: 6px 8px 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.plan-past .group-title { color: var(--muted); }
.plan-entry + .plan-entry { border-top: 1px solid var(--divider); }

/* List filters. Checkbox chips hide their box; the label shows the state. */

.filters { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters .chip { cursor: pointer; user-select: none; }
.filters .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters .chip .icon { display: none; }
.filters .chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.filters .chip:has(input:checked) .icon { display: block; }
.filters .chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-select select {
  min-height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  max-width: 220px;
}
.filter-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filters .text-button { min-height: 36px; }
.js .filter-apply { display: none; }

/* On the phone the filters form one row that scrolls sideways. */
@media (max-width: 899px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters > * { flex: none; }
  .filter-select select { max-width: 190px; }
}

/* Links that choose how a page is arranged, as chips. */
.view-switch { margin: 0 0 12px; }
.view-switch .chip { text-decoration: none; }
.view-switch .chip .icon { display: none; }
.view-switch .chip-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.view-switch .chip-on .icon { display: block; }

/* The diets are chips that are ticked, as the filters are. */
.opt-chips { flex: 1 1 200px; display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chips .chip { cursor: pointer; user-select: none; }
.opt-chips .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-chips .chip .icon { display: none; }
.opt-chips .chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.opt-chips .chip:has(input:checked) .icon { display: block; }
.opt-chips .chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-more { border-top: 1px solid var(--divider); }
.opt-more-toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; list-style: none; cursor: pointer; user-select: none; color: var(--accent-strong); font-weight: 600; }
.opt-more-toggle::-webkit-details-marker { display: none; }
.opt-more[open] .group-chev .icon { transform: rotate(180deg); }
.opt-more > .opt-row { padding-top: 0; border-top: 0; }

.chip-toggle { cursor: pointer; user-select: none; }
.chip-toggle .icon { display: none; }
.chip-toggle[aria-pressed="true"] .icon { display: block; }
.item-toggle { margin-top: 6px; }

/* The star on a price that needs a second package, and its note. */
.price-star { margin-left: 2px; color: var(--deal, #9A4309); font-weight: 800; text-decoration: none; }
.price-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); max-width: 46em; }
.price-note b { color: var(--deal, #9A4309); }
.lp-savings strong .price-star { font-size: 0.6em; vertical-align: super; }
.lp-form > .price-note { margin: 16px auto 0; text-align: center; }

/* While the form is being updated in the background, and it takes a while. */
.lp-form form.is-updating { opacity: 0.65; pointer-events: none; transition: opacity 0.15s; }
.feedback-form textarea { width: 100%; }

/* The app's feedback button floats bottom right on every page: a round button
   above the bottom bar on a phone, a pill with its label on a wide screen.
   On a page with a bar that stays in view at the bottom, it moves up. */
.feedback-button {
  position: fixed;
  right: 12px;
  bottom: calc(var(--nav-height) + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: 0 4px 16px rgba(22, 33, 58, 0.12);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.feedback-button .icon { width: 20px; height: 20px; }
.feedback-button:hover { color: var(--accent); border-color: var(--accent); }
.feedback-button-label { display: none; }
body:has(.selection-bar, .split-side .summary) .feedback-button { bottom: calc(var(--nav-height) + 96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .feedback-button, body:has(.selection-bar, .split-side .summary) .feedback-button { right: 24px; bottom: 24px; width: auto; padding: 0 16px; }
  body:has(.selection-bar) .feedback-button { bottom: 96px; }
  .feedback-button-label { display: inline; }
}
@media print { .feedback-button { display: none; } }
.photo-pick-box, .photo-pick-chosen { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 12px; }
.photo-pick-box { border: 1.5px dashed var(--border); background: var(--ground); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.photo-pick-box:hover { border-color: var(--accent); background: var(--accent-soft); }
.photo-pick input:focus-visible + .photo-pick-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-pick-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--surface); color: var(--accent); }
.photo-pick-icon .icon { width: 22px; height: 22px; }
.photo-pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.photo-pick-text strong { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-pick-text span { font-size: 13px; color: var(--muted); }
.photo-pick-chosen { border: 1.5px solid var(--border); background: var(--surface); }
.photo-pick-chosen img { width: 48px; height: 48px; flex: none; object-fit: cover; border-radius: 8px; background: var(--tile); }
.photo-pick-error { font-size: 13px; color: var(--danger); }
.photo-pick [hidden] { display: none; }

/* ======== The app: shopping list ======== */

/* On the phone the shopping-list total stays above the bottom bar. */
@media (max-width: 899px) {
  .split-side:has(.summary) { position: sticky; bottom: calc(var(--nav-height) + 8px); }
  .split-side .summary { padding: 12px 16px; gap: 10px; box-shadow: 0 4px 16px rgba(22, 33, 58, 0.12); }
  .split-side .summary .hint { display: none; }
}

/* Whether a shopping-list line is on the online AH list. The two states
   differ in icon and text as well as colour. */
.status { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.status .icon { width: 14px; height: 14px; }
.status-sent { color: var(--accent-strong); }
.status-pending { color: #3B4862; }
.title-line { min-width: 0; line-height: 1.3; }
.sent-icon { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; vertical-align: -3px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.sent-icon .icon { width: 16px; height: 16px; }
.sent-icon.status-sent .icon { stroke-width: 2.6; }
.all-sent { margin: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.all-sent .icon { width: 18px; height: 18px; }
.summary .text-button { align-self: center; }

/* Shopping-list lines in recipe groups. */

.group-link { color: var(--text); text-decoration: none; }
.group-link:hover { color: var(--accent-strong); text-decoration: underline; }
.move-button { flex: none; color: var(--accent-strong); }

/* On a phone the list rows are tight, so their buttons are narrower. */
@media (max-width: 599px) {
  .row > .move-button { width: 32px; margin-left: -6px; }
  .row-end .stepper .icon-button { width: 34px; }
}

/* The page with destinations for a line. */

.move-options form { margin: 0; }
.move-options form + form { border-top: 1px solid var(--divider); }
.move-option {
  width: 100%;
  min-height: 60px;
  padding: 10px 14px 10px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.move-option:hover:not([disabled]) { background: var(--ground); }
.move-option[disabled] { cursor: default; background: var(--accent-soft); }
.move-option[disabled] .icon { color: var(--accent-strong); }
.move-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Ticking off what was bought on the shopping list. */
.bought-form { margin: 0; display: flex; }
.bought-box { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); color: #FFFFFF; cursor: pointer; flex: none; }
.bought-box .icon { width: 16px; height: 16px; }
.bought-box:hover { border-color: var(--accent); }
.row-bought .bought-box { background: var(--accent); border-color: var(--accent); }
.row-bought .row-title, .row-bought .amount { text-decoration: line-through; color: var(--muted); }
.row-bought .tile { opacity: 0.5; }
.list-scan { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.to-pantry { margin: 0; }

/* A group on the list, with a circle that ticks off all its lines. */

/* A ticked circle before a group on the list. */
.bought-box[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }

/* The recipe a line is for, on the list grouped by category. */
.line-for { font-size: 12px; }

/* ======== The app: recipes and the cookbook ======== */

/* Recipes */

.back {
  align-self: flex-start;
  min-height: 44px;
  margin: -12px 0 -8px -8px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-weight: 600;
}
.back .icon { width: 20px; height: 20px; }

.tabs { display: flex; padding: 4px; background: var(--sunken); border-radius: 14px; }
.tabs a {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #475570;
  font-size: 14px;
  font-weight: 500;
}
.tabs a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(22, 33, 58, 0.12); }

.recipe-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }

.recipe-card {
  min-height: 72px;
  padding: 12px 12px 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}
.recipe-card:hover { color: var(--text); border-color: var(--soft-muted); }
.recipe-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.recipe-card-name { font-size: 16px; font-weight: 600; }
.chevron { color: var(--muted); width: 20px; height: 20px; }

.columns { display: flex; align-items: flex-start; gap: 20px; }
.column-main { flex: 1; min-width: 0; }

.only-wide-inline { display: none; }
@media (min-width: 1200px) {
  .only-wide-inline { display: inline; }
  .back { display: none; }
}

.recipe { overflow: hidden; }
.recipe-head { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--divider); }
.recipe-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.ingredient { min-height: 60px; padding: 6px 8px 6px 18px; }
.ingredient form { margin: 0; }

.check {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check .icon { width: 14px; height: 14px; stroke-width: 3; }
.check-open { background: transparent; border: 1.5px solid #B5C0D0; }

/* The circle as a button: a 44px target that takes the circle's own space. */
.check-toggle { margin: -11px; flex: none; }
.check-toggle button, a.check-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.check-toggle button:hover, a.check-toggle:hover { background: var(--ground); }
.check-toggle .check-open { border-color: #96A3B8; }
.chosen .row-link { color: inherit; }
.chosen { font-size: 13px; color: var(--accent-strong); }

.text-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
}
.text-button:hover { background: var(--ground); color: var(--text); }
.text-button .icon { width: 20px; height: 20px; }

.instructions { padding: 16px 20px 20px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 10px; }
.instructions h2 { font-size: 17px; font-weight: 600; }
.instructions p { margin: 0; white-space: pre-line; line-height: 1.55; }

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sunken);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}
.tag-accent { background: var(--accent-soft); color: var(--accent-strong); }

/* Recipe cards: the whole card links to the recipe. */

.recipe-card { padding: 4px 8px 4px 4px; gap: 4px; }
.recipe-card-link { flex: 1; min-width: 0; min-height: 64px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.recipe-card-link:hover { color: var(--text); }
.recipe-card:hover { border-color: var(--soft-muted); }

/* The recipe's ingredients against the chosen products. */

.ingredient-table { display: flex; flex-direction: column; }
.ingredient-table-head { display: none; }
.ingredient-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 10px 18px; border-top: 1px solid var(--divider); }
.ingredient-table-head + .ingredient-row { border-top: 0; }
.ingredient-name { display: flex; align-items: center; gap: 12px; }
.ingredient-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-left: 34px; }
.ingredient-pick form { margin: 0; }
.pick-actions .stepper { margin-right: 4px; }
.pick-actions .stepper .icon-button { width: 36px; }
.ingredient-pick .tile { width: 40px; height: 40px; border-radius: 10px; }
.pick-body { flex: 1 1 80px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pick-actions { display: flex; align-items: center; margin-left: auto; }
@media (min-width: 900px) {
  .ingredient-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 16px;
    padding: 10px 12px 6px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .ingredient-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 16px; }
  .ingredient-table-head + .ingredient-row { border-top: 1px solid var(--divider); }
  .ingredient-pick { padding-left: 0; }
}

.extras { padding: 16px 20px 20px; border-top: 1px solid var(--divider); display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.extras h2 { font-size: 17px; font-weight: 600; }

/* Extras have no ingredient: their empty first cell takes the place of an
   ingredient's circle, so the products line up. */
@media (max-width: 899px) {
  .extra-row { flex-direction: row; align-items: center; gap: 12px; }
  .extra-row .ingredient-name { flex: none; width: 22px; }
  .extra-row .ingredient-pick { flex: 1; min-width: 0; padding-left: 0; }
}

/* A recipe's page: the ingredients and what to do with them, and beside them
   on a wide screen the text of the recipe. */
.recipe-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.recipe-main, .recipe-side { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.js .recipe-folder button { display: none; }

/* The search and pantry buttons beside an ingredient's product. */
.pick-buttons { display: flex; align-items: center; flex: none; }
.pick-buttons .icon-button { width: 36px; height: 36px; }
.source-switch .chip .icon { display: block; }

/* Selecteren on a cookbook recipe. */
.select-form { margin: 8px 0 0; }

/* The cookbook's folders. */
.folder-row { color: var(--text); text-decoration: none; }
.folder-row:hover { background: var(--accent-soft); }
.folder-tile { color: var(--accent); background: var(--accent-soft); }
.folder-new { gap: 10px; }
.folder-new input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 15px; }
.folder-new input:focus { outline: none; border-color: var(--accent); }
.tabs .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.recipe-text { white-space: pre-line; }
.recipe-tips { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.recipe-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.field textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); font: inherit; font-size: 16px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--accent); }
.recipe-folder { margin: 0; padding: 16px 20px 20px; border-top: 1px solid var(--divider); display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.recipe-folder .field { flex: 1; min-width: 180px; }
.card.recipe-folder { border-top-color: var(--border); }

/* A cookbook recipe in the app, laid out as the recipes of the public site;
   it has no picture, and the menu beside it leaves less room. */
.lp-book { padding-bottom: 32px; }
.lp-book .back { margin-bottom: 8px; }
.lp-book .lp-recipe-head { grid-template-columns: 1fr; }
.lp-book .lp-recipe-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 4px; }
.lp-book .lp-cta form { margin: 0; }
.lp-book .planned-on { margin-top: 14px; }
.lp-book .lp-recipe-grid h2 { display: flex; align-items: center; gap: 10px; }
.lp-book .lp-recipe-grid .hint { margin: 0 0 12px; }
.lp-book .recipe-source { margin-top: 16px; }
@media (max-width: 1180px) {
  .lp-book .lp-recipe-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lp-book .lp-cta { gap: 10px; }
  .lp-book .lp-cta form:first-child { flex-basis: 100%; }
  .lp-book .lp-cta form:first-child .lp-btn { width: 100%; justify-content: center; }
}

/* ======== The app: planner and planned recipes ======== */

/* Planner */
.week-nav.card { padding: 6px 8px; }
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.week-title { font-weight: 600; text-align: center; }
.week-today { margin: -4px 0 0; text-align: center; }
.plan-day { scroll-margin-top: 24px; }
.plan-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 4px 16px; }
.plan-day-head h2 { margin: 0; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan-unscheduled { margin-bottom: 16px; padding-bottom: 4px; }
.plan-unscheduled .form-empty { padding: 4px 16px 12px; }

/* The week: one card, a compact row per day. */
.plan-week { padding: 0; overflow: hidden; }
.plan-row { scroll-margin-top: 24px; border-top: 1px solid var(--divider); padding: 4px 0; }
.plan-row:first-child { border-top: 0; }
.plan-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 0 14px; min-height: 40px; }
.plan-row-head h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan-row-head .icon-button { width: 36px; height: 36px; color: var(--accent); }
.plan-today > .group-head { background: var(--accent-soft); border-radius: 12px; padding: 6px 8px 6px 12px; }
.plan-past .plan-row-head h2 { color: var(--muted); }

.plan-entry { scroll-margin-top: 24px; display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 14px; min-height: 44px; }
.plan-entry form { margin: 0; }
.plan-entry .row-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.plan-entry .row-title { font-size: 15px; }
.plan-entry .icon-button { width: 36px; height: 36px; }
.plan-entry-icon { flex: none; display: inline-flex; color: var(--muted); }
.plan-entry-icon .icon { width: 18px; height: 18px; }
.plan-entry-cooked .row-title { color: var(--muted); }
.plan-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.plan-meta .tag { display: inline-flex; align-items: center; gap: 4px; }
.plan-meta .tag .icon { width: 14px; height: 14px; }
.plan-servings .icon-button { width: 32px; height: 32px; }
.plan-servings .qty { min-width: 52px; text-align: center; font-size: 14px; }

/* A planned copy's page. */
.copy-plan { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.copy-plan .planned-on { font-size: 15px; }
.copy-plan .move-button { width: 32px; height: 32px; }
.copy-servings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-intro { margin: 0; padding: 12px 20px 4px; }
.recipe-source { margin: 0; padding: 0 4px; }
.ingredient-off .row-title { color: var(--muted); }
.text-only { font-weight: 500; }
.plan-choice { margin: 0; }
.planned-on { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); font-size: 13px; font-weight: 500; }
.planned-on .icon { width: 16px; height: 16px; flex: none; }
.plan-when { display: inline-flex; align-items: center; gap: 4px; width: fit-content; color: var(--muted); font-size: 13px; text-decoration: none; }
.plan-when:hover { color: var(--accent-strong); }
.plan-when .icon { width: 15px; height: 15px; }

/* A planned copy's day, and adding an ingredient to it by name. */
.copy-day { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent-strong); }
.copy-day select { min-height: 42px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 15px; max-width: 100%; }
.js .copy-day button { display: none; }
.extra-add { display: flex; gap: 8px; margin: 0; }
.extra-add input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 16px; }
.extra-add input:focus { outline: none; border-color: var(--accent); }
.pick-buttons form { margin: 0; }
.pick-actions .hint { display: inline-flex; align-items: center; gap: 4px; }
.pick-actions .hint .icon { width: 14px; height: 14px; }

/* A planned copy's ingredients in groups: to buy, in the house, not needed. */
.ingredient-group { border-top: 1px solid var(--divider); }
.ingredient-group-title { margin: 0; padding: 14px 20px 6px; font-size: 16px; font-weight: 700; }
.ingredient-group-title .muted { font-weight: 500; }
.group-empty { margin: 0; padding: 0 20px 14px; }
.have-it { color: var(--accent-strong); }
.use-stock { margin-right: 6px; white-space: nowrap; }

/* A cooked copy: what each ingredient used. */
.used-list { list-style: none; margin: 0; padding: 0 0 8px; }
.used-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 20px; border-top: 1px solid var(--divider); }
.used-row:first-child { border-top: 0; }
.used-row.ingredient-off .row-title { color: var(--muted); }
.leftover-check { padding: 4px 0; }
.recipe-actions .tag { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* The cooked page: what is left of each product, as chips. */
.cook-list { width: 100%; box-sizing: border-box; }
.cook-row { display: block; padding: 10px 12px; }
.cook-row .row-body { display: flex; flex-direction: column; gap: 4px; }
.cook-left { flex: none; align-items: center; margin-top: 6px; gap: 6px; }
.cook-left .chip { flex: none; height: auto; min-height: 0; font-size: 14px; padding: 5px 12px; line-height: 1.2; }

/* A planned recipe's ingredients in the order of the recipe, each with its
   status: Kopen, In huis or Niet nodig, chosen in a column of buttons
   between the details and the amount, and in a row under the details on a
   narrow screen. The row's left edge shows the status. */
:root { --home: #1E7A4C; --home-soft: #E3F4EA; }
.status-list { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.status-title { font-family: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 0; }
.status-list > .hint { margin: 0; }
.status-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; }
.status-chip:hover { background: var(--tile); color: var(--text); }
.status-chip[aria-current="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status-dot.status-kopen { background: var(--accent); }
.status-dot.status-huis { background: var(--home); }
.status-dot.status-niet { background: var(--soft-muted); }
.status-rows .item { border-left: 4px solid transparent; }
.status-rows .item.item-st-kopen { border-left-color: var(--accent); }
.status-rows .item.item-st-huis { border-left-color: var(--home); }
.status-rows .item.item-st-niet { border-left-color: var(--divider); }
.status-rows .item.item-st-niet .row-title { text-decoration: line-through; }
.status-rows .item.item-st-huis .line-for { color: var(--home); font-weight: 600; }
.item-status { flex: none; align-self: stretch; width: 100px; display: flex; flex-direction: column; justify-content: center; gap: 4px; margin: 0; padding-left: 10px; border-left: 1px solid var(--divider); }
.item-status button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 8px; font: 600 13px 'DM Sans', system-ui, sans-serif; color: var(--muted); cursor: pointer; white-space: nowrap; text-align: center; }
.item-status button:hover { background: var(--tile); }
.item-status button[aria-pressed="true"] { color: #fff; }
.item-status button[aria-pressed="true"].status-kopen { background: var(--accent); border-color: var(--accent); }
.item-status button[aria-pressed="true"].status-huis { background: var(--home); border-color: var(--home); }
.item-status button[aria-pressed="true"].status-niet { background: var(--soft-muted); border-color: var(--soft-muted); }
.status-rows .item-side { width: 96px; justify-content: center; }
@media (max-width: 480px) {
  .status-rows .item { flex-wrap: wrap; }
  .item-status { order: 3; flex-basis: 100%; width: auto; flex-direction: row; padding: 0 0 0 62px; border-left: 0; }
  .item-status button { flex: 1; padding: 6px 4px; }
  .status-rows .item-side { width: auto; }
  .status-rows .item-side-empty { display: none; }
}
.status-alternative { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.status-alternative .hint { margin: 0; }
.status-alternative .item-pick { align-self: flex-start; }

/* Choosing what is in the house, from the pantry, is green as In huis. */
.item-pick.item-pick-home { color: var(--home); background: var(--home-soft); }
.item-pick.item-pick-home:hover { color: #fff; background: var(--home); }
.button.button-home { background: var(--home); }
.button.button-home:hover { background: #17633D; }

/* ======== The app: bonus, product details and search ======== */

/* Bonus */

@media (min-width: 1200px) { .back.back-always { display: inline-flex; } }

.note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--sunken); color: #3B4862; font-size: 14px; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
@media (min-width: 900px) { .category-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.category-tile {
  min-height: 84px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.category-tile:hover { color: var(--text); border-color: var(--soft-muted); }
.category-name { font-weight: 600; line-height: 1.25; }
.category-tile .icon { width: 14px; height: 14px; color: var(--bonus); }

/* Product details */

.product { padding: 20px; display: flex; flex-wrap: wrap; gap: 24px; }
.product-image {
  flex: 1 1 240px;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--tile);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-image .tile { width: 96px; height: 96px; }
.product-info { flex: 999 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.product-info h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.product-price { margin: 4px 0 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-price .was { font-size: 16px; }
.product-add { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.product-description { margin: 6px 0 0; line-height: 1.55; }

.facts { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.nutriscore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.nutrition { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.nutrition h2 { font-size: 18px; font-weight: 700; }
.nutrition table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 14px; }
.nutrition th, .nutrition td { padding: 8px 0; border-top: 1px solid var(--divider); text-align: left; font-weight: 400; }
.nutrition td { text-align: right; font-variant-numeric: tabular-nums; }
/* Recepten: what the whole recipe holds, under the recipe. */
.recipe-nutrition { margin-top: 24px; }
.recipe-nutrition table { max-width: 560px; }
.recipe-nutrition thead th { text-align: right; font-weight: 700; border-top: 0; }
.recipe-nutrition thead td { border-top: 0; }
.recipe-nutrition td + td { padding-left: 16px; }
.recipe-nutrition .nutrition-sub th { padding-left: 16px; color: var(--muted); }
.nutrition-skipped p { margin: 0 0 4px; }
.nutrition-skipped ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.nutrition-parts summary { cursor: pointer; font-weight: 600; }
.nutrition-parts table { margin-top: 8px; }
.nutrition-parts th span { display: block; font-size: 13px; }
.nutrition-parts td { white-space: nowrap; vertical-align: top; }
.nutrition-source { margin: 0; }

/* Zoeken: this week's bonus below the search field. */
.bonus-overview { display: flex; flex-direction: column; margin-top: 8px; }
.bonus-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.discount-choice { margin: 0; display: flex; align-items: center; gap: 8px; }
.discount-choice select, .category-choice select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.search-options { margin-top: 10px; }

/* ======== The app: forms and making a recipe ======== */

/* Forms: recipe builder, new recipe, confirmations */

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pill { border-radius: 999px; }
.page-head form { margin: 0; }

.recipe-head { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.recipe-head-text { display: flex; flex-direction: column; gap: 4px; }
.recipe-actions { display: flex; gap: 8px; }
.recipe-actions form { margin: 0; }

.text-button.bordered { border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.text-button.bordered:hover { border-color: var(--soft-muted); }

.button-danger { background: var(--danger); }
.button-danger:hover { background: #7E1C20; }

.form-card { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.form-card p { margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-actions form { margin: 0; }

.field { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; }
.field-narrow { max-width: 140px; }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
}
.field input:focus { outline: none; border-color: var(--accent); }

.builder-section { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.builder-section h2 { font-size: 18px; font-weight: 700; }
.builder-list { margin: 0 -20px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.builder-row { padding: 8px 12px 8px 20px; }
.builder-row form { margin: 0; }

.pick { display: flex; flex-direction: column; gap: 16px; }
.pick-list { margin: 0; padding: 0; min-width: 0; }
.pick-row { cursor: pointer; }
.pick-row input[type="radio"] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin: 0 4px 0 0; }
.pick-row:has(input:checked) { background: var(--accent-soft); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Recept maken */

.form-tile { display: flex; align-items: center; justify-content: center; color: var(--accent-strong); background: var(--accent-soft); }
.form-tile .icon { width: 22px; height: 22px; }
.form-servings { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; scroll-margin-top: 24px; }
.form-servings .qty { min-width: 28px; font-size: 18px; }
.form-servings form { margin: 0; }
.form-group { overflow: hidden; scroll-margin-top: 24px; }
/* Volgende stap: only on a phone, where the script folds the groups as steps. */
.step-next { display: flex; margin: 4px 12px 12px auto; }
.step-next[hidden] { display: none; }
details[data-step] { scroll-margin-top: 72px; }
.form-group-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--divider); }
.form-group-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.form-group .row form { margin: 0; }
.form-empty { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.form-none .tile { color: var(--muted); background: var(--sunken); }
.form-none .row-title { color: var(--muted); }
.form-select { min-height: 38px; width: 100%; max-width: 320px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.form-text { gap: 8px; }
.form-text-actions { display: flex; align-items: center; gap: 8px; }
.form-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; background: var(--ground); border-top: 1px solid var(--divider); }
.form-add > .muted { width: 100%; }
.form-add form { margin: 0; }
.form-add .chip { cursor: pointer; }
.form-add .scan-button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-check { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--accent); }
#genereer { margin: 0; }
.pan-button { color: var(--accent); }

/* ======== The app: pantry and AH orders ======== */

/* Pantry */

.scan-card { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.scan-card form { margin: 0; }
.scan-photo { display: flex; flex-direction: column; gap: 8px; }
.scan-button { cursor: pointer; }
.scan-button:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* With the script, choosing a photo sends it straight away. */
.js .photo-send { display: none; }

/* Unlike filter bars, these few choices wrap instead of scrolling. */
.scan-mode, .level-choice { gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }

.level { flex: none; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.level-in { background: var(--accent-soft); color: var(--accent-strong); }
.level-out { background: var(--sunken); color: var(--muted); }
.pantry-empty .tile { opacity: 0.5; }
.pantry-empty .row-title { color: var(--muted); }

.pantry-item .product-image { flex-basis: 160px; max-width: 200px; }
.pantry-state { margin: 0; font-size: 16px; }
.pantry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pantry-actions form { margin: 0; }
.level-choice .chip { cursor: pointer; }
.pantry-card { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pantry-card form { margin: 0; }
.pantry-card-head { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pantry-card h2 { font-size: 18px; font-weight: 700; }
.category-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Adding to the pantry by hand, and the pantry status of an ingredient. */
.pantry-add { margin-bottom: 12px; }
.pantry-add .extra-add { width: 100%; }
.in-pantry { white-space: nowrap; margin-right: 6px; }

/* The pantry's bar for the ticked items closes the page, and stays in view on a phone. */
.selection-bar.card { padding: 10px 12px; position: sticky; bottom: calc(var(--nav-height) + 8px); box-shadow: 0 4px 16px rgba(22, 33, 58, 0.12); }
@media (min-width: 900px) { .selection-bar.card { bottom: 16px; } }
.selection-bar .text-button { min-height: 36px; }
.item-list { margin: 0; }
.item-list .item { padding-left: 20px; padding-right: 16px; }

/* AH orders that came in by mail */
.order-notice { display: flex; gap: 8px; align-items: center; }
.order-notice .icon { flex: none; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 4px; }
.order-address input { width: 100%; }
.order-howto { margin-top: 12px; }
.order-howto summary { cursor: pointer; font-weight: 600; }
.order-howto ol { padding-left: 20px; }
.order-howto li { margin-bottom: 6px; }
.order-code { font-family: ui-monospace, monospace; letter-spacing: 1px; }

/* ======== The app: settings and logging in ======== */

/* Settings */

.settings { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.settings-section { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 24px; }
.settings-title { padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.settings-row { padding: 12px 12px 12px 16px; }
.settings-row form { margin: 0; }
.settings-section > .hint { padding: 0 4px; }
.settings-section .form-card + .form-card { margin-top: 4px; }

.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 16px;
}
.field select:focus { outline: none; border-color: var(--accent); }

/* Logging in and signing up: one narrow column without the menu. */
.content-public { max-width: 480px; padding-bottom: 48px; }
.public-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--muted); }
.public-footer a { color: inherit; }
.public-brand { --logo-knockout: var(--ground); display: inline-flex; font-size: 26px; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.choice input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--accent); }
.choice-body { display: flex; flex-direction: column; gap: 4px; }
.choice-body .hint { font-weight: 400; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; }
.choices { border: 0; padding: 0; margin: 0; gap: 10px; }

/* ======== The public site ======== */

/* The public form: the wishes for the recipe, one choice per line with its name. */
.options-card { padding: 4px 16px; }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--divider); }
.opt-row:first-child { border-top: 0; }
.opt-label { flex: 0 0 112px; font-size: 14px; font-weight: 600; color: var(--muted); }
.opt-row > .form-select, .opt-row > .multi-select { flex: 1 1 200px; width: auto; max-width: none; min-width: 0; }
.opt-row > .stepper { gap: 4px; }
.opt-row .qty { min-width: 36px; text-align: center; }
.opt-stack { align-items: stretch; }
.opt-stack .opt-label, .opt-stack .opt-notes { flex: 1 1 100%; }
.opt-notes { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
@media (max-width: 520px) { .opt-label { flex-basis: 100%; } }

/* Photos of the stock on the public form, between the wishes and the groups. */
.form-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.photos-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.photos-head { display: flex; gap: 12px; align-items: flex-start; }
.photos-head strong { display: block; margin-bottom: 2px; }
.photos-head .hint { margin: 0; }
.photos-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); }
.photos-icon .icon { width: 20px; height: 20px; }
.photos-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photos-thumbs[hidden] { display: none; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--divider); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(22, 33, 58, 0.7); color: #fff; cursor: pointer; padding: 0; }
.photo-thumb button .icon { width: 14px; height: 14px; }
.photos-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photos-actions .chip[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
/* A computer with a mouse has no camera to open; it only chooses files. */
@media (hover: hover) and (pointer: fine) { .stock-camera { display: none; } }
.photo-error { background: var(--danger-soft); color: var(--danger); }

/* A menu of checkboxes that looks like the choice lists beside it. */
.multi-select { position: relative; }
.multi-select > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 38px; padding: 0 30px 0 10px; width: 100%; max-width: none; position: relative; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.multi-select > summary::-webkit-details-marker { display: none; }
.multi-select > summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.multi-select[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.multi-panel { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(22, 33, 58, 0.14); }
.multi-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.multi-item:hover { background: var(--ground); }
.multi-item input { width: 18px; height: 18px; accent-color: var(--accent); }

/* The buttons to add something to a group are always there; the field or list
   a button opens shows above them, and the same button closes it. They are
   hidden checkboxes. */
.add-bar { border-top: 1px solid var(--divider); background: var(--ground); display: flex; flex-direction: column; }
.add-bar > input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.add-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; }
.add-choices .chip { cursor: pointer; user-select: none; }
.add-bar:has(input[value="tekst"]:checked) .add-tab-tekst,
.add-bar:has(input[value="willekeurig"]:checked) .add-tab-willekeurig { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.add-bar:has(input:focus-visible) .add-tab { outline: 2px solid var(--accent); outline-offset: 2px; }
.add-panel { display: none; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 0; }
.add-bar:has(input[value="tekst"]:checked) .add-panel[data-panel="tekst"],
.add-bar:has(input[value="willekeurig"]:checked) .add-panel[data-panel="willekeurig"] { display: flex; }
.add-panel .add-wide { width: 100%; max-width: none; flex: 1 1 100%; }
.add-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.add-row .form-select { flex: 1 1 auto; width: auto; max-width: none; min-width: 0; }
.opt-hint { flex: 1 1 100%; margin: -4px 0 0; font-size: 13px; color: var(--muted); }

/* Without scripts a button brings the page up to date; with them a change does. */
.js .refresh-button { display: none; }

/* A group shows only a plus; it opens the choices to add something. */
.add-open { display: flex; padding: 10px 16px; }
.add-plus { cursor: pointer; user-select: none; }
.add-plus .icon { transition: transform 0.15s; }
.add-bar:has(input[id^="menu-"]:checked) .add-plus .icon { transform: rotate(45deg); }
.add-bar:has(input[id^="menu-"]:checked) .add-plus { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.add-bar:has(input[id^="menu-"]:focus-visible) .add-plus { outline: 2px solid var(--accent); outline-offset: 2px; }
.add-menu { display: none; flex-direction: column; }
.add-bar:has(input[id^="menu-"]:checked) .add-menu { display: flex; }
.add-bar:has(input[id^="menu-"]:checked) .add-open { padding-bottom: 0; }
.add-panel[data-panel="tekst"] { flex-wrap: nowrap; }
.add-panel[data-panel="tekst"] .add-wide { flex: 1 1 auto; width: auto; min-width: 0; }

/* Home page of the public site: a landing page with the form in the middle.
   Every class starts with lp- so none touches the rest of the interface. */
.lp { --deal: #9A4309; --deal-soft: #FDEEDF; --orange: #F2A33A; font-size: 16px; line-height: 1.55; }
.lp h1, .lp h2, .lp h3 { font-family: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
.lp h3 { font-family: inherit; font-weight: 700; letter-spacing: -0.01em; }
:where(.lp p) { margin: 0; }
.lp-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.lp .icon { width: 22px; height: 22px; flex: none; }
.lp-header { position: sticky; top: 0; z-index: 5; background: rgba(243, 246, 251, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--divider); --logo-knockout: var(--ground); }
.lp-header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.lp-brand { display: inline-flex; font-size: 26px; text-decoration: none; color: var(--text); }
.lp-nav { display: flex; gap: 22px; align-items: center; }
.lp-nav a:not(.lp-btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.lp-nav a:not(.lp-btn):hover { color: var(--text); }
.lp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #fff; font: 600 16px 'DM Sans', system-ui, sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.lp-btn:hover { background: var(--accent-strong); color: #fff; }
.lp-btn-ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--border); }
.lp-btn-ghost:hover { background: var(--accent-soft); color: var(--accent-strong); }
.lp-btn-light { background: #fff; color: var(--text); }
.lp-btn-light:hover { background: var(--accent-soft); color: var(--text); }

.lp-hero { padding: 56px 0 24px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.lp-kicker { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--deal-soft); color: var(--deal); font-weight: 600; font-size: 14px; }
.lp-kicker .icon { width: 16px; height: 16px; }
.lp-edited { text-decoration: none; margin-bottom: 8px; }
.lp-edited:hover { text-decoration: underline; }
.lp-hero h1 { font-size: clamp(36px, 5.6vw, 58px); font-weight: 800; margin: 16px 0 14px; }
.lp-hero h1 em { font-style: normal; color: var(--accent); }
.lp-lead { font-size: 19px; color: var(--muted); max-width: 34em; margin-bottom: 24px; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Mailing a recipe: a button that opens a small form under the buttons. */
.lp-mail[open] { flex-basis: 100%; }
.lp-mail summary { list-style: none; width: fit-content; }
.lp-mail summary::-webkit-details-marker { display: none; }
.lp-mail[open] summary { background: var(--accent-soft); color: var(--accent-strong); }
.lp-mail-form { margin-top: 12px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; max-width: 480px; display: grid; gap: 8px; }
.lp-mail-row { display: flex; gap: 8px; }
.lp-mail-row input { flex: 1; min-width: 0; }
.lp-mail-form .hint { margin: 0; }
.lp-mail-notice { margin-top: 14px; max-width: 480px; }
.lp-order { margin-top: 16px; max-width: 560px; display: flex; flex-direction: column; gap: 8px; }
.lp-order .hint, .lp-order .flash { margin: 0; }
.lp-order .lp-cta { margin-top: 0; }
.lp-order form { display: contents; }
.lp-wrap > .lp-order { margin: 0 0 28px; }
.lp-order-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; }
.lp-order-title .icon { width: 18px; height: 18px; }
.lp-wait { max-width: 480px; margin: 24px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lp-wait .smulbert { width: 96px; height: auto; }
.lp-wait h1 { margin: 8px 0 4px; }
.lp-wait-count { font-size: 1.3em; }
.item-search { align-self: flex-start; margin-top: 6px; min-height: 30px; padding: 0 10px; font-size: 13px; text-decoration: none; }
.item-search .icon { width: 14px; height: 14px; }
@media (max-width: 480px) { .lp-mail-row { flex-direction: column; } }
.lp-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.lp-plate { position: relative; aspect-ratio: 1 / 1; max-width: 420px; margin-left: auto; width: 100%; }
.lp-disc { position: absolute; inset: 6%; border-radius: 50%; background: linear-gradient(145deg, #fff, #E6EFFC); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(31, 95, 196, 0.14); }
.lp-plate-logo { position: absolute; inset: 0; display: grid; place-items: center; --logo-knockout: #EEF4FD; }

/* Smulbert peeks out above the example card, between the floating labels. */
.lp-plate-logo .smulbert { position: absolute; left: 30.3%; top: 20.2%; width: 46.4%; height: auto; filter: drop-shadow(0 10px 18px rgba(22, 33, 58, 0.18)); }
.lp-float { position: absolute; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(22, 33, 58, 0.1); font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.lp-float .icon { width: 18px; height: 18px; }
.lp-float-a { top: 10%; right: 2%; color: var(--deal); }
.lp-float-b { top: 44%; right: -3%; }
.lp-float-c { top: 20%; left: 3%; }
.lp-mini-card { position: absolute; left: -2%; bottom: 6%; width: 62%; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 40px rgba(22, 33, 58, 0.16); border: 1px solid var(--divider); }
.lp-mini-card small { color: var(--muted); }
.lp-mini-card strong { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; line-height: 1.2; margin: 2px 0 6px; }
.lp-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--deal-soft); color: var(--deal); font-weight: 700; font-size: 12.5px; }

.lp-section { padding: 56px 0; }
.lp-tight { padding: 24px 0; }
.lp-head { max-width: 640px; margin-bottom: 28px; }
.lp-head-center { text-align: center; margin-left: auto; margin-right: auto; }
.lp-head h2, .lp-home h2, .lp-teaser h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; }
.lp-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.lp-eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.lp-eyebrow-light { color: var(--orange); }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-step { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 22px; }
.lp-n { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 800 18px 'Bricolage Grotesque', sans-serif; margin-bottom: 14px; }
.lp-step h3 { font-size: 20px; margin-bottom: 6px; }
.lp-step p { color: var(--muted); }

.lp-make { background: linear-gradient(180deg, var(--accent-soft), var(--ground)); }
.lp-form form { display: grid; gap: 16px; align-items: start; }
.lp-form .flash, .lp-form .photo-send, .lp-form .form-card { grid-column: 1 / -1; }
.lp-form .form-card { max-width: 420px; justify-self: center; width: 100%; }
.lp-form > .hint { max-width: 760px; margin: 20px auto 0; text-align: center; }
@media (min-width: 900px) {
  .lp-form form { grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr); gap: 20px; }
  .lp-form .form-side { grid-column: 1; }
  .lp-form #ingredienten { grid-column: 2; grid-row: 1 / span 2; }
}

/* The example cards keep the width of three in a row, and fewer stand in the middle. */
.lp-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.lp-cards > * { flex: 0 1 calc((100% - 32px) / 3); }
.lp-rcard { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lp-pic { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 54px; }
.lp-pic-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-pic-1 { background: linear-gradient(135deg, #FDEEDF, #FBD9AE); }
.lp-pic-2 { background: linear-gradient(135deg, #E3F3E6, #BFE3C6); }
.lp-pic-3 { background: linear-gradient(135deg, #E6EFFC, #BCD3F5); }
.lp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-card-body h3 { font-size: 19px; }
.lp-meta { color: var(--muted); font-size: 14.5px; display: flex; gap: 12px; flex-wrap: wrap; }
.lp-used { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.lp-sample { font-size: 13px; color: var(--muted); margin-top: 14px; }

.lp-home { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.lp-lead2 { color: var(--muted); font-size: 17px; margin: 12px 0 20px; }
.lp-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lp-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.lp-bi, .lp-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.lp-benefits div { display: flex; flex-direction: column; }
.lp-benefits span:not(.lp-bi) { color: var(--muted); font-size: 15.5px; }
.lp-phone { width: 100%; max-width: 280px; margin: 0 auto; border: 8px solid var(--text); border-radius: 36px; background: var(--ground); padding: 14px; box-shadow: 0 24px 60px rgba(22, 33, 58, 0.2); }
.lp-screen { display: grid; gap: 10px; }
.lp-scanbox { position: relative; height: 130px; border-radius: 16px; background: var(--text); display: grid; place-items: center; overflow: hidden; color: #fff; }
.lp-scanbox .icon { width: 72px; height: 72px; opacity: 0.85; }
.lp-laser { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: #ff5a4f; box-shadow: 0 0 10px #ff5a4f; }
.lp-found { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--divider); border-radius: 14px; padding: 10px; font-size: 14px; }
.lp-found div { display: flex; flex-direction: column; }
.lp-found small { color: var(--muted); }
.lp-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--tile); display: grid; place-items: center; font-size: 22px; flex: none; }
.lp-tip { background: var(--deal-soft); border-color: #F6D9B8; gap: 8px; }

.lp-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-ic { margin-bottom: 12px; }
.lp-why h3 { font-size: 18px; margin-bottom: 4px; }
.lp-why p { color: var(--muted); font-size: 15.5px; }

.lp-teaser { background: var(--text); color: #fff; border-radius: 28px; padding: 36px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.lp-teaser p { color: #B9C3DA; margin: 10px 0 18px; }
.lp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-stat { background: rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 16px; }
.lp-stat b { display: block; font: 800 34px 'Bricolage Grotesque', sans-serif; color: var(--orange); }
.lp-stat span { font-size: 14px; color: #B9C3DA; }

.lp-faq { max-width: 760px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--divider); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 22px; color: var(--accent); line-height: 1; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--muted); margin-bottom: 16px; }

.lp-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14.5px; background: var(--surface); --logo-knockout: var(--surface); }
.lp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.lp-footer h4 { margin: 0 0 8px; color: var(--text); font-size: 14px; }
.lp-footer a { display: block; color: var(--muted); text-decoration: none; margin: 4px 0; }
.lp-footer a:hover { color: var(--accent); }
.lp-footer a[hidden] { display: none; }
.lp-footer .lp-brand { font-size: 22px; margin-bottom: 8px; }
.lp-fine a { display: inline; margin: 0; text-decoration: underline; }
.lp-fine { grid-column: 1 / -1; border-top: 1px solid var(--divider); padding-top: 16px; font-size: 13px; }

@media (max-width: 860px) {
  .lp-nav a:not(.lp-btn) { display: none; }
  .lp-hero-grid, .lp-home, .lp-teaser { grid-template-columns: 1fr; }
  .lp-plate { margin: 0 auto; max-width: 320px; }
  /* A smaller, lower card keeps Smulbert's face in view on a narrow plate. */
  .lp-mini-card { bottom: -2%; padding: 10px 12px; }
  .lp-mini-card strong { font-size: 15px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-cards > * { flex-basis: 100%; }
  .lp-why { grid-template-columns: 1fr 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; }
  .lp-hero { padding-top: 32px; }
}

.lp-rcard-link { color: inherit; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.lp-rcard-link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(22, 33, 58, 0.12); color: inherit; }

/* The page of a recipe, in the style of the home page. */
.lp-recipe { padding: 28px 0 56px; }
.lp-back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-weight: 500; margin-bottom: 18px; }
.lp-back:hover { color: var(--accent); }
.lp-recipe .flash { margin-bottom: 16px; }
.lp-recipe-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; margin-bottom: 20px; }
.lp-recipe-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin: 12px 0 12px; }
.lp-recipe-img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--divider); box-shadow: 0 18px 44px rgba(22, 33, 58, 0.12); display: block; }
.lp-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.lp-fact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; }
.lp-fact .icon { width: 18px; height: 18px; color: var(--accent); }
.lp-background { color: var(--muted); max-width: 46em; margin: 0 0 28px; }

/* Smulbert's note: the mascot beside a speech bubble, above the background. */
.lp-note { display: flex; gap: 16px; align-items: flex-end; max-width: 46em; margin: 4px 0 28px; }
.lp-note .smulbert { flex: none; width: 108px; height: auto; margin-bottom: -4px; filter: drop-shadow(0 6px 10px rgba(22, 33, 58, 0.16)); }
.lp-note-bubble { position: relative; flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 20px 20px 20px 6px; padding: 14px 20px 16px; box-shadow: 0 10px 30px rgba(22, 33, 58, 0.08); }
.lp-note-bubble::before { content: ""; position: absolute; left: -8px; bottom: 14px; width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: rotate(45deg); }
.lp-note-name { display: flex; gap: 6px; align-items: baseline; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 16px; color: var(--accent); margin-bottom: 4px; }
.lp-note-name small { font-weight: 500; font-size: 14px; color: var(--muted); }
.lp-note-bubble p { margin: 0; font-size: 17px; line-height: 1.55; }
@media (max-width: 600px) {
  .lp-note { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lp-note .smulbert { width: 70px; margin: 0 0 0 6px; }
  .lp-note-bubble { width: 100%; box-sizing: border-box; border-radius: 6px 20px 20px 20px; }
  .lp-note-bubble::before { bottom: auto; top: -8px; left: 30px; border-bottom: 0; border-top: 1px solid var(--border); }
  .lp-note-bubble p { font-size: 16px; }
}
.lp-recipe-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.lp-recipe-grid h2 { font-size: 26px; font-weight: 800; margin: 0 0 14px; }
.lp-method { list-style: none; counter-reset: method; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-method li { counter-increment: method; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--divider); border-radius: 16px; padding: 16px; }
.lp-method li::before { content: counter(method); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 800 15px 'Bricolage Grotesque', sans-serif; }
.lp-tips { margin-top: 24px; background: var(--accent-soft); border-radius: 18px; padding: 18px 20px; }
.lp-tips h3 { font-size: 17px; margin-bottom: 8px; }
.lp-tips ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.lp-recipe-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 32px; }
@media (max-width: 860px) {
  .lp-recipe-head, .lp-recipe-grid { grid-template-columns: 1fr; }
  .lp-recipe-img { order: -1; }
}

.lp-recipe-head .lp-lead { margin-bottom: 16px; font-size: 18px; }
.lp-form .flash-error { margin: 0 auto; max-width: 560px; width: 100%; }

/* What shows while a recipe is being made: a card with the seconds counting. */
.busy-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(22, 33, 58, 0.55); backdrop-filter: blur(4px); }
.busy-card { background: #fff; border-radius: 24px; padding: 28px 32px; max-width: 360px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 24px 60px rgba(22, 33, 58, 0.3); }
.busy-spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--accent-soft); border-top-color: var(--accent); animation: busy-spin 0.9s linear infinite; }
.busy-title { font-family: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; font-size: 22px; letter-spacing: -0.02em; }
.busy-time { font-family: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif; font-weight: 800; font-size: 40px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.busy-hint { color: var(--muted); font-size: 14.5px; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy-spinner { animation-duration: 3s; } }

/* What a recipe saves: a badge on the thumbnail and a box on the recipe page. */
.lp-thumb { position: relative; display: block; }
.lp-save { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--deal); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 8px 18px rgba(154, 67, 9, 0.35); }
.lp-save b { font: 800 19px 'Bricolage Grotesque', 'DM Sans', sans-serif; letter-spacing: -0.02em; }
.lp-savings { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; margin: 0 0 18px; border-radius: 18px; background: var(--deal-soft); border: 1px solid #F6D9B8; color: var(--deal); max-width: 34em; }
.lp-savings-label { font-weight: 700; font-size: 15px; }
.lp-savings strong { font: 800 34px 'Bricolage Grotesque', 'DM Sans', sans-serif; letter-spacing: -0.02em; line-height: 1; }
.lp-savings-note { flex-basis: 100%; font-size: 14px; color: var(--muted); }

/* A small "beta" next to the logo of the public site. */
.beta-tag { align-self: center; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font: 700 11px 'DM Sans', system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; }

/* The home page's badges for what comes from the kitchen cupboard, beside
   those of the offers. */
.lp-mix { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-mix .lp-badge { display: inline-flex; gap: 4px; align-items: center; }
.lp-mix .lp-badge .icon { width: 14px; height: 14px; }
.lp-badge-home { background: var(--accent-soft); color: var(--accent-strong); }
.lp-float.lp-float-home { color: var(--accent); }
.lp-float.lp-float-deal { color: var(--deal); }

/* Demo: ordering the ingredients of any recipe, behind a password. */
.demo-wrap { max-width: 560px; margin: 0 auto; padding: 8px 0 32px; display: flex; flex-direction: column; gap: 16px; }
.demo-head h1 { margin: 6px 0 8px; }
.demo-head p { margin: 0; }
.demo-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bonus-soft); color: var(--bonus); font-size: 13px; font-weight: 600; }
.demo-login { align-items: stretch; }
.demo-login .smulbert { width: 80px; height: auto; align-self: center; }
.demo-login h1 { margin: 0; }
.demo-login .button { align-self: stretch; }
.demo-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.demo-card .field { margin: 0; }
.demo-card .field-label .icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.demo-card .flash, .demo-card .hint { margin: 0; }
.demo-or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 14px; }
.demo-or::before, .demo-or::after { content: ""; flex: 1; border-top: 1px solid var(--divider); }
.demo-title { margin: 0; font-size: 18px; }
.demo-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.demo-lines li + li { border-top: 1px solid var(--divider); }
.demo-line { display: flex; align-items: center; gap: 12px; padding: 10px 2px; cursor: pointer; }
.demo-line input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.demo-line input:not(:checked) + span { color: var(--muted); text-decoration: line-through; }
.demo-basic span::after { content: "basis"; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--tile); color: var(--muted); font-size: 12px; text-decoration: none; display: inline-block; }
.demo-persons input { max-width: 110px; }
.demo-card .lp-cta { margin-top: 4px; }
.demo-note { margin: 0; text-align: center; }
.demo-logout { text-align: center; }

/* The note app.js shows while a button waits for the bot check. */
.turnstile-wait { margin: 8px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; }

/* Dragging and pasting photos (app.js): the hint shows only on a computer
   with a mouse, the card lights up while a file is dragged over the page. */
.photo-drop-hint { display: none; margin: 0; }
@media (hover: hover) and (pointer: fine) { .js .photo-drop-hint { display: block; } }
.photos-card.is-dropping { outline: 2px dashed var(--accent); outline-offset: 4px; background: var(--accent-soft); }
.photo-drop-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 14px; }
