/* Mobile-first. Onder 900px worden tabellen kaarten.
   data-label komt uit het script in base.html, ook voor latere pagina's. */

:root {
  --ink: #14211c;
  --muted: #3e5148;
  --paper: #eef2f0;
  --card: #ffffff;
  --line: #d5e0da;
  --pine: #12352b;
  --leaf: #0e6b45;
  --gold: #7a5410;
  --warn: #8d1d1d;
  --ok: #0d5c32;
  --shadow: 0 1px 2px rgba(16, 32, 24, 0.05), 0 8px 24px rgba(16, 32, 24, 0.06);
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

:focus { outline: none; }
:focus-visible {
  outline: 3px solid #1f8a5b;
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(14, 107, 69, 0.25);
}

::selection { background: #cde8da; }

a:not(.action-btn) { color: var(--leaf); }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
h1 { margin: 0 0 0.35rem; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
h3 { margin: 0.9rem 0 0.45rem; font-size: 0.98rem; }
.split h3, .panel h3 { margin-top: 0; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.2rem;
  z-index: 50;
  background: white;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 0.55rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible ~ .nav-burger {
  outline: 3px solid #f3d7a1;
  outline-offset: 3px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.55rem 0.6rem;
  padding: max(0.7rem, env(safe-area-inset-top)) 0.85rem 0.8rem;
  background: var(--pine);
  color: #f4f7f5;
}
.brand { min-width: 0; }
.brand a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand span { font-weight: 560; color: #e4d3b0; }
.brand p {
  margin: 0.12rem 0 0;
  color: #d5e4db;
  font-size: 0.8rem;
  line-height: 1.35;
}
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.nav-burger .bar {
  display: block;
  height: 2px;
  width: 18px;
  border-radius: 2px;
  background: #f4f7f5;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.nav-toggle:checked ~ .nav-burger .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .nav-burger .bar:nth-child(3) { opacity: 0; }
.nav-toggle:checked ~ .nav-burger .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  flex-direction: column;
  gap: 0.2rem;
  max-height: min(70vh, 28rem);
  overflow: auto;
  margin: 0;
  padding: 0.45rem 0.75rem 0.85rem;
  background: var(--pine);
  box-shadow: 0 18px 36px rgba(8, 20, 16, 0.28);
}
.nav-toggle:checked ~ nav { display: flex; }
nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  color: #f4f7f5;
  text-decoration: none;
  font-weight: 600;
}
nav a:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }

.userbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}
.userbar .who { flex: 1 1 12rem; color: #d5e4db; font-size: 0.85rem; }
.userbar form { margin: 0; }
.scan-form { flex: 1 1 100%; }
.scan-form button { width: 100%; }

button, .textlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--leaf);
  color: white;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover { background: #0c5d3c; }
button:disabled { opacity: 0.62; cursor: wait; }
.top button {
  background: #f3d7a1;
  color: #1c2416;
}
.top button:hover { background: #f8e4bb; }
.top button:disabled { background: #e7d7b8; }
button.ghost {
  width: auto;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.ghost:hover { background: #f4faf6; }
.top button.ghost {
  background: transparent;
  color: #f4f7f5;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.top button.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.textlink {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.textlink:hover { background: #f4faf6; text-decoration: none; }

.notice {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fbf1dc;
  color: #3d2c12;
  border-bottom: 1px solid #ead7b0;
}

main {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.05rem 0 2.75rem;
}

.lede, .empty { color: var(--muted); }
.lede { margin: 0.2rem 0 1rem; }
.runline {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.stats a.stat,
.stats article {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.8rem 0.9rem 0.85rem;
}
.stats a.stat:hover,
.stats a.stat:focus-visible {
  border-color: var(--leaf);
  transform: translateY(-1px);
}
.stats a.stat.kans {
  grid-column: 1 / -1;
  background: var(--pine);
  color: white;
  border: 0;
  box-shadow: 0 10px 24px rgba(18, 53, 43, 0.18);
}
.stats a.stat.kans:hover,
.stats a.stat.kans:focus-visible {
  border: 0;
  outline: 2px solid #e4d3b0;
  outline-offset: 3px;
}
.stats span, .stats em { display: block; color: var(--muted); font-style: normal; }
.stats span { font-size: 0.82rem; font-weight: 700; }
.stats em { margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.35; }
.stats strong {
  display: block;
  margin: 0.12rem 0 0.05rem;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats a.stat.kans span,
.stats a.stat.kans em { color: #d7e6de; }
.stats a.stat.kans strong { color: white; font-size: 2.75rem; }

.split { display: grid; gap: 0.75rem; margin: 0.9rem 0; }
section { margin: 1.15rem 0; }
.panel, .split article, .profile, .confirm-card, .statusform, .info, .facts {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel, .split article, .profile, .confirm-card, .statusform { padding: 1rem 1.05rem; }
.confirm-card { max-width: 38rem; }
.confirm-card form, .actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }

.split .bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name count" "track track";
  gap: 0.28rem 0.65rem;
  align-items: center;
  margin: 0.15rem 0;
  padding: 0.35rem 0.3rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.split a.bar:hover,
.split a.bar:focus-visible {
  background: #f3f7f4;
  outline: none;
}
.split .bar .label {
  grid-area: name;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.split a.bar:hover .label,
.split a.bar:focus-visible .label { text-decoration: underline; }
.split .bar b {
  grid-area: count;
  font-variant-numeric: tabular-nums;
}
.split .bar .track {
  grid-area: track;
  display: block;
  min-width: 0;
  height: 0.5rem;
  background: #e3ebe6;
  border-radius: 99px;
  overflow: hidden;
}
.split .bar .track i {
  display: block;
  height: 100%;
  max-width: 100%;
  background: linear-gradient(90deg, #1f8f5a, #147247);
  border-radius: inherit;
}

.chips, ul.flags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0.35rem 0 0; list-style: none; }
.chips li, .flags li {
  background: #f4f7f5;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.9rem;
}
.reasons { margin: 0.25rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.88rem; }
.errors { list-style: none; margin: 0; padding: 0; }
.errors li { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.errors li:last-child { border-bottom: 0; padding-bottom: 0; }
.errors time { display: block; color: var(--muted); font-size: 0.82rem; }

.finding-map {
  height: min(28rem, 70vh);
  min-height: 16rem;
  margin-top: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  z-index: 0;
  isolation: isolate;
  background: #e7eeea;
}
.map-popup { display: grid; gap: 0.28rem; min-width: 10rem; }
.map-popup strong { color: var(--pine); }
.map-popup span { color: var(--muted); font-size: 0.9rem; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.table-scroll table { min-width: 680px; }
th, td {
  text-align: left;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td { border-bottom: 0; }
th {
  background: #f6f8f7;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
td a { font-weight: 680; }
small { display: block; color: var(--muted); margin-top: 0.2rem; font-size: 0.85rem; }

.badge, .score-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.08rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  background: #e7eeea;
  color: #16352b;
}
.score-num {
  min-width: 2.35rem;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
}
.score-high, .st-up, .lv-info, .badge-on { background: #e3f6ea; color: #0c5c34; }
.score-mid, .st-cooldown, .lv-warning { background: #fbf1dc; color: #7a5410; }
.score-low, .st-unknown, .badge-off { background: #eef1f3; color: #243038; }
.st-down, .lv-error { background: #fde8e8; color: #8d1d1d; }
.status-nieuw { background: #e7f1fb; color: #0f3f73; }
.status-contact_gezocht { background: #efe9fb; color: #4a2d7a; }
.status-in_gesprek { background: #e3f6ea; color: #0c5c34; }
.status-gekwalificeerd { background: #d8f0e4; color: #064d2e; font-weight: 800; }
.status-later_opvolgen { background: #fbf1dc; color: #7a5410; }
.status-afgevallen { background: #fde8e8; color: #8d1d1d; }
tr.lv-error td { background: #fff7f7; }
tr.lv-warning td { background: #fffaf3; }

form.filters {
  display: grid;
  gap: 0.7rem;
  margin: 0.85rem 0 0.7rem;
}
form.filters button { width: 100%; }
label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; font-weight: 650; color: var(--muted); }
input:not([type="checkbox"]):not([type="hidden"]):not([type="radio"]),
select {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border: 1px solid #c5d2cb;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}
p.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0 1rem; }
p.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
p.filters a.on { background: var(--pine); border-color: var(--pine); color: white; }
.switch { margin: 0.2rem 0 0.9rem; }

.facts {
  display: grid;
  gap: 0.75rem 1.2rem;
  margin: 0;
  padding: 0.35rem 1rem 1rem;
}
.facts div { margin: 0; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.facts dd { margin: 0.12rem 0 0; overflow-wrap: anywhere; }
.info { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem 1.05rem; margin: 0; }
.profile { margin: 0.85rem 0; display: grid; gap: 0.7rem; max-width: 40rem; }
.check { flex-direction: row; align-items: flex-start; gap: 0.65rem; min-height: 44px; color: var(--ink); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: 0 0 auto; accent-color: var(--leaf); }
.check span { font-weight: 500; color: var(--ink); }
.places { color: var(--muted); margin: 0; }
.crumb { margin: 0 0 0.45rem; }
.crumb a { font-weight: 700; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.score { display: flex; flex-wrap: wrap; gap: 0.4rem 0.55rem; align-items: center; color: var(--muted); margin: 0.35rem 0 0.9rem; }
.detail { display: flex; flex-direction: column; gap: 1rem; }
.detail-main { display: grid; gap: 1rem; }
.detail-main h2 { margin-top: 0.25rem; }
.statusform { display: grid; gap: 0.7rem; align-content: start; }
.statusform-top { margin: 0; }
.lead-top-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(4.75rem, 5.25rem);
  gap: 0.45rem;
  align-items: stretch;
  margin: 0 0 0.75rem;
}
.lead-top-row > .panel { margin: 0; }
.lead-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  padding: 0.45rem 0.55rem;
}
.lead-top-quick {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 6.5rem;
}
.lead-top-quick .action-btn.nav.map-button { width: 100%; justify-content: center; }
.lead-top-quick .lead-fav-form { margin: 0; width: 100%; }
.lead-top-quick .lead-fav-form .action-btn { width: 100%; justify-content: center; }
.lead-quick .lead-fav-form { margin: 0; }
.statusform-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  margin: 0;
  min-width: 0;
}
.statusform-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem 0.45rem;
  align-items: center;
}
.statusform-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
}
.statusform-compact select {
  min-height: 40px;
  padding: 0.35rem 0.5rem;
  font-size: 0.92rem;
}
.status-save-btn {
  min-height: 40px;
  padding: 0.35rem 0.65rem;
  font-size: 0.88rem;
  white-space: nowrap;
}
.statusform-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}
.statusform-extra { margin: 0; font-size: 0.85rem; }
.score-disclosure-inline { margin: 0; position: relative; }
.score-disclosure-inline > summary {
  margin: 0;
  padding: 0;
  list-style: none;
  cursor: pointer;
}
.score-disclosure-inline > summary::after { content: "ⓘ"; font-size: 0.72rem; color: var(--muted); margin-left: 0.2rem; }
.score-disclosure-inline[open] > summary::after { content: "▲"; }
.score-disclosure-inline .score-extra {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 20;
  min-width: 14rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.lead-photo-thumb {
  position: relative;
  padding: 0.35rem;
  min-width: 0;
  overflow: hidden;
}
.lead-photo-inner {
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f7faf8;
  min-height: 5.5rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lead-photo-inner img { width: 100%; height: 5.5rem; object-fit: cover; display: block; }
.lead-top-row .lead-photo-inner { min-height: 4.75rem; }
.lead-top-row .lead-photo-inner img { height: 4.75rem; }
.lead-top-row .photo-hero-placeholder { font-size: 0.68rem; padding: 0.25rem; text-align: center; }
.thumb-upload-btn {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--pine);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
#photo-upload-form { display: none !important; }
#photo-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  padding: 0;
  margin: 0;
}
.map-panel.map-panel { padding: 0; overflow: hidden; }
.map-panel-summary {
  cursor: pointer;
  font-weight: 750;
  padding: 0.75rem 1rem;
  list-style: none;
}
.map-panel-summary::-webkit-details-marker { display: none; }
.map-panel-summary::before { content: "▾ "; color: var(--muted); }
.map-panel:not([open]) .map-panel-summary::before { content: "▸ "; }
.map-shell { position: relative; }
.map-controls-float {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: calc(100% - 3.5rem);
}
.map-control-group {
  margin: 0;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  align-items: center;
}
.map-control-group legend {
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0 0.15rem;
  width: 100%;
}
.map-control-group label { display: inline-flex; align-items: center; gap: 0.2rem; margin: 0; white-space: nowrap; }
.panel-head-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.panel-head-row h2 { margin: 0; }
.facts-editable .fact-edit-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.fact-input { display: none; width: 100%; max-width: 18rem; }
.fact-edit-row.is-editing .fact-read { display: none; }
.fact-edit-row.is-editing .fact-input { display: block; }
.fact-edit-row.is-editing .icon-pen { opacity: 0.35; }
.icon-pen {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--pine);
  padding: 0.2rem;
  cursor: pointer;
  border-radius: 6px;
}
.icon-pen:hover { background: #eef5f0; }
.details-save-row { margin: 0.5rem 0 0; }
.link-list { margin: 0; padding-left: 1.1rem; }
.link-list a { font-weight: 650; }
.finding-map { min-height: 240px; width: 100%; }
.score-disclosure { margin: 0.35rem 0 0.9rem; }
.score-disclosure > summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.score-disclosure > summary::-webkit-details-marker { display: none; }
.score-disclosure > summary::after {
  content: "Score-info";
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pine);
  margin-left: auto;
}
.score-disclosure[open] > summary::after { content: "Verberg"; }
.score-disclosure .score-extra { margin-top: 0.65rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.photo-hero { margin: 0 0 0.85rem; }
.photo-hero-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
  cursor: pointer;
  overflow: hidden;
  min-height: 8.5rem;
}
.photo-hero-trigger img { width: 100%; max-height: 14rem; object-fit: cover; display: block; }
.photo-hero-placeholder {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-height: 8.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}
.org-strip { padding: 0.65rem 0.85rem; }
.org-strip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.org-strip-row form { margin: 0; display: inline; }
.org-strip select {
  max-width: 11rem;
  font-size: 0.86rem;
  padding: 0.25rem 0.4rem;
}
.org-strip .icon-btn {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--pine);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.panel-compact { padding: 0.65rem 0.85rem; }
.panel-compact h2 { font-size: 0.95rem; margin: 0 0 0.45rem; }
.panel-compact .facts { font-size: 0.82rem; padding: 0.35rem 0 0.5rem; }
.panel-compact .facts dt { font-size: 0.72rem; }
.panel-compact .lede { font-size: 0.8rem; margin: 0.35rem 0 0; }
.panel-compact .action-bar { margin: 0.35rem 0 0; }
.panel-compact .action-btn { min-height: 36px; padding: 0.3rem 0.65rem; font-size: 0.82rem; }
.lead-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  max-width: 22rem;
  box-shadow: var(--shadow);
}
.lead-dialog::backdrop { background: rgba(20, 32, 28, 0.45); }
.lead-dialog h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.lead-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.5rem; }

@media (min-width: 700px) {
  .split .bar {
    grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr) auto;
    grid-template-areas: "name track count";
    gap: 0.55rem;
    align-items: center;
  }
  .facts { grid-template-columns: 1fr 1fr; padding: 0.4rem 1.05rem 1.05rem; }
  .facts div:nth-child(2) { border-top: 0; }
  form.filters { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); align-items: end; }
  form.filters label.wide { grid-column: 1 / -1; }
  form.filters button { width: auto; }
}

@media (min-width: 900px) {
  .stats { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  .stats a.stat.kans { grid-column: auto; }
  .split { grid-template-columns: 1fr 1fr; }
  .statusform-top { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1rem; align-items: end; }
  .statusform-top .hint { grid-column: 1 / -1; margin: 0; }
  .statusform-top label:not(.only-afgevallen):not(.only-later) { margin: 0; }
  .lead-top-row {
    grid-template-columns: minmax(7rem, auto) minmax(0, 1fr) 5.5rem;
    gap: 0.55rem;
  }
}

@media (min-width: 1180px) {
  .top {
    display: flex;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 0.75rem 1.25rem;
  }
  .brand { min-width: 0; }
  .brand p { max-width: 16rem; }
  .nav-burger { display: none; }
  .userbar { width: auto; flex: 0 1 auto; }
  .userbar .who { flex: 0 1 auto; }
  .scan-form { flex: 0 0 auto; }
  .scan-form button, .top button { width: auto; white-space: nowrap; }
  nav,
  .nav-toggle:checked ~ nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    max-height: none;
    overflow: visible;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  nav a {
    min-height: 40px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
  }
}

@media (max-width: 900px) {
  .table-scroll { overflow: visible; }
  .table-scroll table { min-width: 0; }
  table, tbody, tr, td { display: block; width: auto; }
  table {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  tr {
    margin: 0 0 0.75rem;
    padding: 0.85rem 0.95rem 0.7rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  td {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.2rem 0.75rem;
    padding: 0.32rem 0;
    border-bottom: 0;
    background: transparent;
  }
  td { overflow-wrap: anywhere; }
  td::before {
    content: attr(data-label);
    flex: 1 0 38%;
    max-width: 9rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 750;
  }
  td:not([data-label])::before,
  td[colspan]::before,
  td:first-child:has(a, strong)::before { content: none; }
  td:first-child:has(a, strong) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }
  td[colspan] { border-bottom: 0; }
  td .reasons, td .flags, td small, td form { flex: 1 0 100%; }
  td form button { width: 100%; }
  tr.lv-error { background: #fff7f7; }
  tr.lv-warning { background: #fffaf3; }
  tr.lv-error td, tr.lv-warning td { background: transparent; }
}

@media (hover: hover) and (min-width: 901px) {
  tbody tr:hover td { background: #f5faf7; }
  tr.lv-error:hover td { background: #fff1f1; }
  tr.lv-warning:hover td { background: #fff6e8; }
}

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

.maplink { margin: 0 0 0.9rem; }
a.map-button:not(.action-btn) {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  background: white;
  color: var(--pine);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 700;
  text-decoration: none;
}
a.map-button:not(.action-btn):hover { background: #f4faf6; text-decoration: none; }
a.map-button svg { width: 1.15rem; height: 1.15rem; display: block; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 18% 12%, #d7e7dc 0, transparent 42%),
    radial-gradient(circle at 90% 0%, #f3e6cf 0, transparent 36%),
    var(--paper);
}
main.login-box {
  width: min(24rem, calc(100% - 0.5rem));
  margin: 0;
  padding: 1.4rem 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.login-box h1 { margin: 0; color: var(--pine); }
.login-box h1 span { color: #8a6230; }
.stack-form { display: grid; gap: 0.75rem; }
.stack-form button { justify-self: stretch; }
@media (min-width: 700px) {
  .stack-form button { justify-self: start; }
}
.form-error {
  margin: 0.8rem 0 0;
  color: var(--warn);
  background: #fde8e8;
  border: 1px solid #f0c4c4;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
}
.profile .notice, main .notice {
  border-radius: 12px;
  margin: 0 0 0.9rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.legend b {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 3px;
  vertical-align: -1px;
}
.legend .views { background: #1f8f5a; }
.legend .clicks { background: #c4a15a; }
.panel > .bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name count" "track track";
  gap: 0.2rem 0.65rem;
  align-items: center;
  margin: 0.45rem 0;
}
.panel > .bar > span { grid-area: name; min-width: 0; overflow-wrap: anywhere; }
.panel > .bar > b { grid-area: count; font-variant-numeric: tabular-nums; }
.panel > .bar > .track {
  grid-area: track;
  display: block;
  height: 0.5rem;
  background: #e3ebe6;
  border-radius: 99px;
  overflow: hidden;
}
.panel > .bar > .track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f8f5a, #147247);
  border-radius: inherit;
}
.bar .pair {
  grid-area: track;
  display: grid;
  gap: 0.16rem;
}
@media (min-width: 700px) {
  .panel > .bar {
    grid-template-columns: 5.6rem minmax(0, 1fr) auto;
    grid-template-areas: "name track count";
  }
}
.rail {
  display: block;
  height: 0.42rem;
  background: #e3ebe6;
  border-radius: 99px;
  overflow: hidden;
}
.rail i { display: block; height: 100%; border-radius: inherit; }
.rail i.views { background: linear-gradient(90deg, #1f8f5a, #147247); }
.rail i.clicks { background: linear-gradient(90deg, #c4a15a, #8a6230); }
.week-chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 0.9rem;
}
.path, .ua { overflow-wrap: anywhere; }
.ua { color: var(--muted); font-size: 0.82rem; }
tr.suspicious td { background: #fde8e8; }
@media (max-width: 900px) {
  tr.suspicious { background: #fde8e8; border-color: #f0c4c4; }
  tr.suspicious td { background: transparent; }
}
@media (hover: hover) and (min-width: 901px) {
  tr.suspicious:hover td { background: #f8d0d0; }
}

.brand-logo { height: 1.35rem; width: auto; vertical-align: -0.2rem; margin-right: 0.35rem; }
.with-bottom-nav { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
.bottom-nav {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.bottom-nav a {
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.45rem 0.2rem;
  border-radius: 10px;
}
.bottom-nav a[aria-current="page"] { color: var(--leaf); background: #e8f3ec; }

.pipeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}
.pipe {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.4rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.82rem;
  text-align: center;
  border: 1px solid var(--line);
}
.lead-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.lead-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.lead-card strong { font-size: 1rem; }
.lead-card span { color: var(--muted); font-size: 0.86rem; }
.lead-card .fav { color: #c4a15a; }

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 0;
  background: var(--leaf);
  color: white;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.action-btn.ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.action-btn.mail { background: #2f5f9e; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: 0.5rem; }
.photo-grid img { width: 100%; height: 6rem; object-fit: cover; border-radius: 10px; }

.history-list { margin: 0.5rem 0 1rem; padding-left: 1.1rem; }
.history-list time { color: var(--muted); font-size: 0.82rem; }
.source-links a { font-weight: 650; }

textarea {
  width: 100%;
  min-height: 5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c5d2cb;
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}
.stack-form { display: grid; gap: 0.65rem; max-width: 40rem; }

.mobile-only { display: grid; }
.desktop-table { display: none; }
@media (min-width: 900px) {
  .mobile-only { display: none; }
  .desktop-table { display: block; }
  .bottom-nav { display: none; }
  .with-bottom-nav { padding-bottom: 0; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.source-card { list-style: none; }
.source-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.source-actions form { margin: 0; }
.finding-map { min-height: 220px; border-radius: var(--radius); border: 1px solid var(--line); }

/* Lead: Navigeren — vast lichter groen, witte tekst (los van huisstijl-linkkleur) */
a.action-btn.nav.map-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #22a06b !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  border: 0 !important;
  box-shadow: none;
  font-weight: 750;
  text-decoration: none !important;
}
a.action-btn.nav.map-button:visited {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
a.action-btn.nav.map-button:hover,
a.action-btn.nav.map-button:focus-visible {
  background: #1d8f5f !important;
  color: #fff !important;
  text-decoration: none !important;
}
a.action-btn.nav.map-button svg,
a.action-btn.nav.map-button svg path {
  fill: #fff !important;
  color: #fff !important;
}

/* Overzicht: landingspagina met hero, kerncijfers en een rustiger ritme. */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0.25rem 0 0;
  padding: 1.3rem 1.2rem 1.45rem;
  border-radius: 22px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(228, 211, 176, 0.24) 0%, transparent 55%),
    linear-gradient(135deg, #12352b 0%, #10422f 58%, #0e6b45 100%);
  color: #f4f7f5;
  box-shadow: 0 18px 40px rgba(18, 53, 43, 0.22);
}
.home-hero::after {
  content: "";
  position: absolute;
  right: -4.5rem;
  bottom: -7rem;
  z-index: -1;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2.2rem rgba(255, 255, 255, 0.04);
}
.hero-eyebrow {
  margin: 0;
  color: #e4d3b0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.home-hero h1 {
  margin: 0.2rem 0 0.45rem;
  color: #ffffff;
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  letter-spacing: -0.04em;
}
.hero-lede {
  max-width: 40rem;
  margin: 0;
  color: #d9e8df;
  font-size: 1rem;
  line-height: 1.55;
}
.hero-lede strong { color: #ffffff; }
.hero-focus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-top: 0.95rem;
  color: #d9e8df;
  font-size: 0.88rem;
}
.hero-focus p { margin: 0; }
.hero-focus-label {
  color: #e4d3b0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.focus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.focus-chips li {
  padding: 0.16rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 650;
}
a.hero-link {
  color: #ffffff;
  font-weight: 750;
  text-underline-offset: 2px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
a.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #e4d3b0;
  color: #1c2416;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(8, 20, 16, 0.18);
}
a.hero-button:hover {
  background: #f0e2c6;
  text-decoration: none;
}
a.hero-button.ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
}
a.hero-button.ghost:hover { background: rgba(255, 255, 255, 0.12); }

.home-hero + .stats { margin-top: 0.85rem; }
.stats a.stat { transition: transform 0.12s ease, border-color 0.12s ease; }

.pipeline { gap: 0.45rem; }
.pipe {
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  text-align: left;
}
.pipe b {
  flex: 0 0 auto;
  min-width: 1.5rem;
  padding: 0.04rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: inherit;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.home-zone { display: grid; gap: 0.9rem; margin: 0.2rem 0 0; }
.home-zone-main,
.home-zone-side { display: grid; gap: 0.75rem; align-content: start; }
.zone-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.zone-head h2 { margin: 0; }
.panel .zone-head { margin-bottom: 0; }
a.zone-link {
  flex: 0 0 auto;
  color: var(--leaf);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
a.zone-link:hover { text-decoration: underline; }
.zone-more { margin: 0.6rem 0 0; font-size: 0.88rem; font-weight: 650; }
.section-lede { margin: -0.15rem 0 0.7rem; color: var(--muted); font-size: 0.9rem; }

.lead-card { transition: transform 0.12s ease, box-shadow 0.12s ease; }
.lead-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.lead-card .lead-score {
  min-width: 2.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.lead-card .lead-score.score-high { background: #e3f6ea; color: #0c5c34; }
.lead-card .lead-score.score-mid { background: #fbf1dc; color: #7a5410; }
.lead-card .lead-score.score-low { background: #eef1f3; color: #243038; }
.lead-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.4rem;
}
.lead-meta .dot { color: #a9bbb0; }

.panel-tight { margin: 0; padding: 0.8rem 0.9rem; }
.panel-tight h2 { font-size: 0.92rem; }
.mini-list { display: grid; gap: 0; margin: 0.55rem 0 0; padding: 0; list-style: none; }
.mini-list li + li { border-top: 1px solid var(--line); }
.mini-list a {
  display: grid;
  gap: 0.05rem;
  padding: 0.45rem 0.3rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.mini-list a:hover { background: #f3f7f4; text-decoration: none; }
.mini-list strong { font-size: 0.9rem; font-weight: 700; line-height: 1.3; }
.mini-list span { color: var(--muted); font-size: 0.79rem; }
.mini-list .mini-date { color: #7a5410; font-weight: 750; }
.mini-list .mini-star { color: #b08530; font-size: 0.8rem; }
.quick-links { display: grid; gap: 0.15rem; margin: 0.55rem 0 0; padding: 0; list-style: none; }
.quick-links a {
  display: block;
  padding: 0.42rem 0.3rem;
  border-radius: 8px;
  color: var(--leaf);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.quick-links a:hover { background: #f3f7f4; text-decoration: none; }

.panel-collapsible { padding: 0; overflow: hidden; }
.panel-collapsible > details > summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 750;
}
.panel-collapsible > details > summary::-webkit-details-marker { display: none; }
.panel-collapsible > details > summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
}
.panel-collapsible > details[open] > summary::after { content: "▴"; }
.count-pill {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.04rem 0.45rem;
  border-radius: 999px;
  background: #fde8e8;
  color: #8d1d1d;
  font-size: 0.76rem;
  font-weight: 800;
}
.collapse-body { padding: 0 1rem 0.9rem; }
.home-footnote {
  margin-top: 1rem;
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  font-size: 0.86rem;
}

@media (hover: hover) {
  a.lead-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(16, 32, 24, 0.12);
    text-decoration: none;
  }
}

@media (min-width: 800px) {
  .home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: end;
    padding: 1.6rem 1.7rem 1.7rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
    min-width: 12rem;
  }
}

@media (min-width: 1000px) {
  .home-zone {
    grid-template-columns: minmax(0, 1.55fr) minmax(18.5rem, 1fr);
    align-items: start;
  }
}

/* Leads-pagina: compacte filters en kaarten die op de telefoon voorop staan. */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem 0.9rem;
  margin: 0.1rem 0 0.85rem;
}
.page-head h1 { margin: 0; }
.page-head .lede { margin: 0.2rem 0 0; }
.page-head .action-btn { flex: 0 0 auto; }

.lead-toolbar { margin: 0 0 1rem; }
form.lead-filters { margin: 0; gap: 0.6rem; }
.filter-search-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.filter-search-row .search-field { flex: 1 1 auto; margin: 0; min-width: 0; }
form.filters .filter-search-row button { flex: 0 0 auto; width: auto; }
.filter-more {
  padding: 0 0.7rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
}
.filter-more:not([open]) { padding-bottom: 0; }
.filter-more > summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.35rem 0.1rem;
  list-style: none;
  cursor: pointer;
  font-weight: 750;
}
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more > summary::after {
  content: "Toon";
  margin-left: auto;
  color: var(--leaf);
  font-size: 0.8rem;
  font-weight: 750;
}
.filter-more[open] > summary::after { content: "Verberg"; }
.filter-grid { display: grid; gap: 0.65rem; padding-top: 0.15rem; }
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.filter-actions button { width: auto; }
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.filter-summary { margin: 0; color: var(--muted); font-size: 0.86rem; }
.toolbar-toggles { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.toolbar-toggles .textlink {
  min-height: 38px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
}
.count-pill.count-pill-neutral { background: #e7eeea; color: #16352b; }

.score-why { margin: 0.35rem 0 0; }
.score-why > summary {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.score-why .reasons { margin: 0.2rem 0 0; }
.lead-meta-sub { color: var(--muted); font-size: 0.78rem; }
.map-panel .map-intro { margin: 0; padding: 0.6rem 0.85rem 0; }
.map-panel .finding-map { margin: 0.55rem 0.7rem 0.7rem; }

/* Telefoon: compacte kop, grotere tikdoelen en geen iOS-zoom in velden. */
@media (max-width: 699px) {
  .top {
    padding: max(0.45rem, env(safe-area-inset-top)) 0.7rem 0.5rem;
    gap: 0.35rem 0.5rem;
  }
  .brand a { font-size: 1.05rem; }
  .brand p { margin-top: 0.05rem; font-size: 0.72rem; }
  .nav-burger { width: 42px; height: 42px; padding: 0 12px; }
  .userbar { gap: 0.35rem; }
  .userbar .who {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top button.ghost {
    min-height: 38px;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
  }
  .scan-form { flex: 0 0 auto; }
  .scan-form button {
    width: auto;
    min-height: 38px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
  }
  main { padding-top: 0.85rem; }
  input,
  select,
  textarea,
  .statusform-compact select,
  .org-strip select { font-size: 16px; }
  .filter-actions > * { flex: 1 1 100%; }
  .lead-top-row {
    grid-template-columns: minmax(0, 1fr) 4.75rem;
    grid-template-areas: "quick photo" "status status";
    gap: 0.5rem;
  }
  .lead-top-row > .lead-quick { grid-area: quick; }
  .lead-top-row > .statusform { grid-area: status; }
  .lead-top-row > .lead-photo-thumb { grid-area: photo; }
  .lead-top-quick {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
  }
}
.scan-long { display: inline; }
.scan-short { display: none; }
@media (min-width: 700px) {
  .filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    align-items: end;
  }
  .filter-more { padding: 0 1rem 1rem; }
  .filter-more:not([open]) { padding-bottom: 0; }
  .scan-long { display: inline; }
  .scan-short { display: none; }
}
@media (max-width: 699px) {
  .scan-long { display: none; }
  .scan-short { display: inline; }
}
@media (max-width: 399px) {
  .brand p { display: none; }
}
.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
h1, h2, h3 { overflow-wrap: anywhere; }
img, video { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
a, button, summary, label { -webkit-tap-highlight-color: rgba(14, 107, 69, 0.14); }


/* Contactgegevens: standaard wazig, eye-icoon maakt ze leesbaar. */
.blur-field {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  vertical-align: middle;
}
.blur-target {
  display: inline-block;
  max-width: 100%;
  filter: blur(0.32em);
  transition: filter 120ms ease;
}
.blur-field.is-revealed .blur-target { filter: none; }
.blur-field:not(.is-revealed) .blur-target { user-select: none; }
.blur-field:not(.is-revealed) .blur-target a { pointer-events: none; }
.blur-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  min-width: 1.9rem;
  height: 1.9rem;
  min-height: 1.9rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--pine);
  cursor: pointer;
}
.blur-toggle:hover { background: #eef5f0; }
.blur-field.is-revealed .icon-eye { display: none; }
.blur-field:not(.is-revealed) .icon-eye-off { display: none; }
.stack-form .blur-toggle { justify-self: auto; }
@media (prefers-reduced-motion: reduce) {
  .blur-target { transition: none; }
}
