/* ============================================================
   SLYM Agency, Klantportaal (Bold-stijl)
   Zelfde taal als de SLYM Agency Bold website:
   #0a0a0a + bone #f2f0ea + lime #ceff1a, Space Grotesk 500
   titels met strakke tracking, Space Mono voor knoppen en
   kolomkoppen, Anton (scheef) alleen voor het SLYM-logo.
   Geen kaders om alles heen: dichte vlakken, open kolommen.
   ============================================================ */

:root {
  --bg:          #0a0a0a;
  --surface:     #131312;
  --surface-2:   #1a1a19;
  --surface-3:   #252523;
  --bone:        #f2f0ea;
  --border:      rgba(242, 240, 234, 0.14);
  --border-soft: rgba(242, 240, 234, 0.07);

  --text:        #f2f0ea;
  --text-dim:    #8a8880;
  --text-faint:  #5c5b56;

  --accent:      #ceff1a;
  --accent-600:  #b8e612;
  --accent-glow: rgba(206, 255, 26, 0.14);

  --ok:          #4ade80;
  --ok-border:   rgba(74, 222, 128, 0.32);
  --ok-bg:       rgba(74, 222, 128, 0.06);
  --warn:        #ffb020;
  --danger:      #ff5a4d;
  --info:        #8ab4ff;

  --radius:      22px;
  --radius-sm:   12px;
  --maxw:        1320px;
  --ease:        cubic-bezier(.16, 1, .3, 1);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* grain, zoals op de site */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 700;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(2) infinite;
}
@keyframes grain { to { transform: translate(-8%, 4%); } }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
input, textarea { caret-color: var(--accent); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

::selection { background: var(--accent); color: #0a0a0a; }

/* ---------- Brand / logo: Anton, scheef, hoofdletters ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Anton", var(--font-display);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  transform: skewX(-8deg);
  font-size: 30px;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}
.brand .dot { display: none; }
.brand small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
  transform: skewX(8deg);
}
.sidebar__brand .brand { font-size: 34px; }

/* ============================================================
   LOGIN / WACHTWOORD / ONBOARDING
   Het formulier is een "venster" met drie stipjes in de balk,
   hetzelfde motief als het contactformulier op de site.
   ============================================================ */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: var(--bg);
}

.auth {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.auth__brand { font-size: clamp(56px, 9vw, 84px); margin-bottom: 44px; }
.auth__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.auth__title {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.auth__sub { color: var(--text-dim); margin: 12px 0 28px; max-width: 34ch; }
.auth__form { width: 100%; text-align: left; }

/* venster-variant: alleen formulieren met labelvelden (login, wachtwoord) */
.auth__form:has(.field) {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .02);
  overflow: hidden;
}
.auth__form:has(.field)::before {
  content: "";
  display: block;
  height: 44px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle, var(--border) 3.5px, transparent 4px) 18px 50% / 8px 8px no-repeat,
    radial-gradient(circle, var(--border) 3.5px, transparent 4px) 32px 50% / 8px 8px no-repeat,
    radial-gradient(circle, var(--border) 3.5px, transparent 4px) 46px 50% / 8px 8px no-repeat;
}
.auth__form .field {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
}
.auth__form .field label {
  flex: 0 0 var(--label-w, 96px);
  white-space: nowrap;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  transition: color .3s;
}
.auth__form .field:focus-within label { color: var(--text); }
.auth__form .field input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none !important;
}
.auth__form .field input::placeholder { color: rgba(242, 240, 234, .3); }
.auth__form .field:last-of-type { margin-bottom: 0; }

/* 2FA: QR-code + handmatige sleutel bovenin het venster */
.mfa-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
}
.mfa-setup[hidden] { display: none; }
.mfa-qr {
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  line-height: 0;
}
.mfa-qr img { display: block; width: 168px; height: 168px; }
.mfa-secret { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.mfa-secret code {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text);
  user-select: all;
  word-break: break-all;
}
.auth__form--mfa .field input {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: .4em;
}

/* wachtwoord instellen: bredere labelkolom zodat de velden uitlijnen */
.auth__form--pw { --label-w: 150px; }
.field__toggle {
  flex: none;
  background: none;
  border: 0;
  padding: 4px 0 4px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  cursor: pointer;
  transition: color .3s;
}
.field__toggle:hover,
.field__toggle:focus-visible { color: var(--text); outline: none; }

.pw-checks {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 14px 22px 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.pw-checks li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.pw-checks__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background .3s, box-shadow .3s;
}
.pw-checks li.is-ok { color: var(--text-dim); }
.pw-checks li.is-ok .pw-checks__dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }

.auth__form .btn--primary,
.auth .btn--primary { width: 100%; }
.auth__form:has(.field) .btn--primary { width: calc(100% - 44px); margin: 22px 22px 0; }
.auth__form:has(.field) .btn--primary:last-child { margin-bottom: 22px; }
.auth__link {
  display: block;
  text-align: center;
  margin: 16px 0 20px;
  font-size: 13px;
  color: var(--text-dim);
  transition: color .3s;
}
.auth__link:hover { color: var(--text); }
.auth__lang { margin-top: 40px; }

@media (max-width: 480px) {
  .auth__brand { margin-bottom: 34px; }
  .auth__form .field { padding: 14px 18px; gap: 12px; }
  .auth__form .field label { flex-basis: auto; min-width: 86px; }
  .auth__form:has(.field) .btn--primary { width: calc(100% - 36px); margin: 18px 18px 0; }
  .auth__form:has(.field) .btn--primary:last-child { margin-bottom: 18px; }
  .auth__form--pw .field { flex-wrap: wrap; row-gap: 6px; }
  .auth__form--pw .field label { flex-basis: 100%; }
  .pw-checks { padding: 12px 18px 0; }
}

/* --- Onboarding: stappen + voortgangsbalk --- */
.onb-progress {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--border-soft);
  overflow: hidden;
  margin-bottom: 56px;
}
.onb-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .6s var(--ease);
}
.onb-step { text-align: center; }
.onb-step .auth__title { margin-bottom: 28px; }
.onb-step input {
  width: 100%;
  margin-bottom: 30px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 4px 14px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
  transition: border-color .4s var(--ease);
}
.onb-step input:focus { outline: none; border-color: var(--accent); }
.onb-back {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-faint);
  transition: color .3s;
}
.onb-back:hover { color: var(--text); }

/* --- Velden (algemeen) --- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input,
.field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  transition: border-color .3s;
}
.field input:focus,
.field select:focus { outline: none; border-color: var(--accent); }
.field input::placeholder { color: var(--text-faint); }

/* --- Knoppen: pillen in Space Mono, zoals op de site --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .3s var(--ease);
}
.btn--primary {
  width: 100%;
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.btn--ghost {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
@media (hover: hover) {
  .btn--primary:hover { background: var(--bone); border-color: var(--bone); }
  .btn--ghost:hover { background: var(--text); color: var(--bg); }
}
.btn--sm { padding: 10px 20px; font-size: 11px; }

.login-note {
  margin-top: 24px;
  max-width: 38ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-faint);
  text-align: center;
}
.login-note strong { color: var(--text-dim); font-weight: 500; }
.login-note code { color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }
.login-note a { color: var(--text); border-bottom: 1px solid var(--accent); white-space: nowrap; }

.login-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-faint);
}
.login-lang button {
  background: none;
  border: none;
  padding: 2px 4px;
  letter-spacing: inherit;
  color: var(--text-faint);
  cursor: pointer;
  transition: color .3s;
}
.login-lang button:hover { color: var(--text); }
.login-lang button.is-active { color: var(--accent); }

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 22px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--border-soft);
}
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 38px;
}

/* --- Laadscherm bij paginawissel: effen doek, zoals de site-overgang --- */
.main-loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 260px;                 /* = breedte van de sidebar */
  background: var(--bg);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.main-loader.is-on { opacity: 1; visibility: visible; }
.main-loader::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  border-top-color: var(--accent);
  animation: i18n-spin .7s linear infinite;
}
@media (max-width: 820px) {
  .main-loader { left: 0; }
}

/* --- Foutmelding / info op de inlog- en onboardingpagina --- */
.login-error {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 90, 77, 0.07);
  border: 1px solid rgba(255, 90, 77, 0.3);
  color: var(--danger);
  font-size: 13px;
  text-align: center;
}

/* --- Laadscherm bij taalwissel --- */
.i18n-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.i18n-loader.is-on { opacity: 1; visibility: visible; }
.i18n-loader__spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  border-top-color: var(--accent);
  animation: i18n-spin .7s linear infinite;
}
@keyframes i18n-spin { to { transform: rotate(360deg); } }

/* --- Taalkeuze --- */
.langsel { position: relative; margin-left: auto; }
.langsel__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.langsel__btn:hover,
.langsel.is-open .langsel__btn { border-color: var(--text); color: var(--text); }
.langsel__btn svg { transition: transform .35s var(--ease); }
.langsel.is-open .langsel__btn svg { transform: rotate(180deg); }

.langsel__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #151515;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 60;
}
.langsel.is-open .langsel__menu { opacity: 1; transform: none; pointer-events: auto; }
.langsel__menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .3s;
}
.langsel__menu li:hover { color: var(--text); }
.langsel__menu li.is-active { color: var(--text); }
.langsel__menu li.is-active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   TREE NAV (vanilla herbouw van het animated-file-tree component)
   Lime L-lijn glijdt mee naar de actieve tab.
   ============================================================ */
.tree {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px;
  user-select: none;
  overflow-y: auto;
}

.tree-rail {
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  box-sizing: border-box;
  border-left: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  border-bottom-left-radius: 6px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition:
    transform .5s var(--ease),
    height .5s var(--ease),
    left .5s var(--ease),
    opacity .18s ease;
}
.tree-rail.is-visible { opacity: 1; }
.tree-rail.is-appearing { animation: tree-rail-appear .4s var(--ease); }
@keyframes tree-rail-appear {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; clip-path: inset(0 0 -4px 0); }
}
.tree-rail.is-still { transition: none; }

/* --- Section ------------------------------------------------ */
.tree-section { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.tree-section + .tree-section { margin-top: 18px; }
.tree-section--admin { display: none; }
body.is-admin .tree-section--admin { display: flex; }

.tree-section__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 8px 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-faint);
  transition: color .3s;
}
.tree-section__toggle:hover { color: var(--text-dim); }
.tree-section__toggle span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tree-section__toggle .chev {
  width: 13px; height: 13px;
  transition: transform .35s var(--ease);
}
.tree-section[data-expanded="false"] .tree-section__toggle .chev { transform: rotate(-90deg); }

/* --- Collapsible panel --- */
.tree-panel {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows .4s var(--ease), opacity .3s ease;
}
.tree-panel > div { overflow: hidden; }
[data-expanded="false"] > .tree-panel {
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
}
.tree-folder > .tree-panel { padding-left: 16px; }

/* --- Tree list + SVG connector lines ----------------------- */
.tree-list { position: relative; display: flex; flex-direction: column; gap: 2px; }
.tree-lines {
  position: absolute;
  top: 0;
  left: 12.5px;
  z-index: 1;
  pointer-events: none;
  color: var(--border);
}

/* --- Tree item / folder row ------------------------------- */
.tree-item,
.tree-folder__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 10px 0 32px;
  background: none;
  border: none;
  border-radius: 10px;
  text-align: left;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  cursor: pointer;
  outline: none;
  text-decoration: none;
  transition: color .3s;
}
.tree-item .row,
.tree-folder__toggle .row {
  display: flex; align-items: center; gap: 10px; min-width: 0; z-index: 2;
  transition: transform .5s var(--ease);
}
.tree-item svg,
.tree-folder__toggle svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-faint); transition: color .3s; }
.tree-item .lbl,
.tree-folder__toggle .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (hover: hover) {
  .tree-item:hover,
  .tree-folder__toggle:hover { color: var(--text); }
  .tree-item:hover .row { transform: translateX(4px); }
  .tree-item:hover svg,
  .tree-folder__toggle:hover svg { color: var(--text); }
}
.tree-item:focus-visible,
.tree-folder__toggle:focus-visible { box-shadow: 0 0 0 1px var(--accent); }

.tree-item.is-active { font-weight: 500; color: var(--text); }
.tree-item.is-active > .row > svg { color: var(--accent); }

.tree-folder.is-active > .tree-folder__toggle { color: var(--text); font-weight: 500; }
.tree-folder.is-active > .tree-folder__toggle > .row > svg:not(.chev) { color: var(--accent); }

.tree-folder__toggle .chev {
  width: 13px; height: 13px;
  transition: transform .35s var(--ease);
}
.tree-folder[data-expanded="true"] > .tree-folder__toggle .chev { transform: rotate(90deg); }

.tree-badge {
  z-index: 2;
  flex-shrink: 0;
  border-radius: 100px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  background: var(--accent);
  color: #0a0a0a;
}

.sidebar__foot {
  padding: 16px 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
}
.sidebar__foot .avatar,
.sidebar__foot .who { opacity: 0; transition: opacity .3s ease; }
body.profile-ready .sidebar__foot .avatar,
body.profile-ready .sidebar__foot .who { opacity: 1; }
.sidebar__foot .who { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; min-width: 0; }
.sidebar__foot .who span { display: block; color: var(--text-faint); font-weight: 400; font-size: 12.5px; }
.sidebar__foot a { margin-left: auto; color: var(--text-faint); transition: color .3s; }
.sidebar__foot a:hover { color: var(--text); }

/* ---------- Main ---------- */
.main { padding: 0 0 96px; min-width: 0; }
.grid > *, .card, .table-scroll { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 44px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.topbar h1 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.04em; }
.topbar .spacer { flex: 1; }
.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  place-items: center;
  cursor: pointer;
}
.hamburger svg { width: 17px; height: 17px; display: block; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  color: var(--text-faint);
  font-size: 14px;
  width: 260px;
  transition: border-color .3s;
}
.search:focus-within { border-color: var(--text); }
.search svg { width: 15px; height: 15px; flex-shrink: 0; }
.search input { background: none; border: none; outline: none; width: 100%; min-width: 0; color: var(--text); }
.search input::placeholder { color: var(--text-faint); }
.icon-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.icon-btn svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .icon-btn:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
}

.view { padding: 18px 44px 0; max-width: var(--maxw); }
.view[hidden] { display: none; }
.view__head { margin-bottom: 44px; }
.view__head p {
  color: var(--text-dim);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 44ch;
  margin-top: 6px;
}

/* Overzicht: de begroeting is een bone "poster"-paneel, net als de homepage-hero */
body[data-page="overzicht"] .view__head {
  background: var(--bone);
  color: #0a0a0a;
  border-radius: clamp(20px, 2.4vw, 32px);
  padding: clamp(36px, 6vh, 64px) clamp(26px, 4vw, 56px) clamp(30px, 5vh, 48px);
  min-height: clamp(240px, 34vh, 360px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 64px;
}
.view__greet {
  font-size: clamp(38px, 6.4vw, 104px);
  letter-spacing: -0.055em;
  line-height: .95;
}
body[data-page="overzicht"] .view__head p { color: rgba(10, 10, 10, .6); margin-top: 18px; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 20px; }
.grid--stats { grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* dichte, afgeronde vlakken zonder rand (zoals de dienstenkaarten op de site) */
.card {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px);
}
.card--pad-lg { padding: clamp(26px, 2.8vw, 38px); }
.card__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.card__title h3 { font-size: clamp(20px, 1.7vw, 24px); letter-spacing: -0.03em; }
.card__title a {
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color .3s;
}
.card__title a:hover { color: var(--accent); }

/* stats: open kolommen met alleen een lijn erboven, grote cijfers */
.grid--stats .card.stat {
  background: none;
  border-radius: 0;
  border-top: 1px solid var(--border);
  padding: 22px 0 0;
}
.stat .label {
  font-size: 14px;
  color: var(--text-dim);
}
.stat .value {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 68px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: .95;
  margin: 18px 0 12px;
  transition: transform .5s var(--ease);
}
@media (hover: hover) { body:not([data-page="beheer"]) .stat:hover .value { transform: translateX(8px); } }
.delta { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.delta--up { color: var(--accent); }
.delta--down { color: var(--danger); }
.delta--flat { color: var(--text-faint); }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}
table.data th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0 14px 14px;
  border-bottom: 1px solid var(--border);
}
table.data th:first-child,
table.data td:first-child { padding-left: 0; }
table.data td {
  padding: 17px 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  transition: color .3s;
}
table.data tr:last-child td { border-bottom: none; }
table.data td.strong { color: var(--text); font-weight: 500; white-space: nowrap; }
@media (hover: hover) { table.data tbody tr:hover td { color: var(--text); } }

.grid--2 table.data { min-width: 0; }

/* ---------- Bestandenlijst + upload ---------- */
.filelist { display: flex; flex-direction: column; }
.file-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.file-row:last-child { border-bottom: none; }
.file-row__ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.file-row__ico svg { width: 16px; height: 16px; }
.file-row__main { min-width: 0; flex: 1; }
.file-row__name { color: var(--text); font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row__meta { color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
.file-row__act { display: flex; gap: 18px; flex-shrink: 0; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-faint);
  font-size: 15px;
}
.empty-state svg { width: 30px; height: 30px; margin: 0 auto 12px; opacity: 0.5; }

.dropzone {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.dropzone:hover,
.dropzone.is-drag { border-color: var(--accent); background: var(--accent-glow); }
.dropzone svg { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--accent); }
.dropzone input[type="file"] { display: none; }

.upload-queue { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 100px;
}
.upload-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex-shrink: 0; }
.upload-item.is-done .dot { background: var(--ok); }
.upload-item.is-error .dot { background: var(--danger); }

.field-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}
.field-row label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.field-row select,
.field-row input {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  transition: border-color .3s;
}
.field-row select option { background: #151515; }
.field-row select:focus,
.field-row input:focus { outline: none; border-color: var(--accent); }
.field-row input[type="checkbox"] { width: 16px; padding: 0; border-radius: 4px; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* status-tags: kleine pil, stipje in de statuskleur */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--ok     { color: var(--ok); }
.tag--warn   { color: var(--warn); }
.tag--danger { color: var(--danger); border-color: rgba(255, 90, 77, .35); }
.tag--info   { color: var(--info); }
.tag--muted  { color: var(--text-faint); }

.link-btn {
  color: var(--text);
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 1px solid var(--accent);
  padding: 0 0 1px;
  transition: color .3s;
}
.link-btn:hover { color: var(--accent); }
.link-btn--danger { color: var(--danger); border-bottom-color: rgba(255, 90, 77, .5); }
.link-btn--danger:hover { color: var(--text); border-bottom-color: var(--danger); }
.link-btn--plain { color: var(--text); border-bottom-color: var(--border); }

#adminPanel .btn { padding: 11px 22px; font-size: 11px; }

/* ---------- Admin-paneel ---------- */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  overflow-x: auto;
}
.admin-tab {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  transition: color .3s, border-color .3s, background .3s;
}
.admin-tab:hover { color: var(--text); border-color: var(--text); }
.admin-tab.is-active { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }

.admin-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-inline input {
  flex: 1;
  min-width: 200px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  color: var(--text);
  transition: border-color .3s;
}
.admin-inline input:focus { outline: none; border-color: var(--accent); }
.admin-inline .btn { padding: 11px 22px; font-size: 11px; }

.admin-actions { white-space: nowrap; }
.admin-actions > * + * { margin-left: 24px; }
.admin-self { color: var(--text-faint); font-size: 13px; }
.admin-note { color: var(--text-dim); font-size: 14px; margin: 2px 0 18px; }

.klant-mail { font-weight: 400; font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.field-hint { display: block; font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.admin-check-cell { display: flex; align-items: flex-end; padding-bottom: 12px; }
.field-row .admin-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
}
.field-row .admin-check span { margin: 0; }
.admin-mini {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  color: var(--text);
  font-size: 13px;
  max-width: 190px;
}
.admin-mini option { background: #151515; }
.admin-mini:focus { outline: none; border-color: var(--accent); }

/* --- Vinkjes --- */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
input[type="checkbox"]:hover { border-color: var(--text); }
input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
input[type="checkbox"]:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
table.data td input[type="checkbox"] { width: 15px; height: 15px; }

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--bone);
  color: #0a0a0a;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
  z-index: 9999;
}
.admin-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.admin-toast.is-error { background: var(--danger); color: #0a0a0a; }

/* ---------- Bar chart (pure CSS) ---------- */
.chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.6vw, 20px);
  height: 220px;
  padding-top: 12px;
}
.chart .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
  justify-content: flex-end;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chart .bar i {
  width: 100%;
  max-width: 56px;
  border-radius: 100px;
  background: var(--surface-3);
  transition: background .4s var(--ease);
}
.chart .bar:last-child i { background: var(--accent); }
.chart .bar:last-child { color: var(--text); }
@media (hover: hover) { .chart .bar:hover i { background: var(--bone); } }

/* ---------- Insights list: open rijen met lijn ertussen ---------- */
.insights { display: flex; flex-direction: column; }
.insight {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-soft);
}
.insight:first-child { border-top: 0; padding-top: 0; }
.insight .ico {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.insight .ico svg { width: 15px; height: 15px; }
.insight p { font-size: 15px; line-height: 1.6; color: var(--text-dim); }
.insight p b { color: var(--text); font-weight: 500; }

/* ---------- Support ---------- */
.contact-list { display: flex; flex-direction: column; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 15px;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .ico { color: var(--accent); width: 18px; flex-shrink: 0; display: flex; }
.contact-row > span:last-child { color: var(--text-faint); margin-left: auto; font-size: 13.5px; }

textarea.input {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  line-height: 1.6;
  transition: border-color .3s;
}
textarea.input::placeholder, .field-inline input::placeholder { color: var(--text-faint); }
textarea.input:focus, .field-inline input:focus { outline: none; border-color: var(--accent); }
.field-inline {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
}
.field-inline input {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color .3s;
}

.form-sent {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ok);
  display: none;
}
.form-sent.show { display: block; }

/* ---------- Misc ---------- */
.section-gap { height: 24px; }
.grid--stats + .section-gap { height: 64px; }
.muted { color: var(--text-faint); }
.divider { height: 1px; background: var(--border-soft); margin: 24px 0; }

.scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 40;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1600px) {
  .grid--2 { grid-template-columns: 1fr; }
}
table.data td + td { white-space: nowrap; }
table.data td:nth-child(2) { white-space: normal; }

@media (max-width: 1080px) {
  .grid--stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    width: 280px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform .5s var(--ease);
  }
  .sidebar.is-open { transform: translateX(0); }
  .scrim.is-open { display: block; }
  .hamburger { display: grid; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .view, .topbar { padding-left: 18px; padding-right: 18px; }
  .topbar { padding-top: 16px; padding-bottom: 16px; }
  .search { display: none; }
  .view__head { margin-bottom: 32px; }
  body[data-page="overzicht"] .view__head { margin-bottom: 44px; min-height: 0; padding-top: 48px; }
  .card { border-radius: 18px; }
}

@media (max-width: 520px) {
  .grid--stats { grid-template-columns: 1fr; }
  .field-inline { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  body::after { display: none; }
}

/* ============================================================
   Analytics (Search Console): data-dicht, scherpere hoeken
   ============================================================ */
.ana {
  --r: 6px;
  transition: opacity .3s var(--ease);
  font-variant-numeric: tabular-nums;
}
.ana.is-loading { opacity: .45; pointer-events: none; }
.ana-loading { display: inline-flex; align-items: center; gap: 12px; }
.ana-spin {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  border-top-color: var(--text);
  animation: i18n-spin .7s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .ana-spin { animation-duration: 2s; } }
@keyframes anaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes anaReveal { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% -1% -10% 0); } }
.ana .lc, .ana .ana-sum, .ana .ana-tile__v, .ana .ana-data tbody { animation: anaFade .45s var(--ease) both; }
.ana .lc__plot svg { animation: anaReveal .9s var(--ease) both; }
.ana--quiet .lc, .ana--quiet .ana-sum, .ana--quiet .ana-tile__v, .ana--quiet .lc__plot svg { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .ana .lc, .ana .ana-sum, .ana .ana-tile__v, .ana .ana-data tbody, .ana .lc__plot svg { animation: none; }
}
.ana .delta--up { color: var(--ok); }
/* rustig palet: geen lime op deze pagina, alleen wit/grijs + groen/rood voor stijging/daling */
.ana .seg__btn.is-on { background: var(--text); color: #0a0a0a; }
.ana .seg__btn:focus-visible, .ana button:focus-visible, .ana .ana-client:focus-visible { outline-color: var(--text); }
.ana .card { border-radius: var(--r); }
.ana-card { padding: clamp(20px, 2vw, 28px); margin-bottom: 12px; }

/* toolbar */
.ana-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
}
.ana-meta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ana-meta span + span::before { content: "/"; margin: 0 10px; opacity: .5; }
.ana-meta span:first-child { color: var(--text-dim); }

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--r, 6px);
  background: var(--surface);
}
.seg__btn {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px 13px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.seg__btn:hover { color: var(--text); }
.seg__btn.is-on { background: var(--accent); color: #0a0a0a; }
.seg__btn:focus-visible, .ana button:focus-visible, .ana-client:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ana-client {
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238a8880' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 0;
  border-radius: var(--r);
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  cursor: pointer;
  max-width: 100%;
}

/* metric-tegels (kiezen de grafiek): gekozen tegel = wit vlak, zoals Search Console */
.ana-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.ana-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  padding: 18px 20px 16px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.ana-tile:hover { background: var(--surface-2); }
.ana-tile.is-on { background: var(--text); color: #0a0a0a; }
.ana-tile__l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ana-tile.is-on .ana-tile__l { color: rgba(10, 10, 10, .6); }
.ana-tile__v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: inherit;
}
.ana-tile__d {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.ana-tile__d .delta { font-size: 11px; font-weight: 400; }
.ana-tile__p { color: var(--text-faint); }
/* op het witte vlak: donkerder groen/rood/grijs voor leesbaarheid */
.ana-tile.is-on .delta--up { color: #15803d; }
.ana-tile.is-on .delta--down { color: #c2291c; }
.ana-tile.is-on .delta--flat,
.ana-tile.is-on .ana-tile__p { color: rgba(10, 10, 10, .5); }
.ana-tile.is-on:focus-visible { outline-color: var(--text); outline-offset: 3px; }

/* grafiekkaart */
.ana-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 18px;
}
.ana-card__head h3 { font-size: 17px; letter-spacing: -0.02em; font-weight: 500; }
.ana-card__head h3 .muted { font-weight: 400; }
.ana-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ana-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--text); }
.sw--prev { border-top: 2px dashed var(--text-faint); }
.ana-toggle {
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 10px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color .2s, border-color .2s;
}
.ana-toggle:hover { color: var(--text); }
.ana-toggle.is-on { color: var(--text); border-color: var(--text-faint); }
.ana-toggle.is-on::before { content: "✓ "; }

/* lijngrafiek */
.lc {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 260px auto;
  column-gap: 12px;
}
.lc__y { position: relative; grid-row: 1; grid-column: 1; min-width: 30px; }
.lc__y span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  white-space: nowrap;
}
.lc__plot { position: relative; grid-row: 1; grid-column: 2; touch-action: pan-y; cursor: crosshair; }
.lc__plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lc__grid line { stroke: var(--border-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lc__line, .lc__prev {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.lc__line { stroke: var(--text); stroke-width: 2; }
.lc__prev { stroke: var(--text-faint); stroke-width: 1.5; stroke-dasharray: 4 4; }
.lc__cross {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}
.lc__dot {
  position: absolute;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--surface);
  pointer-events: none;
}
.lc__dot--prev { background: var(--text-faint); }
.lc__cross[hidden], .lc__dot[hidden] { display: none; }
.lc__x { position: relative; grid-row: 2; grid-column: 2; height: 30px; border-top: 1px solid var(--border); }
.lc__x span {
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.lc__x span::before {
  content: "";
  position: absolute;
  left: 50%; top: -10px;
  height: 5px;
  border-left: 1px solid var(--border);
}
.lc__x span.is-start { transform: none; }
.lc__x span.is-start::before { left: 0; }
.lc__x span.is-end { transform: translateX(-100%); }
.lc__x span.is-end::before { left: auto; right: 0; }

.chart-tip {
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  background: var(--bone);
  color: #0a0a0a;
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.chart-tip[hidden] { display: none; }
.chart-tip__row { display: flex; align-items: center; gap: 8px; }
.chart-tip__row span { color: rgba(10, 10, 10, .6); }
.chart-tip__row b { margin-left: auto; padding-left: 14px; font-weight: 700; }
.chart-tip .sw { border-top-color: #0a0a0a; width: 12px; }
.chart-tip .sw--prev { border-top: 2px dashed rgba(10, 10, 10, .45); }

/* samenvatting onder de grafiek */
.ana-sum {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.ana-sum > div { padding: 14px 24px 0 0; margin-right: 24px; }
.ana-sum > div + div { padding-left: 24px; border-left: 1px solid var(--border-soft); margin-left: -24px; }
.ana-sum dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.ana-sum dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--text); }

/* tabelkaart met tabs */
.ana-table { padding-top: 0; }
.ana-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  margin: 0 0 6px;
}
.ana-tabs__list { display: flex; overflow-x: auto; scrollbar-width: none; }
.ana-tabs__list::-webkit-scrollbar { display: none; }
.ana-tabs__btn {
  position: relative;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 18px 16px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color .2s;
}
.ana-tabs__btn:first-child { padding-left: 0; }
.ana-tabs__btn:hover { color: var(--text); }
.ana-tabs__btn.is-on { color: var(--text); }
.ana-tabs__btn.is-on::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: -1px;
  height: 2px;
  background: var(--text);
}
.ana-tabs__btn:first-child.is-on::after { left: 0; }
.ana-csv {
  flex: none;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ana-csv:hover { color: var(--text); border-color: var(--text-faint); }

table.ana-data { font-size: 14px; min-width: 620px; }
table.ana-data th { padding: 12px 12px 10px; }
table.ana-data th button {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
  display: inline-flex; gap: 4px; align-items: center;
}
table.ana-data th.is-sorted { color: var(--text); }
table.ana-data th .sort { color: var(--text); min-width: 8px; }
table.ana-data th.num, table.ana-data td.num { text-align: right; }
table.ana-data th:first-child { padding-left: 0; }
table.ana-data td { padding: 11px 12px; }
table.ana-data td.num { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
table.ana-data td.key { color: var(--text); max-width: 380px; overflow-wrap: anywhere; }
table.ana-data td.key--mono { font-family: var(--font-mono); font-size: 12.5px; }
table.ana-data td.key a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
table.ana-data td.key a:hover { border-bottom-color: var(--text-dim); }
@media (hover: hover) { table.ana-data tbody tr:hover td { background: var(--surface-2); } }
.minibar {
  display: inline-block;
  vertical-align: middle;
  width: 44px;
  height: 4px;
  margin-right: 10px;
  background: var(--surface-3);
  border-radius: 1px;
  overflow: hidden;
}
.minibar i { display: block; height: 100%; background: var(--text); }
.ana-more {
  display: block;
  margin: 10px 0 0;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ana-more:hover { color: var(--text); }
.ana-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--text-faint);
}
.ana-source svg { flex: none; width: 14px; height: 14px; }

@media (max-width: 900px) {
  .ana-tiles { grid-template-columns: repeat(2, 1fr); }
  .ana-meta { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  .seg { max-width: 100%; overflow-x: auto; }
  .seg__btn { padding: 8px 10px; }
  .ana-tile { padding: 14px 14px 12px; }
  .lc { grid-template-rows: 200px auto; column-gap: 8px; }
  .ana-sum > div { padding-right: 16px; margin-right: 16px; }
  .ana-sum > div + div { padding-left: 16px; margin-left: -16px; }
  .ana-tabs__btn { padding: 16px 12px 14px; }
}

/* ---------- Analytics: bron-schakelaar (Google Zoeken / Bedrijfsprofiel) ---------- */
.ana-switch {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  margin: 0 0 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ana-switch::-webkit-scrollbar { display: none; }
.ana-switch__btn {
  position: relative;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color .2s;
}
.ana-switch__btn:hover { color: var(--text-dim); }
.ana-switch__btn.is-on { color: var(--text); }
.ana-switch__btn.is-on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--text);
}
.ana-switch__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.ana[hidden] { display: none; }

/* ---------- Bedrijfsprofiel ---------- */
.gbp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gbp-grid > .ana-card { margin-bottom: 12px; }

.gbp-split { padding: 4px 0 18px; }
.gbp-split + .gbp-split { padding-top: 18px; border-top: 1px solid var(--border-soft); }
.gbp-split__top, .gbp-split__n {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.gbp-split__top { font-size: 15px; color: var(--text-dim); margin-bottom: 10px; }
.gbp-split__top b { color: var(--text); font-weight: 500; font-family: var(--font-mono); font-size: 13px; }
.gbp-split__bar { height: 6px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.gbp-split__bar i { display: block; height: 100%; background: var(--text); border-right: 2px solid var(--surface); }
.gbp-split__n { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

.gbp-score { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.gbp-score__v { font-family: var(--font-display); font-size: clamp(40px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.gbp-score__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-top: 6px; }
.gbp-stars { letter-spacing: 2px; font-size: 14px; color: var(--surface-3); }
.gbp-stars .on { color: var(--text); }
.gbp-review { padding: 14px 0; border-top: 1px solid var(--border-soft); }
.gbp-review__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; }
.gbp-review__top .muted { font-family: var(--font-mono); font-size: 11px; }
.gbp-review p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.gbp-replied {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}
table.gbp-kw { min-width: 0; }
.gbp-select {
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  max-width: 260px;
}

@media (max-width: 900px) {
  .gbp-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Bedrijfsprofiel: binnenkort */
.gbp-soon { padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 48px); }
.gbp-soon__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--text);
  border-radius: 4px;
  padding: 5px 9px;
  margin-bottom: 22px;
}
.gbp-soon h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.035em; font-weight: 500; margin-bottom: 12px; }
.gbp-soon p { max-width: 52ch; font-size: 15px; line-height: 1.6; color: var(--text-dim); margin-bottom: 22px; }
.gbp-soon .ana-toggle { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
