/* =========================================================
   Beavr-app: vormgeving
   ========================================================= */
:root {
  /* ---------- Design tokens: de enige plek voor kleur, type, hoeken en schaduw ---------- */
  /* Neutraal (warm grijs) */
  --paper: #f5f4f0;   /* achtergrond van de app */
  --card: #fff;       /* vlak (kaart, paneel, invoer) */
  --soft: #fbfaf7;    /* heel licht vlak binnen een kaart */
  --sunken: #f6f5f1;  /* verzonken vlak: zoekveld, tabel-kop, rustige knop */
  --hover: #efede7;   /* hover en geselecteerd */
  --line: #e8e4db;    /* lijn */
  --line-2: #d9d3c6;  /* sterkere lijn (invoer) */
  --line-3: #c9c4b8;  /* uitgeschakeld, placeholder-iconen */
  --ink: #111;        /* titels en primaire tekst */
  --text: #3a3631;    /* lopende tekst */
  --muted: #736e66;   /* secundaire tekst */
  --faint: #75706a;   /* metadata */
  /* Accent (Beavr-geel): enkel voor de hoofdactie en de actieve plek */
  --y: #ffc21a; --y-deep: #e5a800; --y-soft: #fff4d1; --y-faint: #fffaeb; --y-ink: #7a5b00;
  /* Status */
  --ok: #177046; --ok-soft: #e6f5ec; --ok-ink: #1f6f4a;
  --err: #c0392b; --err-soft: #fdecea;
  --info: #2f6fdb; --info-soft: #eef4fd;
  /* Typografie: 8 maten */
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 11px;   /* labels in hoofdletters, badges */
  --fs-sm: 12px;   /* metadata, hulptekst */
  --fs-base: 13px; /* standaard in lijsten en formulieren */
  --fs-md: 14px;   /* lopende tekst, knoppen */
  --fs-lg: 16px;   /* kleine titels */
  --fs-xl: 18px;   /* sectietitels */
  --fs-2xl: 22px;  /* paginatitels in een paneel */
  --fs-3xl: 28px;  /* grote cijfers, paginatitels */
  /* Hoeken: 6 maten */
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-pill: 999px;
  --r: var(--r-lg);
  /* Schaduw: 3 niveaus (1 = rust op het vlak, 2 = zweeft: menu, hover; 3 = overlay: venster, paneel) */
  --sh: 0 1px 2px rgba(20,18,12,.04), 0 2px 8px -2px rgba(20,18,12,.06);
  --sh-md: 0 1px 2px rgba(20,18,12,.05), 0 12px 32px -14px rgba(20,18,12,.18);
  --sh-lg: 0 24px 60px -24px rgba(17,17,17,.35);
  /* Beweging */
  --ease: cubic-bezier(.2,.8,.2,1);
  --side: 264px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--body); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--ink); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }

/* ---------- Basis ---------- */
.ap-boot { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; }
.ap-spin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--ink); border-right-color: transparent; animation: apSpin .7s linear infinite; }
.ap-spin--sm { width: 13px; height: 13px; border-width: 2px; }
@keyframes apSpin { to { transform: rotate(360deg); } }
.ap-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 60px 0; color: var(--muted); }
.ap-h1 { font: 800 clamp(26px, 3.2vw, 34px)/1.15 var(--display); color: var(--ink); margin: 0 0 8px; letter-spacing: -.015em; text-wrap: balance; }
.ap-h2 { font: 800 var(--fs-2xl)/1.2 var(--display); color: var(--ink); margin: 0 0 6px; letter-spacing: -.01em; }
.ap-h3 { font: 700 var(--fs-xl)/1.3 var(--display); color: var(--ink); margin: 0 0 12px; }
.ap-h4 { display: flex; align-items: center; gap: 8px; font: 700 var(--fs-lg)/1.3 var(--display); color: var(--ink); margin: 26px 0 10px; }
.ap-card > .ap-h4:first-child { margin-top: 0; }
.ap-lead { font-size: var(--fs-lg); color: var(--muted); margin: 0 auto 22px; max-width: 620px; }
.ap-lead--l { margin-left: 0; }
.ap-muted { color: var(--muted); }
.ap-small { font-size: var(--fs-base); }
.ap-center { text-align: center; }
.ap-grow { flex: 1; }
.ap-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ap-row--center { justify-content: center; }
.ap-row--tight { gap: 4px; margin: 0; }
.ap-err { color: var(--err); background: var(--err-soft); border-radius: var(--r-md); padding: 10px 14px; margin: 0; font-size: var(--fs-md); }
.ap-note { display: flex; gap: 10px; align-items: flex-start; background: var(--info-soft); border: 1px solid #cfe4f1; color: #24465c; padding: 12px 16px; border-radius: var(--r-md); font-size: var(--fs-md); margin: 14px 0; }
.ap-note .i { margin-top: 2px; }
.ap-note a { color: inherit; font-weight: 600; }
.ap-note--warn { background: var(--y-soft); border-color: #f3dc98; color: #5c4700; }
.ap-note--ok { background: var(--ok-soft); border-color: #bfe3cd; color: var(--ok-ink); }
.ap-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh); margin-bottom: 18px; }
.ap-card--flush { padding: 0; overflow: hidden; }
.ap-card--danger { border-color: #f1c9c3; }
.ap-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--muted); padding: 48px 20px; }
.ap-empty .i { width: 34px; height: 34px; stroke-width: 1.5; color: var(--line-2); }
.ap-empty p { margin: 0; max-width: 380px; }
.ap-empty--sm { padding: 30px 20px; }

/* ---------- Knoppen ---------- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: var(--r-pill); padding: 10px 18px; font-weight: 600; font-size: var(--fs-md); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; background: var(--card); }
.ap-btn:hover:not(:disabled) { transform: translateY(-1px); }
.ap-btn:disabled { opacity: .45; cursor: not-allowed; }
.ap-btn--primary { background: var(--y); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.ap-btn--primary:hover:not(:disabled) { background: #ffcb3d; box-shadow: var(--sh); }
.ap-btn--dark { background: var(--ink); color: #fff; }
.ap-btn--ghost { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.ap-btn--ghost:hover:not(:disabled) { border-color: var(--ink); }
.ap-btn--danger { background: var(--err); color: #fff; }
.ap-btn--danger-t { color: var(--err); }
.ap-btn--lg { padding: 14px 24px; font-size: var(--fs-lg); }
.ap-btn--sm { padding: 7px 13px; font-size: var(--fs-base); }
.ap-btn--sm .i { width: 15px; height: 15px; }
.ap-btn--block { width: 100%; }
.ap-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-md); border: 1px solid transparent; background: none; cursor: pointer; color: var(--text); text-decoration: none; }
.ap-icon:hover { background: var(--paper); border-color: var(--line); }
.ap-icon--sm { width: 30px; height: 30px; }
.ap-icon--sm .i { width: 15px; height: 15px; }
.ap-icon--danger:hover { color: var(--err); background: var(--err-soft); }
.ap-linkbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-md); }
.ap-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 11px; font-size: var(--fs-base); cursor: pointer; }
.ap-chip .i { width: 13px; height: 13px; }
.ap-chip--static { cursor: default; }
.ap-chip button { border: 0; background: none; padding: 0; display: inline-grid; cursor: pointer; color: var(--muted); }
.ap-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-base); font-weight: 600; background: var(--card); border: 1px solid var(--line); padding: 7px 12px; border-radius: var(--r-pill); }
.ap-pill .i { width: 15px; height: 15px; }
.ap-pill--warn { background: var(--y-soft); border-color: #f3dc98; }

/* ---------- Velden ---------- */
.ap-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ap-field__l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.ap-field__l small { font-weight: 400; color: var(--muted); }
.ap-field__h { color: var(--muted); font-size: var(--fs-base); line-height: 1.45; margin-top: -2px; }
.ap-in { width: 100%; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: 10px 12px; font-size: var(--fs-lg); transition: border-color .15s, box-shadow .15s; }
.ap-in:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--y-soft); }
.ap-in:disabled { background: var(--paper); color: var(--muted); }
.ap-in--sm { padding: 7px 10px; font-size: var(--fs-md); }
.ap-in--mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: var(--fs-base); }
textarea.ap-in { resize: vertical; line-height: 1.5; }
select.ap-in { appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; padding-right: 34px; }
.ap-found { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 600; font-size: var(--fs-sm); color: var(--y-ink); background: var(--y-soft); padding: 2px 8px; border-radius: var(--r-pill); }
.ap-found .i { width: 12px; height: 12px; }
.ap-found--tag { position: absolute; top: 10px; left: 10px; z-index: 2; box-shadow: var(--sh); }
.ap-fs { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 4px; margin: 6px 0 18px; }
.ap-fs legend { font-weight: 700; font-size: var(--fs-base); padding: 0 8px; color: var(--muted); }
.ap-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-md); margin: 4px 0 16px; cursor: pointer; }
.ap-check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.ap-check--sm { margin: 0; align-items: center; font-size: var(--fs-base); }
.ap-radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.ap-radio input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 3px; }
.ap-radio span, .ap-switch--row span { display: flex; flex-direction: column; }
.ap-radio small, .ap-switch--row small { color: var(--muted); font-size: var(--fs-base); font-weight: 400; }
.ap-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-md); font-weight: 600; user-select: none; }
.ap-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ap-switch i { position: relative; width: 40px; height: 23px; border-radius: var(--r-pill); background: var(--line-2); transition: background .2s; flex: none; }
.ap-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: var(--sh); transition: transform .2s; }
.ap-switch input:checked + i { background: var(--ok); }
.ap-switch input:checked + i::after { transform: translateX(17px); }
.ap-switch input:focus-visible + i { outline: 3px solid var(--y); outline-offset: 2px; }
.ap-switch--row { align-items: flex-start; padding: 10px 0; }
.ap-switch--row i { margin-top: 2px; }
.ap-switch--field { align-self: end; margin-bottom: 26px; }
.ap-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.ap-code { background: #16161a; color: #f5e6b5; border-radius: var(--r-md); padding: 14px 16px; font: 13px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; margin: 10px 0; }

/* ---------- Bovenbalk ---------- */
.ap-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ap-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 var(--fs-xl) var(--display); color: var(--ink); }
.ap-nav { flex: 1; display: flex; justify-content: center; gap: 4px; }
.ap-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 600; font-size: var(--fs-md); color: var(--muted); }
.ap-nav a:hover { color: var(--ink); background: var(--paper); }
.ap-nav a.is-on { color: var(--ink); background: var(--y-soft); box-shadow: inset 0 0 0 1px #f3dc98; }
.ap-top__r { display: flex; gap: 4px; }
.ap-trial { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--y-soft); border-bottom: 1px solid #f3dc98; padding: 9px 16px; font-size: var(--fs-md); color: #5c4700; }
.ap-trial a { font-weight: 700; color: var(--ink); }
.ap-trial.is-over { background: var(--err-soft); border-color: #f1c9c3; color: #8d2a1f; }
.ap-main { min-height: calc(100vh - 64px); }
.ap-page { max-width: 1180px; margin: 0 auto; padding: 36px 24px 80px; }
.ap-page--narrow { max-width: 820px; }
.ap-phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.ap-phead .ap-lead { margin-bottom: 0; }
.ap-phead__r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; font-size: var(--fs-md); color: var(--muted); text-decoration: none; }
.ap-back:hover { color: var(--ink); }

/* ---------- Inloggen ---------- */
.ap-bare { min-height: 100vh; }
.ap-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; background: radial-gradient(1200px 500px at 50% -10%, #fff1c2 0%, transparent 60%), var(--paper); }
.ap-auth__back { align-self: center; display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-size: var(--fs-md); font-weight: 600; margin-bottom: 20px; }
.ap-auth__card { width: 100%; max-width: 420px; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; border: 1px solid var(--line); }
.ap-auth__head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 24px 22px; background: var(--y); }
.ap-auth__head b { font: 800 var(--fs-3xl)/1 var(--display); color: var(--ink); margin-top: 6px; }
.ap-auth__head span { font-size: var(--fs-md); color: #4d3d00; }
.ap-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.ap-auth__tabs a { text-align: center; padding: 14px; text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ap-auth__tabs a.is-on { color: var(--ink); border-color: var(--ink); }
.ap-auth__form { padding: 24px; display: flex; flex-direction: column; }
.ap-auth__form .ap-err { margin-bottom: 14px; }
.ap-auth__form .ap-linkbtn { align-self: center; margin-top: 16px; font-weight: 500; }
.ap-auth__note { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: var(--fs-base); color: var(--muted); margin: 14px 0 0; }
.ap-auth__note .i { width: 14px; height: 14px; }

/* ---------- Opstarten ---------- */
.ap-onb { max-width: 620px; margin: 0 auto; padding: 48px 20px 80px; text-align: center; }
.ap-onb--center { display: flex; flex-direction: column; align-items: center; }
.ap-onb__card { text-align: left; margin-top: 8px; }
.ap-onb .ap-note { text-align: left; }
.ap-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-base); margin: 16px 0; }
.ap-or::before, .ap-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ap-scan { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin: 10px auto 22px; }
.ap-scan i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--y-soft); border-top-color: var(--y); animation: apSpin 1.1s linear infinite; }
.ap-scan img { position: relative; }
.ap-steps, .ap-gen { list-style: none; padding: 0; margin: 10px auto 18px; display: flex; flex-direction: column; gap: 10px; min-width: 300px; text-align: left; }
.ap-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); transition: color .3s; }
.ap-steps li .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; }
.ap-steps li.is-on { color: var(--ink); font-weight: 600; }
.ap-steps li.is-on .i { border-color: var(--y); border-top-color: transparent; animation: apSpin .8s linear infinite; }
.ap-steps li.is-done { color: var(--ink); }
.ap-steps li.is-done .i { background: var(--ok); border-color: var(--ok); color: #fff; }
.ap-gen li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; font-weight: 600; color: var(--muted); }
.ap-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; }
.ap-gen li.is-on { color: var(--ink); border-color: var(--y); }
.ap-gen li.is-on .ap-dot { border-color: var(--y); border-right-color: transparent; animation: apSpin .8s linear infinite; }
.ap-gen li.is-done { color: var(--ink); }
.ap-gen li.is-done .ap-dot { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--ok); }
.ap-wiz { max-width: 1040px; margin: 0 auto; padding: 34px 24px 60px; }
.ap-stepper { list-style: none; display: flex; padding: 0; margin: 0 auto 34px; max-width: 760px; }
.ap-stepper li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: var(--fs-md); font-weight: 600; color: var(--muted); }
.ap-stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--line); margin: 0 10px; border-radius: var(--r-xs); }
.ap-stepper li.is-done:not(:last-child)::after { background: var(--ink); }
.ap-stepper b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); font-size: var(--fs-base); flex: none; }
.ap-stepper b .i { width: 15px; height: 15px; stroke-width: 3; }
.ap-stepper li.is-on { color: var(--ink); }
.ap-stepper li.is-on b { border-color: var(--ink); background: var(--y); }
.ap-stepper li.is-done b { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-onb .ap-stepper { width: 100%; }
.ap-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 22px 0; }
.ap-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.ap-tile { position: relative; display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 0; overflow: hidden; cursor: pointer; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ap-tile:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--sh); }
.ap-tile.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--y); }
.ap-tile__img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 16 / 10; background: var(--paper); color: var(--muted); overflow: hidden; }
.ap-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.ap-tile__img .i { width: 28px; height: 28px; stroke-width: 1.5; }
.ap-tile__lbl { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: var(--fs-md); color: var(--ink); }
.ap-tile__lbl b { font-weight: 600; flex: 1; }
.ap-tile--big { max-width: 340px; margin: 0 auto; cursor: default; }
.ap-tile--custom .ap-tile__img { background: var(--y-soft); color: var(--y-ink); }
.ap-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-sm); border: 2px solid var(--line-2); flex: none; }
.ap-tick .i { width: 13px; height: 13px; stroke-width: 3; opacity: 0; }
.ap-tile.is-on .ap-tick { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-tile.is-on .ap-tick .i { opacity: 1; }
.ap-x { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; padding: 2px; }
.ap-pick { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 26px 0; }
.ap-choice { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 18px 24px; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; transition: .15s; }
.ap-choice:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ap-choice.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--y); }
.ap-choice__ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: var(--r-lg); background: var(--y-soft); margin-bottom: 6px; }
.ap-choice__ico .i { width: 28px; height: 28px; stroke-width: 1.7; }
.ap-choice b { font: 700 var(--fs-xl) var(--display); color: var(--ink); }
.ap-choice small { color: var(--muted); font-size: var(--fs-base); }
.ap-add { max-width: 620px; margin: 8px auto 0; }
.ap-add label { font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.ap-add__row { display: flex; gap: 8px; margin-top: 6px; }
.ap-add .ap-small { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ap-wfoot { position: sticky; bottom: 16px; display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding: 14px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); backdrop-filter: blur(8px); }

/* ---------- Klaar ---------- */
.ap-ready { max-width: 1040px; margin: 0 auto; padding: 36px 24px 70px; text-align: center; }
.ap-ready__ok { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ok); color: #fff; margin-bottom: 14px; }
.ap-ready__ok .i { width: 28px; height: 28px; stroke-width: 3; }
.ap-frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); margin: 8px 0 22px; }
.ap-frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.ap-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ap-frame__bar span { margin-left: 10px; font-size: var(--fs-base); color: var(--muted); }
.ap-frame iframe { display: block; width: 100%; height: 680px; border: 0; }
.ap-ready__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ap-ready .ap-note { max-width: 640px; margin: 22px auto 0; text-align: left; }

/* ---------- Dashboard ---------- */
.ap-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.ap-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 4px; }
.ap-stat small { color: var(--muted); font-size: var(--fs-base); }
.ap-stat b { font: 800 var(--fs-2xl)/1.2 var(--display); color: var(--ink); }
.ap-stat b em { font-style: normal; font-weight: 600; font-size: var(--fs-lg); color: var(--muted); }
.ap-stat span { font-size: var(--fs-base); color: var(--muted); }
.ap-meter { display: block; height: 6px; background: var(--paper); border-radius: var(--r-pill); overflow: hidden; margin-top: 6px; }
.ap-meter i { display: block; height: 100%; background: var(--y); border-radius: inherit; }
.ap-dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ap-ests { display: grid; gap: 16px; margin-bottom: 32px; }
.ap-est { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--sh); }
.ap-est header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ap-est h3 { font: 700 var(--fs-xl)/1.3 var(--display); color: var(--ink); margin: 0; }
.ap-status { font-size: var(--fs-sm); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.ap-status.is-on { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cd; }
.ap-est__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 12px; }
.ap-est__stats div { background: var(--paper); border-radius: var(--r-md); padding: 10px 12px; }
.ap-est__stats dt { font-size: var(--fs-sm); color: var(--muted); }
.ap-est__stats dd { margin: 0; font: 800 var(--fs-2xl) var(--display); color: var(--ink); }
.ap-est__stats a { text-decoration: none; }
.ap-est__svc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ap-est footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.ap-sechead { display: flex; justify-content: space-between; align-items: baseline; }
.ap-sechead a { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-md); font-weight: 600; text-decoration: none; }
.ap-sechead .i { width: 15px; height: 15px; }
.ap-todo h2 { margin-bottom: 10px; }
.ap-todo__bar { height: 8px; background: var(--paper); border-radius: var(--r-pill); overflow: hidden; }
.ap-todo__bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .4s; }
.ap-todo ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.ap-todo li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: var(--fs-md); }
.ap-todo li > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.ap-todo li > b .i { width: 12px; height: 12px; stroke-width: 3; }
.ap-todo li.is-done > b { background: var(--ok); border-color: var(--ok); color: #fff; }
.ap-todo li.is-done span { color: var(--muted); text-decoration: line-through; }
.ap-todo li a, .ap-todo li .ap-linkbtn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--ink); font-size: var(--fs-md); }
.ap-todo li .i { width: 14px; height: 14px; }
.ap-help { display: flex; gap: 12px; align-items: flex-start; background: var(--y-soft); border-radius: var(--r-lg); padding: 14px; margin-top: 18px; font-size: var(--fs-base); }
.ap-help p { margin: 0; }
.ap-help a { font-weight: 700; }
.ap-lead-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto 130px; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); transition: background .15s; }
.ap-lead-row:last-child { border-bottom: 0; }
.ap-lead-row:hover { background: var(--soft); }
.ap-lead-row__main { display: flex; flex-direction: column; min-width: 0; }
.ap-lead-row__main b { color: var(--ink); }
.ap-lead-row__main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-lead-row__price { font-weight: 700; color: var(--ink); white-space: nowrap; }
.ap-lead-row__date { font-size: var(--fs-base); color: var(--muted); text-align: right; }
.ap-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--y-soft); color: var(--y-ink); font-weight: 700; }
.ap-avatar--lg { width: 52px; height: 52px; font-size: var(--fs-2xl); }
.ap-badge { font-size: var(--fs-sm); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.ap-badge--nieuw { background: var(--y-soft); color: var(--y-ink); }
.ap-badge--gecontacteerd { background: var(--info-soft); color: var(--info); }
.ap-badge--offerte { background: #f2ecfb; color: #6a3fb0; }
.ap-badge--gewonnen { background: var(--ok-soft); color: var(--ok); }
.ap-badge--verloren { background: var(--hover); color: var(--muted); }
.ap-test { font-style: normal; font-size: var(--fs-xs); font-weight: 700; background: var(--hover); color: var(--muted); padding: 2px 7px; border-radius: var(--r-pill); }

/* ---------- Aanvragen ---------- */
.ap-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.ap-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; text-align: left; }
.ap-kpi b { font: 800 var(--fs-2xl) var(--display); color: var(--ink); }
.ap-kpi span { font-size: var(--fs-base); color: var(--muted); }
.ap-kpi.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--y); }
.ap-kpi--sum { cursor: default; background: var(--ok-soft); border-color: #bfe3cd; }
.ap-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ap-search { position: relative; flex: 1; min-width: 220px; }
.ap-search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ap-search .ap-in { padding-left: 38px; }
.ap-filters select { width: auto; min-width: 200px; }
.ap-ld header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ap-ld header .ap-modal__h { margin: 0; }
.ap-ld header p { margin: 2px 0 0; }
.ap-ld__price { background: var(--y-soft); border: 1.5px solid var(--y); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 14px; }
.ap-ld__price small { color: var(--y-ink); font-size: var(--fs-base); }
.ap-ld__price > b { display: block; font: 800 var(--fs-3xl) var(--display); color: var(--ink); }
.ap-ld__price ul { list-style: none; padding: 8px 0 0; margin: 8px 0 0; border-top: 1px solid #f3dc98; font-size: var(--fs-md); }
.ap-ld__price li { display: flex; justify-content: space-between; padding: 2px 0; }
.ap-ld__contact { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ap-ld__contact a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; font-size: var(--fs-md); font-weight: 500; }
.ap-ld__contact a:hover { border-color: var(--ink); }
.ap-ld__contact .i { width: 15px; height: 15px; }
.ap-quote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--y); background: var(--paper); border-radius: 0 10px 10px 0; font-style: italic; }
.ap-ans { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 10px; }
.ap-ans > b { color: var(--ink); }
.ap-ans dl { margin: 6px 0 0; display: grid; gap: 6px; }
.ap-ans dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; font-size: var(--fs-md); }
.ap-ans dt { color: var(--muted); }
.ap-ans dd { margin: 0; font-weight: 600; color: var(--ink); }

/* ---------- Vensters en meldingen ---------- */
.ap-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.ap-modal__bg { position: absolute; inset: 0; background: rgba(17,17,17,.45); backdrop-filter: blur(2px); animation: apFade .2s; }
.ap-modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--sh-lg); animation: apPop .25s cubic-bezier(.2,.8,.2,1); }
.ap-modal__box.is-wide { max-width: 760px; }
.ap-modal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: var(--r-md); background: var(--paper); cursor: pointer; }
.ap-modal__h { font: 800 var(--fs-2xl)/1.25 var(--display); color: var(--ink); margin: 0 40px 8px 0; }
.ap-modal__foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@keyframes apFade { from { opacity: 0; } }
@keyframes apPop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.ap-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-size: var(--fs-md); font-weight: 500; box-shadow: var(--sh-lg); animation: apPop .25s; max-width: calc(100vw - 32px); }
.ap-toast--ok .i { color: var(--y); }
.ap-toast--err { background: var(--err); }
.ap-share { display: grid; gap: 16px; margin: 16px 0; }
.ap-share section { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.ap-share h3 { display: flex; align-items: center; gap: 8px; font: 700 var(--fs-lg) var(--display); color: var(--ink); margin: 0 0 4px; }
.ap-share p { margin: 0 0 8px; color: var(--muted); }
.ap-copyrow { display: flex; gap: 8px; }
.ap-btnprev { padding: 14px; background: var(--paper); border-radius: var(--r-md); margin-bottom: 10px; }
.ap-how { margin-top: 12px; font-size: var(--fs-md); }
.ap-how summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.ap-how ul { padding-left: 20px; margin: 8px 0 0; }
.ap-how li { margin: 4px 0; }
.ap-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 16px; max-height: 420px; overflow: auto; padding: 2px; }
.ap-lib button { border: 2px solid transparent; padding: 0; border-radius: var(--r-md); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--paper); }
.ap-lib button:hover { border-color: var(--y); }
.ap-lib img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Editor ---------- */
.ap-ed { max-width: 1320px; margin: 0 auto; padding: 18px 24px 80px; }
.ap-ed__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px 16px; box-shadow: var(--sh); }
.ap-ed__title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px; }
.ap-ed__title small { display: block; font-size: var(--fs-sm); color: var(--muted); }
.ap-ed__name { border: 1.5px solid transparent; background: none; font: 700 var(--fs-xl) var(--display); color: var(--ink); padding: 2px 6px; margin-left: -6px; border-radius: var(--r-sm); width: 100%; max-width: 420px; }
.ap-ed__name:hover { border-color: var(--line); }
.ap-ed__name:focus { outline: none; border-color: var(--ink); }
.ap-ed__acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-save { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-base); color: var(--ok); }
.ap-save .i { width: 15px; height: 15px; }
.ap-save.is-busy { color: var(--muted); }
.ap-save.is-err { color: var(--err); }
.ap-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 24px; overflow-x: auto; scrollbar-width: none; }
.ap-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; text-decoration: none; font-weight: 600; font-size: var(--fs-md); color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ap-tabs a:hover { color: var(--ink); }
.ap-tabs a.is-on { color: var(--ink); border-color: var(--y-deep); }
.ap-tabs--page { margin-top: 0; }
.ap-q { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ap-tree { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px; box-shadow: var(--sh); max-height: calc(100vh - 110px); overflow: auto; }
.ap-tree__h { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); margin: 4px 8px 10px; }
.ap-tree ol { list-style: none; margin: 0; padding: 0; }
.ap-tree__row { display: flex; align-items: center; border-radius: var(--r-md); width: 100%; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.ap-tree__row > button, button.ap-tree__row { display: flex; align-items: center; gap: 8px; flex: 1; border: 0; background: none; padding: 10px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; border-radius: var(--r-md); min-width: 0; }
.ap-tree__row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-tree__row em { font-style: normal; font-size: var(--fs-xs); background: var(--paper); color: var(--muted); padding: 1px 7px; border-radius: var(--r-pill); margin-left: auto; }
.ap-tree__row:hover { background: var(--paper); }
.ap-tree__row.is-on { background: var(--y-soft); box-shadow: inset 0 0 0 1.5px var(--y); }
.ap-tree__svc > .ap-tree__row .i:first-child { transform: rotate(-90deg); transition: transform .2s; width: 16px; height: 16px; }
.ap-tree__svc.is-open > .ap-tree__row .i:first-child { transform: none; }
.ap-tree__svc ol { margin: 2px 0 8px 18px; border-left: 2px solid var(--line); padding-left: 6px; }
.ap-tree__q { display: flex; align-items: center; border-radius: var(--r-sm); }
.ap-tree__q > button { flex: 1; border: 0; background: none; text-align: left; padding: 8px 10px; font-size: var(--fs-base); color: var(--text); cursor: pointer; line-height: 1.35; border-radius: var(--r-sm); }
.ap-tree__q:hover { background: var(--paper); }
.ap-tree__q.is-on { background: var(--y-soft); }
.ap-tree__q.is-on > button { font-weight: 600; color: var(--ink); }
.ap-tree__mv { display: flex; opacity: 0; transition: opacity .15s; }
.ap-tree__q:hover .ap-tree__mv, .ap-tree__row:hover .ap-tree__mv, .ap-tree__mv:focus-within { opacity: 1; }
.ap-tree__mv button { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--muted); border-radius: var(--r-sm); display: grid; }
.ap-tree__mv button:hover { background: var(--card); color: var(--ink); }
.ap-tree__mv .i { width: 14px; height: 14px; }
.ap-tree__add { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 10px; font-size: var(--fs-base); font-weight: 600; color: var(--muted); cursor: pointer; border-radius: var(--r-sm); }
.ap-tree__add:hover { color: var(--ink); background: var(--paper); }
.ap-tree__add .i { width: 15px; height: 15px; }
.ap-tree__add--svc { width: 100%; justify-content: center; border: 1.5px dashed var(--line-2); margin: 8px 0 12px; padding: 10px; }
.ap-tree__tip { display: flex; gap: 6px; font-size: var(--fs-sm); color: var(--muted); margin: 10px 6px 2px; }
.ap-tree__tip .i { width: 14px; height: 14px; margin-top: 1px; }
.ap-qed { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 28px; box-shadow: var(--sh); min-height: 400px; }
.ap-qed__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ap-qtitle { width: 100%; border: 1.5px solid transparent; background: none; font: 800 var(--fs-2xl)/1.25 var(--display); color: var(--ink); padding: 4px 8px; margin: 0 -8px; border-radius: var(--r-md); }
.ap-qhelp { width: 100%; border: 1.5px solid transparent; background: none; font-size: var(--fs-lg); color: var(--muted); padding: 4px 8px; margin: 2px -8px 16px; border-radius: var(--r-md); }
.ap-qtitle:hover, .ap-qhelp:hover { border-color: var(--line); }
.ap-qtitle:focus, .ap-qhelp:focus { outline: none; border-color: var(--ink); background: var(--card); }
.ap-qmeta { display: grid; grid-template-columns: minmax(0, 320px) auto; gap: 20px; align-items: end; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.ap-rate { background: var(--soft); }
.ap-rate .ap-h4 { margin-top: 0; }
.ap-opts { display: grid; gap: 10px; margin-bottom: 12px; }
.ap-opt { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; background: var(--card); transition: border-color .15s; }
.ap-opt:hover { border-color: var(--line-2); }
.ap-opt__main { display: grid; gap: 8px; }
.ap-opt__label { font-weight: 600; }
.ap-opt__price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-opt__price select { width: auto; min-width: 0; flex: 0 1 190px; }
.ap-opt__tools { display: flex; flex-direction: column; gap: 2px; }
.ap-money { position: relative; display: inline-flex; }
.ap-money i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: var(--fs-md); }
.ap-money .ap-in { padding-left: 24px; width: 96px; }
.ap-dash { color: var(--muted); }
.ap-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 132px; aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: var(--paper); cursor: pointer; overflow: hidden; color: var(--muted); padding: 0; flex: none; }
.ap-photo img { width: 100%; height: 100%; object-fit: cover; }
.ap-photo:hover { border-color: var(--ink); }
.ap-photo--sm { width: 72px; }
.ap-photo small { font-size: var(--fs-sm); }
.ap-svcform { display: flex; gap: 20px; align-items: flex-start; }
.ap-qsum { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.ap-qsum button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; }
.ap-qsum button:hover { border-color: var(--ink); }
.ap-qsum b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--y-soft); flex: none; font-size: var(--fs-base); }
.ap-qsum span { flex: 1; display: flex; flex-direction: column; font-weight: 600; color: var(--ink); }
.ap-qsum small { font-weight: 400; color: var(--muted); font-size: var(--fs-base); }
.ap-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 150; background: var(--card); box-shadow: var(--sh-lg); display: flex; flex-direction: column; animation: apSlide .25s cubic-bezier(.2,.8,.2,1); }
@keyframes apSlide { from { transform: translateX(40px); opacity: 0; } }
.ap-drawer__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ap-drawer__head b { font-family: var(--display); }
.ap-drawer__head .ap-icon { margin-left: auto; }
.ap-drawer iframe { flex: 1; border: 0; width: 100%; }

/* Pricing Lab */
.ap-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--sh); }
.ap-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.ap-table th, .ap-table td { padding: 12px 16px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ap-table th:first-child, .ap-table td:first-child { text-align: left; }
.ap-table th { font-size: var(--fs-sm); color: var(--muted); font-weight: 700; background: var(--soft); }
.ap-table td:first-child a { font-weight: 600; text-decoration: none; }
.ap-table tfoot td { font-weight: 800; color: var(--ink); border-bottom: 0; background: var(--y-soft); }
.ap-table tbody tr:last-child td { border-bottom: 0; }
.ap-tablewrap:has(tfoot) tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.ap-acc { display: grid; gap: 8px; }
.ap-acc details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.ap-acc summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ap-acc summary::-webkit-details-marker { display: none; }
.ap-acc summary span { flex: 1; display: flex; flex-direction: column; }
.ap-acc summary b { color: var(--ink); }
.ap-acc summary small { color: var(--muted); font-size: var(--fs-base); }
.ap-acc summary em { font-style: normal; font-weight: 800; color: var(--ink); font-family: var(--display); }
.ap-acc summary .i { transition: transform .2s; }
.ap-acc details[open] summary .i { transform: rotate(180deg); }
.ap-acc ul { list-style: none; margin: 0; padding: 4px 18px 14px; border-top: 1px solid var(--line); }
.ap-acc li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: var(--fs-md); border-bottom: 1px dashed var(--line); }
.ap-acc li:last-child { border-bottom: 0; }
.ap-acc li span { color: var(--muted); }
.ap-acc li b { color: var(--ink); text-align: right; }
.ap-warnlist { background: var(--y-faint); border-color: #f3dc98; }
.ap-warnlist ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: var(--fs-md); }
.ap-advice { margin-top: 16px; padding: 16px 18px; background: var(--paper); border-radius: var(--r-md); font-size: var(--fs-md); }
.ap-advice ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ap-advice p { margin: 0 0 8px; }

/* Resultaatpagina en design */
.ap-split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.ap-sticky { position: sticky; top: 84px; }
.ap-mdbar { display: flex; gap: 4px; }
.ap-mdbar button { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-sm); padding: 4px 10px; font-size: var(--fs-base); cursor: pointer; }
.ap-mdbar button:hover { border-color: var(--ink); }
.ap-rprev { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh); text-align: center; max-height: calc(100vh - 140px); overflow: auto; }
.ap-rprev h3 { font: 800 var(--fs-2xl)/1.25 var(--display); color: var(--ink); margin: 0 0 8px; }
.ap-rprev .ap-md { font-size: var(--fs-md); }
.ap-rprev__price { background: var(--y-soft); border: 2px solid var(--y); border-radius: var(--r-lg); padding: 16px; margin: 14px 0; }
.ap-rprev__price small { display: block; font-size: var(--fs-base); }
.ap-rprev__price b { font: 800 var(--fs-3xl) var(--display); color: var(--ink); }
.ap-rprev__exp { text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin-top: 16px; }
.ap-md h3, .ap-md h4, .ap-md h5 { font: 700 var(--fs-lg) var(--display); color: var(--ink); margin: 10px 0 4px; }
.ap-md ul { padding-left: 18px; margin: 4px 0 8px; }
.ap-md p { margin: 0 0 8px; }
.ap-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ap-color { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; cursor: pointer; }
.ap-color input { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: var(--r-md); flex: none; }
.ap-color input::-webkit-color-swatch-wrapper { padding: 0; }
.ap-color input::-webkit-color-swatch { border: 1px solid var(--line-2); border-radius: var(--r-md); }
.ap-color span { display: flex; flex-direction: column; min-width: 0; }
.ap-color b { font-size: var(--fs-md); color: var(--ink); }
.ap-color small { font-size: var(--fs-sm); color: var(--muted); line-height: 1.35; }
.ap-color code { font-size: var(--fs-sm); color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--ink); }
.ap-dprev { --p: var(--y); --btn: var(--ink); --btn-t: #fff; --h: var(--ink); --t: #3d3a35; --bg: #fff; --r: 14px; background: var(--bg); color: var(--t); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--sh); text-align: center; }
.ap-dprev__bar { height: 6px; background: color-mix(in srgb, var(--t) 8%, var(--bg)); border-radius: var(--r-pill); margin-bottom: 16px; overflow: hidden; }
.ap-dprev__bar i { display: block; width: 45%; height: 100%; background: var(--p); }
.ap-dprev small { font-size: var(--fs-base); font-weight: 600; }
.ap-dprev h3 { font: 800 var(--fs-2xl) var(--display); color: var(--h); margin: 2px 0 4px; }
.ap-dprev p { font-size: var(--fs-md); margin: 0 0 14px; }
.ap-dprev__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-dprev__grid span { border: 2px solid color-mix(in srgb, var(--t) 16%, transparent); border-radius: var(--r); overflow: hidden; text-align: left; }
.ap-dprev__grid span.is-on { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 20%, transparent); }
.ap-dprev__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ap-dprev__grid b { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: var(--fs-base); color: var(--h); }
.ap-dprev__grid b i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--t) 25%, transparent); }
.ap-dprev__grid .is-on b i { background: var(--btn); border-color: var(--btn); }
.ap-dprev__foot { display: flex; justify-content: space-between; margin-top: 16px; }
.ap-dprev__foot button { border: 2px solid var(--btn); background: var(--btn); color: var(--btn-t); border-radius: var(--r-pill); padding: 8px 18px; font-weight: 700; font-size: var(--fs-base); }
.ap-dprev__foot .is-ghost { background: transparent; color: var(--h); border-color: color-mix(in srgb, var(--t) 18%, transparent); }
.ap-dprev__price { margin-top: 16px; padding: 14px; border-radius: calc(var(--r) * 1.2); background: color-mix(in srgb, var(--p) 16%, var(--bg)); border: 2px solid var(--p); }
.ap-dprev__price small { display: block; }
.ap-dprev__price b { font: 800 var(--fs-2xl) var(--display); color: var(--h); }

/* Account */
.ap-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ap-narrow { max-width: 640px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ap-plannow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ap-plannow > div { display: flex; flex-direction: column; gap: 3px; }
.ap-plannow small { color: var(--muted); font-size: var(--fs-base); }
.ap-plannow b { font: 800 var(--fs-2xl) var(--display); color: var(--ink); }
.ap-plannow span { font-size: var(--fs-base); color: var(--muted); }
.ap-bill { display: inline-flex; gap: 4px; background: var(--card); border: 1px solid var(--line); padding: 4px; border-radius: var(--r-pill); margin: 10px 0 20px; }
.ap-bill button { border: 0; background: none; padding: 9px 18px; border-radius: var(--r-pill); font-weight: 600; cursor: pointer; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.ap-bill button.is-on { background: var(--ink); color: #fff; }
.ap-bill em { font-style: normal; font-size: var(--fs-xs); background: var(--y); color: var(--ink); padding: 2px 7px; border-radius: var(--r-pill); }
.ap-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ap-plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 22px 20px; box-shadow: var(--sh); }
.ap-plan.is-pop { border-color: var(--ink); box-shadow: 0 0 0 3px var(--y), var(--sh); }
.ap-plan.is-cur::after { content: "Je pakket"; position: absolute; top: 14px; right: 14px; font-size: var(--fs-xs); font-weight: 700; background: var(--ok-soft); color: var(--ok); padding: 3px 8px; border-radius: var(--r-pill); }
.ap-plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); white-space: nowrap; }
.ap-plan h3 { font: 800 var(--fs-2xl) var(--display); color: var(--ink); margin: 0 0 8px; }
.ap-plan__price { display: flex; flex-direction: column; margin: 0; }
.ap-plan__price b { font: 800 32px/1.1 var(--display); color: var(--ink); }
.ap-plan__price span { font-size: var(--fs-base); color: var(--muted); }
.ap-plan .ap-small { margin: 4px 0 14px; }
.ap-plan ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: var(--fs-md); }
.ap-plan li { display: flex; gap: 8px; align-items: flex-start; }
.ap-plan li .i { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.5; margin-top: 2px; }

/* ---------- Kleinere schermen ---------- */
@media (max-width: 1100px) {
  .ap-dash, .ap-split { grid-template-columns: 1fr; }
  .ap-sticky { position: static; }
  .ap-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ap-q { grid-template-columns: 1fr; }
  .ap-tree { position: static; max-height: none; }
  .ap-stats { grid-template-columns: 1fr 1fr; }
  .ap-cols { grid-template-columns: 1fr; }
  .ap-lead-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .ap-lead-row__date, .ap-lead-row .ap-badge { display: none; }
}
@media (max-width: 640px) {
  .ap-top { padding: 0 12px; gap: 8px; }
  .ap-logo b { display: none; }
  .ap-nav a { padding: 8px 10px; }
  .ap-nav a span { display: none; }
  .ap-page, .ap-ed, .ap-wiz, .ap-ready { padding-left: 16px; padding-right: 16px; }
  .ap-page { padding-top: 24px; }
  .ap-stats, .ap-plans, .ap-plannow, .ap-tiles--3, .ap-colors, .ap-grid3 { grid-template-columns: 1fr; }
  .ap-kpis { grid-template-columns: 1fr 1fr; }
  .ap-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ap-stepper li span { display: none; }
  .ap-qed { padding: 18px 16px; }
  .ap-opt { grid-template-columns: 56px minmax(0, 1fr); }
  .ap-opt__tools { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .ap-photo--sm { width: 56px; }
  .ap-svcform { flex-direction: column; }
  .ap-qmeta { grid-template-columns: 1fr; gap: 0; }
  .ap-switch--field { margin-bottom: 18px; }
  .ap-frame iframe { height: 620px; }
  .ap-ed__bar { gap: 10px; }
  .ap-modal { padding: 10px; }
  .ap-modal__box { padding: 20px 16px; }
  .ap-filters select { width: 100%; }
  .ap-ans dl div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =========================================================
   Versie 2: indeling met zijbalk en verfijnde vormgeving
   ========================================================= */
body { background: var(--paper); font-size: var(--fs-md); }
.ap-h1 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.02em; }
.ap-h2 { font-size: var(--fs-2xl); letter-spacing: -.015em; }
.ap-h3 { font-size: var(--fs-xl); margin: 0; }
.ap-eyebrow { margin: 0 0 6px; font-size: var(--fs-base); font-weight: 600; color: var(--muted); }
.ap-eyebrow::first-letter { text-transform: uppercase; }
.ap-card { border-radius: var(--r-lg); box-shadow: var(--sh); }
.ap-btn { border-radius: var(--r-md); padding: 10px 16px; }
.ap-btn--lg { border-radius: var(--r-md); padding: 13px 22px; }
.ap-btn--sm { border-radius: var(--r-sm); padding: 7px 12px; }
.ap-btn--primary { box-shadow: inset 0 -2px 0 rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }
.ap-btn--ghost { border-color: var(--line); box-shadow: var(--sh); }
.ap-btn--ghost:hover:not(:disabled) { border-color: var(--line-2); background: #fcfbf9; }
.ap-btn:hover:not(:disabled) { transform: none; }
.ap-in { border-width: 1px; border-color: var(--line-2); border-radius: var(--r-md); box-shadow: var(--sh); }
.ap-in:focus { border-color: #a57a00; box-shadow: 0 0 0 3px rgba(255,194,26,.28); }
.ap-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 var(--fs-2xl) var(--display); color: var(--ink); letter-spacing: -.01em; }

/* ---------- Indeling ---------- */
.ap-layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.ap-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px 14px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.ap-side > .ap-logo { padding: 2px 8px 14px; }
.ap-side__new { margin-bottom: 14px; }
.ap-snav { display: flex; flex-direction: column; gap: 2px; }
.ap-snav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r-md); text-decoration: none; color: var(--text); font-weight: 500; font-size: var(--fs-md); transition: background .15s, color .15s; }
.ap-snav a .i { color: var(--muted); }
.ap-snav a:hover { background: var(--paper); color: var(--ink); }
.ap-snav a.is-on { background: var(--y-soft); color: var(--ink); font-weight: 600; }
.ap-snav a.is-on .i { color: var(--y-ink); }
.ap-snav a.is-on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--y); }
.ap-snav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-count { font-style: normal; font-size: var(--fs-xs); font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.ap-side__h { margin: 18px 12px 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
.ap-snav--sub a { font-size: var(--fs-base); padding: 7px 12px; }
.ap-dotst { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.ap-dotst.is-on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.ap-side__none { font-size: var(--fs-base); color: var(--muted); padding: 6px 12px; text-decoration: none; }
.ap-side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.ap-plan-mini { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.ap-plan-mini small { font-size: var(--fs-sm); color: var(--muted); }
.ap-plan-mini b { font: 700 var(--fs-lg) var(--display); color: var(--ink); }
.ap-plan-mini .ap-meter { margin: 6px 0 4px; }
.ap-plan-mini__cta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.ap-plan-mini__cta .i { width: 14px; height: 14px; }
.ap-plan-mini:hover .ap-plan-mini__cta { text-decoration: underline; }
.ap-plan-mini.is-warn { background: var(--y-soft); border-color: #f3dc98; }
.ap-me { display: flex; align-items: center; gap: 10px; padding: 8px 4px 2px; }
.ap-me .ap-avatar { width: 34px; height: 34px; font-size: var(--fs-md); }
.ap-me__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ap-me__txt b { font-size: var(--fs-base); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-me__txt small { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-body { min-width: 0; }
.ap-main { min-height: 100vh; }
.ap-mtop, .ap-tabbar { display: none; }
.ap-page { max-width: 1140px; padding: 40px 40px 80px; }
.ap-phead { margin-bottom: 28px; align-items: flex-end; }

/* ---------- Opstarten: eenvoudige balk ---------- */
.ap-otop { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 28px; background: rgba(245,244,240,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ap-otop__r { display: flex; align-items: center; gap: 16px; }
.ap-otop__link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-weight: 600; font-size: var(--fs-md); color: var(--muted); text-decoration: none; cursor: pointer; padding: 0; }
.ap-otop__link:hover { color: var(--ink); }
.ap-omain { min-height: calc(100vh - 68px); }
.ap-onb__card { padding: 28px; border-radius: var(--r-xl); box-shadow: var(--sh-md); }

/* ---------- Statistieken ---------- */
.ap-stats { gap: 16px; }
.ap-stat { position: relative; padding: 18px 20px 18px; border-radius: var(--r-lg); gap: 2px; }
.ap-stat__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-md); background: var(--paper); color: var(--ink); margin-bottom: 12px; }
.ap-stat__ico .i { width: 18px; height: 18px; }
.ap-stat.is-y .ap-stat__ico { background: var(--y); }
.ap-stat b { font-size: var(--fs-3xl); letter-spacing: -.02em; }
.ap-stat b em { font-size: var(--fs-md); }

/* ---------- Calculatorkaarten ---------- */
.ap-sechead { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.ap-dash > section > .ap-sechead:not(:first-child) { margin-top: 34px; }
.ap-ests { margin-bottom: 0; }
.ap-est { display: grid; grid-template-columns: 210px minmax(0, 1fr); padding: 0; overflow: hidden; border-radius: var(--r-xl); transition: box-shadow .2s, border-color .2s; }
.ap-est:hover { box-shadow: var(--sh-md); border-color: var(--line-2); }
.ap-est__img { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--paper); min-height: 100%; }
.ap-est__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-est__img > :first-child { grid-row: 1 / 3; }
.ap-est__img > :only-child { grid-column: 1 / 3; }
.ap-est__img:has(> :nth-child(2):last-child) > :last-child { grid-row: 1 / 3; }
.ap-est__img span { display: grid; place-items: center; color: var(--line-2); }
.ap-est__img span .i { width: 40px; height: 40px; stroke-width: 1.4; }
.ap-est__body { padding: 20px 22px 16px; display: flex; flex-direction: column; min-width: 0; }
.ap-est header { align-items: flex-start; }
.ap-est h3 { font-size: var(--fs-xl); }
.ap-est h3 a { text-decoration: none; color: inherit; }
.ap-est h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ap-est header p { margin: 3px 0 0; }
.ap-est__svc { margin: 14px 0 0; }
.ap-est__stats { margin: 14px 0 0; gap: 8px; }
.ap-est__stats div { background: none; border: 1px solid var(--line); padding: 8px 12px; border-radius: var(--r-md); }
.ap-est__stats dd { font-size: var(--fs-xl); }
.ap-est footer { margin-top: 16px; padding-top: 14px; gap: 6px; }
.ap-status { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.ap-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ap-chip--static { background: #fff; }

/* Aanvragen-lijst en checklist */
.ap-lead-row { padding: 14px 20px; }
.ap-lead-row:hover { background: var(--soft); }
.ap-todo { padding: 22px; border-radius: var(--r-xl); position: sticky; top: 24px; }
.ap-todo h2 { margin-bottom: 12px; }
.ap-help { border: 1px solid #f3dc98; }

/* ---------- Editor ---------- */
.ap-ed { max-width: 1280px; padding: 24px 36px 80px; }
.ap-ed__bar { border-radius: var(--r-lg); padding: 12px 14px 12px 12px; }
.ap-tabs { margin: 20px 0 26px; }
.ap-tabs a.is-on { border-color: var(--ink); }
.ap-tabs a.is-on .i { color: var(--y-ink); }
.ap-tree { top: 20px; max-height: calc(100vh - 40px); border-radius: var(--r-lg); }
.ap-sticky { top: 24px; }
.ap-qed { border-radius: var(--r-lg); padding: 28px 32px; }
.ap-opt { border-radius: var(--r-md); }
.ap-drawer { border-left: 1px solid var(--line); }

/* ---------- Inloggen: gesplitst scherm ---------- */
.ap-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; padding: 0; background: #fff; align-items: stretch; justify-content: stretch; }
.ap-auth__main { display: flex; flex-direction: column; padding: 28px 40px 40px; }
.ap-auth__top { display: flex; justify-content: space-between; align-items: center; }
.ap-auth__back { margin: 0; }
.ap-auth__card { width: 100%; max-width: 420px; margin: auto; padding: 40px 0; border: 0; box-shadow: none; border-radius: 0; overflow: visible; background: none; }
.ap-auth__card .ap-lead { margin-bottom: 22px; }
.ap-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--paper); border-radius: var(--r-md); margin-bottom: 22px; }
.ap-seg a { text-align: center; padding: 9px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; font-size: var(--fs-md); color: var(--muted); }
.ap-seg a.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.ap-auth__form { padding: 0; }
.ap-auth__side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 60px 56px; background: radial-gradient(700px 400px at 90% 0%, #ffe07a 0%, transparent 60%), linear-gradient(160deg, #ffc21a 0%, #ffb700 100%); overflow: hidden; }
.ap-auth__side::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 380px; height: 380px; background: url("assets/beavr-head.png") center / contain no-repeat; opacity: .12; }
.ap-auth__pitch h2 { font: 800 clamp(26px, 2.6vw, 36px)/1.15 var(--display); color: var(--ink); letter-spacing: -.02em; margin: 0 0 18px; max-width: 480px; }
.ap-auth__pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ap-auth__pitch li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: #2b2300; }
.ap-auth__pitch li .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--y); stroke-width: 3; }
.ap-auth__demo { position: relative; z-index: 1; max-width: 360px; background: #fff; border-radius: var(--r-xl); padding: 20px 22px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 4px; }
.ap-auth__demo-top { display: flex; justify-content: space-between; align-items: center; }
.ap-auth__demo-top b { color: var(--ink); }
.ap-auth__demo-top small { color: var(--muted); font-size: var(--fs-sm); }
.ap-auth__demo-bar { height: 5px; border-radius: var(--r-pill); background: var(--paper); margin: 8px 0 12px; overflow: hidden; }
.ap-auth__demo-bar i { display: block; width: 92%; height: 100%; background: var(--y); }
.ap-auth__demo small { color: var(--muted); font-size: var(--fs-sm); }
.ap-auth__demo strong { font: 800 var(--fs-3xl) var(--display); color: var(--ink); letter-spacing: -.02em; }
.ap-auth__demo span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-base); color: var(--ok); font-weight: 600; margin-top: 4px; }
.ap-auth__demo span .i { width: 15px; height: 15px; stroke-width: 3; }
.ap-auth__lead { position: relative; z-index: 1; align-self: flex-start; margin-left: 60px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r-lg); padding: 12px 16px; box-shadow: var(--sh); }
.ap-auth__lead > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; }
.ap-auth__lead b { font-size: var(--fs-md); color: var(--ink); }
.ap-auth__lead small { font-size: var(--fs-sm); color: var(--muted); }
.ap-auth__lead em { font-style: normal; font-size: var(--fs-sm); font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 3px 8px; border-radius: var(--r-pill); }

/* ---------- Kleinere schermen ---------- */
@media (max-width: 1180px) {
  :root { --side: 232px; }
  .ap-page { padding: 32px 28px 80px; }
  .ap-ed { padding: 20px 24px 80px; }
}
@media (max-width: 1100px) { .ap-todo { position: static; } }
@media (max-width: 960px) {
  .ap-layout { grid-template-columns: 1fr; }
  .ap-side { display: none; }
  .ap-mtop { display: flex; position: sticky; top: 0; z-index: 50; align-items: center; gap: 4px; height: 58px; padding: 0 12px 0 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .ap-mtop .ap-logo { margin-right: auto; }
  .ap-tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .ap-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-decoration: none; border-radius: var(--r-md); }
  .ap-tabbar a.is-on { color: var(--ink); background: var(--y-soft); }
  .ap-tabbar .ap-count { position: absolute; top: 0; left: 55%; min-width: 18px; height: 18px; font-size: var(--fs-xs); }
  .ap-main { min-height: calc(100vh - 58px); padding-bottom: 76px; }
  .ap-auth { grid-template-columns: 1fr; }
  .ap-auth__side { display: none; }
  .ap-est { grid-template-columns: 1fr; }
  .ap-est__img { height: 150px; }
}
@media (max-width: 640px) {
  .ap-page { padding: 22px 16px 80px; }
  .ap-ed { padding: 14px 12px 80px; }
  .ap-auth__main { padding: 20px 18px 32px; }
  .ap-auth__card { padding: 28px 0; }
  .ap-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ap-stat { padding: 14px; }
  .ap-stat__ico { margin-bottom: 8px; }
  .ap-stat b { font-size: var(--fs-2xl); }
  .ap-otop { padding: 0 16px; }
  .ap-otop__link span { display: none; }
  .ap-phead__r { width: 100%; }
  .ap-phead__r .ap-btn { flex: 1; }
}

.ap-ed__title > div { flex: 1; min-width: 0; }
.ap-ed__name { max-width: 520px; }
.ap-auth__pitch h2 { text-wrap: balance; max-width: 520px; }
.ap-mini-steps { list-style: none; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 0; margin: 22px 0 0; font-size: var(--fs-base); color: var(--muted); }
.ap-mini-steps li { display: flex; align-items: center; gap: 8px; }
.ap-mini-steps li > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink); }
.ap-onb .ap-h1 { font-size: clamp(28px, 3.2vw, 36px); }
.ap-wiz { text-align: center; }
.ap-wiz .ap-lead--l { margin-left: auto; }
.ap-wiz .ap-note { max-width: 640px; margin-left: auto; margin-right: auto; text-align: left; }
.ap-wiz .ap-tile, .ap-wiz .ap-add { text-align: left; }
.ap-choice { padding: 46px 18px 26px; }
.ap-lead { text-wrap: pretty; }
.ap-wfoot { max-width: 760px; margin-left: auto; margin-right: auto; }
.ap-wiz .ap-tiles:not(.ap-tiles--3) { max-width: 1000px; margin-left: auto; margin-right: auto; }
.ap-lock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-base); font-weight: 600; color: var(--y-ink); text-decoration: none; }
.ap-lock:hover { text-decoration: underline; }
.ap-lock .i { width: 14px; height: 14px; }
.ap-stat.is-lock { background: var(--soft); border-style: dashed; }
.ap-stat.is-lock b .i { width: 24px; height: 24px; color: var(--line-2); }
.ap-est__stats .ap-est__lock { grid-column: span 2; background: var(--soft); border-style: dashed; }
.ap-est__lock dd a { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-md) var(--body); color: var(--y-ink); text-decoration: none; }
.ap-est__lock dd .i { width: 14px; height: 14px; }
.ap-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.ap-yes .i { width: 13px; height: 13px; stroke-width: 3; }
.ap-no { color: var(--line-2); font-weight: 700; }
.ap-cmp__h { margin: 36px 0 12px; text-align: center; }
.ap-cmp th, .ap-cmp td { text-align: center; }
.ap-cmp th:first-child, .ap-cmp td:first-child { text-align: left; color: var(--text); }
.ap-cmp th { font-size: var(--fs-md); color: var(--ink); }
.ap-cmp .is-cur { background: var(--y-soft); }
.ap-plan .ap-btn:disabled { opacity: 1; color: var(--ok); border-color: #bfe3cd; background: var(--ok-soft); }
.ap-plans { margin-top: 8px; }
.ap-note a { text-decoration: underline; text-underline-offset: 2px; }.ap-ptabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 14px; }
.ap-ptabs button { border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 7px 14px; font-weight: 600; font-size: var(--fs-base); cursor: pointer; color: var(--text); }
.ap-ptabs button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-sharebody { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--soft); }
.ap-steps2 { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.ap-steps2 li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-md); }
.ap-steps2 li > b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--y); color: var(--ink); font-size: var(--fs-sm); flex: none; }
.ap-share--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .ap-share--2 { grid-template-columns: 1fr; } }/* Dashboard: omzet, grafiek, opvolgen */
.ap-money2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin: 0 0 30px; }
.ap-money2 .ap-card { margin: 0; padding: 20px 22px; }
.ap-pipe__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 6px; }
.ap-pipe__grid div { display: flex; flex-direction: column; gap: 2px; }
.ap-pipe__grid small { font-size: var(--fs-sm); color: var(--muted); }
.ap-pipe__grid b { font: 800 var(--fs-2xl) var(--display); color: var(--ink); letter-spacing: -.02em; }
.ap-pipe__grid b.is-ok { color: var(--ok); }
.ap-pipe__grid span { font-size: var(--fs-sm); color: var(--muted); }
.ap-pipe__bar { display: flex; gap: 3px; height: 10px; margin: 18px 0 10px; border-radius: var(--r-pill); overflow: hidden; }
.ap-pipe__bar i { display: block; min-width: 6px; }
.ap-pipe__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.ap-pipe__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ap-pipe__legend i { width: 9px; height: 9px; border-radius: var(--r-xs); }
.ap-pipe--nieuw { background: var(--y); } .ap-pipe--gecontacteerd { background: #6c9ce0; } .ap-pipe--offerte { background: #a07ad6; }
.ap-pipe--gewonnen { background: var(--ok); } .ap-pipe--verloren { background: #cfcac0; } .ap-pipe--leeg { background: var(--paper); }
.ap-chart { display: flex; flex-direction: column; }
.ap-chart .ap-sechead { margin-bottom: 2px; }
.ap-chart__n { font: 800 var(--fs-3xl) var(--display); color: var(--ink); }
.ap-chart__trend { margin: 0 0 12px; }
.ap-bars { flex: 1; min-height: 110px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line); }
.ap-bars i { flex: 1; background: var(--paper); border-radius: 4px 4px 0 0; transition: background .15s; }
.ap-bars i.has { background: var(--y); }
.ap-bars i:hover { background: var(--ink); }
.ap-bars__axis { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.ap-aside { display: flex; flex-direction: column; gap: 16px; }
.ap-aside .ap-card { margin: 0; padding: 20px; }
.ap-todo { position: static; }
.ap-follow ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ap-follow li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 10px 10px 12px; }
.ap-follow__who { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; line-height: 1.35; }
.ap-follow__who b { font-size: var(--fs-md); color: var(--ink); }
.ap-follow__who small { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-follow__who em { font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--ok); margin-top: 2px; }
.ap-follow__who em.is-late { color: #b3541e; }
.ap-follow__acts { display: flex; gap: 2px; }
.ap-follow .ap-empty--sm { padding: 18px 8px 6px; }
.ap-topsvc ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.ap-topsvc li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: var(--fs-base); }
.ap-topsvc li b { color: var(--ink); }
.ap-topsvc li i { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: var(--y); }
@media (max-width: 1100px) { .ap-money2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ap-pipe__grid b { font-size: var(--fs-xl); } }.ap-modal__box { overflow-x: hidden; }
.ap-share section, .ap-copyrow { min-width: 0; }
.ap-copyrow .ap-in { min-width: 0; flex: 1; }
.ap-btnprev { overflow: hidden; }

/* =========================================================
   Versie 3: statistieken, zoeken, grafieken en moderne details
   ========================================================= */
.ap-hero { position: relative; overflow: hidden; padding: 28px 30px; border-radius: var(--r-xl); background: radial-gradient(600px 220px at 100% 0%, rgba(255,194,26,.35), transparent 70%), linear-gradient(135deg, #fffaf0 0%, #fff 55%); border: 1px solid #f1e6c4; box-shadow: var(--sh); }
.ap-hero > div:not(.ap-phead__r) { position: relative; z-index: 1; }
.ap-hero .ap-phead__r { position: relative; z-index: 1; }
.ap-hero__img { position: absolute; right: 230px; bottom: -34px; width: 130px; height: auto; opacity: .12; transform: rotate(-8deg); pointer-events: none; }
.ap-spark { display: block; width: 100%; height: 34px; margin-top: 10px; }
.ap-spark .l { fill: none; stroke: var(--y-deep); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ap-spark .a { fill: rgba(255,194,26,.18); }
.ap-spark.is-grey .l { stroke: var(--line-3); } .ap-spark.is-grey .a { fill: rgba(179,171,154,.14); }
.ap-statlink { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-base); font-weight: 600; color: var(--ink); text-decoration: none; }
.ap-statlink .i { width: 14px; height: 14px; }
.ap-statlink:hover { text-decoration: underline; }
.ap-est__stats { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
/* Vlakgrafiek */
.ap-area svg { display: block; width: 100%; height: 220px; overflow: visible; }
.ap-area__grid line { stroke: var(--line); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.ap-area__grid text, .ap-area__x text { font-size: var(--fs-xs); fill: var(--muted); font-family: var(--body); }
.ap-area__l { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.ap-area__a { opacity: .9; }
.ap-area__l.is-y { stroke: var(--y-deep); } .ap-area__a.is-y { fill: rgba(255,194,26,.22); }
.ap-area__l.is-grey { stroke: var(--line-3); } .ap-area__a.is-grey { fill: rgba(179,171,154,.12); }
.ap-area__l.is-blue { stroke: #6c9ce0; } .ap-area__a.is-blue { fill: rgba(108,156,224,.1); }
.ap-area__hit rect { fill: transparent; }
.ap-area__hit rect:hover { fill: rgba(17,17,17,.04); }
.ap-area__legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.ap-area__legend span { display: inline-flex; align-items: center; gap: 6px; }
.ap-area__legend i { width: 10px; height: 10px; border-radius: var(--r-xs); }
.ap-area__legend i.is-y { background: var(--y); } .ap-area__legend i.is-grey { background: #cfc8b8; } .ap-area__legend i.is-blue { background: #6c9ce0; }
.ap-chart .ap-area svg { height: 170px; }
/* Statistieken */
.ap-filters--stats { justify-content: space-between; margin: -8px 0 22px; }
.ap-filters--stats select { max-width: 320px; }
.ap-seg--inline { display: inline-flex; margin: 0; }
.ap-seg--inline button { border: 0; background: none; padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-base); color: var(--muted); cursor: pointer; white-space: nowrap; }
.ap-seg--inline button.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.ap-kpis2 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ap-kpi2 { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px 14px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ap-kpi2 small { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.ap-kpi2 small .i { width: 14px; height: 14px; }
.ap-kpi2 b { font: 800 var(--fs-3xl) var(--display); color: var(--ink); letter-spacing: -.02em; }
.ap-kpi2 > span { font-size: var(--fs-sm); color: var(--muted); }
.ap-kpi2.is-y { background: linear-gradient(160deg, #fff6d6, #fff 70%); border-color: #f1e0a8; }
.ap-chartcard { padding: 22px 24px; }
.ap-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.ap-grid2 .ap-card { margin: 0; }
.ap-funnel { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ap-funnel li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 34px 44px; gap: 10px; align-items: center; font-size: var(--fs-base); }
.ap-funnel__t { display: flex; flex-direction: column; min-width: 0; color: var(--ink); line-height: 1.3; }
.ap-funnel__t small { font-size: var(--fs-xs); color: var(--muted); }
.ap-funnel__bar { height: 10px; background: var(--paper); border-radius: var(--r-pill); overflow: hidden; }
.ap-funnel__bar i { display: block; height: 100%; background: var(--y); border-radius: inherit; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ap-funnel li b { text-align: right; color: var(--ink); }
.ap-funnel li em { font-style: normal; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); text-align: right; }
.ap-funnel li.is-bad em { color: #b3541e; }
.ap-funnel li.is-bad .ap-funnel__bar i { background: #f0a36b; }
.ap-funnel--big li { grid-template-columns: 90px minmax(0, 1fr) 40px 50px; font-size: var(--fs-md); }
.ap-funnel--big .ap-funnel__bar { height: 22px; border-radius: var(--r-sm); }
.ap-tips .ap-h3 { display: flex; align-items: center; gap: 8px; }
.ap-tips ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.ap-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-md); line-height: 1.5; padding: 12px 14px; border-radius: var(--r-md); background: var(--paper); }
.ap-tips li > i { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: #6c9ce0; }
.ap-tips li.is-warn { background: #fff6ec; } .ap-tips li.is-warn > i { background: #e07b39; }
.ap-tips li.is-good { background: var(--ok-soft); } .ap-tips li.is-good > i { background: var(--ok); }
.ap-tips__ai { margin-top: 14px; }
.ap-hbars { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.ap-hbars li { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: var(--fs-md); }
.ap-hbars li b { color: var(--ink); }
.ap-hbars li i { grid-column: 1 / -1; height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--y), #ffd966); }
.ap-sechead--pad { padding: 18px 20px 6px; margin: 0; }
.ap-tablewrap--bare { border: 0; border-radius: 0; box-shadow: none; }
.ap-table tr.is-click { cursor: pointer; }
.ap-table tr.is-click:hover td { background: var(--soft); }
.ap-locked { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #fff; min-height: 380px; display: grid; place-items: center; }
.ap-locked__blur { position: absolute; inset: 0; padding: 30px; filter: blur(5px); opacity: .55; pointer-events: none; }
.ap-locked__card { position: relative; max-width: 440px; text-align: center; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--sh-md); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ap-locked__card .ap-stat__ico { margin: 0 0 6px; }
.ap-stat__ico.is-y { background: var(--y); }
/* Nieuwe calculator: keuzes */
.ap-onb--wide { max-width: 980px; }
.ap-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 10px 0 8px; text-align: left; }
.ap-choice2 { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 22px; cursor: pointer; text-align: left; box-shadow: var(--sh); transition: border-color .15s, box-shadow .2s, transform .2s; font: inherit; color: inherit; }
button.ap-choice2:hover:not(:disabled) { border-color: var(--ink); box-shadow: var(--sh-md); transform: translateY(-2px); }
.ap-choice2:disabled, .ap-choice2.is-off { opacity: .5; cursor: not-allowed; }
div.ap-choice2 { cursor: default; }
.ap-choice2__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--paper); margin-bottom: 6px; }
.ap-choice2__ico.is-y { background: var(--y); }
.ap-choice2 b { font: 700 var(--fs-xl) var(--display); color: var(--ink); }
.ap-choice2 small { font-size: var(--fs-base); color: var(--muted); line-height: 1.5; }
.ap-choice2 small em { font-style: normal; color: var(--ink); font-weight: 600; }
.ap-choice2__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.ap-choice2__go .i { width: 15px; height: 15px; }
.ap-choice2__row { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; width: 100%; }
/* Zoeken */
.ap-side__search { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-md); padding: 8px 10px; margin: -4px 0 14px; color: var(--muted); font-size: var(--fs-md); cursor: pointer; }
.ap-side__search span { flex: 1; text-align: left; }
.ap-side__search:hover { border-color: var(--line-2); color: var(--ink); }
kbd { font: 600 var(--fs-xs) var(--body); background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-sm); padding: 1px 6px; color: var(--muted); }
.ap-pal { position: fixed; inset: 0; z-index: 250; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.ap-pal__box { position: relative; width: 100%; max-width: 580px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; animation: apPop .2s cubic-bezier(.2,.8,.2,1); }
.ap-pal__in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ap-pal__in input { flex: 1; border: 0; outline: none; font-size: var(--fs-lg); background: none; }
.ap-pal__list { max-height: 52vh; overflow: auto; padding: 6px; }
.ap-pal__g { margin: 8px 10px 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.ap-pal__list button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: var(--r-md); cursor: pointer; }
.ap-pal__list button > .i:last-child { opacity: 0; width: 15px; height: 15px; }
.ap-pal__list button span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ap-pal__list button b { font-weight: 600; color: var(--ink); font-size: var(--fs-md); }
.ap-pal__list button small { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-pal__list button.is-on, .ap-pal__list button:hover { background: var(--y-soft); }
.ap-pal__list button.is-on > .i:last-child { opacity: 1; }
.ap-pal__none { padding: 20px; text-align: center; color: var(--muted); }
/* Moderne details */
.ap-card, .ap-stat, .ap-kpi2, .ap-est { transition: box-shadow .2s, border-color .2s, transform .2s; }
.ap-stat:hover, .ap-kpi2:hover { box-shadow: var(--sh-md); }
.ap-main > .ap-page, .ap-main > .ap-ed { animation: apIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes apIn { from { opacity: 0; transform: translateY(6px); } }
::selection { background: rgba(255,194,26,.45); }
@media (max-width: 1180px) { .ap-kpis2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ap-hero__img { display: none; } }
@media (max-width: 960px) {
  .ap-tabbar { grid-template-columns: repeat(5, 1fr); }
  .ap-grid2, .ap-choices { grid-template-columns: 1fr; }
  .ap-mtop .ap-icon[data-pal] { margin-left: auto; }
}
@media (max-width: 640px) {
  .ap-kpis2 { grid-template-columns: 1fr 1fr; }
  .ap-hero { padding: 20px; }
  .ap-filters--stats { flex-direction: column; align-items: stretch; }
  .ap-filters--stats select { max-width: none; }
  .ap-seg--inline { overflow-x: auto; }
  .ap-funnel li { grid-template-columns: minmax(0, 1fr) 70px 28px 40px; }
}.ap-funnel li.ap-funnel__g { display: block; margin-top: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }
.ap-funnel li.ap-funnel__g:first-child { margin-top: 0; }
.ap-funnel__none { font-weight: 400; color: var(--muted); margin-left: 6px; }

/* ---------- Vloeiende overgangen ---------- */
@supports (view-transition-name: a) {
  .ap-main { view-transition-name: page; }
  .ap-main > .ap-page, .ap-main > .ap-ed { animation: none; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease; }
::view-transition-old(page) { animation: apVtOut .16s ease both; }
::view-transition-new(page) { animation: apVtIn .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes apVtOut { to { opacity: 0; transform: translateY(-4px); } }
@keyframes apVtIn { from { opacity: 0; transform: translateY(10px); } }
.ap-qed > *, .ap-ed__body > * { animation: apFadeIn .25s ease both; }
@keyframes apFadeIn { from { opacity: 0; transform: translateY(4px); } }
.ap-btn, .ap-icon, .ap-snav a, .ap-tabs a, .ap-tile, .ap-choice, .ap-choice2, .ap-kpi, .ap-seg a, .ap-seg--inline button, .ap-ptabs button { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .2s ease, transform .15s ease, opacity .18s ease; }
.ap-btn:active:not(:disabled), .ap-icon:active, .ap-tile:active, .ap-choice:active, .ap-choice2:active { transform: scale(.97); }
.ap-modal__bg { animation: apFade .25s ease both; }
.ap-modal__box { animation: apPop .3s cubic-bezier(.2,.8,.2,1) both; }
.ap-toast { animation: apToast .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes apToast { from { opacity: 0; transform: translate(-50%, 12px); } }
.ap-meter i, .ap-todo__bar i, .ap-pipe__bar i, .ap-hbars li i, .ap-topsvc li i { animation: apGrow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes apGrow { from { transform: scaleX(0); } }
.ap-area__l { stroke-dasharray: 2000; animation: apDraw 1.1s cubic-bezier(.2,.8,.2,1) both; }
.ap-area__a { animation: apFade .8s ease both .2s; }
@keyframes apDraw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.ap-spark .l { stroke-dasharray: 400; animation: apDraw .9s ease both; }
/* Laden: skelet */
.ap-skel i { display: block; border-radius: var(--r-md); background: linear-gradient(90deg, #ece8df 0%, #f6f3ec 50%, #ece8df 100%); background-size: 200% 100%; animation: apShimmer 1.2s ease-in-out infinite; }
.ap-skel__h { width: 280px; height: 34px; margin-bottom: 12px; }
.ap-skel__p { width: 420px; max-width: 80%; height: 16px; margin-bottom: 28px; }
.ap-skel__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.ap-skel__row i { height: 120px; border-radius: var(--r-lg); }
.ap-skel__big { height: 260px; border-radius: var(--r-xl) !important; }
@keyframes apShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* Voorbeeldgegevens */
.ap-demo-mini { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-md); background: var(--info-soft); border: 1px solid #cfe4f1; font-size: var(--fs-sm); color: #24465c; }
.ap-demo-mini .i { width: 15px; height: 15px; flex: none; }
.ap-demo-mini span { flex: 1; line-height: 1.3; }
.ap-demo-mini button { border: 0; background: none; font-weight: 700; font-size: var(--fs-sm); color: #24465c; text-decoration: underline; cursor: pointer; padding: 0; }
.ap-demo-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-lg); background: linear-gradient(120deg, #eef6fb, #fff 70%); border: 1px solid #cfe4f1; margin-bottom: 18px; }
.ap-demo-card > .i { width: 26px; height: 26px; color: var(--info); flex: none; }
.ap-demo-card div { flex: 1; }
.ap-demo-card b { display: block; color: var(--ink); }
.ap-demo-card span { font-size: var(--fs-base); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .ap-skel i { animation: none; } }.ap-demo-mini { flex-wrap: wrap; }
.ap-demo-mini span { min-width: 120px; }
.ap-side { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* =========================================================
   Versie 4: logica, prijsregels, bord, afspraken
   ========================================================= */
.ap-mt { margin-top: 26px !important; }
.ap-seg--inline button { display: inline-flex; align-items: center; gap: 6px; }
.ap-seg--inline button .i { width: 15px; height: 15px; }
.ap-phead__r .ap-seg--inline { background: var(--paper); padding: 4px; border-radius: var(--r-md); }
/* Live voorbeeld naast de editor */
.ap-ed__wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ap-ed__wrap.has-live { grid-template-columns: minmax(0, 1fr) 400px; }
.ap-live { display: none; position: sticky; top: 20px; height: calc(100vh - 40px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); flex-direction: column; }
.ap-ed__wrap.has-live .ap-live { display: flex; }
.ap-live__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ap-live__bar b { font-family: var(--display); }
.ap-live__bar .ap-icon { margin-left: auto; }
.ap-live iframe { flex: 1; width: 100%; border: 0; }
.ap-live-btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ap-ed__wrap.has-live .ap-q { grid-template-columns: 260px minmax(0, 1fr); }
.ap-ed__wrap.has-live .ap-split { grid-template-columns: 1fr; }
.ap-ed__wrap.has-live .ap-split .ap-sticky { display: none; }
@media (max-width: 1280px) { .ap-ed__wrap.has-live { grid-template-columns: 1fr; } .ap-ed__wrap.has-live .ap-live { position: static; height: 640px; } }
/* Vraaglogica */
.ap-logic { background: #f7f9fd; border-color: #d9e3f3; }
.ap-logic .ap-h4 { margin-top: 0; }
.ap-logic__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; margin-top: 8px; }
.ap-logic__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chipcheck { display: inline-flex; cursor: pointer; }
.ap-chipcheck input { position: absolute; opacity: 0; pointer-events: none; }
.ap-chipcheck span { padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: #fff; font-size: var(--fs-base); transition: .15s; }
.ap-chipcheck input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-chipcheck input:focus-visible + span { outline: 3px solid var(--y); outline-offset: 2px; }
.ap-tree__cond { display: inline-grid; color: var(--info); margin-left: 6px; }
.ap-tree__cond .i { width: 13px; height: 13px; }
.ap-tree__q[draggable="true"] { cursor: grab; }
.ap-tree__q.is-drag { opacity: .4; }
.ap-tree__q.is-over { box-shadow: inset 0 2px 0 var(--ink); }
.ap-tree__add--imp { width: 100%; justify-content: center; margin: -6px 0 12px; }
.ap-plprev { display: grid; gap: 12px; margin: 14px 0 0; max-height: 280px; overflow: auto; }
.ap-plprev > div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.ap-plprev ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: var(--fs-base); }
.ap-plprev li { display: flex; justify-content: space-between; gap: 10px; }
.ap-plprev em { font-style: normal; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* Prijsregels */
.ap-promo { display: inline-block; background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 6px; }
.ap-rprev__price small { display: block; }
.ap-rlines { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; font-size: var(--fs-md); display: grid; gap: 6px; }
.ap-rlines li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.ap-rlines li.is-promo b { color: var(--ok); }
.ap-rlines li.is-min { color: var(--muted); font-style: italic; }
/* Bord met aanvragen */
.ap-kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.ap-kcol { background: #efece5; border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; min-height: 320px; transition: background .15s, box-shadow .15s; }
.ap-kcol.is-over { background: var(--y-soft); box-shadow: inset 0 0 0 2px var(--y); }
.ap-kcol header { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.ap-kcol header b { color: var(--ink); }
.ap-kcol header small { margin-left: auto; font-size: var(--fs-sm); color: var(--muted); }
.ap-kcol__list { display: grid; gap: 8px; align-content: start; flex: 1; }
.ap-kcard { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 12px; text-decoration: none; color: inherit; cursor: grab; box-shadow: var(--sh); transition: box-shadow .15s, transform .15s; }
.ap-kcard:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.ap-kcard.is-drag { opacity: .45; }
.ap-kcard b { font-size: var(--fs-md); color: var(--ink); }
.ap-kcard small { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-kcard span { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ap-kcard em { font-style: normal; font-weight: 700; font-size: var(--fs-base); color: var(--ink); margin-right: auto; }
.ap-kcard i { display: inline-grid; color: var(--muted); }
.ap-kcard i .i { width: 14px; height: 14px; }
.ap-kempty { font-size: var(--fs-sm); color: var(--muted); text-align: center; padding: 20px 8px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); margin: 0; }
/* Account: automatisch en koppelingen */
.ap-days { display: flex; gap: 6px; margin: 6px 0 16px; flex-wrap: wrap; }
.ap-days label { cursor: pointer; }
.ap-days input { position: absolute; opacity: 0; }
.ap-days span { display: grid; place-items: center; width: 42px; height: 38px; border-radius: var(--r-md); border: 1px solid var(--line-2); font-weight: 600; font-size: var(--fs-base); text-transform: capitalize; transition: .15s; }
.ap-days input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-evts { margin: 8px 0 12px; padding-left: 18px; font-size: var(--fs-base); display: grid; gap: 4px; }
code { font: 12.5px ui-monospace, Consolas, monospace; background: var(--paper); padding: 1px 6px; border-radius: var(--r-sm); }
.ap-in--mono { font-family: ui-monospace, Consolas, monospace; }
.ap-logo-up { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ap-logo-prev { display: grid; place-items: center; width: 120px; height: 56px; border-radius: var(--r-md); border: 1px dashed var(--line-2); background: repeating-conic-gradient(#f3f1ec 0% 25%, #fff 0% 50%) 50% / 14px 14px; color: var(--muted); overflow: hidden; }
.ap-logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ap-grid2b { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .ap-grid2b { grid-template-columns: 1fr; } }
/* Geplande bezoeken */
.ap-visits ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ap-visits a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 8px; border-radius: var(--r-md); }
.ap-visits a:hover { background: var(--paper); }
.ap-visits__d { display: grid; place-items: center; width: 46px; height: 50px; border-radius: var(--r-md); background: var(--y); line-height: 1.1; flex: none; }
.ap-visits__d b { font: 800 var(--fs-xl) var(--display); color: var(--ink); }
.ap-visits__d small { font-size: var(--fs-xs); font-weight: 600; }
.ap-visits__t { display: flex; flex-direction: column; min-width: 0; }
.ap-visits__t b { font-size: var(--fs-md); color: var(--ink); }
.ap-visits__t small { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.ap-kcard span { flex-wrap: wrap; }
.ap-kcard em { white-space: nowrap; flex: 1 1 100%; }
.ap-kmore { font-size: var(--fs-sm); color: var(--muted); text-align: center; margin: 4px 0 0; }
.ap-ed__wrap.has-live { grid-template-columns: minmax(0, 1fr) 360px; }
.ap-ed__wrap.has-live .ap-q { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
.ap-ed__wrap.has-live .ap-logic__row { grid-template-columns: 1fr; }
.ap-ed__wrap.has-live .ap-qed { padding: 22px 20px; }
.ap-ed__wrap.has-live .ap-qmeta { grid-template-columns: 1fr auto; }

/* Video's */
.bv-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); margin: 14px 0; }
.bv-video iframe, .bv-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.bv-video--file video { object-fit: contain; background: #000; }
.ap-video__in { display: flex; gap: 8px; align-items: center; }
.ap-video__in .ap-in { flex: 1; min-width: 0; }
.ap-video__in label.is-busy { opacity: .6; pointer-events: none; }
.ap-video__prev .bv-video { max-width: 420px; margin: 0 0 12px; }
.ap-vidbox { margin: -8px 0 16px; }
.ap-vidbox summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--fs-base); font-weight: 600; color: var(--muted); list-style: none; padding: 4px 8px; margin-left: -8px; border-radius: var(--r-sm); }
.ap-vidbox summary::-webkit-details-marker { display: none; }
.ap-vidbox summary:hover { color: var(--ink); background: var(--paper); }
.ap-vidbox summary .i { width: 16px; height: 16px; }
.ap-vidbox[open] summary { color: var(--ink); margin-bottom: 8px; }
/* Design: voorbeeld met transparantie, kader, knopvorm en lettertype */
.ap-seg--full { display: flex; width: 100%; background: var(--paper); padding: 4px; border-radius: var(--r-md); }
.ap-seg--full button { flex: 1; justify-content: center; }
.ap-mt0 { margin-top: -8px; }
.ap-row--sticky { position: sticky; bottom: 12px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; box-shadow: var(--sh-md); margin-top: 0; }
.ap-dstage { border-radius: var(--r-xl); padding: 18px; border: 1px solid var(--line); }
.ap-dstage.is-transparent { background: repeating-conic-gradient(#ece8e0 0% 25%, #faf8f4 0% 50%) 50% / 20px 20px; }
.ap-dprev { font-family: var(--dfont, var(--body)); background: transparent; border: 0; box-shadow: none; padding: 6px; }
.ap-dprev.is-framed { background: var(--bg); border: 1px solid color-mix(in srgb, var(--t) 14%, transparent); border-radius: var(--fr); box-shadow: var(--sh); padding: 20px; }
.ap-dprev h3, .ap-dprev__price b { font-family: var(--dhfont, var(--display)); }
.ap-dprev__foot button { border-radius: var(--btn-r, 99px); }
.ap-dprev__grid span { background: var(--bg); }
.ap-dprev.is-left { text-align: left; }
.ap-dprev.is-compact { padding: 2px; }
.ap-dprev.is-compact h3 { font-size: var(--fs-xl); }
.ap-dprev.is-compact .ap-dprev__grid { gap: 6px; }
.ap-dprev__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; min-height: 20px; }
.ap-dprev__top b { font-family: var(--dhfont, var(--display)); font-size: var(--fs-base); color: var(--h); }
.ap-dprev__top img { max-height: 24px; max-width: 110px; object-fit: contain; display: block; }
.ap-dprev__pow { font-size: var(--fs-xs); color: color-mix(in srgb, var(--t) 55%, transparent); margin: 10px 0 0; text-align: center; }
/* ---------- Controle: gsm en smalle schermen ---------- */
.ap-dash > *, .ap-split > *, .ap-cols > *, .ap-grid2 > *, .ap-money2 > *, .ap-q > *, .ap-est > *, .ap-est__body, .ap-filters > * { min-width: 0; }
@media (max-width: 1100px) { .ap-dash, .ap-split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .ap-est { grid-template-columns: minmax(0, 1fr); } }
.ap-filters--stats .ap-seg--inline { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ap-sechead { gap: 10px; flex-wrap: wrap; }
.ap-est header { flex-wrap: wrap; }
.ap-est h3 { overflow-wrap: anywhere; }
.ap-main { overflow-x: clip; }
@media (max-width: 640px) {
  .ap-kpi2 b, .ap-stat b { font-size: var(--fs-2xl); }
  .ap-pipe__grid { gap: 12px 14px; }
  .ap-est__img { height: 130px; }
  .ap-est__body { padding: 16px; }
  .ap-est footer .ap-btn { flex: 1 1 auto; }
  .ap-hero { padding: 18px 16px; }
  .ap-phead__r .ap-seg--inline { width: 100%; }
}.ap-aside, .ap-aside > *, .ap-visits li, .ap-visits a, .ap-follow li { min-width: 0; }
.ap-visits__t { flex: 1; }
.ap-in.is-bad { border-color: var(--err); box-shadow: 0 0 0 3px var(--err-soft); }

/* Spoed en contactvoorkeur */
.ap-spoed { display: inline-flex; align-items: center; gap: 4px; vertical-align: 1px; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--err-soft); color: var(--err); font: 700 var(--fs-xs)/18px var(--body, inherit); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.ap-spoed--lg { margin: 0; padding: 6px 12px; font-size: var(--fs-base); text-transform: none; letter-spacing: 0; }
.ap-spoed .i { width: 14px; height: 14px; }
.ap-pref { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper); font-size: var(--fs-base); font-weight: 600; color: var(--ink); }
.ap-pref .i { width: 15px; height: 15px; }
.ap-ld__flags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.ap-lead-row.is-urgent { box-shadow: inset 3px 0 0 var(--err); }
.ap-check .ap-spoed { margin-left: 4px; }

/* Eenvoudige prijzen */
.ap-pmode { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px; padding: 4px; background: var(--paper); border-radius: var(--r-md); margin: 8px 0 6px; }
.ap-pmode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; padding: 9px 12px; border-radius: var(--r-sm); font: inherit; font-size: var(--fs-base); font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color .18s, color .18s, box-shadow .2s; }
.ap-pmode button .i { width: 15px; height: 15px; }
.ap-pmode button:hover { color: var(--ink); }
.ap-pmode button.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.ap-pmode__hint { margin: 0 0 12px; }
.ap-pl { font-size: var(--fs-base); color: var(--muted); }
.ap-money--suf .ap-in { padding-left: 10px; padding-right: 26px; width: 84px; }
.ap-money--suf i { left: auto; right: 10px; }
.ap-pdir { width: auto; flex: 0 0 auto; }
.ap-opt__price select.ap-pdir { flex: 0 0 auto; }
.ap-tog { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: var(--r-pill); padding: 4px 11px; font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: all .18s; }
.ap-tog .i { width: 14px; height: 14px; }
.ap-tog:hover { border-color: var(--line-2); color: var(--ink); }
.ap-tog.is-on { background: var(--err-soft); border-color: #f1c9c3; color: var(--err); }
.ap-rate__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 8px; }
.ap-rate__row .ap-money .ap-in { width: 110px; }
.ap-rate__unit { width: 90px; }
.ap-rate__ex { display: flex; align-items: center; gap: 6px; font-size: var(--fs-base); color: var(--text); margin: 0 0 14px; }
.ap-rate__ex .i { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.ap-sechead--opts { margin: 22px 0 2px; align-items: center; }
.ap-sechead--opts .ap-h4 { margin: 0; }

/* Tab Prijzen */
.ap-bulk { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--soft); }
.ap-bulk .ap-h4 { margin-top: 0; }
.ap-bulk p { margin: 0; max-width: 460px; }
.ap-bulk__row { display: flex; gap: 8px; align-items: center; }
.ap-pgroup .ap-h3 { margin: 0 0 6px; }
.ap-pgroup .ap-h3 small { font-size: var(--fs-base); font-weight: 500; margin-left: 6px; }
.ap-pq { padding: 12px 0 6px; border-top: 1px solid var(--line); }
.ap-pq:first-of-type { border-top: 0; }
.ap-pq__t { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: var(--fs-md); margin-bottom: 6px; }
.ap-pq__t .i { width: 14px; height: 14px; color: var(--muted); opacity: 0; transition: opacity .15s; }
.ap-pq__t:hover .i { opacity: 1; }
.ap-prow { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 5px 0; flex-wrap: wrap; }
.ap-prow__l { flex: 1 1 180px; min-width: 0; font-size: var(--fs-md); color: var(--text); }
.ap-prow__p { flex: 0 1 auto; justify-content: flex-end; }
.ap-prow--rate { background: var(--y-soft); border-radius: var(--r-md); padding: 6px 10px; margin: 0 -10px 4px; }
@media (max-width: 640px) {
  .ap-pmode { grid-template-columns: 1fr 1fr; }
  .ap-pmode button { font-size: var(--fs-sm); padding: 8px 6px; white-space: normal; }
  .ap-tog { margin-left: 0; }
  .ap-prow__p { justify-content: flex-start; }
  .ap-money .ap-in { width: 84px; }
  .ap-rate__row .ap-money .ap-in { width: 96px; }
}

/* Startlijst: zelf afvinken en verbergen */
.ap-todo__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ap-todo__head h2 { margin-bottom: 12px; }
.ap-todo__head .ap-icon { margin: -4px -6px 0 0; color: var(--muted); }
.ap-todo li > b[data-todo] { width: 24px; height: 24px; cursor: pointer; position: relative; transition: border-color .15s, background-color .15s, transform .15s; }
.ap-todo li > b[data-todo]::after { content: ""; position: absolute; inset: -9px; }
.ap-todo li > b[data-todo]:not(.is-auto):hover { border-color: var(--ok); transform: scale(1.08); }
.ap-todo li:not(.is-done) > b[data-todo]:hover { background: var(--ok-soft); }
.ap-todo li > b[data-todo]:focus-visible { outline: 3px solid var(--ok-soft); outline-offset: 2px; }
.ap-todo li > b.is-auto { cursor: default; }

/* Pakket: betalen en facturen */
.ap-paynow { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--y-soft); border: 1px solid #f3dc92; border-radius: var(--r-lg); padding: 14px 18px; margin: 0 0 20px; font-size: var(--fs-md); }
.ap-inv { margin-top: 28px; }
.ap-inv ul { list-style: none; margin: 10px 0; padding: 0; }
.ap-inv li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--fs-md); }
.ap-inv li:first-child { border-top: 0; }
.ap-inv em { font-style: normal; font-size: var(--fs-sm); font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); background: var(--paper); color: var(--muted); }
.ap-inv em.is-paid { background: var(--ok-soft); color: var(--ok); }
.ap-inv em.is-failed { background: var(--err-soft); color: var(--err); }

/* Privacy */
.ap-privacy__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.ap-privacy__row p { margin: 2px 0 0; }
.ap-privacy__row .ap-btn { flex: none; }

/* Beheer */
.ap-adm__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.ap-adm__kpis .ap-card { margin: 0; padding: 18px 20px; }
.ap-adm__kpis small { display: block; font-size: var(--fs-base); color: var(--muted); }
.ap-adm__kpis b { display: block; font: 800 var(--fs-3xl)/1.2 var(--display); color: var(--ink); margin: 4px 0; }
.ap-adm__kpis span { font-size: var(--fs-sm); color: var(--muted); }
.ap-adm__table td small { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.ap-adm__table td { vertical-align: top; }
.ap-adm__req { color: var(--y-ink); }
.ap-adm__st { display: inline-block; font-size: var(--fs-sm); font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); background: var(--paper); color: var(--muted); white-space: nowrap; }
.ap-adm__st.is-paying { background: var(--ok-soft); color: var(--ok); }
.ap-adm__st.is-trial { background: var(--y-soft); color: var(--y-ink); }
.ap-adm__st.is-expired, .ap-adm__st.is-paused { background: var(--err-soft); color: var(--err); }
.ap-err-t { color: var(--err) !important; font-weight: 600; }
.ap-adm__sys { margin-top: 22px; }
.ap-adm__chk { list-style: none; margin: 0 0 14px; padding: 0; }
.ap-adm__chk li { display: flex; gap: 10px; padding: 7px 0; font-size: var(--fs-md); }
.ap-adm__chk li > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--err-soft); color: var(--err); flex: none; }
.ap-adm__chk li.is-ok > b { background: var(--ok-soft); color: var(--ok); }
.ap-adm__chk li > b .i { width: 12px; height: 12px; stroke-width: 3; }
.ap-adm__chk small { display: block; color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.ap-adm__bk { list-style: none; margin: 10px 0 14px; padding: 0; }
.ap-adm__bk li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-md); }
.ap-adm__bk li:first-child { border-top: 0; }
.ap-adm__bk small { color: var(--muted); flex: 1; }
.ap-adm__bk a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: var(--fs-base); }
.ap-adm__bk .i { width: 14px; height: 14px; }
.ap-adm__trial { align-items: center; margin: 12px 0; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .ap-adm__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ap-inv li { grid-template-columns: 1fr auto; } .ap-inv li span:nth-child(2) { display: none; } .ap-privacy__row { flex-wrap: wrap; } }
.ap-adm__sys code { overflow-wrap: anywhere; word-break: break-all; }

/* Antwoorden: compacte lijst (een regel per antwoord) */
.ap-opthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 0 4px; }
.ap-opthead .ap-h4 { margin: 0; }
.ap-pmsel { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; font-size: var(--fs-base); font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s; }
.ap-pmsel:hover { border-color: var(--line-2); }
.ap-pmsel:focus-within { border-color: var(--y-deep); box-shadow: 0 0 0 3px var(--y-soft); }
.ap-pmsel select { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; color: inherit; padding: 0 18px 0 0; cursor: pointer; outline: none; }
.ap-pmsel .i { width: 15px; height: 15px; flex: none; }
.ap-pmsel .i:last-child { position: absolute; right: 10px; width: 13px; height: 13px; color: var(--muted); pointer-events: none; }
.ap-pmode__hint { margin: 2px 0 12px; }

.ap-olist { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; margin-bottom: 14px; }
.ap-orow { display: grid; grid-template-columns: 20px 40px minmax(0, 1fr) auto 32px; align-items: center; gap: 10px; padding: 10px 10px 10px 8px; border-top: 1px solid var(--line); background: #fff; transition: background-color .15s; }
#opts > .ap-orow:first-child { border-top: 0; }
.ap-orow--head { padding-top: 9px; padding-bottom: 9px; background: var(--soft); border-top: 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ap-orow--head span:nth-child(2) { grid-column: 2 / 4; }
.ap-orow:not(.ap-orow--head):hover { background: #fdfcf8; }
.ap-orow.is-drag { opacity: .45; }
.ap-orow.is-over { box-shadow: inset 0 2px 0 var(--y-deep); }
.ap-grip { display: grid; place-items: center; width: 20px; height: 32px; border: 0; background: none; padding: 0; color: #c4bfb3; cursor: grab; border-radius: var(--r-sm); }
.ap-grip .i { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.ap-grip:hover, .ap-grip:focus-visible { color: var(--ink); background: var(--paper); outline: none; }
.ap-othumb { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); background: var(--paper); display: grid; place-items: center; padding: 0; overflow: hidden; cursor: pointer; color: var(--muted); }
.ap-othumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-othumb:has(img) { border-style: solid; border-color: transparent; }
.ap-othumb .i { width: 17px; height: 17px; }
.ap-orow__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-orow__main .ap-opt__label { height: 34px; padding: 0 8px; margin-left: -8px; width: calc(100% + 8px); border-color: transparent; background: transparent; font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.ap-orow__main .ap-opt__label:hover { border-color: var(--line); }
.ap-orow__main .ap-opt__label:focus { border-color: var(--y-deep); background: #fff; }
.ap-orow__desc { height: 30px; padding: 0 8px; margin-left: -8px; width: calc(100% + 8px); font-size: var(--fs-base); border-color: transparent; background: transparent; color: var(--text); }
.ap-orow__desc:hover { border-color: var(--line); }
.ap-orow__desc:focus { border-color: var(--y-deep); background: #fff; }
.ap-orow__extras { display: flex; align-items: center; gap: 8px; }
.ap-orow__link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); cursor: pointer; }
.ap-orow__link .i { width: 12px; height: 12px; }
.ap-orow__link:hover { color: var(--ink); }
.ap-orow .ap-tog { margin-left: 0; padding: 2px 9px; font-size: var(--fs-sm); }
.ap-orow__price { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.ap-orow__price .ap-money .ap-in { width: 88px; height: 36px; }
.ap-orow__price .ap-money--suf .ap-in { width: 76px; }
.ap-orow__price select { height: 36px; }
.ap-orow__price small { white-space: nowrap; }
.ap-orow.is-noprice { grid-template-columns: 20px 40px minmax(0, 1fr) 32px; }
.ap-orow.is-noprice .ap-orow__price { display: none; }
.ap-orow__del { opacity: .55; }
.ap-orow:hover .ap-orow__del, .ap-orow__del:focus-visible { opacity: 1; }
.ap-olist__add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; border: 0; border-top: 1px solid var(--line); background: var(--soft); font: inherit; font-size: var(--fs-md); font-weight: 600; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.ap-olist__add .i { width: 16px; height: 16px; }
.ap-olist__add:hover { background: var(--y-soft); }
@media (max-width: 720px) {
  .ap-orow { grid-template-columns: 20px 40px minmax(0, 1fr) 32px; grid-template-areas: "grip thumb main del" ". . price price"; row-gap: 6px; }
  .ap-orow > .ap-grip { grid-area: grip; }
  .ap-orow > .ap-othumb { grid-area: thumb; }
  .ap-orow__main { grid-area: main; }
  .ap-orow__del { grid-area: del; opacity: 1; }
  .ap-orow__price { grid-area: price; justify-content: flex-start; flex-wrap: wrap; }
  .ap-orow--head { display: none; }
  .ap-orow.is-noprice { grid-template-areas: "grip thumb main del"; }
}

.ap-pmsel { max-width: 100%; min-width: 0; }
.ap-pmsel select { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .ap-opthead .ap-pmsel { width: 100%; } .ap-opthead .ap-pmsel select { flex: 1; } }
@media (max-width: 720px) { .ap-orow { grid-template-areas: "grip thumb main del" ". price price price"; } .ap-orow__price { flex-wrap: nowrap; } .ap-orow__price small { display: none; } .ap-orow__price .ap-money .ap-in { width: 84px; } }

/* Antwoordlijst past zich aan de breedte van de kolom aan (niet van het scherm) */
.ap-olist { container-type: inline-size; container-name: olist; }
@container olist (max-width: 620px) {
  .ap-orow { grid-template-columns: 20px 40px minmax(0, 1fr) 32px; grid-template-areas: "grip thumb main del" ". price price price"; row-gap: 6px; }
  .ap-orow > .ap-grip { grid-area: grip; }
  .ap-orow > .ap-othumb { grid-area: thumb; }
  .ap-orow__main { grid-area: main; }
  .ap-orow__del { grid-area: del; opacity: 1; }
  .ap-orow__price { grid-area: price; justify-content: flex-start; flex-wrap: nowrap; }
  .ap-orow__price small { display: none; }
  .ap-orow--head { display: none; }
  .ap-orow.is-noprice { grid-template-areas: "grip thumb main del"; }
}

.ap-sep { display: inline-block; color: var(--muted); padding: 0 1px; }

/* Tab Prijzen: eenvoudig, per dienst */.pz-step { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.pz-step button { width: 36px; height: 34px; border: 0; background: #fff; font-size: var(--fs-xl); font-weight: 700; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.pz-step button:hover { background: var(--y-soft); }
.pz-step button:focus-visible { outline: 2px solid var(--y-deep); outline-offset: -2px; }
.pz-step output { min-width: 122px; text-align: center; font-size: var(--fs-base); color: var(--muted); border-left: 1px solid var(--line); border-right: 1px solid var(--line); line-height: 34px; padding: 0 8px; }
.pz-step output.is-up { color: #9a3412; background: #fff7ed; }
.pz-step output.is-down { color: var(--ok); background: var(--ok-soft); }
.pz-step output b { color: inherit; }@container (max-width: 480px) {
  .pz-card__h { flex-wrap: wrap; }
  .pz-ex { text-align: left; width: 100%; padding-left: 58px; }
  .pz-sec { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px; }
  .pz-sec__no { display: none; }
  .pz-row__p, .pz-step { margin-left: auto; }
}

.ap-autoprice { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: var(--r-sm); background: var(--paper); font-weight: 700; font-size: var(--fs-md); color: var(--ink); white-space: nowrap; }
.ap-orow__price .pz-step output { min-width: 112px; }

/* Prijzen: formule, vraagkoppen, groottes *//* Vragen: verwijzing naar Prijzen */
.ap-topr { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--y-soft); border: 1px solid #f3dc92; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.ap-topr:hover { transform: translateY(-1px); box-shadow: var(--sh); }
.ap-topr > .i:first-child { width: 20px; height: 20px; flex: none; color: var(--y-ink); }
.ap-topr > .i:last-child { width: 16px; height: 16px; flex: none; margin-left: auto; }
.ap-topr span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-topr b { font-size: var(--fs-md); }
.ap-topr small { font-size: var(--fs-base); color: var(--text); }
.ap-rate .ap-rate__row .ap-field { margin: 0; flex: 1; }
.ap-rate .ap-rate__unit { width: 100%; max-width: 200px; }

/* Antwoord met prijs: naam bovenaan, prijsvelden met labels eronder */
.ap-orow--stack { grid-template-columns: 20px 40px minmax(0, 1fr) 32px; grid-template-areas: "grip thumb main del" ". price price price"; row-gap: 10px; padding: 12px 12px 14px 8px; }
.ap-orow--stack > .ap-grip { grid-area: grip; }
.ap-orow--stack > .ap-othumb { grid-area: thumb; }
.ap-orow--stack .ap-orow__main { grid-area: main; }
.ap-orow--stack .ap-orow__del { grid-area: del; }
.ap-orow--stack .ap-orow__price { grid-area: price; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 10px 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--soft); }
.ap-orow--stack.is-noprice { grid-template-areas: "grip thumb main del"; }
.ap-pf { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ap-pf > span:first-child { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.ap-pf select.ap-in { height: 36px; min-width: 150px; }
.ap-pf .ap-money .ap-in { width: 104px; height: 36px; }
.ap-pf .pz-step { height: 36px; }
.ap-pf .pz-step button { height: 32px; }
.ap-pf .pz-step output { line-height: 32px; }
.ap-pf__note { align-self: center; font-size: var(--fs-sm); color: var(--muted); padding-bottom: 2px; }
.ap-orow--stack .ap-autoprice { background: #fff; border: 1px solid var(--line); }
.ap-rate .ap-rate__row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin: 10px 0 14px; }
.ap-rate .ap-rate__row .ap-money .ap-in { width: 110px; }
.ap-rate .ap-rate__unit { width: 100px; }
@container olist (max-width: 620px) {
  .ap-orow--stack { grid-template-areas: "grip thumb main del" ". price price price"; }
  .ap-orow--stack .ap-orow__price { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .ap-orow--stack { grid-template-areas: "grip thumb main del" "price price price price"; }
  .ap-pf select.ap-in { min-width: 0; width: 100%; }
  .ap-pf:first-child { flex: 1 1 100%; }
}

.ap-pf select.ap-in, .ap-pf .ap-money, .ap-pf .pz-step { flex: none; }

/* Per antwoord: drie keuzes */
.ap-orow--stack .ap-orow__price { flex-direction: column; align-items: stretch; gap: 10px; }
.ap-pkind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 3px; border-radius: var(--r-md); background: #efece3; }
.ap-pkind button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 7px 6px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .15s, color .15s, box-shadow .15s; }
.ap-pkind button b { flex: none; display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: var(--r-sm); background: rgba(0,0,0,.06); font-size: var(--fs-xs); color: inherit; }
.ap-pkind button:hover { color: var(--ink); }
.ap-pkind button.is-on { background: #fff; color: var(--ink); box-shadow: var(--sh); }
.ap-pkind button.is-on b { background: var(--y); color: var(--ink); }
.ap-pf__row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }

/* Rekenvoorbeeld (kassabon) */
.rc { margin: 22px 0 8px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.rc header { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; background: #111214; color: #fff; }
.rc header b { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); }
.rc header b .i { width: 16px; height: 16px; color: var(--y); }
.rc header small { color: rgba(255,255,255,.62); font-size: var(--fs-sm); }
.rc ol { list-style: none; margin: 0; padding: 6px 18px; }
.rc li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-base); }
.rc li:last-child { border-bottom: 0; }
.rc li.is-focus { background: linear-gradient(90deg, var(--y-soft), transparent); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.rc__q { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc__a { min-width: 0; height: 32px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375706a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 12px; appearance: none; -webkit-appearance: none; font: inherit; font-size: var(--fs-base); color: var(--ink); cursor: pointer; }
.rc__e { white-space: nowrap; font-size: var(--fs-base); text-align: right; color: var(--muted); font-weight: 600; }
.rc__e.is-add { color: var(--ink); }
.rc__e.is-up { color: #9a3412; }
.rc__e.is-down { color: var(--ok); }
.rc__sum { padding: 12px 18px 16px; background: var(--soft); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.rc__sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-base); color: var(--text); }
.rc__sum > div b { color: var(--ink); white-space: nowrap; }
.rc__tot { margin-top: 4px; padding-top: 10px; border-top: 2px solid var(--ink); font-size: var(--fs-lg) !important; }
.rc__tot b { font: 800 var(--fs-xl) var(--display); }
.rc__sum small { color: var(--muted); font-size: var(--fs-sm); }
@container olist (max-width: 520px) { .ap-pkind button { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: var(--fs-xs); line-height: 1.2; white-space: normal; text-align: center; } }
@media (max-width: 560px) {
  .rc li { grid-template-columns: minmax(0, 1fr) auto; }
  .rc__q { grid-column: 1 / -1; white-space: normal; }
  .ap-pkind button { font-size: var(--fs-xs); }
}

.ap-pkind { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.rc__e small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
@container olist (max-width: 620px) { .ap-pkind[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Calculator kiezen (dashboard, bij meerdere calculators) */
.ap-pick { display: grid; gap: 8px; margin-top: 14px; }
.ap-pick__it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.ap-pick__it:hover { border-color: var(--y-deep); background: #fffcf2; transform: translateY(-1px); }
.ap-pick__it:focus-visible { outline: 3px solid var(--y-soft); border-color: var(--y-deep); }
.ap-pick__img { flex: none; width: 44px; height: 44px; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background: var(--paper); color: var(--muted); }
.ap-pick__img img { width: 100%; height: 100%; object-fit: cover; }
.ap-pick__img .i { width: 20px; height: 20px; }
.ap-pick__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-pick__t b { color: var(--ink); font-size: var(--fs-md); }
.ap-pick__t small { color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-pick__it > .i { flex: none; width: 16px; height: 16px; color: var(--muted); }

@media (max-width: 560px) { .ap-pick__it > .i { display: none; } .ap-pick__it { padding: 10px; } }
.ap-pipe__grid span a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ap-won { margin-top: -4px; }
.ap-won .ap-money .ap-in { width: 160px; }

/* Aanvragen: korte samenvatting in de lijst */
.ap-lead-row__main small.ap-lmeta { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; margin-top: 2px; font-size: var(--fs-base); }
.ap-lmeta b { color: var(--text); font-weight: 600; }
.ap-lmeta span { color: var(--muted); }
.ap-lmeta i { font-style: normal; color: var(--line-2); }
.ap-lchip { flex: none; font-style: normal; font-size: var(--fs-xs); font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill); background: var(--y-soft); color: var(--y-ink); white-space: nowrap; }
.ap-lchip--up { background: #fff4ed; color: #9a3412; }
.ap-lead-row__date { white-space: nowrap; }
.ap-lead-row__date .ap-test { display: block; width: max-content; margin: 0 0 3px auto; }

/* Aanvraag: prijsopbouw per dienst */
.ap-pb { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; background: #fff; }
.ap-pb header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.ap-pb header b { color: var(--ink); font-size: var(--fs-md); }
.ap-pb header span { font-weight: 700; color: var(--ink); font-size: var(--fs-md); white-space: nowrap; }
.ap-pb ul { list-style: none; margin: 0; padding: 4px 14px; }
.ap-pb li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-base); }
.ap-pb li:last-child { border-bottom: 0; }
.ap-pb__q { color: var(--muted); }
.ap-pb__a { color: var(--ink); font-weight: 600; }
.ap-pb__e { white-space: nowrap; text-align: right; color: var(--ink); font-size: var(--fs-base); }
.ap-pb__e.is-add { color: var(--y-ink); }
.ap-pb__e.is-up { color: #9a3412; }
.ap-pb__e.is-down { color: var(--ok); }
.ap-pb__e.is-none { color: var(--muted); font-size: var(--fs-sm); }
.ap-pb li.is-none .ap-pb__a { font-weight: 500; color: var(--text); }
@media (max-width: 560px) {
  .ap-pb li { grid-template-columns: minmax(0, 1fr) auto; }
  .ap-pb__q { grid-column: 1 / -1; font-size: var(--fs-sm); }
}

/* Aanvragen per dienst */
.ap-svcbar { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ap-svcbar::-webkit-scrollbar { display: none; }
.ap-svcbar button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; font: inherit; font-size: var(--fs-base); font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.ap-svcbar button:hover { border-color: var(--line-2); }
.ap-svcbar button b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--paper); font-size: var(--fs-sm); color: var(--ink); }
.ap-svcbar button small { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.ap-svcbar button.is-on { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: var(--sh); }
.ap-svcbar button.is-on b { background: var(--y); color: var(--ink); }
.ap-svcbar button.is-on small { color: rgba(255,255,255,.65); }
.ap-sdot, .ap-lmeta i.ap-sdot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--y)); }
.ap-svcbar .ap-sdot { width: 9px; height: 9px; box-shadow: 0 0 0 2px #fff; }
.ap-svcbar button.is-on .ap-sdot { box-shadow: 0 0 0 2px var(--ink); }

.ap-filters > .ap-search { min-width: 180px; }
.ap-filters:not(.ap-filters--stats) > select.ap-in { min-width: 160px; max-width: 200px; text-overflow: ellipsis; }

/* Aanvragen: filterknop met paneel, actieve filters en pagina's */
.ap-filters--leads { gap: 8px; }
.ap-filters--leads .ap-search { flex: 0 1 360px; }
.ap-fwrap { position: relative; }
.ap-fbtn { height: 42px; gap: 8px; }
.ap-fbtn b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--ink); color: var(--y); font-size: var(--fs-xs); }
.ap-fbtn.has-on { border-color: var(--ink); }
.ap-fpanel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 380px; max-width: calc(100vw - 32px); max-height: min(70vh, 620px); overflow: auto; padding: 16px 18px 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh); animation: apPop .16s ease-out; }
@keyframes apPop { from { opacity: 0; transform: translateY(-4px); } }
.ap-fgroup { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.ap-fgroup h4 { margin: 0 0 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ap-fopts { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-fopt { position: relative; cursor: pointer; }
.ap-fopt input { position: absolute; opacity: 0; pointer-events: none; }
.ap-fopt span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: var(--fs-base); font-weight: 600; color: var(--text); transition: border-color .15s, background-color .15s; }
.ap-fopt span em { font-style: normal; font-size: var(--fs-xs); color: var(--muted); }
.ap-fopt:hover span { border-color: var(--line-2); }
.ap-fopt.is-on span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-fopt.is-on span em { color: rgba(255,255,255,.65); }
.ap-fopt input:focus-visible + span { box-shadow: 0 0 0 3px var(--y-soft); }
.ap-fgroup .ap-switch--row { margin: 4px 0; }
.ap-fpanel footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -18px; padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); }
.ap-filters--leads > .ap-chip { height: 32px; }
.ap-filters--leads > .ap-chip .i { color: var(--muted); }
.ap-chip--spoed { background: var(--err-soft); border-color: #f1c9c3; color: var(--err); font-weight: 600; }
.ap-chip--spoed .i { color: var(--err) !important; }
.ap-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ap-pager > div { display: flex; align-items: center; gap: 4px; }
.ap-pager__n { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: var(--r-md); background: none; font: inherit; font-size: var(--fs-md); font-weight: 600; color: var(--text); cursor: pointer; }
.ap-pager__n:hover { background: #fff; border-color: var(--line); }
.ap-pager__n.is-on { background: var(--ink); color: #fff; }
.ap-pager__gap { padding: 0 4px; color: var(--muted); }
.ap-pager .ap-icon[disabled] { opacity: .35; cursor: default; }
@media (max-width: 640px) { .ap-fpanel { position: fixed; left: 16px; right: 16px; top: 90px; width: auto; } .ap-filters--leads .ap-search { flex: 1 1 100%; } }

/* Wizard: vak zonder foto en 'Ander vak' */
.ap-tile__ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #fff8e1, #fdf0c4); color: var(--y-ink); }
.ap-tile__ph .i { width: 34px; height: 34px; }
.ap-tile--other .ap-tile__ph { background: var(--paper); color: var(--ink); border-bottom: 1px dashed var(--line-2); }

/* Dashboard: cijfers per calculator */
.ap-dashsel { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 12px; font-size: var(--fs-base); font-weight: 600; color: var(--muted); }
.ap-dashsel select.ap-in { width: auto; min-width: 220px; max-width: 320px; height: 38px; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .ap-dashsel { justify-content: stretch; } .ap-dashsel select.ap-in { flex: 1; min-width: 0; } }

/* Audit: waarschuwingen, bezoek zelf inplannen, aangeleerde vakken, eigen uitstraling */
.rc__sum > div > span small, .rc__sum > div > b small { display: block; font-weight: 400; }
.rc__sum > div > b small { text-align: right; }
.ap-issues { display: flex; gap: 10px; align-items: flex-start; background: var(--y-soft); border: 1px solid #f3dc98; color: #5c4700; padding: 12px 16px; border-radius: var(--r-md); font-size: var(--fs-md); margin: 0 0 18px; }
.ap-issues .i { flex: none; margin-top: 2px; }
.ap-issues ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.ap-bookset { border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 10px 14px; margin: 12px 0; }
.ap-bookset summary { cursor: pointer; font-size: var(--fs-md); font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; list-style: none; }
.ap-bookset summary::-webkit-details-marker { display: none; }
.ap-bookset .ap-row { margin-top: 10px; flex-wrap: wrap; }
.ap-bookset input[type=datetime-local] { flex: 1 1 200px; min-width: 0; }
.ap-bookset select { flex: 0 0 110px; }
.ap-bookset p { margin: 8px 0 0; }
.ap-owndesign { gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.ap-owndesign .ap-color { flex: 1 1 150px; }
.ap-owndesign .ap-photo { cursor: pointer; }
.ap-adm__learn { margin-top: 18px; }
.ap-adm__learn ul { list-style: none; margin: 12px 0 0; padding: 0; }
.ap-adm__learn li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.ap-adm__learn li small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.ap-adm__lst { font-size: var(--fs-sm); font-weight: 700; padding: 2px 9px; border-radius: var(--r-pill); background: var(--paper); color: var(--muted); white-space: nowrap; }
.ap-adm__lst.is-ok { background: var(--ok-soft); color: var(--ok); }
.ap-adm__lst.is-off { background: var(--err-soft); color: var(--err); }
@media (max-width: 640px) { .ap-adm__learn li { grid-template-columns: 1fr; gap: 6px; } }

/* Audit 2: wat de klant zag, eerdere berekeningen, afloop van bezoeken, vakken nakijken */
.ap-ld__seen { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-sm); }
.ap-hist { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; margin: 12px 0; }
.ap-hist summary { cursor: pointer; font-size: var(--fs-md); font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; list-style: none; }
.ap-hist summary::-webkit-details-marker { display: none; }
.ap-hist ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ap-hist li { background: var(--paper); border-radius: var(--r-md); padding: 8px 12px; }
.ap-hist li > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ap-hist li small { color: var(--muted); font-size: var(--fs-sm); }
.ap-hist li p { margin: 4px 0 0; font-size: var(--fs-base); color: var(--text); }
.ap-hist > p { margin: 8px 0 0; }
.ap-visits--past li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ap-visits--past li > a { flex: 1 1 140px; min-width: 0; }
.ap-adm__detail { margin-top: 6px; font-size: var(--fs-base); }
.ap-adm__detail summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.ap-adm__learn .ap-adm__detail ul { margin: 4px 0 8px; padding-left: 16px; list-style: disc; }
.ap-adm__learn .ap-adm__detail li { display: list-item; border: 0; padding: 2px 0; }
.ap-adm__detail p { margin: 8px 0 0; }

/* Foto maken met AI (in het fotovenster) */
.ap-aiimg { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin: 16px 0; background: var(--soft); }
.ap-aiimg .ap-h4 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.ap-aiimg p { margin: 6px 0; }
.ap-aiimg__row { display: flex; gap: 8px; margin: 8px 0; }
.ap-aiimg__row .ap-in { flex: 1 1 auto; min-width: 0; }
.ap-aiimg__row .ap-btn { flex: none; }
.ap-aiimg__wait { display: flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--muted); font-size: var(--fs-md); }
.ap-aiimg__res { margin: 8px 0; }
.ap-aiimg__res img { display: block; width: 100%; max-width: 480px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.ap-aiimg__res figcaption { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 640px) { .ap-aiimg__row { flex-direction: column; } }

/* Seizoenen: welke dienst wanneer gevraagd wordt */
.ap-season { margin-top: 18px; }
.ap-season__tips { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 6px; }
.ap-season__tips li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: var(--fs-md); padding: 8px 12px; background: var(--y-soft); border-radius: var(--r-md); }
.ap-season__tips b { color: var(--ink); }
.ap-season__tips span { color: var(--text); }
.ap-season__grid { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: var(--fs-base); min-width: 640px; }
.ap-season__grid th { font-weight: 600; color: var(--muted); font-size: var(--fs-sm); text-align: center; padding: 2px 0; }
.ap-season__grid thead th.is-now { color: var(--ink); }
.ap-season__grid tbody th { text-align: left; color: var(--ink); font-size: var(--fs-base); font-weight: 500; padding-right: 10px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.ap-season__grid td { height: 34px; min-width: 34px; text-align: center; border-radius: var(--r-sm); background: color-mix(in srgb, var(--y) calc(var(--a, 0) * 100%), #f4f2ec); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-season__grid td.is-now { box-shadow: inset 0 0 0 2px var(--ink); }
.ap-season__grid td.is-na { background: repeating-linear-gradient(135deg, #f1efe9 0 5px, #e9e6de 5px 10px); }
.ap-season__grid td.ap-season__n { background: none; color: var(--muted); font-weight: 600; }
.ap-season > p { margin: 10px 0 0; }

/* Meest gevraagde diensten: klikbaar, opent het detail van een dienst */
.ap-hbars--click li { display: block; }
.ap-hbars--click button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: var(--fs-md); cursor: pointer; padding: 6px 8px; margin: -6px -8px; width: calc(100% + 16px); border-radius: var(--r-md); transition: background .15s; }
.ap-hbars--click button:hover { background: var(--paper); }
.ap-hbars--click button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ap-hbars--click b { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.ap-hbars--click b .i { width: 14px; height: 14px; color: var(--muted); transform: rotate(-90deg); }
.ap-hbars--click i { grid-column: 1 / -1; height: 8px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--y), #ffd966); animation: apGrow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }

/* Detailvenster van een dienst */
.ap-sd__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ap-sd__head .ap-modal__h { margin: 0; }
.ap-sd__tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; margin: 12px 0 4px; scrollbar-width: thin; }
.ap-sd__tabs button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 6px 12px; font: inherit; font-size: var(--fs-base); cursor: pointer; color: var(--text); }
.ap-sd__tabs button em { font-style: normal; color: var(--muted); margin-left: 2px; }
.ap-sd__tabs button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-sd__tabs button.is-on em { color: rgba(255,255,255,.7); }
.ap-sd__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.ap-sd__kpis > div { background: var(--paper); border-radius: var(--r-md); padding: 12px 14px; }
.ap-sd__kpis small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.ap-sd__kpis b { display: block; font-size: var(--fs-2xl); color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ap-sd__kpis span { display: block; color: var(--muted); font-size: var(--fs-sm); }
.ap-sd__insight { display: flex; gap: 8px; align-items: flex-start; background: var(--y-soft); border-radius: var(--r-md); padding: 10px 14px; font-size: var(--fs-md); margin: 0 0 14px; }
.ap-sd__insight .i { flex: none; margin-top: 2px; }
.ap-sd__chart { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; }
.ap-sd__chart > p { margin: 8px 0 0; }
.ap-sd__bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; height: 190px; margin-top: 14px; }
.ap-sd__col { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; text-align: center; min-width: 0; }
.ap-sd__col em { font-style: normal; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-height: 16px; }
.ap-sd__col span { display: flex; align-items: flex-end; background: var(--sunken); border-radius: var(--r-sm); overflow: hidden; }
.ap-sd__col span i { display: block; width: 100%; background: linear-gradient(180deg, #ffd966, var(--y)); border-radius: 8px 8px 0 0; animation: apRise .7s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom; }
.ap-sd__col.is-peak span i { background: linear-gradient(180deg, #ffc21a, #e6a800); }
.ap-sd__col.is-na span { background: repeating-linear-gradient(135deg, #f1efe9 0 5px, #e9e6de 5px 10px); }
.ap-sd__col.is-na span i { display: none; }
.ap-sd__col small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-sd__col.is-now small { color: var(--ink); font-weight: 700; }
@keyframes apRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ap-sd__ans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.ap-sd__ans section > b { display: block; font-size: var(--fs-base); color: var(--ink); margin-bottom: 6px; }
.ap-sd__ans ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ap-sd__ans li { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: var(--fs-base); }
.ap-sd__ans li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-sd__ans li em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-sd__ans li i { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: var(--y); }
@media (max-width: 640px) {
  .ap-sd__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-sd__ans { grid-template-columns: 1fr; }
  .ap-sd__bars { gap: 3px; height: 160px; }
  .ap-sd__col small { font-size: var(--fs-xs); }
  .ap-sd__col em { font-size: var(--fs-xs); }
}
@media (prefers-reduced-motion: reduce) { .ap-sd__col span i, .ap-hbars--click i { animation: none; } }

/* Website gelezen: samenvatting en huisstijl */
.ap-read { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-soft); border: 1px solid #bfe3cd; color: var(--ok-ink); padding: 12px 16px; border-radius: var(--r-md); font-size: var(--fs-md); margin: 0 0 16px; }
.ap-read .i { flex: none; margin-top: 2px; }
.ap-read small { display: block; color: var(--muted); margin-top: 4px; }
.ap-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 0; }
.ap-brand input { flex: none; width: 18px; height: 18px; accent-color: var(--ink); }
.ap-brand__prev { flex: none; display: flex; align-items: center; gap: 8px; }
.ap-brand__prev img { display: block; max-width: 96px; max-height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px; background: #fff; }
.ap-brand__prev i { display: block; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.ap-brand > span:last-child { display: flex; flex-direction: column; font-size: var(--fs-md); }
.ap-brand small { color: var(--muted); font-size: var(--fs-base); }

/* Rondleiding: spotlight en uitlegkaartje */
.ap-tour { position: fixed; inset: 0; z-index: 400; }
.ap-tour__hole { position: fixed; border-radius: var(--r-lg); box-shadow: 0 0 0 9999px rgba(17, 17, 17, .55), 0 0 0 3px var(--y); transition: top .3s cubic-bezier(.2,.8,.2,1), left .3s cubic-bezier(.2,.8,.2,1), width .3s cubic-bezier(.2,.8,.2,1), height .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.ap-tour__hole[hidden] { display: block; top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(17, 17, 17, .55); }
.ap-tour__card { position: fixed; background: #fff; border-radius: var(--r-lg); padding: 18px 20px 14px; box-shadow: var(--sh); animation: apPop .3s cubic-bezier(.2,.8,.2,1) both; transition: top .3s cubic-bezier(.2,.8,.2,1), left .3s cubic-bezier(.2,.8,.2,1); }
.ap-tour__card.is-center { top: 50%; left: 50%; width: min(380px, calc(100vw - 32px)); transform: translate(-50%, -50%); animation: apFade .3s ease both; }
.ap-tour__card.is-sheet { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); top: auto; width: auto; }
.ap-tour__card small { color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.ap-tour__card h3 { margin: 4px 0 6px; font-size: var(--fs-xl); color: var(--ink); }
.ap-tour__card p { margin: 0; font-size: var(--fs-md); line-height: 1.5; color: var(--text); }
.ap-tour__card kbd { font: inherit; font-size: var(--fs-sm); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-xs); padding: 0 5px; background: var(--paper); }
.ap-tour__foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ap-tour__dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.ap-tour__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: width .25s ease, background .25s ease; }
.ap-tour__dots i.is-on { width: 18px; border-radius: var(--r-pill); background: var(--ink); }

/* Confetti bij een gewonnen klus */
.ap-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 500; }

/* Kaartje landt in zijn nieuwe kolom */
.ap-kcard.is-landed { animation: apLand .6s cubic-bezier(.2,.8,.2,1); }
@keyframes apLand { 0% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(255, 194, 26, .7); } 40% { transform: scale(1.03); } 100% { transform: none; box-shadow: 0 0 0 10px rgba(255, 194, 26, 0); } }

/* "Alles opgeslagen": vinkje springt even op */
.ap-save:not(.is-busy):not(.is-err) .i { animation: apTick .45s cubic-bezier(.2,.8,.2,1); }
@keyframes apTick { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.25); } 100% { transform: none; } }

/* Kaarten komen na elkaar binnen en komen iets omhoog bij aanwijzen */
.ap-stats > *, .ap-ests > * { animation: apIn .4s cubic-bezier(.2,.8,.2,1) both; }
.ap-stats > *:nth-child(2), .ap-ests > *:nth-child(2) { animation-delay: .05s; }
.ap-stats > *:nth-child(3), .ap-ests > *:nth-child(3) { animation-delay: .1s; }
.ap-stats > *:nth-child(4), .ap-ests > *:nth-child(4) { animation-delay: .15s; }
.ap-stat, .ap-est, .ap-kcard { transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) {
  .ap-stat:hover, .ap-est:hover { transform: translateY(-2px); box-shadow: var(--sh); }
  .ap-kcard:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) { .ap-tour__hole, .ap-tour__card { transition: none; animation: none; } }

.ap-tour__card.is-sheet.is-top { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }

/* Optellend getal: neemt de stijl van het grote getal over */
data.ap-num { font: inherit; color: inherit; letter-spacing: inherit; }
