[hidden] { display: none !important; }
:root {
  --bg: #f4efe4; --card: #fffdf8; --ink: #1c2420; --muted: #5d665f; --line: #d9d2c2;
  --brand: #1f2a24; --go: #1f6f4a; --go-ink: #fff; --warn: #9a5b00; --warn-bg: #fdefc8;
  --bad: #a3271c; --bad-bg: #fbe1dc; --info: #1d4f8f; --info-bg: #dce9f8; --ok-bg: #d9efe0;
  --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* overscroll-behavior: geen 'trek-om-te-verversen' die een half ingevulde registratie wegveegt */
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: env(safe-area-inset-bottom); overscroll-behavior-y: contain; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Geen vertraging of zoom bij dubbel tikken op knoppen */
button, a, .chip, summary, select, label { touch-action: manipulation; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; background: var(--brand); color: #f4efe4; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.top-title { font-weight: 700; letter-spacing: .01em; }
.top-btn { background: none; border: 1px solid #ffffff55; color: inherit; border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.bar { padding: 10px 16px; font-size: 15px; }
.bar-warn { background: var(--warn-bg); color: #5c3600; }
main { padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); max-width: 560px; margin: 0 auto; }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; padding: 14px 18px; border-radius: var(--r); border: 2px solid var(--brand); background: var(--card); font-weight: 650; font-size: 18px; cursor: pointer; }
.btn + .btn { margin-top: 12px; }
.btn-primary { background: var(--go); border-color: var(--go); color: var(--go-ink); min-height: 76px; font-size: 21px; }
.btn-huge { min-height: 132px; font-size: 25px; flex-direction: column; gap: 6px; }
.btn-huge svg { width: 44px; height: 44px; }
.btn-quiet { border-color: var(--line); font-weight: 500; min-height: 52px; font-size: 16px; }
.btn:disabled { opacity: .5; }
.btn:active:not(:disabled), .chip:active { transform: scale(.98); }
a.btn { text-decoration: none; color: inherit; }
a.btn-primary { color: var(--go-ink); }
/* Opslaan blijft in beeld onderaan het scherm */
.actionbar { position: sticky; bottom: 0; z-index: 4; margin: 14px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, #f4efe400, var(--bg) 18px); pointer-events: none; }
.actionbar > * { pointer-events: auto; }
/* Bij scrollen en focussen rekening houden met de vaste balk onderin */
html { scroll-padding-bottom: 120px; }
.btn:focus-visible, .chip:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #e2a12b; outline-offset: 2px; }
.field { display: block; margin: 14px 0; }
.field > span { display: block; font-weight: 600; margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 400; }
/* Minimaal 16px tekst in invoervelden, anders zoomt iOS in bij het tikken */
input[type=text], input[type=password], textarea, select { width: 100%; padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: max(16px, 1em); }
textarea { min-height: 84px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 52px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-weight: 600; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.photos { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.photo { position: relative; flex: 0 0 112px; height: 112px; border-radius: 12px; overflow: hidden; background: #cfc8b8; display: grid; place-items: center; font-size: 12px; color: var(--muted); text-align: center; padding: 4px; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #000a; color: #fff; font-size: 18px; line-height: 1; }
.photo-add { border: 2px dashed var(--muted); background: none; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.note { border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 15.5px; }
.note-warn { background: var(--warn-bg); color: #5c3600; }
.note-bad { background: var(--bad-bg); color: #6d1a12; }
.note-ok { background: var(--ok-bg); color: #14432c; }
.note-info { background: var(--info-bg); color: #123a6b; }
.note button { margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; color: inherit; font-weight: 600; cursor: pointer; }
.item { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; margin-bottom: 10px; }
.item-thumb { flex: 0 0 64px; height: 64px; border-radius: 10px; background: #cfc8b8; object-fit: cover; }
.item-body { min-width: 0; flex: 1; }
.item-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { font-size: 14px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-top: 4px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.st-lokaal { background: var(--warn-bg); color: var(--warn); }
.st-bezig { background: var(--info-bg); color: var(--info); }
.st-bezig::before { animation: pulse 1s infinite alternate; }
.st-ontvangen { background: var(--ok-bg); color: var(--go); }
.st-mislukt { background: var(--bad-bg); color: var(--bad); }
@keyframes pulse { to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .st-bezig::before { animation: none; } }
.sheet { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--brand); color: #fff; font-weight: 700; }
.sheet-map { flex: 1; }
.sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.muted { color: var(--muted); font-size: 15px; }
.center { text-align: center; }
details { margin: 14px 0; } summary { font-weight: 600; padding: 8px 0; cursor: pointer; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; margin: 18px auto 10px; display: grid; place-items: center; font-size: 38px; }
