/* Coachloom — design system. Mobiel-eerst, premium, datagedreven.
   Licht canvas, donkere tekst, accent, monospace voor cijfers/zones. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* THRESHOLD — "the instrument for endurance". Graphite × off-white × volt. */
  --bg: #0a0b0d;
  --bg-2: #101216;
  --surface: #121419;
  --surface-2: #171a20;
  --surface-3: #1e222b;
  --ink: #f4f3ee;          /* warme off-white, redactioneel — geen pure #fff */
  --ink-2: #a6abb4;
  --ink-soft: #696e77;
  --line: #23262e;
  --line-2: #191b21;

  /* huiskleur = "volt" lime; white-label: coach overschrijft via branding.js */
  --accent: #c8f04a;
  --accent-600: color-mix(in srgb, var(--accent) 82%, #fff);   /* donker thema: iets lichter (gloeit) */
  --accent-soft: rgba(200, 240, 74, .13);
  --accent-ring: rgba(200, 240, 74, .28);
  --on-accent: #0a0b0d;    /* tekstkleur óp de accent (auto berekend in branding.js) */

  /* feedback — ok als teal zodat het niet botst met de lime accent */
  --ok: #2dd4bf;
  --ok-soft: rgba(45, 212, 191, .14);
  --warn: #fbbf24;
  --err: #f87171;

  /* zones (Z1 koel -> Z7 heet) */
  --z1: #5b8fd6; --z2: #2dd4a7; --z3: #84cc4f; --z4: #fbbf24; --z5: #fb923c; --z6: #f4663a; --z7: #ef4444;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255,255,255,.03);
  --shadow: 0 2px 6px rgba(0, 0, 0, .4), 0 20px 44px -24px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255,255,255,.04);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, .45), 0 52px 100px -36px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255,255,255,.05);

  --display: 'Bricolage Grotesque', 'Space Grotesk', sans-serif;
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --sidebar-w: 258px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Wobble-guard: geen horizontale overflow/rubber-band. 'clip' i.p.v. 'hidden' zodat
   position:sticky (mobiele topbalk) blijft werken. */
html, body { margin: 0; padding: 0; overflow-x: clip; overscroll-behavior-x: none; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1100px 560px at 100% -12%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 55%),
    radial-gradient(1000px 560px at -8% -6%, rgba(70,90,150,.14) 0%, transparent 50%),
    linear-gradient(transparent 0 96%, rgba(255,255,255,.018) 100%) 0 0 / 100% 4px,
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -.01em;
}

.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.32rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-soft); }
/* ticker-eyebrow: mono, met threshold-streepje ervoor */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--ink-soft); font-weight: 400; }
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent-ring); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; letter-spacing: -.04em; font-size: 1.12rem; color: var(--ink); min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Lange organisatienaam: nette ellipsis i.p.v. afkappen/overlappen */
.brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-bar .brand { flex: 0 1 auto; min-width: 0; margin-right: 10px; }
.mobile-bar > a:not(.brand), .mobile-bar > button { flex: none; }
.brand img { flex: none; }
.brand .mark {
  position: relative; width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: radial-gradient(120% 120% at 30% 20%, var(--surface-3), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  box-shadow: 0 0 16px -5px var(--accent-ring), inset 0 1px 0 rgba(255,255,255,.05);
}
.brand .mark::before {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 15h5l3-8h2l3 6h7' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/22px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 15h5l3-8h2l3 6h7' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/22px no-repeat;
}

/* ---------- Buttons ---------- */
button, .btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent)); color: var(--on-accent);
  font: inherit; font-weight: 600; cursor: pointer; letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -6px var(--accent-ring), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
/* shimmer-veeg over de knop bij hover */
button::after, .btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%); transform: translateX(-130%); transition: transform .6s var(--ease); pointer-events: none; }
button:hover::after, .btn:hover::after { transform: translateX(130%); }
button:hover, .btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 4px 8px rgba(0,0,0,.4), 0 14px 30px -10px var(--accent-ring), inset 0 1px 0 rgba(255,255,255,.3); color: var(--on-accent); }
button:active, .btn:active { transform: translateY(1px); }
button.ghost, .btn.ghost { background: var(--surface-2); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
button.ghost:hover, .btn.ghost:hover { background: var(--surface-3); border-color: #323a47; filter: none; box-shadow: var(--shadow-sm); color: var(--ink); }
button.subtle, .btn.subtle { background: var(--surface-3); color: var(--ink-2); box-shadow: none; }
button.subtle:hover, .btn.subtle:hover { background: #283041; color: var(--ink); filter: none; box-shadow: none; }
button.small { padding: 7px 12px; font-size: .85rem; border-radius: 9px; }
button.sm, .btn.sm { padding: 6px 11px; font-size: .8rem; border-radius: 9px; }
button.icon { padding: 8px; width: 36px; height: 36px; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Forms ---------- */
label { display: block; font-size: .82rem; color: var(--ink-2); margin: 0 0 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font: inherit; outline: none; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: #323a47; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
input::placeholder, textarea::placeholder { color: #a7adb8; }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 150px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.card.flush { padding: 0; overflow: hidden; }
.card.flat { box-shadow: none; }

/* ---------- App layout ---------- */
.app { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
@media (min-width: 860px) { .app { grid-template-columns: var(--sidebar-w) 1fr; } }

.sidebar {
  display: none; flex-direction: column; gap: 3px; padding: 18px 14px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-right: 1px solid var(--line); position: sticky; top: 0; height: 100dvh;
}
@media (min-width: 860px) { .sidebar { display: flex; } }
.sidebar .brand { padding: 6px 10px 16px; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 500; font-size: .93rem; transition: background .12s ease, color .12s ease;
}
.side-link:hover { background: var(--bg-2); color: var(--ink); }
.side-link.active { background: var(--accent-soft); color: var(--accent-600); font-weight: 600; }
.side-link.active::before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-link svg { width: 19px; height: 19px; flex: none; opacity: .9; }
.side-link.soon { opacity: .5; cursor: default; pointer-events: none; }
.side-link.soon::after { content: "binnenkort"; margin-left: auto; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--line-2); }
.side-user { display: flex; align-items: center; gap: 10px; }

/* mobile top bar */
.mobile-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(10,12,17,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
}
@media (min-width: 860px) { .mobile-bar { display: none; } }
.mb-back { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); box-shadow: none; transition: transform .13s var(--ease), background .14s var(--ease); }
.mb-back:hover { background: var(--bg-2); color: var(--ink); filter: none; }
.mb-back:active { transform: scale(.9); }
.mb-back[hidden] { display: none; }

/* mobile bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-around; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(10,12,17,.82); backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid var(--line);
}
@media (min-width: 860px) { .bottom-nav { display: none; } }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; color: var(--ink-soft); padding: 4px 14px; border-radius: 10px; }
.bottom-nav a.active { color: var(--accent-600); }
.bottom-nav svg { width: 22px; height: 22px; }

.content { padding: 20px 18px 96px; }
@media (min-width: 860px) { .content { padding: 30px 34px; } }
.content-inner { max-width: 920px; margin: 0 auto; }

/* ---------- Avatar ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem; color: #fff; flex: none; letter-spacing: -.02em;
  background: linear-gradient(140deg, #38445a, #1a1f2b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.4);
}
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: .75rem; }
.avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: .85rem; font-weight: 500; }
.back-link:hover { color: var(--ink); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 18px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat.hero { background: linear-gradient(155deg, var(--surface) 30%, var(--accent-soft)); border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); }
.stat .k { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat .v { font-family: var(--mono); font-size: 1.7rem; font-weight: 600; line-height: 1.1; margin-top: 4px; letter-spacing: -.02em; }
.stat .v small { font-size: .82rem; color: var(--ink-soft); font-weight: 500; }
.stat .v.accent { color: var(--accent-600); }

/* ---------- Progressie / trends ---------- */
.trend-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .trend-grid { grid-template-columns: repeat(3, 1fr); } }
.trend-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 6px; box-shadow: var(--shadow-sm);
}
.trend-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trend-title { font-size: .72rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.trend-delta { font-family: var(--mono); font-size: .76rem; font-weight: 600; }
.trend-delta.up { color: #1f9d63; }
.trend-delta.down { color: #d23b2e; }
.trend-delta.flat { color: var(--ink-soft); }
.trend-now { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; line-height: 1.1; margin: 2px 0 4px; letter-spacing: -.02em; }
.trend-now small { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }
.trend-card svg { width: 100%; height: auto; display: block; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .1s ease; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { font-family: var(--mono); text-align: right; }
.table-card { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; background: var(--surface); box-shadow: var(--shadow-sm); }

/* editable steps table inputs */
table input { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 10px; text-align: right; }
table input:hover { border-color: var(--line); }
table input:focus { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 3px var(--accent-ring); }

/* ---------- List items ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm); transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease;
}
.list-item:hover { border-color: #33405a; box-shadow: var(--shadow); transform: translateY(-1px); }
.list-item .grow { min-width: 0; }
.list-item .title { display: block; font-weight: 600; letter-spacing: -.01em; }
.list-item .sub { display: block; font-size: .84rem; color: var(--ink-soft); }
.chev { color: #44506a; flex: none; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-weight: 600; letter-spacing: -.005em; }
.badge.accent { background: var(--accent-soft); color: var(--accent-600); }
.zone-chip { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #fff; font-family: var(--mono); font-weight: 600; font-size: .72rem; }
.zone-bar { width: 4px; align-self: stretch; border-radius: 4px; }
.badge.status-planned { background: rgba(255,255,255,.06); color: #b4bcc9; }
.badge.status-completed { background: var(--ok-soft); color: var(--ok); }
.badge.status-skipped { background: rgba(248,113,113,.16); color: var(--err); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
button.danger, .btn.danger { background: rgba(248,113,113,.1); color: #fca5a5; border-color: rgba(248,113,113,.32); box-shadow: none; }
button.danger:hover, .btn.danger:hover { background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.5); filter: none; color: #fecaca; }

/* ---------- Key/value rows ---------- */
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.kv:last-child { border-bottom: none; }
.kv > span:first-child { color: var(--ink-soft); font-size: .86rem; }

/* ---------- Kalender ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 600; text-align: center; padding: 4px 0; }
.cal-cell { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 5px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.cal-cell.out { background: var(--surface-2); opacity: .65; }
.cal-cell.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cal-day { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); text-decoration: none; align-self: flex-start; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.cal-day:hover { background: var(--accent-soft); color: var(--accent-600); }
.cal-cell.today .cal-day { background: var(--accent); color: #fff; font-weight: 600; }
.cal-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-chip { display: flex; align-items: center; gap: 5px; font-size: .68rem; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.cal-chip:hover { background: var(--bg-2); }
.cal-chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cal-chip span { overflow: hidden; text-overflow: ellipsis; }
.cal-chip.status-completed { opacity: .7; }
.cal-chip.status-completed span { text-decoration: line-through; }
.cal-chip.status-skipped { opacity: .55; }
@media (max-width: 640px) {
  .cal-cell { min-height: 64px; }
  .cal-chip span { display: none; }
  .cal-chip { justify-content: center; padding: 4px; }
}

/* ---------- Workout-builder ---------- */
.builder { border-top: 1px solid var(--line-2); padding-top: 16px; }
.wo-viz { display: flex; align-items: flex-end; gap: 2px; height: 104px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; overflow: hidden; }
.wo-bar { display: block; border-radius: 3px 3px 0 0; min-width: 2px; align-self: flex-end; }
.wo-summary { display: flex; gap: 8px; margin: 12px 0 14px; flex-wrap: wrap; }
.wo-summary span { display: inline-flex; align-items: baseline; gap: 5px; font-size: .76rem; color: var(--ink-soft); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.wo-summary b { color: var(--ink); font-size: .92rem; }
.wo-steps { display: flex; flex-direction: column; gap: 10px; }
.wo-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 11px 12px 11px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.wo-step::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 999px; background: var(--step-col, var(--accent)); }
.wo-step-num { position: absolute; left: 16px; top: -9px; font-family: var(--mono); font-size: .6rem; font-weight: 700; color: var(--ink-soft); background: var(--surface); padding: 0 5px; }
.wo-step-main { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.wo-kind { font-weight: 600; }
.wo-step select { padding: 7px 9px; font-size: .82rem; width: auto; min-width: 0; }
.wo-step select[data-f="zone"], .wo-step select[data-f="reczone"] { max-width: 150px; }
.wo-step input { padding: 6px 7px; font-size: .82rem; text-align: center; }
.wo-inl { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--ink-soft); white-space: nowrap; }
.wo-note { width: 100%; height: 38px; padding: 7px 11px !important; font-size: .82rem; text-align: left !important; }
.wo-step-act { margin-left: auto; display: flex; gap: 5px; }
.wo-step-act button { padding: 5px 9px; font-size: .85rem; line-height: 1; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; border-radius: 8px; }
.wo-step-act button:hover { background: var(--bg-2); filter: none; color: var(--ink); }
.wo-step-act button.danger:hover { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.wo-step-act button:disabled { opacity: .35; cursor: default; }
/* leesbare stappenlijst (geplande-workout-detail) */
.wo-lines { display: flex; flex-direction: column; gap: 6px; }
.wo-line { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--ink-2); }
.wo-line-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 44px 24px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--ink-soft); }
.empty.slim { padding: 18px 20px; }
.empty .ico { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); }

/* ---------- Auth (split hero) ---------- */
.auth { display: grid; grid-template-columns: 1fr; min-height: 100dvh; }
@media (min-width: 920px) { .auth { grid-template-columns: 1.05fr .95fr; } }
.auth-hero {
  display: none; position: relative; overflow: hidden; padding: 56px;
  color: #fff; background: radial-gradient(900px 500px at 0% 0%, #2a2f3a, #14161b 60%);
  flex-direction: column; justify-content: space-between;
}
@media (min-width: 920px) { .auth-hero { display: flex; } }
.auth-hero .brand { color: #fff; }
.auth-hero .brand .mark { background: linear-gradient(150deg, var(--accent), var(--accent-600)); }
.auth-hero h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 2.9rem); line-height: 1.04; letter-spacing: -.035em; max-width: 15ch; margin: 0 0 .35em; }
.auth-hero .lead { color: #b9bec8; max-width: 42ch; margin: 18px 0 0; font-size: 1.02rem; line-height: 1.55; }
.auth-glow { position: absolute; width: 460px; height: 460px; right: -120px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, var(--accent), transparent 60%); opacity: .35; filter: blur(20px); }
.auth-curve { position: absolute; inset: 0; opacity: .14; }
.feature-row { display: flex; gap: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.feature-row .f { font-size: .9rem; color: #d3d7df; }
.feature-row .f b { color: #fff; font-family: var(--mono); display: block; font-size: 1.05rem; }
.auth-form { display: grid; place-items: center; padding: 28px; }
.auth-card { width: 100%; max-width: 408px; }
.seg { display: inline-flex; background: #0c0f15; border: 1px solid var(--line-2); border-radius: 11px; padding: 4px; gap: 2px; margin-bottom: 20px; width: 100%; }
.seg a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .88rem; transition: all .12s ease; }
.seg a.active { background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Chart ---------- */
.chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: .8rem; color: var(--ink-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* ---------- Misc ---------- */
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grow { flex: 1; }
.right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: 16px; }
details > summary { cursor: pointer; }
/* ---------- Bijsnij-/zoom-venster ---------- */
.cropper-overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(6,8,12,.62); backdrop-filter: blur(6px); animation: fadeIn .18s ease; }
.cropper-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px; max-width: calc(100vw - 40px); }
.cropper-head { font-weight: 700; font-family: var(--display); letter-spacing: -.01em; margin: 0 0 14px; }
.cropper-stage { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface-2); margin: 0 auto; cursor: grab; touch-action: none; user-select: none; }
.cropper-stage:active { cursor: grabbing; }
.cropper-img { position: absolute; top: 0; left: 0; transform-origin: 0 0; max-width: none; pointer-events: none; }
.cropper-mask { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.cropper-mask.round { border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 9999px rgba(6,8,12,.5); }
.cropper-zoom { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); margin: 14px 2px 4px; }
.cropper-range { flex: 1; accent-color: var(--accent); }
.cropper-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ---------- Snelzoeken (command palette) ---------- */
.cmdk-overlay { position: fixed; inset: 0; z-index: 85; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(6,8,12,.5); backdrop-filter: blur(5px); animation: fadeIn .14s ease; }
.cmdk { width: 100%; max-width: 540px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.cmdk-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.cmdk-input { flex: 1; border: none; background: none; box-shadow: none; padding: 0; font-size: 1rem; color: var(--ink); }
.cmdk-input:focus { outline: none; box-shadow: none; }
.cmdk-top kbd, .side-search kbd { font-family: var(--mono); font-size: .66rem; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.cmdk-results { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 11px; border: none; background: none; box-shadow: none; border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink); }
.cmdk-item.active, .cmdk-item:hover { background: var(--accent-soft); filter: none; }
.cmdk-item .cmdk-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .cmdk-sub { font-size: .78rem; color: var(--ink-soft); flex: none; }
.cmdk-empty { padding: 22px 14px; text-align: center; color: var(--ink-soft); font-size: .9rem; }

/* ---------- Rondleiding (product tour) ---------- */
.tour-overlay { position: fixed; inset: 0; z-index: 90; }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(6,8,12,.60); border: 2px solid var(--accent); transition: left .35s var(--ease), top .35s var(--ease), width .35s var(--ease), height .35s var(--ease); pointer-events: none; }
.tour-pop { position: fixed; width: 330px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px 18px 14px; z-index: 91; animation: fadeIn .2s ease; }
.tour-pop.center { box-shadow: 0 0 0 9999px rgba(6,8,12,.60), var(--shadow-lg); }
.tour-num { font-family: var(--mono); font-size: .68rem; color: var(--ink-soft); letter-spacing: .04em; }
.tour-pop h3 { margin: 6px 0 6px; font-family: var(--display); letter-spacing: -.01em; font-size: 1.18rem; }
.tour-pop p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
.tour-dots { display: flex; gap: 5px; margin: 14px 0; }
.tour-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .2s; }
.tour-dots span.on { background: var(--accent); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; }
.tour-skip { background: none; border: none; box-shadow: none; color: var(--ink-soft); font: inherit; font-size: .82rem; cursor: pointer; padding: 6px 4px; }
.tour-skip:hover { color: var(--ink-2); filter: none; }

/* ---------- Hulp & contact (zwevende knop) ---------- */
.help-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .14s var(--ease), color .14s var(--ease); padding: 0; }
.help-fab:hover { color: var(--ink); transform: translateY(-2px); filter: none; }
.help-fab:active { transform: scale(.94); }
@media (max-width: 860px) { .help-fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; width: 42px; height: 42px; } }
.help-pop { position: fixed; right: 22px; bottom: 80px; z-index: 71; width: 250px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; animation: fadeIn .16s ease; }
@media (max-width: 860px) { .help-pop { bottom: calc(134px + env(safe-area-inset-bottom)); right: 16px; } }
.help-h { font-weight: 700; font-size: .78rem; color: var(--ink-soft); padding: 8px 10px 6px; }
.help-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: none; background: none; box-shadow: none; border-radius: 10px; color: var(--ink-2); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.help-item:hover { background: var(--surface-2); color: var(--ink); filter: none; }
.help-item svg { color: var(--ink-soft); flex: none; }

.side-search { display: flex; align-items: center; gap: 9px; width: 100%; margin: 0 0 6px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-soft); cursor: pointer; box-shadow: none; font: inherit; font-size: .88rem; transition: border-color .14s var(--ease), background .14s var(--ease); }
.side-search:hover { background: var(--bg-2); color: var(--ink-2); filter: none; }
.side-search svg { width: 17px; height: 17px; flex: none; }
.side-search span { flex: 1; text-align: left; }

/* ---------- Voorbeeldworkouts ---------- */
.tpl-group { margin-bottom: 18px; }
.tpl-h { margin: 0 0 8px; font-size: .82rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tpl-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 700px) { .tpl-grid { grid-template-columns: 1fr 1fr; } }
.tpl-card { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); transition: border-color .16s var(--ease), transform .12s var(--ease); }
.tpl-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-1px); color: var(--ink); }
.tpl-card:active { transform: scale(.99); }
.tpl-card .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tpl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tpl-name { font-weight: 600; }
.tpl-sub { font-size: .8rem; color: var(--ink-soft); }
.tpl-add { font-size: .8rem; font-weight: 600; color: var(--accent-600); flex: none; }

.toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: var(--surface-3); color: var(--ink); border: 1px solid var(--line); padding: 11px 18px; border-radius: 11px; box-shadow: var(--shadow-lg); z-index: 50; font-size: .9rem; max-width: 90vw; font-weight: 500; animation: toastIn .2s ease; }
.toast.err { background: rgba(248,113,113,.16); border-color: rgba(248,113,113,.4); color: #fecaca; }
@media (min-width: 860px) { .toast { bottom: 24px; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fade-in { animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Billing / Abonnement ---------- */
.sub-banner { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radius); margin: 0 0 22px; border: 1px solid var(--line); background: var(--surface-2, var(--bg-2)); box-shadow: var(--shadow-sm); }
.sub-banner strong { font-size: .95rem; }
.sub-banner span { font-size: .85rem; color: var(--ink-soft); }
.sub-banner.ok { border-left: 4px solid var(--accent); }
.sub-banner.warn { border-left: 4px solid var(--err); }

.plan-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }

.plan-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.plan-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md, var(--shadow-sm)); }
.plan-card.current { border-color: var(--accent); }
.plan-tag { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan-name { font-weight: 700; font-size: 1.05rem; }
.plan-price { margin: 8px 0 2px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .mono { font-family: var(--mono); font-size: 2rem; font-weight: 700; }
.plan-price small { color: var(--ink-soft); font-size: .85rem; }
.plan-athletes { color: var(--ink-soft); font-size: .85rem; margin-bottom: 14px; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-feats li { position: relative; padding-left: 22px; font-size: .85rem; color: var(--ink); }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/13px no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/13px no-repeat; }
.plan-card button { width: 100%; }

/* ---------- Dashboard (minimalistisch-premium) ---------- */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.dash-hi { margin: 2px 0 4px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.dash-sub { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
@media (min-width: 720px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); padding: 18px 20px; display: block; color: inherit; transition: background .14s ease; }
a.kpi:hover { background: var(--surface-2); }
.kpi-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 600; }
.kpi-v { font-family: var(--mono); font-size: 1.85rem; font-weight: 600; line-height: 1.05; margin: 8px 0 3px; letter-spacing: -.02em; }
.kpi-v.accent { color: var(--accent-600); }
.kpi-v.ok { color: var(--ok); }
.kpi-v.warn { color: var(--warn); }
.kpi-v.muted { color: var(--ink-soft); }
.kpi-hint { font-size: .78rem; color: var(--ink-soft); }

.dash-cols { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 900px) { .dash-cols { grid-template-columns: 1fr 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 4px 4px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; }
.panel-head h2 { margin: 0; font-size: 1rem; }
.panel-link { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.panel-link:hover { color: var(--accent); }

.row-list, .mover-list { display: flex; flex-direction: column; }
.d-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: inherit; border-top: 1px solid var(--line-2); transition: background .12s ease; }
.d-row:hover { background: var(--surface-2); }
.row-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.row-title { font-weight: 600; font-size: .92rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { font-size: .8rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-key { font-size: .84rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.row-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 34px; flex: none; line-height: 1.1; }
.row-date b { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.row-date span { font-family: var(--mono); font-size: 1.05rem; font-weight: 600; }
.mover-delta { font-family: var(--mono); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.mover-delta.up { color: var(--ok); }
.mover-delta.down { color: var(--err); }
.mover-delta.flat { color: var(--ink-soft); }
.panel .empty.slim { border: none; background: none; padding: 16px; }
.atn-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.atn-tags .badge { font-size: .68rem; padding: 2px 8px; }

/* ---------- Doel-kaart ---------- */
.goal-card {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
  padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--surface) 38%, var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: var(--shadow-sm);
}
.goal-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--accent-600); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); }
.goal-title { font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-sub { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-count { flex: none; font-size: .82rem; font-weight: 600; color: var(--accent-600); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); padding: 6px 12px; border-radius: 999px; }
.goal-count.today { color: #fff; background: var(--accent); border-color: var(--accent); }
.goal-count.past { color: var(--ink-soft); border-color: var(--line); }

/* ---------- Onboarding-wizard ---------- */
.wizard { display: grid; place-items: center; min-height: calc(100dvh - 120px); padding: 8px 0; }
.wiz-card { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px 30px 22px; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.wiz-dots { display: flex; gap: 7px; }
.wiz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all .2s ease; }
.wiz-dot.on { background: var(--accent); width: 22px; border-radius: 999px; }
.wiz-dot.done { background: var(--accent-600); }
.wiz-body { min-height: 220px; }
.wiz-hero { text-align: center; padding: 6px 0 18px; }
.wiz-hero h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-bottom: .35em; }
.lead { color: var(--ink-2); font-size: 1rem; max-width: 44ch; margin: 0 auto; }
.wiz-check { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-600); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; margin: 0 auto 16px; }
.wiz-body-head { margin-bottom: 16px; }
.wiz-body-head h2 { margin: 0 0 .2em; }
.wiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wiz-actions .btn[data-next] { min-width: 130px; justify-content: center; }

.wiz-split { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 620px) { .wiz-split { grid-template-columns: 1.1fr .9fr; } }
.wiz-logo { width: 110px; height: 110px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); display: grid; place-items: center; padding: 10px; }
.wiz-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.wiz-preview { background: linear-gradient(165deg, var(--surface), var(--accent-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; align-self: start; }
.wiz-pv-brand { display: flex; align-items: center; gap: 11px; }
.wiz-pv-brand img { height: 30px; max-width: 120px; object-fit: contain; }
.wiz-pv-brand .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(150deg, var(--accent), var(--accent-600)); flex: none; }
.wiz-pv-brand strong { display: block; font-size: .95rem; letter-spacing: -.01em; }
.wiz-pv-brand span { font-size: .78rem; color: var(--ink-soft); }
.wiz-pv-stat { display: flex; align-items: baseline; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.wiz-pv-stat span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
.wiz-pv-stat b { font-size: 1.5rem; color: var(--accent-600); }
.wiz-pv-stat b small { font-size: .8rem; color: var(--ink-soft); }

.wiz-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wiz-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: none; transition: all .14s ease; }
.wiz-chip:hover { border-color: #d3d6cf; filter: none; color: var(--ink); }
.wiz-chip b { font-size: .95rem; }
.wiz-chip span { font-size: .76rem; color: var(--ink-soft); font-family: var(--mono); }
.wiz-chip.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.wiz-chip.on b, .wiz-chip.on:hover b { color: var(--accent-600); }

.seg-row { display: inline-flex; background: #0c0f15; border: 1px solid var(--line-2); border-radius: 11px; padding: 4px; gap: 2px; }
.seg-btn { background: transparent; color: var(--ink-soft); box-shadow: none; font-size: .86rem; padding: 7px 16px; border-radius: 8px; font-weight: 600; }
.seg-btn:hover { background: transparent; color: var(--ink); filter: none; }
.seg-btn.on { background: var(--surface-3); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ============================================================
   v3 IDENTITY — "the instrument for endurance"
   typografie · motion · signature threshold-line
   ============================================================ */

/* mono-cijfers strakker zetten (Space Mono is breed) */
.num, .mono, td.num, .stat .v, .kpi-v, .trend-now, .plan-price .mono { letter-spacing: -.04em; }
.wiz-chip span, .row-meta .num { letter-spacing: -.02em; }

/* knoppen: shimmer alleen op primaire accent-knoppen */
button.ghost::after, .btn.ghost::after,
button.subtle::after, .btn.subtle::after,
button.danger::after, .btn.danger::after,
button.icon::after, .btn.icon::after { display: none; }

/* ---- Motion: staggered reveal bij elke view-render ---- */
@keyframes revealUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#view > * { animation: revealUp .52s var(--ease) both; }
#view > *:nth-child(1) { animation-delay: .02s; }
#view > *:nth-child(2) { animation-delay: .08s; }
#view > *:nth-child(3) { animation-delay: .14s; }
#view > *:nth-child(4) { animation-delay: .20s; }
#view > *:nth-child(5) { animation-delay: .26s; }
#view > *:nth-child(6) { animation-delay: .32s; }
#view > *:nth-child(n+7) { animation-delay: .36s; }

/* ---- Motion: line-draw voor SVG-curves/sparklines ---- */
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.draw-line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: drawLine 1.1s var(--ease) .15s forwards; }

/* ---- Count-up: laat getallen even 'tikken' ---- */
@keyframes pop { from { opacity: .35; } to { opacity: 1; } }
[data-counting] { animation: pop .5s ease; }

/* ---- Signature: threshold-rule divider ---- */
.t-rule { position: relative; height: 1px; background: var(--line); margin: 22px 0; overflow: visible; }
.t-rule::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 34px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent-ring); }

/* ---- Hover-microinteracties (consistent over de app) ---- */
.card, .stat, .kpi, .panel, .list-item, .trend-card, .plan-card, .chart-wrap { transition: transform .18s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.stat:hover, .trend-card:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); transform: translateY(-2px); }
.card:hover { box-shadow: var(--shadow-lg); }

/* hero-stat krijgt een gloeiende accent-rand + meetlijn-hoek */
.stat.hero { background: linear-gradient(150deg, var(--surface-2), color-mix(in srgb, var(--accent) 9%, var(--surface))); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 34px -16px var(--accent-ring); }
.stat.hero::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, var(--accent-ring), transparent 70%); pointer-events: none; }

/* sidebar als instrument-paneel: merk-divider + actieve gloed */
.sidebar { background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.sidebar .brand { border-bottom: 1px solid var(--line-2); margin-bottom: 10px; }
.side-link.active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent); }
.side-link.active::before { box-shadow: 0 0 10px var(--accent); }

/* KPI-grid: subtiele accent-top bij hover, instrument-cijfers */
a.kpi { position: relative; }
a.kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
a.kpi:hover::before { transform: scaleX(1); }

/* page-head: display-font + ticker */
.page-head h1 { font-family: var(--display); }

/* tactiele tik: aanraakbare navigatie veert kort in bij tap/click */
.bottom-nav a { transition: transform .13s var(--ease), color .14s var(--ease); }
.bottom-nav a:active { transform: scale(.9); }
.side-link:active { transform: scale(.99); }
a.list-item:active, a.wk-card:active, a.race-row:active { transform: scale(.992); }

/* respecteer toegankelijkheid */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #view > *, .draw-line, [data-counting], .fade-in, button::after, .btn::after { animation: none !important; transition: none !important; stroke-dashoffset: 0 !important; }
  .bottom-nav a:active, .side-link:active, a.list-item:active, a.wk-card:active, a.race-row:active { transform: none !important; }
}

/* ============================================================
   LICHT THEMA — donker is de signature-default, licht als optie.
   Zet via <html data-theme="light">. Alles erft via tokens; de
   handvol hardcoded-donkere plekken krijgen hier een override.
   ============================================================ */
:root[data-theme="light"] {
  /* Leesbare, donkere variant van de (mogelijk neon) accent voor tekst op licht. */
  --accent-600: color-mix(in srgb, var(--accent) 42%, #0c1604);
  --bg: #f3f4f1;
  --bg-2: #e8eae4;
  --surface: #ffffff;
  --surface-2: #f7f8f5;
  --surface-3: #eceee8;
  --ink: #15171c;
  --ink-2: #474b53;
  --ink-soft: #757a83;
  --line: #e3e5df;
  --line-2: #edefe9;
  --shadow-sm: 0 1px 2px rgba(20, 22, 27, .05), 0 1px 1px rgba(20, 22, 27, .03);
  --shadow: 0 1px 2px rgba(20, 22, 27, .05), 0 16px 36px -18px rgba(20, 22, 27, .18);
  --shadow-lg: 0 2px 6px rgba(20, 22, 27, .06), 0 40px 80px -30px rgba(20, 22, 27, .26);
}
:root[data-theme="light"] body {
  background:
    radial-gradient(1100px 560px at 100% -12%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 55%),
    radial-gradient(1000px 560px at -8% -6%, rgba(70,90,150,.08) 0%, transparent 50%),
    linear-gradient(transparent 0 96%, rgba(20,22,27,.02) 100%) 0 0 / 100% 4px,
    var(--bg);
}
:root[data-theme="light"] .mobile-bar,
:root[data-theme="light"] .bottom-nav { background: rgba(255,255,255,.82); }
:root[data-theme="light"] .seg,
:root[data-theme="light"] .seg-row { background: #e9ebe6; border-color: var(--line); }
:root[data-theme="light"] .badge.status-planned { background: #eef1ec; color: #4b5563; }
:root[data-theme="light"] input:hover,
:root[data-theme="light"] select:hover,
:root[data-theme="light"] textarea:hover { border-color: #cfd3cb; }
:root[data-theme="light"] button.ghost:hover, :root[data-theme="light"] .btn.ghost:hover { border-color: #cfd3cb; }
:root[data-theme="light"] button.subtle, :root[data-theme="light"] .btn.subtle { background: #e8eae4; color: var(--ink-2); }
:root[data-theme="light"] button.subtle:hover, :root[data-theme="light"] .btn.subtle:hover { background: #dde0d8; }
:root[data-theme="light"] .list-item:hover { border-color: #d3d6cd; }
:root[data-theme="light"] .chev { color: #b9bdc4; }
:root[data-theme="light"] table input:focus { background: #fff; }
:root[data-theme="light"] .toast.err { background: #fdecea; border-color: #f1c9c2; color: #b3271b; }
:root[data-theme="light"] button.danger, :root[data-theme="light"] .btn.danger { background: #fdecea; color: #c4452f; border-color: #f1c9c2; }
:root[data-theme="light"] button.danger:hover, :root[data-theme="light"] .btn.danger:hover { background: #fbe0dc; border-color: #e8a99f; color: #a83323; }

/* thema-toggle knopje */
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; box-shadow: none; transition: background .14s var(--ease), color .14s var(--ease), border-color .14s var(--ease); flex: none; padding: 0; }
.theme-toggle::after { display: none; }
.theme-toggle:hover { background: var(--surface-3); color: var(--ink); border-color: var(--accent); filter: none; transform: none; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* ============================================================
   WEDSTRIJDEN / EVENTS
   ============================================================ */
/* prioriteit-kleuren */
.badge.prio-a { background: var(--accent-soft); color: var(--accent-600); }
.badge.prio-b { background: rgba(91,143,214,.16); color: #8fb4e6; }
.badge.prio-c { background: var(--bg-2); color: var(--ink-2); }
:root[data-theme="light"] .badge.prio-b { color: #3f6fb0; }

.event-dot { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--on-accent); background: var(--accent); }
.event-dot.prio-b { background: #5b8fd6; color: #fff; }
.event-dot.prio-c { background: var(--surface-3); color: var(--ink-2); }

.event-hero {
  display: flex; align-items: center; gap: 15px; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--surface-2), color-mix(in srgb, var(--accent) 10%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: var(--shadow), 0 0 32px -18px var(--accent-ring);
}
.event-hero-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent-600); background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); }
.event-hero-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-hero-sub { font-size: .84rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-count { flex: none; text-align: center; min-width: 60px; padding-left: 12px; border-left: 1px solid var(--line); }
.event-count-n { display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--accent-600); letter-spacing: -.04em; }
.event-count-l { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.list-item.is-past { opacity: .62; }

/* kalender event-chips */
.cal-chip.cal-event { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); color: var(--accent-600); font-weight: 600; }
.cal-chip.cal-event svg { width: 11px; height: 11px; flex: none; }
.cal-chip.cal-event.prio-b { background: rgba(91,143,214,.16); border-color: rgba(91,143,214,.4); color: #8fb4e6; }
:root[data-theme="light"] .cal-chip.cal-event.prio-b { color: #3f6fb0; }
.cal-chip.cal-event.prio-c { background: var(--bg-2); color: var(--ink-2); border-color: var(--line); }

/* ============================================================
   ATLEET-PORTAAL (klantenkant)
   ============================================================ */
.portal { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.portal-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 0; margin-bottom: 6px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.portal-top .brand { font-size: 1.05rem; }

/* workout-kaart met afvinken */
.wk-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .18s var(--ease), box-shadow .2s var(--ease); }
.wk-card:hover { border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); box-shadow: var(--shadow); }
.wk-main { display: flex; align-items: center; gap: 14px; padding: 15px 16px; }
.wk-when { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-600); margin-bottom: 3px; }
.wk-title { font-weight: 600; letter-spacing: -.01em; }
.wk-sub { font-size: .82rem; color: var(--ink-soft); }
.wk-actions { display: flex; gap: 7px; flex: none; }
.wk-rpe { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.rpe-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.rpe-chip { padding: 9px 0; font-family: var(--mono); font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.rpe-chip::after { display: none; }
.rpe-chip:hover { background: var(--accent-soft); color: var(--accent-600); border-color: var(--accent); filter: none; transform: none; }
@media (max-width: 560px) {
  .wk-main { flex-wrap: wrap; }
  .wk-actions { width: 100%; }
  .wk-actions .btn { flex: 1; }
  .rpe-row { grid-template-columns: repeat(5, 1fr); }
}

/* zone-lijst */
.zone-list { display: flex; flex-direction: column; }
.zone-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line-2); font-size: .9rem; }
.zone-row .grow { font-weight: 500; }
.zone-panel { display: flex; flex-direction: column; }
.zone-tabs { display: inline-flex; gap: 4px; background: #0c0f15; border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; }
:root[data-theme="light"] .zone-tabs { background: #e9ebe6; }
.zone-tab { background: transparent; color: var(--ink-soft); box-shadow: none; font-size: .78rem; padding: 5px 11px; border-radius: 7px; font-weight: 600; }
.zone-tab::after { display: none; }
.zone-tab:hover { background: transparent; color: var(--ink); filter: none; transform: none; }
.zone-tab.on { background: var(--surface-3); color: var(--ink); }

/* ============================================================
   BELASTING & VORM (CTL/ATL/TSB)
   ============================================================ */
.load-block { }
.load-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.load-stat { background: var(--surface); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.load-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); font-weight: 600; }
.load-v { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.load-sub { font-size: .72rem; color: var(--ink-soft); font-family: var(--mono); }
.load-badge { font-size: .7rem; font-weight: 700; }
.load-stat.form-ok .load-v, .load-stat.form-ok .load-badge { color: var(--ok); }
.load-stat.form-accent .load-v, .load-stat.form-accent .load-badge { color: var(--accent-600); }
.load-stat.form-warn .load-v, .load-stat.form-warn .load-badge { color: var(--warn); }
.load-stat.form-err .load-v, .load-stat.form-err .load-badge { color: var(--err); }
@media (max-width: 560px) {
  .load-stats { grid-template-columns: 1fr; }
  .load-v { font-size: 1.5rem; }
}

/* ============================================================
   BERICHTEN / CHAT
   ============================================================ */
.chat { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.msg-thread { display: flex; flex-direction: column; gap: 10px; padding: 18px; max-height: 460px; overflow-y: auto; }
.msg-empty { text-align: center; color: var(--ink-soft); padding: 28px 16px; font-size: .9rem; }
.msg { display: flex; flex-direction: column; max-width: 78%; gap: 3px; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.msg-bubble { padding: 10px 14px; border-radius: 15px; font-size: .92rem; line-height: 1.45; word-break: break-word; }
.msg.theirs .msg-bubble { background: var(--surface-3); color: var(--ink); border-bottom-left-radius: 5px; }
.msg.mine .msg-bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; font-weight: 500; }
.msg-time { font-size: .68rem; color: var(--ink-soft); font-family: var(--mono); padding: 0 4px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface-2); }
.composer textarea { resize: none; border-radius: 11px; min-height: 42px; padding: 10px 13px; line-height: 1.4; }
.composer button { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 11px; align-self: flex-end; }

/* portaal-melding */
.notif-banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); color: var(--ink); font-weight: 500; font-size: .92rem; }
.notif-ico { display:inline-flex; align-items:center; color:var(--accent-600); }

/* bewerkbare avatar (atleet-portaal) */
.avatar-edit-wrap { position: relative; display: inline-grid; padding: 0; margin: 0; border: none; background: none; box-shadow: none; cursor: pointer; line-height: 0; flex: none; transition: transform .12s var(--ease); }
.avatar-edit-wrap::after { display: none; }
.avatar-edit-wrap:hover { transform: none; filter: none; box-shadow: none; }
.avatar-edit-wrap:hover .avatar { filter: brightness(.85); }
.avatar-cam { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); border: 2px solid var(--bg); box-shadow: 0 2px 6px rgba(0,0,0,.4); }

/* rapport-chips (oudere testen) */
.rep-chips { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.rep-chip { font-family: var(--mono); font-size: .72rem; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line); }
.rep-chip:hover { border-color: var(--accent); color: var(--accent-600); }

/* import: ongeldige rijen tinten */
tr.imp-bad td { background: color-mix(in srgb, var(--err) 8%, transparent); }

/* ── Contact (aandachts-tool) ── */
.contact-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:11px 15px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-2); margin-bottom:6px; }
.contact-line { font-size:.9rem; color:var(--ink-2); }
.contact-line b { color:var(--ink); }
.contact-when.accent { color:var(--accent-600); }

/* ── Persoonlijke records ── */
.pr-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.pr-card { position:relative; border:1px solid var(--line); border-radius:var(--radius-sm); padding:13px 15px; background:var(--surface-2); }
.pr-dist { font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); font-weight:700; }
.pr-time { font-size:1.5rem; font-weight:700; letter-spacing:-.03em; margin-top:3px; line-height:1; color:var(--ink); }
.pr-meta { font-size:.74rem; color:var(--ink-soft); margin-top:5px; }
.pr-del { position:absolute; top:8px; right:9px; border:none; background:none; color:var(--ink-soft); cursor:pointer; font-size:1.05rem; line-height:1; padding:2px 5px; border-radius:6px; }
.pr-del:hover { background:var(--surface-3); color:var(--err); }

/* ── PR-vergelijking bij wedstrijd ── */
.pr-compare { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:8px; font-size:.84rem; color:var(--ink-2); }
.pr-compare.in-form { margin-top:-4px; padding:10px 13px; border:1px dashed var(--line); border-radius:var(--radius-sm); background:var(--surface-2); }
.pr-diff { font-family:var(--mono); font-weight:700; letter-spacing:-.02em; }
.pr-diff.pr-faster { color:var(--ok, #2f9e7f); }
.pr-diff.pr-slower { color:var(--accent-600); }

/* ════ In-app rapport (#/report/:id) — vervangt de losse report.html ════ */
.report-shell { --rep-accent: var(--accent); --rep-on-accent:#fff; --rep-soft: color-mix(in srgb, var(--accent) 14%, #fff); }
.report-toolbar { display:flex; gap:10px; justify-content:flex-end; margin-bottom:16px; }
.report-doc { display:flex; justify-content:center; }
.report-page {
  width:100%; max-width:820px; background:#fbfbf9; color:#14171c; border-radius:16px;
  padding:38px 40px; box-shadow:0 24px 60px -30px rgba(0,0,0,.4); position:relative; overflow:hidden;
  font-family:var(--sans);
}
.report-page::before { content:""; position:absolute; left:0; top:0; right:0; height:5px; background:var(--rep-accent); }
.report-page .num, .report-page .mono { font-family:var(--mono); font-variant-numeric:tabular-nums; letter-spacing:-.02em; }
.rp-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding-bottom:18px; border-bottom:1px solid #e7e8e3; }
.rp-brand { display:flex; align-items:center; gap:12px; max-width:60%; }
.rp-brand img { height:40px; width:auto; max-width:200px; object-fit:contain; }
.rp-brand .mark { width:34px; height:34px; border-radius:9px; background:var(--rep-accent); display:inline-grid; place-items:center; flex:none; }
.rp-brand .mark svg { width:22px; height:22px; }
.rp-brand .name { font-family:var(--display, var(--sans)); font-weight:800; font-size:1.25rem; letter-spacing:-.03em; overflow-wrap:anywhere; color:#14171c; }
.rp-meta { text-align:right; font-size:.78rem; color:#8b9099; line-height:1.5; }
.rp-meta .t { font-family:var(--mono); font-weight:700; color:#14171c; font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; }
.rp-athlete { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin:24px 0 6px; }
.rp-athlete h1 { font-family:var(--display, var(--sans)); margin:0; font-size:2.2rem; letter-spacing:-.035em; line-height:1; font-weight:800; overflow-wrap:anywhere; color:#14171c; }
.rp-athlete .sub { color:#8b9099; font-size:.88rem; margin-top:6px; }
.rp-pill { display:inline-block; font-family:var(--mono); font-size:.64rem; padding:5px 12px; border-radius:999px; background:var(--rep-accent); color:var(--rep-on-accent); font-weight:700; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.rp-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:22px 0; }
.rp-kpi { border:1px solid #e7e8e3; border-radius:14px; padding:15px; background:#fff; }
.rp-kpi.hi { background:linear-gradient(165deg,#fff,var(--rep-soft)); border-color:color-mix(in srgb, var(--rep-accent) 32%, #e7e8e3); }
.rp-kpi .k { font-size:.6rem; text-transform:uppercase; letter-spacing:.1em; color:#8b9099; font-weight:700; }
.rp-kpi .v { font-family:var(--mono); font-size:1.6rem; font-weight:700; letter-spacing:-.04em; margin-top:5px; line-height:1; color:#14171c; }
.rp-kpi .v small { font-size:.7rem; color:#8b9099; font-weight:400; letter-spacing:0; }
.rp-sec { margin-top:24px; break-inside:avoid; }
.rp-sec h2 { display:flex; align-items:center; gap:9px; font-size:.7rem; text-transform:uppercase; letter-spacing:.12em; color:#14171c; margin:0 0 12px; font-weight:700; }
.rp-sec h2::before { content:""; width:18px; height:2px; background:var(--rep-accent); }
.rp-chart svg { width:100%; height:auto; display:block; border:1px solid #e7e8e3; border-radius:14px; padding:14px; background:#fff; }
.rp-legend { display:flex; gap:18px; margin-top:10px; font-size:.74rem; color:#8b9099; }
.rp-legend span { display:inline-flex; align-items:center; gap:6px; }
.rp-legend i { width:10px; height:10px; border-radius:3px; }
.report-page table { width:100%; border-collapse:collapse; font-size:.82rem; }
.report-page th { text-align:left; font-size:.6rem; text-transform:uppercase; letter-spacing:.08em; color:#8b9099; padding:7px 10px; border-bottom:1px solid #e7e8e3; font-weight:700; }
.report-page td { padding:8px 10px; border-bottom:1px solid #f1f2ee; color:#14171c; }
.report-page tr:last-child td { border-bottom:none; }
.report-page td.num { font-family:var(--mono); text-align:right; }
.rp-zone-chip { display:inline-grid; place-items:center; min-width:26px; height:22px; padding:0 6px; border-radius:6px; color:#fff; font-family:var(--mono); font-weight:700; font-size:.64rem; }
.rp-zone-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.rp-zone-grid > div { border:1px solid #e7e8e3; border-radius:14px; padding:4px 14px 8px; background:#fff; }
.rp-zone-grid h3 { font-family:var(--display, var(--sans)); color:#14171c; font-size:.9rem; letter-spacing:-.02em; margin:12px 2px 6px; font-weight:700; }
.rp-foot { margin-top:28px; padding-top:14px; border-top:1px solid #e7e8e3; display:flex; justify-content:space-between; font-size:.68rem; color:#8b9099; font-family:var(--mono); }

@media print {
  .sidebar, .bottom-nav, .mobile-bar, .report-toolbar, .app > .mobile-bar { display:none !important; }
  html, body { background:#fff !important; }
  .app { display:block !important; }
  .content, .content-inner, main.content { margin:0 !important; padding:0 !important; max-width:none !important; }
  .report-doc { display:block !important; }
  .report-page { max-width:none !important; width:auto !important; box-shadow:none !important; border-radius:0 !important; padding:0 6mm !important; }
  .report-page::before { position:fixed; top:0; left:0; right:0; }
  .rp-sec { break-inside:avoid; }
  @page { size:A4; margin:14mm; }
}

/* laatste-contact chip in aandacht-rij */
.row-contact { font-family:var(--mono); font-size:.68rem; font-weight:500; color:var(--ink-soft); margin-left:6px; white-space:nowrap; }
.row-contact.warn { color:var(--accent-600); }

/* ongelezen-berichtenbanner (dashboard) */
.msg-banner { display:flex; align-items:center; gap:12px; padding:13px 16px; margin-bottom:18px;
  border:1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius:var(--radius-sm);
  background:color-mix(in srgb, var(--accent) 8%, var(--surface-2)); color:var(--ink); text-decoration:none; }
.msg-banner:hover { border-color:var(--accent); }
.msg-banner-ico { font-size:1.05rem; }
.msg-banner b { font-variant-numeric:tabular-nums; }
.msg-banner-go { margin-left:auto; font-size:.82rem; color:var(--accent-600); font-weight:600; white-space:nowrap; }

/* ── Atleet-portaal: Vandaag-kaart + week-compliance ── */
.today-card { display:flex; align-items:center; gap:14px; padding:16px 18px; margin-bottom:18px;
  border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-2); }
.today-card.done { border-color:color-mix(in srgb, var(--ok) 40%, var(--line)); background:color-mix(in srgb, var(--ok) 8%, var(--surface-2)); }
.today-card.rest { background:var(--surface-2); }
.today-ico { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; flex:none; border-radius:9px; background:var(--surface-3); color:var(--accent-600); }
.today-card.done .today-ico { color:var(--ok); }
.today-k { font-size:.66rem; text-transform:uppercase; letter-spacing:.1em; color:var(--ink-soft); font-weight:700; }
.today-v { font-weight:600; margin-top:2px; color:var(--ink); }
.today-focus { margin-bottom:18px; }
.wk-compliance { display:inline-flex; align-items:center; gap:8px; font-size:.82rem; color:var(--ink-soft); }
.wk-compliance .num { color:var(--ink); font-weight:700; }
.wk-bar { display:inline-block; width:72px; height:6px; border-radius:999px; background:var(--surface-3); overflow:hidden; }
.wk-bar-fill { display:block; height:100%; background:var(--accent); border-radius:999px; }

/* ── Vergelijkingstabel ── */
.cmp-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.cmp-table th { text-align:left; font-size:.64rem; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); font-weight:700; padding:10px 14px; border-bottom:1px solid var(--line); white-space:nowrap; }
.cmp-table td { padding:11px 14px; border-bottom:1px solid var(--line-2); }
.cmp-table tr:last-child td { border-bottom:none; }
.cmp-table td.num { font-family:var(--mono); }
.cmp-name { display:inline-flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink); font-weight:600; }
.cmp-name:hover { color:var(--accent-600); }
.cmp-delta.up { color:var(--ok); } .cmp-delta.down { color:var(--err); } .cmp-delta.flat { color:var(--ink-soft); }

/* ── Labels/groepen + filter ── */
.tag-badge { display:inline-block; font-size:.66rem; font-weight:600; padding:2px 8px; border-radius:999px;
  background:color-mix(in srgb, var(--accent) 14%, var(--surface-2)); color:var(--accent-600);
  border:1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); }
.tag-badge.sm { font-size:.62rem; padding:1px 7px; }
.tag-filter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.tag-chip { font:inherit; font-size:.8rem; font-weight:600; padding:6px 13px; border-radius:999px; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--line); color:var(--ink-2); }
.tag-chip.on { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }

/* ── Aandacht-rij met snelle bericht-actie ── */
.d-row-act { display:flex; align-items:center; gap:6px; }
.d-row-link { display:flex; align-items:center; gap:12px; flex:1; min-width:0; text-decoration:none; color:inherit; padding:10px 4px 10px 14px; }
.atn-msg { flex:none; display:grid; place-items:center; width:38px; height:38px; margin-right:10px; border-radius:10px;
  color:var(--ink-soft); background:var(--surface-2); border:1px solid var(--line); }
.atn-msg:hover { color:var(--accent-600); border-color:var(--accent); }

/* ── Portaal: PR-feest, terugblik, coach-reactie ── */
.pr-party { display:flex; align-items:center; gap:14px; padding:16px 18px; margin-bottom:18px; border-radius:var(--radius-sm);
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface-2)), var(--surface-2));
  border:1px solid color-mix(in srgb, var(--accent) 34%, var(--line)); }
.pr-party-ico { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; flex:none; border-radius:11px; background:color-mix(in srgb, var(--accent) 20%, var(--surface)); color:var(--accent-600); }
.pr-party-k { font-size:.66rem; text-transform:uppercase; letter-spacing:.1em; color:var(--accent-600); font-weight:700; }
.pr-party-v { font-weight:600; margin-top:2px; color:var(--ink); }
.recap-card { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.recap-item { flex:1; min-width:84px; padding:13px 14px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-2); text-align:center; }
.recap-v { font-size:1.4rem; font-weight:700; letter-spacing:-.03em; color:var(--ink); line-height:1; }
.recap-sub { font-size:.9rem; color:var(--ink-soft); font-weight:600; }
.recap-k { font-size:.68rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); margin-top:5px; font-weight:600; }
.coach-rx { width:100%; display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; padding:8px 11px; border-radius:10px;
  background:color-mix(in srgb, var(--accent) 7%, var(--surface-2)); border:1px solid var(--line); }
.coach-rx-from { font-size:.6rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; color:var(--accent-600); }
.coach-rx-label { font-size:.78rem; font-weight:700; color:var(--ink); padding:2px 9px; border-radius:999px; background:color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.coach-rx-text { font-size:.84rem; color:var(--ink-2); }
.rx-btn { font:inherit; font-size:.82rem; font-weight:600; padding:7px 13px; border-radius:999px; cursor:pointer; color:var(--ink-2); background:var(--surface-2); border:1px solid var(--line); }
.rx-btn.on { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.wo-viz.mini { display:flex; align-items:flex-end; gap:1px; height:34px; margin-top:8px; padding:4px; background:var(--surface-3); border-radius:8px; }
.wo-viz.mini .wo-bar { display:block; border-radius:2px 2px 0 0; min-width:2px; }
.wo-viz.lg { display:flex; align-items:flex-end; gap:2px; height:72px; margin-top:10px; padding:6px; background:var(--surface-3); border-radius:10px; overflow:hidden; }
.wo-viz.lg .wo-bar { display:block; border-radius:3px 3px 0 0; min-width:2px; }
.wk-build { margin-top:10px; }
.wk-build .wo-lines { margin-top:8px; }

/* ── Wedstrijden-overzicht (Overzicht-pagina + dashboard) ── */
.race-month { font-size:.66rem; text-transform:uppercase; letter-spacing:.08em; color:var(--ink-soft); font-weight:700; margin:18px 0 8px; }
.race-month:first-child { margin-top:0; }
.race-list { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:var(--radius-sm); overflow:hidden; background:var(--surface); }
.race-row { display:flex; align-items:center; gap:14px; padding:11px 14px; text-decoration:none; color:var(--ink); border-bottom:1px solid var(--line-2); }
.race-row:last-child { border-bottom:none; }
.race-row:hover { background:var(--surface-2); }
.race-date { flex:none; width:42px; text-align:center; line-height:1; }
.race-date b { display:block; font-family:var(--mono); font-size:1.15rem; font-weight:700; }
.race-date span { font-size:.62rem; text-transform:uppercase; color:var(--ink-soft); }
.race-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.race-name { font-weight:600; display:flex; align-items:center; gap:7px; }
.race-meta { font-size:.8rem; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.race-prio { font-size:.6rem; font-weight:800; width:16px; height:16px; display:inline-grid; place-items:center; border-radius:5px; color:#fff; }
.race-prio.prio-a { background:var(--accent); color:var(--on-accent); }
.race-prio.prio-b { background:#6b7280; }
.race-prio.prio-c { background:#9aa0a8; }
.race-count { flex:none; font-size:.78rem; font-weight:600; color:var(--accent-600); font-variant-numeric:tabular-nums; white-space:nowrap; }

/* ── Zones in kolommen i.p.v. allemaal onder elkaar ── */
.zone-cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:14px; align-items:start; }

/* Toestemmingsvinkje (AVG) */
.consent { display:flex; gap:9px; align-items:flex-start; font-size:.8rem; color:var(--ink-2); line-height:1.45; margin:6px 0 14px; cursor:pointer; }
.consent input[type="checkbox"] { width:16px; height:16px; flex:none; margin-top:2px; accent-color:var(--accent); box-shadow:none; }
.consent a { color:var(--accent-600); }
