/* =====================================================================
   Houd de Duik!  ·  opmaak
   Kleuren lopen van het wateroppervlak naar de diepte.
   ===================================================================== */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --surface: #BDEDEE;
  --lagoon: #3FC1C9;
  --ocean: #0A5A7A;
  --deep: #08324B;
  --abyss: #041C2C;
  --slate: #EEF4F5;
  --paper: #FFFFFF;
  --ink: #0C2433;
  --ink-2: #3D5A6B;
  --ink-3: #647E8C;
  --line: #D5E2E6;
  --line-2: #C3D5DB;
  --boei: #FF6A13;
  --boei-hover: #FF8037;
  --flag: #1446A0;
  --ok: #157A52;
  --danger: #C2243A;
  --stamp: #DD4F14;
  --gold: #F2B01E;

  --f: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fc: "Barlow Condensed", "Barlow", system-ui, sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --shadow: 0 1px 0 rgba(12, 36, 51, .04), 0 10px 28px -18px rgba(4, 28, 44, .35);
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--slate); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
small { font-size: .7em; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.center { text-align: center; }
.right { text-align: right; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: grid; gap: 18px; align-content: start; }
.quiet { color: var(--ink-3); font-size: 15px; }
.pad { padding: 24px; }

/* ---------- iconen, logo, avatar ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flag { width: 43px; height: auto; flex: none; color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 29px/1 var(--fc); letter-spacing: .2px; white-space: nowrap; }
.avatar {
  --av: #3FC1C9; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--av); font-size: 19px; line-height: 1; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 0 0 1px rgba(12, 36, 51, .08);
}
.avatar.sm { width: 26px; height: 26px; font-size: 14px; }
.avatar.lg { width: 48px; height: 48px; font-size: 26px; }
.avatar.xl { width: 80px; height: 80px; font-size: 44px; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1.5px solid transparent; font: 600 15px/1 var(--f); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s; white-space: nowrap; background: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.boei { background: var(--boei); color: var(--ink); }
.btn.boei:hover { background: var(--boei-hover); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: #17384c; }
.btn.ghost { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.ghost-ink { border-color: var(--ink); color: var(--ink); }
.btn.ghost-ink:hover { background: rgba(12, 36, 51, .06); }
.btn.ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .08); }
.btn.danger { color: var(--danger); }
.btn.ghost.danger:hover { border-color: var(--danger); }
.modal .btn.danger { background: var(--danger); color: #fff; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.sm .ic { width: 17px; height: 17px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.link { color: var(--ocean); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link:hover { color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--ocean); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish.light { color: #CFF3F2; }
.linkish.danger { color: var(--danger); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- velden ---------- */
.field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; }
.opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea, .filters select, .filters input, .search-in input {
  width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-s);
  background: var(--paper); color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 110px; line-height: 1.5; }
.field select, .filters select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23647E8C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .search-in input:focus {
  outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(63, 193, 201, .35); }
.field input::placeholder, .field textarea::placeholder, .search-in input::placeholder { color: #9AB0BA; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.err { font-size: 13px; color: var(--danger); min-height: 0; }
.err:empty { display: none; }
.hint { font-size: 13px; color: var(--ink-3); }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--danger); }
.unit-in { position: relative; display: block; }
.unit-in input { padding-right: 52px; font-variant-numeric: tabular-nums; }
.unit-in .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 15px; pointer-events: none; }
.at-input { position: relative; display: block; }
.at-input > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.at-input input { padding-left: 32px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; background: none; color: var(--ink-3); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); }
.search-in { position: relative; display: block; }
.search-in > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-in input { padding-left: 42px; }
.search-in.big input { height: 52px; font-size: 17px; }
.form-error { background: #FDECEE; color: #7D1424; border: 1px solid #F3C2CA; border-radius: var(--r-s); padding: 12px 14px; margin: 4px 0 16px; font-size: 15px; }
.form-error[hidden] { display: none; }
.form-error .linkish { margin-top: 6px; color: #7D1424; }
.meter { display: flex; align-items: center; gap: 10px; margin: -8px 0 16px; font-size: 13px; color: var(--ink-3); min-height: 18px; }
.meter .bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background-color .2s; }
.meter[data-level="0"] .bar i { width: 15%; }
.meter[data-level="1"] .bar i { width: 45%; background: var(--gold); }
.meter[data-level="2"] .bar i { width: 75%; background: var(--lagoon); }
.meter[data-level="3"] .bar i { width: 100%; background: var(--ok); }

/* keuzerondjes als knoppen */
.seg-field { margin-bottom: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input, .emoji-opt input, .color-opt input, .buddy-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--paper); cursor: pointer; font-size: 15px; font-weight: 500; transition: background-color .12s, border-color .12s; }
.seg span:hover { border-color: var(--ink-3); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span, .emoji-opt input:focus-visible + span, .color-opt input:focus-visible + span, .buddy-opt input:focus-visible + span { outline: 3px solid var(--lagoon); outline-offset: 2px; }

.avatar-pick .emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.emoji-opt span:first-of-type { display: grid; place-items: center; height: 48px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 26px; cursor: pointer; }
.emoji-opt input:checked + span { border-color: var(--boei); box-shadow: 0 0 0 2px var(--boei) inset; background: #FFF4EC; }
.color-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.color-opt span:first-of-type { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.color-opt input:checked + span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }

/* ---------- dialoog, meldingen ---------- */
.modal-back { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 28, 44, .55); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.modal { width: 100%; max-width: 460px; background: var(--paper); border-radius: var(--r-l); padding: 26px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.modal h2 { font: 700 28px/1.05 var(--fc); margin-bottom: 10px; }
.modal-body { color: var(--ink-2); margin-bottom: 22px; }
.modal-body .field { margin-top: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); animation: toastIn .25s ease-out; text-align: center; }
.toast.error { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 20px; color: var(--ink-3); }
.bubbles-load { display: inline-flex; gap: 5px; align-items: flex-end; height: 22px; }
.bubbles-load i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--lagoon); animation: rise 1.1s ease-in infinite; }
.bubbles-load i:nth-child(2) { animation-delay: .18s; width: 6px; height: 6px; }
.bubbles-load i:nth-child(3) { animation-delay: .36s; width: 10px; height: 10px; }
@keyframes rise { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--abyss); color: #fff; font: 800 22px var(--fc); }
.boot .flag { width: 56px; color: #fff; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- duikleitje (slate) ---------- */
.slate {
  position: relative; display: block; background: #FBFDFD; color: var(--ink); text-decoration: none;
  border-radius: 20px; padding: 22px 24px 20px; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 24px 50px -24px rgba(4, 28, 44, .55), 0 0 0 1px rgba(12, 36, 51, .06);
}
.slate-hole { position: absolute; top: 14px; left: 14px; width: 13px; height: 13px; border-radius: 50%; background: var(--slate); box-shadow: inset 0 1px 3px rgba(4, 28, 44, .35); }
.slate-top { display: flex; justify-content: space-between; gap: 12px; padding-left: 18px; font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.slate .dnum { font: 700 16px/1.3 var(--fc); color: var(--ocean); letter-spacing: .3px; }
.slate h3 { font: 800 34px/1 var(--fc); }
.slate .dplace { color: var(--ink-3); font-size: 15px; margin: 4px 0 10px; }
.slate .profile { width: 100%; height: auto; margin: 4px 0 8px; }
.slate .ph { color: #A8BCC5; }
.readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; margin: 6px 0 0; }
.readouts div { min-width: 0; }
.readouts dt { font-size: 13px; color: var(--ink-3); }
.readouts dd { margin: 0; font: 600 27px/1.05 var(--fc); font-variant-numeric: tabular-nums; }
.readouts small { font-size: 15px; color: var(--ink-3); margin-left: 2px; font-weight: 500; }
.slate-note { margin: 12px 0 0; font-style: italic; color: var(--ink-2); font-size: 15px; max-width: 30ch; }

/* duikprofiel */
.profile { --prof-top: rgba(63, 193, 201, .30); --prof-bottom: rgba(10, 90, 122, .55); overflow: visible; }
.profile .surface { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 4 4; }
.profile .line { fill: none; stroke: var(--ocean); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.profile .dot { fill: var(--boei); stroke: #fff; stroke-width: 1.5; }
.profile .val { font: 700 13px var(--fc); fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; stroke-linejoin: round; }
.profile .grid { stroke: var(--line); stroke-width: 1; }
.profile .tick { font: 500 12px var(--f); fill: var(--ink-3); }
.profile .hint { font: 500 13px var(--f); fill: #9AB0BA; }
.pv-note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* stempel */
.stamp { width: 118px; height: 118px; color: var(--stamp); transform: rotate(-11deg); opacity: .92; mix-blend-mode: multiply; }
.stamp .ring { fill: none; stroke: currentColor; stroke-width: 3.2; }
.stamp .ring.thin { stroke-width: 1.4; }
.stamp .arc { font: 700 10.4px var(--fc); letter-spacing: 1.45px; fill: currentColor; }
.stamp .who { font: 800 21px var(--fc); fill: currentColor; }
.stamp .when { font: 600 11.5px var(--fc); fill: currentColor; letter-spacing: .4px; }
.stamp.fresh { animation: stampIn .45s cubic-bezier(.25, 1.5, .45, 1) both; }
@keyframes stampIn { 0% { transform: scale(1.8) rotate(4deg); opacity: 0; } 60% { opacity: .95; } 100% { transform: scale(1) rotate(-11deg); opacity: .92; } }
.stamp-empty { display: block; width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--line-2); }

/* patches */
.patch {
  position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 38% 30%, #FFFFFF 0, #EAF5F6 58%, #D7EAEE 100%);
  box-shadow: 0 0 0 4px var(--patch, #A9BEC6), 0 8px 18px -10px rgba(4, 28, 44, .6);
}
.patch::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.6px dashed var(--patch, #A9BEC6); opacity: .8; }
.patch-icon { font-size: 36px; line-height: 1; filter: grayscale(1); opacity: .45; }
.patch.earned, .earned .patch { --patch: var(--boei); }
.earned .patch-icon, .patch.earned .patch-icon { filter: none; opacity: 1; }
.patch.mini { width: 46px; height: 46px; box-shadow: 0 0 0 3px var(--patch, #A9BEC6); }
.patch.mini::after { inset: 3px; }
.patch.mini .patch-icon { font-size: 21px; filter: none; opacity: 1; }
.patch.big { width: 104px; height: 104px; }
.patch.big .patch-icon { font-size: 46px; }

/* =====================================================================
   Startpagina: één lange afdaling
   ===================================================================== */
.public.is-landing { background: var(--abyss); }
.landing { position: relative; color: #fff; overflow-x: clip; }
.landing .flag { color: var(--ink); }

.l-head { position: relative; z-index: 5; display: flex; align-items: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 22px 28px; color: var(--ink); }
.l-nav { display: flex; gap: 6px; margin-left: auto; }
.l-nav button { background: none; border: 0; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.l-nav button:hover { background: rgba(12, 36, 51, .07); color: var(--ink); }
.l-head-cta { display: flex; gap: 10px; }

/* hero = het wateroppervlak */
.l-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 40px 28px 150px; color: var(--ink);
}
.landing::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 860px; z-index: 0;
  background: radial-gradient(1200px 500px at 70% -10%, rgba(255, 255, 255, .55), transparent 60%), linear-gradient(180deg, #CFF3F2 0%, #9FE2E4 45%, #62CDD4 100%);
}
.landing > * { position: relative; z-index: 1; }
.wordmark { font: 800 clamp(76px, 12.5vw, 176px)/.84 var(--fc); letter-spacing: -1px; margin: 0 0 26px; color: var(--ink); text-wrap: balance; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 34ch; color: #12384D; margin-bottom: 26px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { margin-top: 14px; font-size: 14px; color: #285066; }
.hero-slate { transform: rotate(2.5deg); max-width: 420px; justify-self: center; width: 100%; }
.hero-slate .slate-stamp { position: absolute; right: -26px; bottom: -34px; }
.hero-slate .stamp { width: 132px; height: 132px; }

/* golflijn: onder het oppervlak */
.l-sec {
  position: relative; padding: 16vh 28px 18vh; min-height: 78vh;
  background: linear-gradient(180deg, var(--b1), var(--b2));
}
.l-sec::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--b1); }
.l-sec[data-depth="5"] { --b1: #0F7A96; --b2: #0B6584; }
.l-sec[data-depth="10"] { --b1: #0B6584; --b2: #08506F; }
.l-sec[data-depth="18"] { --b1: #08506F; --b2: #063D58; }
.l-sec[data-depth="30"] { --b1: #063D58; --b2: #042A3E; }
.l-sec[data-depth="40"] { --b1: #042A3E; --b2: #03131F; }
.l-hero::after {
  content: ""; position: absolute; left: -50vw; right: -50vw; bottom: -2px; height: 90px;
  background: #0F7A96;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46c120-26 240-26 360 0s240 26 360 0 240-26 360 0 240 26 360 0v44H0z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 46c120-26 240-26 360 0s240 26 360 0 240-26 360 0 240 26 360 0v44H0z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.l-sec .depth-tag { position: absolute; left: max(28px, calc(50% - 600px)); top: 9vh; margin: 0; display: flex; align-items: center; gap: 14px;
  font: 700 22px/1 var(--fc); color: var(--accent); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.depth-tag::after { content: ""; width: 64px; height: 2px; background: currentColor; opacity: .7; }
.l-sec-body { max-width: 1200px; margin: 0 auto; padding-left: clamp(0px, 8vw, 120px); }
.l-sec-body.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
.l-sec h2 { font: 700 clamp(42px, 6.2vw, 80px)/.95 var(--fc); max-width: 14ch; margin-bottom: 22px; text-wrap: balance; }
.l-sec p { font-size: 19px; line-height: 1.6; max-width: 56ch; color: rgba(255, 255, 255, .88); }
.aside-note { border-left: 3px solid var(--accent); padding-left: 14px; font-size: 16px !important; color: rgba(255, 255, 255, .75) !important; margin-top: 22px; }
.field-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.field-list li { padding: 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); font-weight: 500; }
.field-list li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 9px; vertical-align: 1px; }
.stamp-demo { display: grid; place-items: center; }
.stamp-demo .stamp { width: min(260px, 60vw); height: auto; color: var(--accent); mix-blend-mode: normal; opacity: .95; }
.contours { width: 100%; max-width: 420px; justify-self: center; }
.contours path, .contours ellipse { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.4; }
.contours .cpin line { stroke: #fff; stroke-width: 1.6; }
.contours .cpin path { fill: var(--accent); stroke: none; }
.patch-row { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 26px 30px; }
.patch-row li { display: grid; justify-items: center; gap: 12px; width: 110px; text-align: center; }
.patch-row .patch { width: 92px; height: 92px; --patch: var(--accent); }
.patch-row .patch-icon { font-size: 40px; }
.patch-row .patch-name { font: 600 17px/1.1 var(--fc); }
.patch-row li.patch { width: 92px; height: 92px; }
.patch-row li.patch .patch-name { position: absolute; top: 106px; width: 120px; color: #fff; }
.l-final { padding-bottom: 12vh; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 10px 0 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 900px; }
.steps li { counter-increment: s; display: grid; gap: 4px; padding-top: 16px; border-top: 2px solid rgba(255, 255, 255, .25); }
.steps li::before { content: counter(s); font: 800 44px/1 var(--fc); color: var(--accent); }
.steps b { font-size: 19px; }
.steps span { color: rgba(255, 255, 255, .72); }
.l-foot { background: #03131F; padding: 40px 28px 60px; text-align: center; display: grid; justify-items: center; gap: 8px; color: rgba(255, 255, 255, .8); }
.l-foot .flag { color: #fff; }
.l-foot .muted { color: rgba(255, 255, 255, .45); font-size: 14px; }

/* dieptemeter */
.gauge { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; width: 74px; padding: 12px 10px 16px; border-radius: 16px;
  background: rgba(4, 28, 44, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; display: grid; gap: 12px; justify-items: center; }
.gauge-read { font: 700 26px/1 var(--fc); font-variant-numeric: tabular-nums; color: #FFD9C2; }
.gauge-read small { font-size: 14px; margin-left: 2px; color: rgba(255, 255, 255, .7); }
.gauge-scale { position: relative; width: 100%; height: 38vh; border-left: 2px solid rgba(255, 255, 255, .35); margin-left: 24px; }
.gauge-tick { position: absolute; left: 6px; transform: translateY(-50%); font: 600 12px var(--fc); color: rgba(255, 255, 255, .7); }
.gauge-tick::before { content: ""; position: absolute; left: -8px; top: 50%; width: 6px; height: 2px; background: rgba(255, 255, 255, .5); }
.gauge-mark { position: absolute; left: -10px; top: 0; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid var(--boei); transform: translateY(-50%); transition: top .12s linear; }

/* =====================================================================
   Inloggen / registreren
   ===================================================================== */
.public.is-auth { background: var(--slate); }
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 32px 40px 40px; color: #fff;
  background: linear-gradient(180deg, #0F7A96 0%, #08506F 45%, #042A3E 100%); }
.auth-art .logo { color: #fff; }
.auth-art .flag { color: #fff; }
.fact { margin: 0; max-width: 22ch; }
.fact blockquote { margin: 0 0 18px; font: 600 clamp(28px, 3vw, 40px)/1.12 var(--fc); text-wrap: balance; }
.auth-depth { position: absolute; right: 26px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; font: 600 13px var(--fc); color: rgba(255, 255, 255, .35); border-right: 2px solid rgba(255, 255, 255, .12); padding-right: 10px; }
.auth-main { display: grid; align-content: center; justify-items: center; padding: 32px 24px 48px; }
.auth-main .back { justify-self: start; margin: 0 0 28px max(0px, calc(50% - 230px)); }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); text-decoration: none; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
.back .ic { width: 18px; height: 18px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font: 700 46px/1 var(--fc); margin-bottom: 10px; }
.auth-card .sub { color: var(--ink-2); font-size: 17px; margin-bottom: 26px; }
.auth-card .right { margin: -6px 0 18px; font-size: 15px; }
.auth-foot { margin-top: 26px; color: var(--ink-2); }
.demo-note { background: #FFF1E6; border: 1px solid #FFD2B3; color: #6B2C05; border-radius: var(--r-s); padding: 10px 12px; font-size: 14px; margin-bottom: 20px; }
.mail-art { margin: 6px 0 18px; }
.mail-art .flag { width: 72px; color: var(--ink); animation: bob 2s ease-in-out infinite; }
.simple-page { min-height: 100vh; padding: 28px; display: grid; align-content: start; gap: 40px; }
.simple-page .logo { color: var(--ink); }

/* =====================================================================
   App
   ===================================================================== */
.inapp { min-height: 100vh; }
.appbar { position: sticky; top: 0; z-index: 900; background: var(--abyss); color: #fff; }
.appbar-in { display: flex; align-items: center; gap: 18px; max-width: 1180px; margin: 0 auto; height: var(--bar-h); padding: 0 24px; }
.appbar .logo { color: #fff; font-size: 26px; gap: 11px; }
.appbar .flag { color: #fff; width: 38px; }
.mainnav { display: flex; gap: 2px; margin-left: 18px; height: 100%; }
.mainnav a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: rgba(255, 255, 255, .7); text-decoration: none; font-weight: 600; font-size: 15px; }
.mainnav a:hover { color: #fff; }
.mainnav a.on { color: #fff; }
.mainnav a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--boei); }
.mainnav .ic { width: 19px; height: 19px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--boei); color: var(--ink); font: 700 12px/1 var(--f); }
.count[hidden] { display: none; }
.log-btn { margin-left: auto; height: 40px; }
.me { position: relative; }
.me-btn { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; padding: 6px 8px; border-radius: 12px; cursor: pointer; font-weight: 600; }
.me-btn:hover { background: rgba(255, 255, 255, .08); }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: var(--paper); color: var(--ink); border-radius: var(--r-m); box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .45); padding: 8px; display: grid; }
.me-menu[hidden] { display: none; }
.me-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.me-head b { display: block; }
.me-head span { color: var(--ink-3); font-size: 14px; }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; font-weight: 500; width: 100%; }
.me-menu a:hover, .me-menu button:hover { background: var(--slate); }
.tabbar { display: none; }

#main { max-width: 1180px; margin: 0 auto; padding: 30px 24px 120px; outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font: 700 clamp(36px, 4.4vw, 50px)/1 var(--fc); }
.page-head .muted { margin-top: 6px; font-size: 17px; }
.page-head .note { margin-top: 10px; background: #FFF4D6; border: 1px solid #F3DC99; color: #5C4300; padding: 10px 14px; border-radius: var(--r-s); font-size: 15px; max-width: 70ch; }
.wave-emoji { display: inline-block; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); min-width: 0; }
.panel h2 { font: 700 25px/1.1 var(--fc); margin-bottom: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .panel { margin-bottom: 18px; }
.grid-2.top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.empty { display: grid; justify-items: start; gap: 14px; color: var(--ink-2); }
.empty.big { justify-items: center; text-align: center; padding: 70px 20px; background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--r-l); }
.empty.big h2 { font: 700 34px var(--fc); }
.hint-box { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-s); background: #E5F4F5; color: #0E4A5E; display: grid; gap: 10px; justify-items: start; }
.hint-box p { margin: 0; }
.state-msg { max-width: 560px; margin: 8vh auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.state-msg h1 { font: 700 44px/1 var(--fc); }
.state-msg .row { justify-content: center; }
.big-depth { font: 800 110px/1 var(--fc); color: var(--ocean); margin: 0; }

/* duikcomputer met totalen */
.computer {
  display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; border-radius: var(--r-l); overflow: hidden;
  background: linear-gradient(180deg, #0C2F43, #061C2A); color: #DFF7F4; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -24px rgba(4, 28, 44, .9);
}
.readout { padding: 20px 22px 18px; display: grid; gap: 4px; align-content: end; border-left: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.readout:first-child { border-left: 0; }
.readout .v { font: 600 44px/1 var(--fc); font-variant-numeric: tabular-nums; letter-spacing: .3px; white-space: nowrap; color: #DFF7F4; text-shadow: 0 0 18px rgba(127, 236, 222, .18); }
.readout .v small { font-size: 18px; color: rgba(223, 247, 244, .62); margin: 0 2px 0 3px; font-weight: 500; }
.readout .k { font-size: 14px; color: rgba(223, 247, 244, .6); }
.computer.four { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
.readout.big .v { font-size: 76px; color: var(--boei); text-shadow: 0 0 24px rgba(255, 106, 19, .25); }

.mini-slate { box-shadow: 0 0 0 1px var(--line); }
.mini-slate:hover { box-shadow: 0 0 0 1.5px var(--ocean); }
.mini-slate h3 { font-size: 30px; }
.todo { display: grid; gap: 10px; }
.todo-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 12px; border-radius: var(--r-s); background: var(--slate); }
.todo-act { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.mini-buddies { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.mini-buddies h3 { font: 700 19px var(--fc); margin-bottom: 10px; }
.mb-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mb { display: grid; justify-items: center; gap: 4px; width: 84px; padding: 10px 4px; border-radius: 12px; text-decoration: none; text-align: center; }
.mb:hover { background: var(--slate); }
.mb span { font-weight: 600; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb small { font-size: 12px; color: var(--ink-3); }
.bars-wrap { overflow-x: auto; }
.bars { width: 100%; height: auto; }
.bars .surface { stroke: var(--ink-3); stroke-width: 1.4; stroke-dasharray: 4 4; }
.bars .grid { stroke: var(--line); }
.bars .tick { font: 500 12px var(--f); fill: var(--ink-3); }
.bars .bar { fill: color-mix(in oklab, #62CDD4, #062F4A calc(var(--shade) * 100%)); transition: fill .15s; }
.bars .bar-link:hover .bar, .bars .bar-link:focus .bar { fill: var(--boei); }
.next-badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.next-badges li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.next-badges b { display: block; }
.next-badges .muted { display: block; font-size: 14px; }
.progress { display: block; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 7px; }
.progress i { display: block; height: 100%; background: var(--lagoon); border-radius: 4px; }
.sites { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.sites li { counter-increment: s; border-top: 1px solid var(--line); }
.sites li:first-child { border-top: 0; }
.sites a { display: flex; align-items: center; gap: 12px; padding: 11px 2px; text-decoration: none; }
.sites a::before { content: counter(s); font: 700 20px var(--fc); color: var(--ink-3); width: 18px; }
.sites a span { flex: 1; font-weight: 600; }
.sites a b { font: 600 20px var(--fc); color: var(--ocean); }
.sites a:hover span { text-decoration: underline; }

/* logboek */
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 150px 160px 170px; gap: 10px; margin-bottom: 22px; }
.year { display: flex; align-items: baseline; gap: 12px; font: 700 30px/1 var(--fc); margin: 28px 0 12px; }
.year:first-child { margin-top: 0; }
.year span { font: 500 15px var(--f); color: var(--ink-3); }
.rows { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.panel .rows { box-shadow: none; }
.dive-row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 84px 84px 74px 96px 86px; align-items: center; gap: 10px;
  padding: 14px 18px 14px 22px; text-decoration: none; border-top: 1px solid var(--line); transition: background-color .12s;
}
.dive-row:first-child { border-top: 0; }
.dive-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: color-mix(in oklab, #7FD8DD, #062F4A calc(var(--shade) * 100%)); }
.dive-row:hover { background: #F5FAFB; }
.dr-num { font: 700 30px/1 var(--fc); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dr-main { display: grid; gap: 2px; min-width: 0; }
.dr-site { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-sub { color: var(--ink-3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-sub em { font-style: normal; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #E5F4F5; color: #0E4A5E; font-size: 13px; }
.dr-read { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dr-read b { font: 600 23px/1 var(--fc); }
.dr-read small { font-size: 14px; color: var(--ink-3); margin-left: 2px; }
.dr-people { display: flex; }
.dr-people .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--paper); }
.dr-people .avatar:first-child { margin-left: 0; }
.dr-end { display: flex; justify-content: flex-end; }
.dr-mobile { display: none; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dr-mobile b { font-weight: 700; color: var(--ink); }
.dr-sign { color: #B8C9D0; display: inline-flex; }
.dr-sign.on { color: var(--stamp); }
.dr-sign.todo { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--boei); padding: 4px 10px; border-radius: 999px; }
.dr-sign.wait { color: var(--ocean); opacity: .75; }
.dr-sign.declined { font-size: 13px; font-weight: 700; color: #7D1424; background: #FDECEE; padding: 4px 10px; border-radius: 999px; }

/* formulier */
.form-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.form-side { position: sticky; top: calc(var(--bar-h) + 18px); }
.fsec { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px 22px 8px; margin-bottom: 18px; box-shadow: var(--shadow); }
.fsec h2 { font: 700 25px/1 var(--fc); margin-bottom: 16px; }
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.fgrid .span-2 { grid-column: span 2; }
.map-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.map-tools .search-in { flex: 1; min-width: 200px; }
.map-tools .search-in input { height: 36px; border-radius: 10px; }
.geo-results { display: grid; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.geo-results[hidden] { display: none; }
.geo-results p { padding: 10px 12px; margin: 0; }
.geo-results button { display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 10px 12px; background: var(--paper); border: 0; border-top: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.geo-results button:first-child { border-top: 0; }
.geo-results button:hover { background: var(--slate); }
.geo-results .ic { color: var(--ocean); margin-top: 1px; }
.pick-map { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #DCEBEE; margin-top: 8px; }
.pick-map .quiet { padding: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tags:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 13px; height: 34px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; }
.tag button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.tag button .ic { width: 14px; height: 14px; }
.tag-in input { height: 42px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px; border: 1.5px dashed var(--line-2); background: var(--paper); font-size: 14px; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--ocean); color: var(--ink); }
.chip .ic { width: 15px; height: 15px; }
.chip.static { border-style: solid; cursor: default; padding: 0 12px; background: #DDEFF1; border-color: transparent; color: #0E3A4C; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stars-static { color: var(--gold); letter-spacing: 1px; }
.stars-static span { color: #C9D7DC; }
.buddy-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.buddy-opt { position: relative; }
.buddy-opt > span { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 8px; border: 1.5px solid var(--line-2); border-radius: 999px; cursor: pointer; font-weight: 500; }
.buddy-opt em { color: var(--ink-3); font-style: normal; font-size: 13px; }
.buddy-opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.stars { display: flex; gap: 4px; }
.stars button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: #B9CAD1; }
.stars button .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.stars button.on { color: var(--gold); }
.stars button.on .ic { fill: currentColor; }
.stars button:hover { background: var(--slate); }
.preview { padding-bottom: 18px; }
.preview .sac { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.preview .sac b { color: var(--ink); }
.pv-buddies { display: flex; align-items: center; gap: 4px; margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.pv-buddies span { margin-left: 6px; }
.savebar { position: sticky; bottom: 0; z-index: 50; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0; margin-top: 4px;
  background: linear-gradient(180deg, rgba(238, 244, 245, 0), var(--slate) 30%); }

/* één duik */
.dive-head h1 { font: 800 clamp(44px, 6vw, 68px)/.95 var(--fc); margin: 2px 0 8px; }
.dive-no { font: 700 21px/1 var(--fc); color: var(--ocean); margin: 6px 0 0; }
.dive-no .by { font: 500 15px var(--f); color: var(--ink-3); margin-left: 8px; }
.profile-panel .profile { width: 100%; height: auto; }
.kv { display: grid; grid-template-columns: 1fr; margin: 0; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.kv div:first-child { border-top: 0; }
.kv dt { color: var(--ink-3); font-size: 15px; }
.kv dd { margin: 0; font: 600 22px/1 var(--fc); font-variant-numeric: tabular-nums; text-align: right; }
.kv dd small { font: 500 14px var(--f); color: var(--ink-3); margin-left: 4px; }
.notes { white-space: pre-wrap; font-size: 16px; color: var(--ink-2); }
.owner-line { display: flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: 10px; }
.signs { display: grid; gap: 4px; }
.sign-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.sign-who { display: flex; align-items: center; gap: 12px; }
.sign-who b { display: block; }
.sign-who .muted { font-size: 14px; }
.sign-mark { display: grid; place-items: center; min-height: 110px; }
.sign-act { display: grid; gap: 10px; justify-items: end; }
.dive-map { height: 300px; border-radius: 12px; overflow: hidden; }
.map-panel { padding: 8px; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pn { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); text-decoration: none; max-width: 48%; }
.pn:hover { border-color: var(--ocean); }
.pn span { display: grid; min-width: 0; font-weight: 600; }
.pn span small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.pn.next { text-align: right; margin-left: auto; }

/* kaart */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.big-map { height: calc(100vh - 240px); min-height: 440px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: #DCEBEE; }
.map-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px; max-height: calc(100vh - 240px); min-height: 200px; overflow: auto; }
.map-list ol { list-style: none; margin: 0; padding: 0; }
.map-list button { display: grid; width: 100%; text-align: left; gap: 2px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.map-list button:hover { background: var(--slate); }
.ml-name { font-weight: 700; }
.map-list .muted { font-size: 14px; }
.map-list .empty { padding: 14px; }
.map-pin { position: relative; }
.map-pin .pole { position: absolute; left: 2px; top: 0; width: 2.5px; height: 39px; background: var(--ink); border-radius: 1px; }
.map-pin .pflag { position: absolute; left: 4px; top: 1px; width: 26px; height: 18px; background: linear-gradient(90deg, #fff 0 50%, var(--flag) 50% 100%);
  clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4)); }
.map-pin.active .pflag { background: linear-gradient(90deg, #fff 0 50%, var(--boei) 50% 100%); }
.map-pin::after { content: ""; position: absolute; left: 0; top: 37px; width: 6px; height: 3px; border-radius: 50%; background: rgba(0, 0, 0, .3); }
.leaflet-container { font-family: var(--f); }
.popup { display: grid; gap: 4px; min-width: 180px; }
.popup b { font: 700 18px var(--fc); }
.popup a { color: var(--ocean); }

/* buddy's */
.people { display: grid; gap: 4px; margin-top: 10px; }
.people:empty { display: none; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person-text b { display: block; }
.person-text .muted { font-size: 14px; }
.person-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.buddy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.buddy-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-m); border: 1px solid var(--line); text-decoration: none; background: var(--slate); }
.buddy-card:hover { border-color: var(--ocean); }
.buddy-card > div { display: grid; min-width: 0; }
.buddy-card .muted { font-size: 14px; }
.buddy-card .small { color: var(--ink-2); }
.together { margin-top: 4px; font: 600 16px var(--fc); color: var(--ocean); }
.invite { background: linear-gradient(135deg, #E5F4F5, #F4FAFA); }
.invite-text { background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--r-s); padding: 14px 16px; font-size: 15px; color: var(--ink-2); max-width: 70ch; }
.buddy-head .buddy-id { display: flex; gap: 20px; align-items: flex-end; }
.buddy-head h1 { margin-top: 2px; }

/* prestaties */
.patch-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.patch-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px 18px 20px; display: grid; justify-items: center; text-align: center; gap: 6px; align-content: start; }
.patch-card h2 { font: 700 23px/1.05 var(--fc); margin-top: 14px; }
.patch-card p { font-size: 15px; color: var(--ink-2); margin: 0; }
.patch-card .progress { width: 80%; margin-top: 10px; }
.patch-card .when { font-size: 13px; margin-top: 6px; }
.patch-card.earned { border-color: #FFD2B3; background: linear-gradient(180deg, #FFF7F1, var(--paper) 60%); }

/* profiel */
.prof-preview { display: flex; gap: 16px; align-items: center; padding: 6px 0 20px; }
.prof-preview b { display: block; font: 700 26px/1.05 var(--fc); }
.danger-zone { border-color: #F3C2CA; }
.danger-zone h2 { color: var(--danger); }


/* =====================================================================
   Verzegeling, verklaring, e-mail, installatie en beheer
   ===================================================================== */
/* lakzegel */
.wax { width: 120px; height: 120px; flex: none; overflow: visible; filter: drop-shadow(0 7px 10px rgba(90, 24, 0, .32)); }
.wax .wax-ring { fill: none; stroke: rgba(70, 14, 0, .38); stroke-width: 2.2; }
.wax .wax-ring.hi { stroke: rgba(255, 214, 190, .38); stroke-width: 1; }
.wax .wax-arc { font: 700 9.4px var(--fc); fill: rgba(255, 236, 226, .93); }
.wax .wax-when { font: 700 9.6px var(--fc); fill: rgba(255, 236, 226, .95); letter-spacing: .3px; }
.wax .wax-flag .a { fill: rgba(255, 238, 228, .92); }
.wax .wax-flag .b { fill: rgba(110, 26, 0, .5); }
.wax .wax-flag .o { fill: none; stroke: rgba(255, 238, 228, .92); stroke-width: 1.8; stroke-linejoin: round; }
.wax.fresh { animation: waxIn .6s cubic-bezier(.25, 1.4, .45, 1) both; }
@keyframes waxIn { 0% { transform: scale(.35) rotate(-40deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* startpagina: twee stempels en het zegel */
.stamp-demo.duo { position: relative; display: block; width: min(330px, 78vw); aspect-ratio: 1 / .92; justify-self: center; }
@media (min-width: 901px) { .stamp-demo.duo { justify-self: start; margin-left: 8px; } }
.stamp-demo.duo .stamp { position: absolute; width: 58%; height: auto; }
.stamp-demo.duo .stamp:nth-child(1) { left: 0; top: 0; transform: rotate(-13deg); }
.stamp-demo.duo .stamp:nth-child(2) { right: 0; top: 9%; transform: rotate(10deg); }
.stamp-demo.duo .wax { position: absolute; width: 42%; height: auto; left: 29%; bottom: 0; }

/* verzegeling op de duikpagina */
.seal-panel { scroll-margin-top: calc(var(--bar-h) + 16px); }
.seal-panel.is-sealed { border-color: #F6C7AE; background: linear-gradient(180deg, #FFF8F3, var(--paper) 55%); }
.seal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 6px; }
.seal-head h2 { margin-bottom: 6px; }
.seal-status { font: 600 20px/1.2 var(--fc); color: var(--ink); margin-bottom: 6px; }
.is-sealed .seal-status { color: #A3360B; }
.wax-wrap { flex: none; margin: -6px 0 -10px; }
.wax-wrap .wax { width: 108px; height: 108px; transform: rotate(-8deg); }
.sign-row.signed .sign-who b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--stamp); margin-left: 8px; vertical-align: 2px; }
.seal-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.seal-actions .quiet { flex-basis: 100%; margin: 0; }
.seal-actions .linkish.danger { margin-left: auto; font-size: 14px; }
.seal-callout { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: -6px 0 18px; border-radius: var(--r-m); background: #FFF1E7; border: 1px solid #FFD2B3; }
.seal-callout p { margin: 0; flex: 1; color: #5A2508; }
.sealed-chip { background: #FFE4D4 !important; color: #8A2E07 !important; }
.wait-chip { background: #E5F0FA !important; color: #123F7A !important; }
.ok-chip { background: #DDF3E8 !important; color: #0F5A3C !important; }
.warn-chip { background: #FFF1CC !important; color: #5C4300 !important; }
.chip.static .ic { width: 15px; height: 15px; }

/* de verklaring bij het stempelen */
.modal.wide { max-width: 600px; }
.modal-body { max-height: min(62vh, 640px); overflow: auto; }
.modal-error { margin: -8px 0 16px; padding: 10px 14px; border-radius: var(--r-s); background: #FDECEE; color: #7D1424; border: 1px solid #F3C2CA; font-size: 15px; }
.modal-error[hidden] { display: none; }
.terms { display: grid; gap: 4px; color: var(--ink-2); }
.terms p { margin: 0 0 6px; }
.terms h3 { font: 700 19px/1.1 var(--fc); color: var(--ink); margin: 10px 0 4px; }
.terms ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; }
.terms li::marker { color: var(--stamp); }
.terms-notes { font-size: 14.5px; }
.terms-notes li::marker { color: var(--ink-3); }
.terms-dive { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); background: var(--slate); color: var(--ink); margin-bottom: 10px !important; }
.terms-dive .ic { color: var(--stamp); }

/* aanvinkvak */
.check { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0 16px; cursor: pointer; color: var(--ink); }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--boei); cursor: pointer; }
.check > span { display: grid; gap: 2px; }
.check b { font-weight: 600; }
.check.is-off { cursor: default; }
.check.is-off b { color: var(--ink-3); }
.terms .check { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-s); background: #FFF4EC; border: 1px solid #FFD2B3; font-weight: 600; }
.switch-row { padding: 12px 0; margin: 0; border-top: 1px solid var(--line); }
.switch-row:first-of-type { border-top: 0; }
form .switch-row + .form-error, form .switch-row + .btn { margin-top: 12px; }

/* balken boven in de app en op de startpagina */
.verify-bar, .setup-bar { display: flex; justify-content: center; align-items: center; gap: 8px 14px; flex-wrap: wrap; padding: 10px 16px; font-size: 15px; text-align: center; }
.verify-bar { background: #FFF1CC; color: #5C4300; }
.verify-bar .linkish { color: #5C4300; }
.setup-bar { background: var(--ink); color: #fff; }
.setup-bar a { color: var(--boei); font-weight: 700; }
.setup-bar .ic { color: var(--boei); }

/* installatie en 2FA */
.setup-steps { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 6px; counter-reset: st; }
.setup-steps li { counter-increment: st; flex: 1; display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.setup-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.setup-steps li.done::before { background: var(--ok); }
.setup-steps li.on { color: var(--ink); }
.setup-steps li.on::before { background: var(--boei); }
.qr-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; margin: 4px 0 20px; border-radius: var(--r-m); background: var(--slate); }
.qr-box img { width: 168px; height: 168px; border-radius: 10px; background: #fff; padding: 6px; image-rendering: pixelated; }
.qr-box .lbl { display: block; margin-bottom: 6px; }
.qr-box .hint { display: block; margin-top: 8px; }
.secret { display: inline-block; font: 600 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; background: var(--paper); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); overflow-wrap: anywhere; user-select: all; }
/* Op een telefoon kun je de QR-code niet scannen met dezelfde telefoon: dan opent deze knop de app */
.otp-open { display: none; margin-bottom: 12px; }
@media (pointer: coarse) { .otp-open { display: inline-flex; } }
.field input.code-in { font: 600 30px/1 var(--fc); letter-spacing: 10px; text-align: center; height: 60px; font-variant-numeric: tabular-nums; }
.backup-codes { padding: 16px; margin: 4px 0 6px; border-radius: var(--r-m); background: var(--slate); border: 1.5px dashed var(--line-2); }
.backup-codes ol { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.backup-codes code { font: 600 17px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .5px; color: var(--ink); user-select: all; }

/* profiel: account */
.acc-mail { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; }
.acc-mail > div { display: grid; gap: 2px; min-width: 0; }
.acc-mail b { overflow-wrap: anywhere; }
#accPanel .btn { margin-bottom: 8px; }
#accPanel .hint { margin: 0; }

/* beheer */
.admin-gate { display: grid; place-items: start center; padding-top: 4vh; }
.gate-card { width: 100%; max-width: 520px; padding: 30px 30px 26px; display: grid; gap: 6px; }
.gate-card h1 { font: 700 36px/1.05 var(--fc); }
.gate-card > .muted { margin-bottom: 14px; }
.gate-card > .linkish { justify-self: center; margin-top: 8px; font-size: 15px; }
.gate-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--boei); margin-bottom: 8px; }
.gate-ic .ic { width: 30px; height: 30px; }
.admin-tabs { display: flex; gap: 4px; margin: -4px 0 22px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { position: relative; padding: 10px 14px 12px; text-decoration: none; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.admin-tabs a:hover { color: var(--ink); }
.admin-tabs a.on { color: var(--ink); }
.admin-tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--boei); }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.astat { background: var(--abyss); color: #DFF7F4; border-radius: var(--r-m); padding: 16px 18px 14px; display: grid; gap: 2px; }
.astat b { font: 600 40px/1 var(--fc); font-variant-numeric: tabular-nums; }
.astat span { font-size: 14px; color: rgba(223, 247, 244, .65); }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; }
.status-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.status-list li:first-child { border-top: 0; padding-top: 2px; }
.status-list li > div { display: grid; gap: 2px; justify-items: start; }
.status-list .link { font-size: 15px; margin-top: 2px; }
.st-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #DDF3E8; color: var(--ok); }
.st-ic .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.status-list li.todo .st-ic { background: #FFF1CC; color: #8A6400; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 16px; }
.presets .lbl { margin-right: 4px; }
.tips ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.cmd { margin: 6px 0 10px; padding: 12px 14px; border-radius: var(--r-s); background: var(--abyss); color: #DFF7F4; overflow-x: auto; }
.cmd code { font: 500 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.panel .search-in { margin-bottom: 10px; }
.urow { border-top: 1px solid var(--line); }
.urow:first-child { border-top: 0; }
.urow > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 4px; cursor: pointer; border-radius: 10px; }
.urow > summary::-webkit-details-marker { display: none; }
.urow > summary:hover { background: #F5FAFB; }
.urow .chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .15s; }
.urow[open] .chev { transform: rotate(90deg); }
.u-main { display: grid; min-width: 0; }
.u-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-main .muted, .u-mail { font-size: 14px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.utag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: #E5F4F5; color: #0E4A5E; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.utag.admin { background: var(--ink); color: #fff; }
.utag.warn { background: #FFF1CC; color: #5C4300; }
.utag.danger { background: #FDECEE; color: #7D1424; }
.u-detail { padding: 4px 4px 16px 52px; display: grid; gap: 12px; }
.u-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; }
.u-facts dt { font-size: 13px; color: var(--ink-3); }
.u-facts dd { margin: 0; font-weight: 600; }
.audit { list-style: none; padding: 0; margin: 0; display: grid; }
.audit li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.audit li:first-child { border-top: 0; }
.audit time { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.audit li > div { display: grid; gap: 1px; min-width: 0; }
.audit b { font-weight: 600; overflow-wrap: anywhere; }

/* =====================================================================
   Kleinere schermen
   ===================================================================== */
@media (max-width: 1080px) {
  .mainnav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mainnav a .count { position: absolute; top: 12px; right: 2px; }
  .computer, .computer.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .computer .readout { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .07); }
  .computer .readout.big { grid-column: 1 / -1; border-top: 0; }
  .computer .readout:nth-child(odd):not(.big) { border-left: 1px solid rgba(255, 255, 255, .07); }
  .form-cols { grid-template-columns: minmax(0, 1fr); }
  .form-side { position: static; order: -1; display: none; }
  .dive-row { grid-template-columns: 54px minmax(0, 1fr) 76px 76px 80px 74px; }
  .dr-temp { display: none; }
}
@media (max-width: 900px) {
  .l-hero { grid-template-columns: minmax(0, 1fr); gap: 60px; padding-bottom: 140px; }
  .hero-slate { max-width: 400px; }
  .l-sec-body.split { grid-template-columns: minmax(0, 1fr); }
  .l-sec-body { padding-left: 0; }
  .l-sec .depth-tag { position: static; margin-bottom: 26px; }
  .l-sec { padding-top: 12vh; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 0; padding: 22px 24px 26px; gap: 22px; }
  .fact blockquote { font-size: 24px; }
  .auth-depth { display: none; }
  .auth-main { align-content: start; padding-top: 28px; }
  .auth-main .back { margin-left: 0; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .big-map { height: 58vh; min-height: 320px; }
  .map-list { max-height: none; }
  .gauge { right: 10px; width: 62px; }
  .gauge-scale { height: 26vh; }
}
@media (max-width: 760px) {
  :root { --bar-h: 58px; }
  .l-nav { display: none; }
  .l-head { padding: 16px 20px; }
  .l-head-cta .btn.ghost-ink { display: none; }
  .l-hero { padding: 20px 20px 130px; }
  .l-sec { padding-left: 20px; padding-right: 20px; min-height: 0; padding-bottom: 14vh; }
  .wordmark { margin-bottom: 18px; }
  .hero-slate .slate-stamp { right: -6px; bottom: -40px; }
  .hero-slate .stamp { width: 112px; height: 112px; }
  .gauge { top: auto; bottom: 14px; right: 12px; transform: none; width: auto; padding: 8px 12px; border-radius: 12px; }
  .gauge-scale { display: none; }
  .gauge-read { font-size: 22px; }

  .appbar-in { padding: 0 14px; gap: 10px; }
  .mainnav, .log-btn { display: none; }
  .me { margin-left: auto; }
  .me-name { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 4px 0; text-decoration: none; color: var(--ink-3); font-size: 12px; font-weight: 600; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on .ic { color: var(--boei); }
  .tabbar .ic { width: 23px; height: 23px; }
  .tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); }
  .tabbar .tab-log { justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -22px; border-radius: 50%; background: var(--boei); color: var(--ink); box-shadow: 0 10px 22px -8px rgba(255, 106, 19, .8); }
  .tabbar .tab-log .ic { width: 28px; height: 28px; stroke-width: 2.2; }
  #toasts { bottom: 92px; }
  #main { padding: 22px 16px 130px; }
  .hide-m { display: none !important; }
  .page-head { margin-bottom: 18px; }
  .page-head .row .btn { flex: 1; }
  .panel { padding: 18px 16px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .readout { padding: 16px 16px 14px; }
  .readout .v { font-size: 36px; }
  .readout.big .v { font-size: 60px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .search-in, .filters label:last-child { grid-column: 1 / -1; }
  .filters select { padding-left: 10px; padding-right: 28px; background-position: right 6px center; font-size: 15px; }
  .dive-row { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "n m e" "n r r"; gap: 4px 12px; padding: 12px 14px 12px 18px; }
  .dr-num { grid-area: n; font-size: 24px; align-self: start; padding-top: 2px; }
  .dr-main { grid-area: m; }
  .dr-end { grid-area: e; }
  .dr-read { display: none; }
  .dr-people { display: none; }
  .dive-row .dr-mobile { display: block; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid .span-2 { grid-column: 1 / -1; }
  .savebar { bottom: calc(68px + env(safe-area-inset-bottom)); padding: 12px 0; }
  .savebar .btn { flex: 1; }
  .sign-row { grid-template-columns: minmax(0, 1fr) 100px; }
  .sign-act { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .sign-mark { min-height: 96px; }
  .sign-mark .stamp { width: 96px; height: 96px; }
  .buddy-head .buddy-id { align-items: center; }
  .avatar.xl { width: 64px; height: 64px; font-size: 34px; }
  .pn { max-width: 100%; }
  .prevnext { flex-direction: column; }
  .pn.next { margin-left: 0; justify-content: space-between; }
  .person { grid-template-columns: auto minmax(0, 1fr); }
  .person-act { grid-column: 1 / -1; justify-content: flex-start; padding-left: 48px; }
  .modal-actions .btn { flex: 1; }
}
@media (max-width: 420px) {
  .avatar-pick .emoji-grid { grid-template-columns: repeat(4, 1fr); }
  .readouts dd { font-size: 23px; }
  .hide-s { display: none; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
}


/* verzegeling en beheer op kleine schermen */
@media (max-width: 760px) {
  .seal-head .wax-wrap .wax { width: 84px; height: 84px; }
  .seal-callout { flex-wrap: wrap; }
  .seal-callout .btn { flex: 1 0 100%; }
  .seal-actions .btn { flex: 1; }
  .seal-actions .linkish.danger { margin: 6px auto 0; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gate-card { padding: 24px 18px 20px; }
  .qr-box { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .urow > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .urow .u-tags { grid-column: 2 / -1; justify-content: flex-start; }
  .urow .chev { grid-row: 1; grid-column: 3; }
  .u-detail { padding-left: 4px; }
  .audit li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .modal-body { max-height: 58vh; }
}
@media (max-width: 420px) {
  .logo { font-size: 25px; gap: 10px; }
  .flag { width: 37px; }
  .appbar .logo { font-size: 24px; }
  .appbar .flag { width: 34px; }
  .backup-codes ol { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
