/* Matchpage dashboard design system — overgenomen uit het ontwerp (Attio, Linear, Stripe, Vercel) */
/* Matchpage dashboard design system · afgeleid van Attio, Linear, Stripe, Vercel (zie README.md) */

:root {
  /* vlakken */
  --bg: #ffffff;
  --bg-sidebar: #fafafa;
  --bg-subtle: #f5f5f5;
  --bg-hover: #f0f0f0;
  --bg-active: #ebebeb;
  --border: #e6e6e6;
  --border-strong: #d6d6d6;
  /* tekst */
  --fg: #1a1a1a;
  --fg-2: #5f5f5f;
  --fg-3: #8b8b8b;
  --fg-4: #b8b8b8;
  /* accent (systeemkleur, wisselbaar) */
  --accent: #2069f1;
  --accent-hover: #1a5ad4;
  --accent-fg: #ffffff;
  --accent-soft: #eaf1fd;
  --accent-ring: rgba(32, 105, 241, 0.35);
  /* semantiek */
  --green: #16a34a;
  --green-soft: #e6f6ec;
  --amber: #d97706;
  --amber-soft: #fdf1dc;
  --red: #dc2626;
  --red-soft: #fde8e6;
  --purple: #7c3aed;
  --purple-soft: #f1eafd;
  /* chips (pastel, donkere tekst, zoals Attio) */
  --chip-green: #d3f1e0;
  --chip-blue: #dbe9fe;
  --chip-yellow: #fbe7a6;
  --chip-pink: #fbe0ea;
  --chip-grey: #ececec;
  --chip-purple: #e9dcfb;
  /* maat */
  --sidebar: 240px;
  --topbar: 44px;
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 8px;
  --r-4: 10px;
  --shadow-pop: 0 0 0 1px var(--border), 0 8px 24px rgba(0, 0, 0, 0.08);
  --font:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings:
    "cv11" 1,
    "ss01" 1;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
svg.i {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.i.s {
  width: 14px;
  height: 14px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--fg-3);
}
.sec {
  color: var(--fg-2);
}

/* ───────── shell ───────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.ws {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-2);
  height: 32px;
  font-weight: 500;
  cursor: pointer;
}
.ws:hover {
  background: var(--bg-hover);
}
.ws .mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--fg);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.mp {
  width: 21px;
  height: 18px;
  flex: none;
  stroke: none;
  fill: none;
}
.mp.s {
  width: 16px;
  height: 14px;
}
.mpw {
  width: 77px;
  height: 13px;
  flex: none;
  stroke: none;
  fill: currentColor;
}
.mpa {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
}
.brand.light {
  color: #fff;
}
.brand.lg {
  font-size: 20px;
  gap: 9px;
}
.brand.lg .mp {
  width: 28px;
  height: 24px;
}
.brand.lg .mpw {
  width: 107px;
  height: 18px;
}
.ws .chev {
  margin-left: auto;
  color: var(--fg-3);
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--bg);
  color: var(--fg-3);
  margin: 6px 0 10px;
}
.search kbd {
  margin-left: auto;
  font-family: var(--font);
  font-size: 11px;
  color: var(--fg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 4px;
  line-height: 16px;
}
.nav-h {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  padding: 12px 8px 4px;
}
.nav-h .chev {
  width: 12px;
  height: 12px;
}
.nav a,
.nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--r-2);
  color: var(--fg-2);
  font-weight: 500;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.nav a:hover {
  background: var(--bg-hover);
  color: var(--fg);
}
.nav a.on {
  background: var(--bg-active);
  color: var(--fg);
}
.nav a .cnt {
  margin-left: auto;
  font-size: 11px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.nav a .cnt.hot {
  color: var(--accent-fg);
  background: var(--accent);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 16px;
  font-weight: 600;
}
.sidebar .foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--fg-2);
}
.progress .bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  color: var(--fg-2);
}
.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5890f8, #2069f1);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
}

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 3;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-3);
  font-weight: 500;
}
.crumbs b {
  color: var(--fg);
  font-weight: 500;
}
.crumbs .sep {
  color: var(--fg-4);
}
.topbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.page {
  padding: 24px 32px 64px;
  max-width: 1180px;
  width: 100%;
}
.page.wide {
  max-width: none;
  padding: 0;
}
.page-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}
.page-h p {
  margin: 4px 0 0;
  color: var(--fg-2);
}
h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

/* ───────── knoppen, velden, chips ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-2);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--bg-subtle);
}
.btn:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 1px;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.btn.primary:hover {
  background: var(--accent-hover);
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--fg-2);
}
.btn.ghost:hover {
  background: var(--bg-hover);
  color: var(--fg);
}
.btn.danger {
  color: var(--red);
}
.btn.icon {
  width: 28px;
  padding: 0;
  justify-content: center;
}
.btn.md {
  height: 32px;
  padding: 0 12px;
}
.btn .chev {
  width: 12px;
  height: 12px;
  color: var(--fg-3);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.toolbar .right {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--r-2);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-2);
  font-weight: 500;
  font-size: 12px;
}
.filter b {
  color: var(--fg);
  font-weight: 500;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  overflow: hidden;
}
.seg span {
  padding: 0 10px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-2);
  border-right: 1px solid var(--border);
}
.seg span:last-child {
  border-right: 0;
}
.seg span.on {
  background: var(--bg-active);
  color: var(--fg);
}
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.tabs a {
  padding: 0 10px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-2);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a.on {
  color: var(--fg);
  border-color: var(--fg);
}
.tabs a .cnt {
  font-size: 11px;
  color: var(--fg-3);
  background: var(--bg-subtle);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-1);
  font-size: 12px;
  font-weight: 500;
  color: #1a1a1a;
  background: var(--chip-grey);
  white-space: nowrap;
}
.chip.green {
  background: var(--chip-green);
}
.chip.blue {
  background: var(--chip-blue);
}
.chip.yellow {
  background: var(--chip-yellow);
}
.chip.pink {
  background: var(--chip-pink);
}
.chip.purple {
  background: var(--chip-purple);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-4);
}
.status.ok::before {
  background: var(--green);
}
.status.warn::before {
  background: var(--amber);
}
.status.bad::before {
  background: var(--red);
}
.status.live::before {
  background: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge.ok {
  background: var(--green-soft);
  color: var(--green);
}
.badge.warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge.bad {
  background: var(--red-soft);
  color: var(--red);
}
.badge.info {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge.ai {
  background: var(--purple-soft);
  color: var(--purple);
}
.input,
.select {
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2);
  background: var(--bg);
  font: inherit;
  color: var(--fg);
  min-width: 160px;
}
.select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  cursor: pointer;
}
.select .chev {
  width: 12px;
  height: 12px;
  color: var(--fg-3);
}
.toggle {
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: var(--border-strong);
  position: relative;
  flex: none;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.toggle.on {
  background: var(--accent);
}
.toggle.on::after {
  left: 14px;
}

/* ───────── kaarten ───────── */
.grid {
  display: grid;
  gap: 16px;
}
.grid.c3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid.c2 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
}
.card .hd {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px 0;
}
.card .hd .r {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.card .bd {
  padding: 12px 16px 14px;
}
.card .ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
  font-size: 12px;
}
.card .ft a {
  color: var(--accent);
  font-weight: 500;
}
.card .ft span {
  color: var(--fg-3);
}
.metric {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 4px;
}
.metric small {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  margin-left: 8px;
  letter-spacing: 0;
}
.delta {
  font-size: 12px;
  font-weight: 500;
}
.delta.up {
  color: var(--green);
}
.delta.down {
  color: var(--red);
}
.info {
  color: var(--fg-4);
  width: 13px;
  height: 13px;
}
.spark {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 10px;
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--fg-2);
  margin-top: 8px;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}
.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  font-size: 12px;
}
.kv .k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
}
.kv .k i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.kv .v {
  font-weight: 500;
  text-align: right;
}
.stack {
  height: 8px;
  display: flex;
  gap: 2px;
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0 10px;
}
.stack i {
  display: block;
  height: 100%;
}

/* ───────── lijsten en tabellen ───────── */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  padding: 0 12px;
  height: 32px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table th .th {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.table td {
  padding: 0 12px;
  height: 36px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
}
.table tr:hover td {
  background: var(--bg-subtle);
}
.table td.r,
.table th.r {
  text-align: right;
}
.table td.first {
  font-weight: 500;
}
.table .cb {
  width: 32px;
  color: var(--fg-4);
}
.table .idx {
  width: 32px;
  color: var(--fg-4);
  font-size: 11px;
}
.table .sub {
  color: var(--fg-3);
}
.table .actions {
  text-align: right;
}
.table .actions .btn {
  visibility: hidden;
}
.table tr:hover .actions .btn {
  visibility: visible;
}
.table .foot td {
  height: 32px;
  color: var(--fg-3);
  font-size: 12px;
  border-bottom: 0;
}
.company {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--fg-2);
  background: var(--bg-subtle);
}
.bar {
  height: 6px;
  background: var(--bg-active);
  border-radius: 3px;
  overflow: hidden;
  width: 120px;
  display: inline-block;
  vertical-align: middle;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
}

.list {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
}
.group {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: var(--bg-subtle);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.group .cnt {
  color: var(--fg-3);
  font-weight: 400;
}
.group .r {
  margin-left: auto;
  color: var(--fg-3);
}
.row {
  display: grid;
  grid-template-columns: 24px 88px 1fr auto;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}
.row:last-child {
  border-bottom: 0;
}
.row:hover {
  background: var(--bg-subtle);
}
.row .id {
  color: var(--fg-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.row .title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.row .title b {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .title span {
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-3);
  font-size: 12px;
}
.row .meta .date {
  width: 46px;
  text-align: right;
}
.st {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-4);
  display: inline-block;
  flex: none;
}
.st.review {
  border-color: var(--amber);
  background: conic-gradient(var(--amber) 0 50%, transparent 50% 100%);
}
.st.ok {
  border-color: var(--green);
  background: var(--green);
}
.st.live {
  border-color: var(--accent);
  background: var(--accent);
}
.st.bad {
  border-color: var(--red);
  background: conic-gradient(var(--red) 0 100%);
}
.st.draft {
  border-style: dashed;
}

/* checklist (Vercel production checklist) */
.check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.check li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-2);
  background: var(--bg-subtle);
  color: var(--fg-2);
  font-weight: 500;
}
.check li.done {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: line-through;
}
.check li .tick {
  margin-left: auto;
  color: var(--accent);
}
.check li.now {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}

/* banner (Stripe setup banner) */
.banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-3);
  background: #0f1f3d;
  color: #fff;
  margin-bottom: 20px;
}
.banner .t b {
  display: block;
  font-weight: 600;
}
.banner .t span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
.banner .r {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.banner .btn {
  background: #fff;
  border-color: #fff;
  color: #0f1f3d;
}
.banner a.link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 12px;
}

/* empty state */
.empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--fg-3);
}
.empty b {
  display: block;
  color: var(--fg);
  font-weight: 500;
  margin: 8px 0 2px;
}
.empty a {
  color: var(--accent);
  font-weight: 500;
}

/* settings rows (Linear) */
.settings {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.settings h1 {
  margin-bottom: 4px;
}
.settings > p {
  color: var(--fg-2);
  margin: 0 0 28px;
}
.sect {
  margin: 28px 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.sect + p {
  margin: -4px 0 12px;
  color: var(--fg-2);
  font-size: 12px;
}
.srow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--bg);
  margin-bottom: 8px;
}
.srow .l {
  flex: 1;
  min-width: 0;
}
.srow .l b {
  display: block;
  font-weight: 500;
}
.srow .l span {
  display: block;
  color: var(--fg-3);
  font-size: 12px;
  margin-top: 1px;
}
.srow .v {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.srow .v .val {
  font-weight: 500;
}
.srow.stack-v {
  flex-direction: column;
  align-items: stretch;
}
.srow textarea {
  font: inherit;
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-2);
  padding: 8px;
  resize: vertical;
  color: var(--fg);
}
.side-settings {
  padding-top: 4px;
}
.side-settings .back {
  color: var(--fg-2);
}

/* detail layout (Klaviyo/Linear) */
.split {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: calc(100vh - var(--topbar));
}
.split .main {
  padding: 24px 32px 64px;
  min-width: 0;
}
.split .aside {
  border-left: 1px solid var(--border);
  padding: 20px;
  background: var(--bg);
}
.aside h4 {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-3);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.aside .prop {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 12px;
  font-size: 12px;
  margin-bottom: 20px;
}
.aside .prop .k {
  color: var(--fg-3);
}
.aside .prop .v {
  font-weight: 500;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
}
.checks li .i {
  width: 14px;
  height: 14px;
  color: var(--green);
}
.checks li.bad {
  color: var(--fg);
}
.checks li.bad .i {
  color: var(--red);
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.compare .pane {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
}
.compare .pane .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.compare .pane .lbl .r {
  margin-left: auto;
  color: var(--fg-3);
  font-weight: 400;
  font-size: 12px;
}
.shot {
  aspect-ratio: 16/10;
  background: #0b0f0f;
  position: relative;
}
.shot .h {
  position: absolute;
  left: 8%;
  top: 14%;
  width: 60%;
  height: 7%;
  background: #fff;
  border-radius: 2px;
}
.shot .h.na {
  width: 74%;
}
.shot .p {
  position: absolute;
  left: 8%;
  top: 25%;
  width: 46%;
  height: 4%;
  background: #6f7b77;
  border-radius: 2px;
}
.shot .cards {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  height: 40%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
}
.shot .cards i {
  border-radius: 4px;
  background: #f4f4f4;
}
.shot .cards i.teal {
  background: #7cc6be;
}
.shot .cards i.gold {
  background: #f6c866;
}
.shot .cards i .n {
  display: block;
  margin: 12% 10% 0;
  height: 8%;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 2px;
}
.changes {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
  margin-bottom: 20px;
}
.change {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.change:last-child {
  border-bottom: 0;
}
.change .k {
  color: var(--fg-3);
  font-size: 12px;
  padding-top: 2px;
}
.change .v s {
  color: var(--fg-3);
}
.change .v mark {
  background: var(--chip-yellow);
  color: var(--fg);
  padding: 0 3px;
  border-radius: 2px;
}
.change .v small {
  display: block;
  color: var(--fg-3);
  margin-top: 2px;
  font-size: 12px;
}
.change .v .arrow {
  color: var(--fg-4);
  margin: 0 4px;
}

/* toast */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-3);
  background: var(--bg);
  box-shadow: var(--shadow-pop);
  font-weight: 500;
}
.toast .i {
  color: var(--green);
}
.hint {
  font-size: 12px;
  color: var(--fg-3);
  margin-top: 24px;
}
@media (max-width: 1000px) {
  .app {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .grid.c3 {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}

/* ───────── bedrijven: kaarten en uitschuifpaneel (Leadinfo, Leadfeeder, Snitcher) ───────── */
.ccards {
  display: grid;
  gap: 8px;
  padding: 12px 20px 40px;
}
.ccard {
  display: grid;
  grid-template-columns: 4px 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--bg);
  cursor: pointer;
}
.ccard:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}
.ccard.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.ccard .intent {
  width: 4px;
  height: 44px;
  border-radius: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.ccard .intent i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--green);
}
.ccard .intent.warm i {
  background: var(--amber);
}
.ccard .intent.cold i {
  background: var(--fg-4);
}
.clogo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #fff;
  overflow: hidden;
}
.clogo.lg {
  width: 56px;
  height: 56px;
  font-size: 16px;
  border-radius: 10px;
}
.clogo span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.ccard .main {
  min-width: 0;
}
.ccard .name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.ccard .sub {
  color: var(--fg-3);
  font-size: 12px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ccard .facts {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--fg-2);
  flex-wrap: wrap;
}
.ccard .facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ccard .facts .i {
  width: 13px;
  height: 13px;
  color: var(--fg-4);
}
.ccard .side {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  font-size: 12px;
  color: var(--fg-3);
  min-width: 200px;
}
.ccard .side .last {
  font-variant-numeric: tabular-nums;
}
.ccard .side .var {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-2);
}
.ccard .side .var .i {
  width: 13px;
  height: 13px;
  color: var(--purple);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 900px;
  max-width: 92vw;
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-rows: var(--topbar) 40px 1fr;
  z-index: 20;
  transform: translateX(0);
  transition: transform 0.2s ease;
}
.drawer[hidden] {
  display: none;
}
.drawer .dh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.drawer .dh .name {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.drawer .dh .r {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.drawer .dtabs {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.drawer .dtabs a {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--fg-2);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.drawer .dtabs a.on {
  color: var(--fg);
  border-color: var(--fg);
}
.drawer .dbody {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 0;
}
.drawer .dmain {
  overflow: auto;
  padding: 20px 20px 40px;
}
.drawer .dside {
  overflow: auto;
  border-left: 1px solid var(--border);
  padding: 16px 16px 40px;
  background: var(--bg-sidebar);
}
.dside h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 18px 0 8px;
}
.dside h4:first-child {
  margin-top: 0;
}
.dside h4 .r {
  margin-left: auto;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
}
.dside .prop {
  display: grid;
  grid-template-columns: 20px 92px 1fr;
  gap: 8px 6px;
  align-items: start;
  font-size: 12px;
}
.dside .prop .i {
  width: 14px;
  height: 14px;
  color: var(--fg-4);
  margin-top: 1px;
}
.dside .prop .k {
  color: var(--fg-3);
}
.dside .prop .v {
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}
.dside .prop .v a {
  color: var(--accent);
}
.dside .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dside p {
  margin: 0;
  font-size: 12px;
  color: var(--fg-2);
}

.chead {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
}
.chead h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chead p {
  margin: 4px 0 0;
  color: var(--fg-2);
  max-width: 62ch;
}
.chead .acts {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  align-items: center;
}
.chead .acts .links {
  margin-left: auto;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  overflow: hidden;
}
.chead .acts .links a {
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--fg-2);
  border-right: 1px solid var(--border);
}
.chead .acts .links a:last-child {
  border-right: 0;
}
.chead .acts .links a:hover {
  background: var(--bg-subtle);
  color: var(--fg);
}
.dsec {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 18px;
}
.dsec .sh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.dsec .sh h3 {
  font-size: 14px;
}
.dsec .sh .sub {
  color: var(--fg-3);
  font-size: 12px;
}
.dsec .sh .r {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stat {
  background: var(--bg-subtle);
  border-radius: var(--r-2);
  padding: 10px 12px;
}
.stat small {
  display: block;
  color: var(--fg-3);
  font-size: 12px;
}
.stat b {
  display: block;
  font-weight: 600;
  margin-top: 2px;
  font-size: 13px;
}
.stat b.live {
  color: var(--red);
}
.phase {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 10px;
}
.phase div {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-active);
}
.phase div.on {
  background: var(--accent);
}
.phase-lbl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 4px;
}
.phase-lbl span:nth-child(2) {
  text-align: center;
}
.phase-lbl span:nth-child(3) {
  text-align: right;
}
.phase-lbl b {
  color: var(--fg);
  font-weight: 600;
}
.visitor {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  margin-bottom: 10px;
}
.visitor .vh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.visitor .vh .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-active);
  display: grid;
  place-items: center;
  color: var(--fg-2);
}
.visitor .vh b {
  font-weight: 600;
  display: block;
}
.visitor .vh small {
  color: var(--fg-3);
  display: block;
}
.visitor .vh .r {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  color: var(--fg-3);
}
.visitor .vh .r .chip {
  margin-left: 6px;
}
.tl {
  list-style: none;
  margin: 0;
  padding: 10px 14px 6px 14px;
}
.tl li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 0 0 12px;
  position: relative;
}
.tl li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl li:last-child::before {
  display: none;
}
.tl .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--fg-4);
  background: var(--bg);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.tl .dot.start {
  border-color: var(--green);
}
.tl .dot.end {
  border-color: var(--red);
  border-radius: 2px;
}
.tl .dot.conv {
  border-color: var(--accent);
  background: var(--accent);
}
.tl .dot.var {
  border-color: var(--purple);
  background: var(--purple);
}
.tl b {
  font-weight: 500;
  display: block;
}
.tl b.start {
  color: var(--green);
}
.tl b.end {
  color: var(--red);
}
.tl b.conv {
  color: var(--accent);
}
.tl small {
  color: var(--fg-3);
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.tl .sub-ev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px 6px 0 0;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--fg-2);
}
.tl .sub-ev .i {
  width: 12px;
  height: 12px;
}
.tl .ts {
  font-size: 12px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pages {
  display: grid;
  gap: 6px;
}
.pages div {
  display: grid;
  grid-template-columns: 1fr 120px 40px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.pages .bar {
  width: 100%;
}
.pages .n {
  text-align: right;
  color: var(--fg-2);
  font-variant-numeric: tabular-nums;
}
.clogo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.clogo.sm {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  font-size: 9px;
}

/* ───────── eigen stijl (16 sep): de site tekent zichzelf ─────────
   Vijf vaste onderdelen bovenop de basis: paginakaart met pins, route met stations,
   de AI-assistent die in de ik-vorm spreekt, bewijstegels en functiekaarten met een schema.
   Illustraties zijn altijd schema's uit de eigen bouwstenen (blokken, lijnen, chips, pins). */

/* paginakaart: de pagina van de klant als schema; pins zeggen wat er met een element gebeurt */
.pmap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--bg);
  padding: 8px;
  display: grid;
  gap: 5px;
}
.pmap .pm-b {
  position: relative;
  border-radius: 3px;
  background: var(--bg-subtle);
  min-height: 12px;
}
.pmap .pm-b.hero {
  height: 44px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 10px;
}
.pmap .pm-b.hero i {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: var(--fg-4);
  width: 55%;
}
.pmap .pm-b.hero i + i {
  width: 38%;
  background: var(--border-strong);
}
.pmap .pm-b.hero em {
  display: block;
  width: 34px;
  height: 8px;
  border-radius: 2px;
  background: var(--fg-3);
  margin-top: 2px;
}
.pmap .pm-b.logos {
  height: 16px;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0 8px;
  background: none;
  border: 1px dashed var(--border-strong);
}
.pmap .pm-b.logos i {
  flex: 1;
  height: 6px;
  border-radius: 2px;
  background: var(--border-strong);
}
.pmap .pm-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.pmap .pm-row .pm-b {
  height: 26px;
}
.pmap .pm-b.contact {
  height: 20px;
  background: var(--accent-soft);
}
.pmap .pm-b.footer {
  height: 12px;
  background: var(--bg-active);
}
.pmap .lbl {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pmap .pins {
  position: absolute;
  top: 3px;
  right: 3px;
  display: flex;
  gap: 3px;
  z-index: 1;
}
.pin {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 600;
  color: #fff;
  background: var(--fg-3);
  box-shadow: 0 0 0 2px var(--bg);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pin.edit {
  background: var(--accent);
}
.pin.proof {
  background: var(--green);
}
.pin.ai {
  background: var(--purple);
}
.pin.fixed {
  background: var(--fg-4);
}
.pmap .pm-b.hi-edit {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  background: var(--accent-soft);
}
.pmap .pm-b.hi-proof {
  box-shadow: inset 0 0 0 1.5px var(--green);
  background: var(--green-soft);
}
.pmap .pm-b.hi-ai {
  box-shadow: inset 0 0 0 1.5px var(--purple);
  background: var(--purple-soft);
}
.pmap .pm-b.hi-fixed {
  opacity: 0.55;
}
.pmap.sm {
  padding: 6px;
  gap: 4px;
}
.pmap.sm .pm-b.hero {
  height: 30px;
  gap: 3px;
}
.pmap.sm .pm-row .pm-b {
  height: 18px;
}
.pmap.sm .pm-b.logos {
  height: 12px;
}
.pmap.sm .pm-b.contact {
  height: 14px;
}
.pmap.sm .pm-b.footer {
  height: 8px;
}
.pmap.sm .pin {
  min-width: 14px;
  height: 14px;
  font-size: 8.5px;
}
.pmap.sm .lbl {
  display: none;
}
.pmap.xs {
  padding: 4px;
  gap: 2px;
  width: 84px;
}
.pmap.xs .pm-b.hero {
  height: 14px;
  padding: 0 4px;
  gap: 2px;
}
.pmap.xs .pm-b.hero i {
  height: 2px;
}
.pmap.xs .pm-b.hero em {
  height: 4px;
  width: 16px;
  margin-top: 1px;
}
.pmap.xs .pm-b.logos {
  height: 6px;
  padding: 0 3px;
  gap: 2px;
}
.pmap.xs .pm-b.logos i {
  height: 2px;
}
.pmap.xs .pm-row {
  gap: 2px;
}
.pmap.xs .pm-row .pm-b {
  height: 9px;
}
.pmap.xs .pm-b.contact {
  height: 7px;
}
.pmap.xs .pm-b.footer {
  height: 4px;
}
.pmap.xs .lbl,
.pmap.xs .pins {
  display: none;
}
.pmap.xs .pm-b.hi-edit,
.pmap.xs .pm-b.hi-proof,
.pmap.xs .pm-b.hi-ai {
  box-shadow: none;
}
.pmap-cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 6px;
}
.pinkey {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--fg-3);
}
.pinkey span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pinkey .pin {
  min-width: 10px;
  width: 10px;
  height: 10px;
  padding: 0;
  box-shadow: none;
}

/* de AI-assistent spreekt: één vast blok, ik-vorm, wat ik zag en wat ik van jou nodig heb */
.gids {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: var(--bg-subtle);
  color: var(--fg);
  font-size: 12.5px;
  line-height: 1.5;
}
.gids .mk {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
}
.gids .mk .i {
  width: 14px;
  height: 14px;
}
.gids .who {
  display: block;
  font-size: 11px;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 1px;
}
.gids b {
  font-weight: 600;
}
.gids .acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* route met stations: de onboarding als reis, in de zijbalk (verticaal) en op het overzicht (horizontaal) */
.route {
  display: grid;
  padding: 4px 4px 8px;
}
.route .stn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 4px;
  border-radius: var(--r-2);
  font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
}
.route .stn:hover {
  background: var(--bg-hover);
}
.route .stn .t {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route .stn .n {
  margin-left: auto;
  font-size: 11px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.route .stn::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 22px;
  bottom: -6px;
  width: 2px;
  background: var(--border);
}
.route .stn:last-child::before {
  display: none;
}
.route .stn.on::before,
.route .stn.done::before {
  background: var(--border-strong);
}
.route .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--fg-3);
  flex: none;
  z-index: 1;
  line-height: 1;
}
.route .dot .i {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}
.route .stn.done .dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.route .stn.on .dot {
  border-color: var(--accent);
  color: var(--accent);
}
.route .stn.on {
  color: var(--fg);
}
.route .stops {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 2px 0 8px 22px;
}
.route .stops::before {
  content: "";
  position: absolute;
  left: 11px;
  top: -6px;
  bottom: 0;
  width: 2px;
  background: var(--border-strong);
}
.route .stops a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--r-2);
  font-size: 12px;
  color: var(--fg-2);
}
.route .stops a:hover {
  background: var(--bg-hover);
}
.route .stops a.on {
  background: var(--bg-active);
  color: var(--fg);
  font-weight: 500;
}
.route .stops a .o {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg);
  flex: none;
}
.route .stops a.done .o {
  background: var(--green);
  border-color: var(--green);
}
.route .stops a.on .o {
  border-color: var(--accent);
  background: var(--accent);
}
.route-h {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.route-h .stn {
  position: relative;
  padding-top: 12px;
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-h .stn::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}
.route-h .stn.done::before {
  background: var(--green);
}
.route-h .stn.on::before {
  background: var(--accent);
}
.route-h .stn.on {
  color: var(--fg);
}
.route-h .stn.done {
  color: var(--green);
}
.route-h .stn small {
  display: block;
  font-weight: 400;
  color: var(--fg-3);
  font-size: 11px;
}
.route-next {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-3);
  background: var(--bg);
  margin-top: 12px;
}
.route-next b {
  display: block;
  font-weight: 600;
}
.route-next span {
  font-size: 12px;
  color: var(--fg-2);
}
.route-next .k {
  display: block;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* bewijstegels: het bewijs onder een suggestie, per bron een tegel met het getal voorop */
.evtiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 2px;
}
.evt {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: var(--bg);
  min-width: 110px;
  max-width: 220px;
}
.evt b {
  grid-row: span 2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.evt .s {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}
.evt .s::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-4);
}
.evt.traffic .s::before {
  background: var(--accent);
}
.evt.crm .s::before {
  background: var(--green);
}
.evt.site .s::before {
  background: var(--purple);
}
.evt.result .s::before {
  background: var(--amber);
}
.evt span:not(.s) {
  font-size: 11px;
  color: var(--fg-2);
  line-height: 1.25;
}

/* functiekaarten: wat Firmtale doet, elk met een schema en het getal van nu */
.fcard {
  min-width: 0;
}
.fcard .diag {
  min-width: 0;
  margin: 12px 16px 0;
  min-height: 84px;
  border-radius: var(--r-2);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  overflow: hidden;
}
.fcard .hd {
  padding-top: 12px;
}
.dg-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  flex-wrap: wrap;
}
.dg-flow .box {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: var(--r-2);
  padding: 4px 7px;
  color: var(--fg-2);
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dg-flow .box.mono {
  font-family: var(--mono);
  font-size: 10.5px;
}
.dg-flow .box .i {
  width: 12px;
  height: 12px;
}
.dg-arr {
  width: 18px;
  height: 2px;
  background: var(--border-strong);
  position: relative;
  flex: none;
}
.dg-arr::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left-color: var(--border-strong);
}
.dg-ba {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--fg-3);
  text-align: center;
}
.dg-ba > div {
  display: grid;
  gap: 3px;
  justify-items: center;
}
.dg-bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 68px;
}
.dg-bars div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 10px;
  color: var(--fg-3);
  height: 100%;
}
.dg-bars i {
  display: block;
  width: 36px;
  border-radius: 3px 3px 0 0;
  background: var(--border-strong);
}
.dg-bars i.v {
  background: var(--accent);
}
.dg-bars b {
  font-size: 11px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* ───────── tool-logo's: vierkante tegel (Integraties, onboarding S4, Herkenning, Bedrijven) · register: tool-logos.js ───────── */
.tool-tile { --s: 32px; width: var(--s); height: var(--s); flex: none; box-sizing: border-box; border-radius: calc(var(--s) * 0.25); background: #fff; border: 1px solid #E3E8F2; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; vertical-align: middle; }
.tool-tile img { width: 68%; height: 68%; object-fit: contain; display: block; }
.tool-tile.bleed { border-color: transparent; }
.tool-tile.bleed img { width: 100%; height: 100%; }
.tool-tile.tool-abbr { background: #F3F6FC; color: #334155; font-weight: 700; font-size: calc(var(--s) * 0.34); letter-spacing: 0; line-height: 1; }
/* instellingen › herkenning */
.rec-row,.rec-add{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--border);border-radius:10px;margin-bottom:8px;background:var(--bg)}
.rec-row .l,.rec-add .l{flex:1;min-width:0;display:grid;gap:3px}.rec-row .l span,.rec-add .l span{color:var(--fg-3);font-size:12.5px}
.rec-row .v,.rec-add .v{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.rec-prio{display:grid;gap:2px}.rec-unv{font-size:11.5px;color:var(--fg-3)}.rec-unv code{font-size:11px;margin:2px 4px 0 0;display:inline-block}
.rec-plans{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.rec-plan{display:grid;gap:4px;text-align:left;padding:14px;border:1.5px solid var(--border);border-radius:10px;background:var(--bg);font:inherit;color:inherit;cursor:pointer}
.rec-plan span{font-size:12.5px;color:var(--fg-3)}.rec-plan.on{border-color:var(--accent,#2069f1);background:#f3f7ff}
.rec-meter{height:6px;background:var(--bg-subtle,#f1f5f9);border-radius:99px;overflow:hidden;margin-top:6px;max-width:320px}.rec-meter b{display:block;height:100%;background:var(--accent,#2069f1)}
.rec-secret{padding:10px 12px;border-radius:10px;background:#fffbeb;margin-bottom:8px;font-size:13px;word-break:break-all}
.status.bad{background:#fef2f2;color:#b91c1c}
@media (max-width:640px){.rec-row,.rec-add{flex-direction:column}.rec-row .v,.rec-add .v{justify-content:flex-start}.rec-plans{grid-template-columns:1fr}.rec-prio{display:flex}.rec-add .v .input{width:100%}}
.rec-add code,.rec-row code,.settings p code{word-break:break-all;white-space:normal}
