/* =========================================================
   ALLIANCE · SPORTS DESK — huisstijl van Alliance Builder
   paper / ink / slate / sky · Geist + Instrument Serif + Geist Mono
   ========================================================= */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-9b6f5ff45b27.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/font-9b6f5ff45b27.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/font-9b6f5ff45b27.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/font-9b6f5ff45b27.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-5f3d6ad60f29.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/font-5f3d6ad60f29.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-6ee678c33f38.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-60c06664b5a9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F5F4F0; --paper-2: #ECEBE5; --white: #FFFFFF;
  --ink: #0D0E0F; --ink-2: #17191B; --ink-3: #222528;
  --muted: #5E6468; --muted-dark: rgba(245, 244, 240, .62); --faint-dark: rgba(245, 244, 240, .38);
  --line: rgba(13, 14, 15, .09); --line-2: rgba(13, 14, 15, .14); --line-dark: rgba(245, 244, 240, .1);
  --slate: #42697C; --slate-2: #355B6D; --sky: #B2D5E5; --sky-2: #DCEBF2; --sky-3: #EEF5F8; --glow: #8EC5DF;
  --ok: #2F6B4A; --ok-bg: #E3EFE7; --sand: #F4EBDD; --sand-ink: #8A6421; --clay: #F5E6E1; --clay-ink: #9A5444;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 22px;
  --shadow: 0 0 0 1px var(--line), 0 30px 60px -44px rgba(13, 14, 15, .28);
  --side: 252px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--slate); text-underline-offset: 3px; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; text-wrap: balance; }
h2 { font-size: 18px; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; }
h3 { font-size: 15px; line-height: 1.35; letter-spacing: -.015em; font-weight: 600; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--slate); }
p { line-height: 1.6; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 8px; }
.muted { color: var(--muted); }
.hide { display: none !important; }
.wide { grid-column: 1 / -1; }
.spacer { margin-top: 18px; }

/* ---------- opbouw ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.workspace { grid-column: 2; min-width: 0; }
main { padding: 34px 40px 40px; max-width: 1520px; margin: 0 auto; }

/* ---------- zijbalk ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--side);
  display: flex; flex-direction: column; padding: 28px 18px 18px;
  background: var(--ink); color: var(--muted-dark); overflow-y: auto;
}
.sidebar::before { content: ""; position: absolute; left: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(66, 105, 124, .45), rgba(66, 105, 124, 0) 65%); pointer-events: none; }
.brand { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.mark { width: 42px; height: 28px; flex-shrink: 0; background: url("assets/alliance-mark-60fc8bb58d2c.webp") center / contain no-repeat; }
.brand-name { color: var(--paper); font-weight: 700; font-size: 12px; line-height: 1.12; letter-spacing: .22em; }
.brand-name span { display: block; }
.brand-sub { position: relative; margin: 14px 8px 30px; display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 11px 5px 9px; border-radius: 99px; border: 1px solid var(--line-dark); font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.brand-sub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(178, 213, 229, .18); }
.sidebar .eyebrow { position: relative; margin: 0 10px 10px; color: var(--faint-dark); }
.nav { position: relative; display: flex; flex-direction: column; gap: 3px; }
.nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 12px;
  text-align: left; color: var(--muted-dark); font-weight: 500; font-size: 14px;
  transition: background-color .3s, color .3s;
}
.nav button svg { width: 18px; height: 18px; opacity: .85; }
.nav button:hover { background: rgba(245, 244, 240, .05); color: var(--paper); }
.nav button.active { background: rgba(178, 213, 229, .12); color: var(--paper); }
.nav button.active svg { color: var(--sky); opacity: 1; }
.nav button.active::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.nav button small { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 99px; background: rgba(245, 244, 240, .08); color: var(--paper); font: 500 11px var(--mono); text-align: center; }
.nav button.active:has(small)::after { display: none; }
.side-bottom { position: relative; margin-top: auto; padding-top: 26px; }
.side-note { position: relative; overflow: hidden; padding: 16px 16px 18px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-dark); font-size: 12.5px; line-height: 1.6; color: var(--muted-dark); }
.side-note::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(178, 213, 229, .22) 1px, transparent 1.4px) 0 0 / 14px 14px; -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000); mask-image: linear-gradient(120deg, transparent 35%, #000); pointer-events: none; }
.side-note strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.1; color: var(--paper); }
.sidebar .nav.spacer { margin-top: 14px; }
.user { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 14px 8px 2px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--paper); }
.user strong { font-weight: 600; }
.user small { display: block; color: var(--faint-dark); font-size: 12px; margin-top: 1px; }
.sidebar .avatar { background: var(--sky); color: var(--ink); }

/* ---------- bovenbalk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 15; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px;
  background: rgba(245, 244, 240, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.breadcrumb b { color: var(--ink); font-weight: 500; }
.search-wrap { position: relative; width: 380px; margin-left: auto; }
.search-box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 99px; background: var(--white); box-shadow: 0 0 0 1px var(--line); color: var(--muted); transition: box-shadow .3s; }
.search-box:focus-within { box-shadow: 0 0 0 1px var(--slate), 0 0 0 5px rgba(178, 213, 229, .55); }
.search-box svg { width: 17px; height: 17px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--ink); }
.search-box input::placeholder { color: #8A8F92; }
.search-results { position: absolute; top: 52px; left: 0; right: 0; z-index: 40; padding: 8px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(13, 14, 15, .3); animation: pop .35s var(--ease); }
.search-results:empty { display: none; }
.search-results button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; text-align: left; transition: background-color .2s; }
.search-results button:hover { background: var(--sky-3); }
.topbar > .actions { gap: 10px; }

/* ---------- koppen en knoppen ---------- */
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.heading p { margin-top: 10px; max-width: 560px; color: var(--muted); font-size: 15px; }
.eyebrow { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px;
  border-radius: 99px; background: var(--white); box-shadow: 0 0 0 1px var(--line-2); color: var(--ink);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, box-shadow .3s, color .3s;
}
.btn svg { width: 17px; height: 17px; transition: transform .5s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(66, 105, 124, .45); }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: none; padding: 0 7px 0 20px; flex-direction: row-reverse; }
.btn.primary svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--sky); color: var(--ink); }
.btn.primary:hover { background: var(--ink-3); box-shadow: 0 18px 40px -16px rgba(13, 14, 15, .55); }
.btn.primary:hover svg { transform: rotate(90deg); }
.btn.lime { background: var(--sky); color: var(--ink); box-shadow: none; padding: 0 7px 0 20px; flex-direction: row-reverse; }
.btn.lime svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--ink); color: var(--sky); }
.btn.lime:hover { box-shadow: 0 18px 44px -14px rgba(142, 197, 223, .75); }
.btn.lime:hover svg { transform: translateX(2px) rotate(-45deg); }
.btn.small { height: 34px; padding: 0 13px; font-size: 12.5px; }
.btn.icon { width: 44px; padding: 0; }
.text-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--slate); font-size: 13px; font-weight: 500; transition: gap .4s var(--ease), color .3s; }
.text-btn svg { width: 15px; height: 15px; }
.text-btn:hover { color: var(--ink); gap: 9px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--sky-2); color: var(--slate-2); }
.badge svg { width: 13px; height: 13px; }
.badge.gold { background: var(--sand); color: var(--sand-ink); }
.badge.pink { background: var(--clay); color: var(--clay-ink); }
.badge.gray { background: var(--paper-2); color: var(--muted); font: 500 10.5px var(--mono); letter-spacing: .1em; }
.badge.blue { background: var(--sky-3); color: var(--slate); }

.avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--sky-2); color: var(--slate-2); font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.avatar.pink { background: var(--clay); color: var(--clay-ink); }
.avatar.large { width: 72px; height: 72px; font-size: 22px; }
.topbar .avatar { background: var(--ink); color: var(--sky); }

/* ---------- briefing ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; margin-bottom: 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: clamp(26px, 3vw, 40px); border-radius: 28px; background: var(--ink); color: var(--paper);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(178, 213, 229, .32) 1px, transparent 1.5px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(90% 120% at 85% 20%, #000 15%, transparent 70%); mask-image: radial-gradient(90% 120% at 85% 20%, #000 15%, transparent 70%); animation: drift 22s linear infinite; }
.hero::after { content: ""; position: absolute; z-index: -2; right: -180px; top: -260px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(66, 105, 124, .75), rgba(66, 105, 124, 0) 62%); animation: glow 16s ease-in-out infinite alternate; }
@keyframes drift { to { background-position: 22px 22px; } }
@keyframes glow { to { transform: translate(-90px, 60px) scale(1.12); } }
.hero .eyebrow { color: var(--sky); display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5CCB8A; box-shadow: 0 0 0 0 rgba(92, 203, 138, .6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(92, 203, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 203, 138, 0); } }
.hero h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1; letter-spacing: -.045em; font-weight: 500; max-width: 620px; }
.hero h2 em { color: var(--sky); }
.hero p { margin: 16px 0 24px; max-width: 520px; color: var(--muted-dark); font-size: 15px; }
.hero .mini { align-self: stretch; display: grid; align-content: center; min-width: 190px; padding: 22px 26px; border-radius: 20px; background: rgba(245, 244, 240, .05); border: 1px solid var(--line-dark); backdrop-filter: blur(4px); }
.hero .mini b { display: block; font: 400 72px/0.9 var(--serif); color: var(--sky); letter-spacing: -.02em; }
.hero .mini small { margin-top: 10px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------- cijfers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { position: relative; overflow: hidden; padding: 20px 22px 18px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.stat:hover { transform: translateY(-2px); }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-top svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--sky-3); color: var(--slate); }
.stat-value { margin: 14px 0 6px; font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--muted); }
.stat small.green { color: var(--ok); }

/* ---------- panelen ---------- */
.grid-main { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; align-items: start; }
.panel { overflow: hidden; margin-bottom: 22px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 24px 18px; }
.panel-head h2 { font-size: 19px; }
.panel-head p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.panel-body { padding: 0 24px 24px; }

/* taken */
.task { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.check { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .3s, box-shadow .3s, transform .4s var(--ease); }
.check:hover { box-shadow: inset 0 0 0 1.5px var(--slate); }
.check.done { background: var(--ink); color: var(--sky); box-shadow: none; animation: tick .45s var(--ease); }
@keyframes tick { 40% { transform: scale(1.18); } }
.check svg { width: 13px; height: 13px; }
.task.done .task-title { text-decoration: line-through; text-decoration-color: var(--line-2); color: var(--muted); }
.task-content { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 500; line-height: 1.45; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.task-meta .text-btn { font-size: 12.5px; }
.task-time { flex-shrink: 0; padding: 4px 9px; border-radius: 10px; background: var(--paper); font: 500 11.5px var(--mono); color: var(--ink); white-space: nowrap; text-align: right; line-height: 1.5; }

/* feed */
.feed { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.feed-icon { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--sky-3); color: var(--slate); }
.feed-icon svg { width: 17px; height: 17px; }
.feed-icon.pink { background: var(--clay); color: var(--clay-ink); }
.feed h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.feed p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.feed small { display: block; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .04em; color: #8A8F92; }

/* sporters in een rij */
.athlete-row { display: flex; align-items: center; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--line); transition: background-color .3s; }
.athlete-row:hover { background: var(--sky-3); }
.athlete-row .info { flex: 1; min-width: 0; }
.athlete-row h3 { font-size: 15px; }
.athlete-row p { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.trend { display: flex; align-items: flex-end; gap: 3px; height: 32px; margin: 0 14px; }
.trend i { width: 5px; border-radius: 3px; background: linear-gradient(var(--slate), var(--sky)); }

.empty { padding: 28px; text-align: center; color: var(--muted); line-height: 1.7; }
.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8A8F92; }

/* ---------- sporterskaarten ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person-card { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); text-align: left; cursor: pointer; transition: transform .6s var(--ease), box-shadow .4s; }
.person-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at var(--mx, 80%) var(--my, 0%), rgba(178, 213, 229, .35), transparent 60%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.person-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(66, 105, 124, .35), 0 40px 70px -40px rgba(13, 14, 15, .35); }
.person-card:hover::before { opacity: 1; }
.person-card h2 { position: relative; margin: 18px 0 6px; font-size: 22px; letter-spacing: -.035em; font-weight: 500; }
.person-card p { position: relative; font-size: 13.5px; color: var(--muted); }
.person-card .card-bottom { position: relative; display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* ---------- filters en tabbladen ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.pills { display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--paper-2); }
.pills button { padding: 7px 15px; border-radius: 99px; font-size: 13px; color: var(--muted); transition: background-color .3s, color .3s, box-shadow .3s; }
.pills button:hover { color: var(--ink); }
.pills button.selected { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(13, 14, 15, .12); }
.field, select { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font-size: 14px; outline: 0; transition: border-color .3s, box-shadow .3s; }
textarea.field { height: auto; padding: 12px 14px; }
.field:focus, select:focus { border-color: var(--slate); box-shadow: 0 0 0 4px rgba(178, 213, 229, .5); }
.tabs { display: flex; gap: 6px; margin: 0 0 24px; padding: 5px; border-radius: 99px; background: var(--paper-2); overflow-x: auto; width: fit-content; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 9px 17px; border-radius: 99px; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: background-color .3s, color .3s; }
.tabs button:hover { color: var(--ink); }
.tabs button.selected { background: var(--ink); color: var(--paper); }

/* ---------- profiel ---------- */
.profile-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; margin-bottom: 20px; padding: 28px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.profile-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(178, 213, 229, .45), rgba(178, 213, 229, 0) 65%); pointer-events: none; }
.profile-hero > * { position: relative; z-index: 1; }
.profile-hero h1 { font-size: clamp(28px, 2.6vw, 38px); }
.profile-hero p { margin: 8px 0; font-size: 14px; color: var(--muted); }
.profile-hero .actions { margin-left: auto; }
.profile-hero .avatar.large { background: var(--ink); color: var(--sky); font-family: var(--serif); font-size: 30px; font-weight: 400; }
.profile-hero .avatar.large.pink { background: var(--clay); color: var(--clay-ink); }

.notice { margin-bottom: 20px; padding: 14px 18px; border-radius: 16px; background: var(--sky-3); border: 1px solid rgba(66, 105, 124, .14); font-size: 13.5px; line-height: 1.6; color: var(--slate-2); }
.notice.gold { background: var(--sand); border-color: rgba(138, 100, 33, .16); color: var(--sand-ink); }
.sim-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding: 14px 18px; border-radius: 16px; background: var(--sand); font-size: 13.5px; color: var(--sand-ink); }

/* tabellen */
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--paper); font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-variant-numeric: tabular-nums; }
tbody tr { transition: background-color .25s; }
tbody tr:hover { background: var(--sky-3); }
td strong { font-weight: 600; }
td small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.rank { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 30px; padding: 0 8px; border-radius: 99px; background: var(--paper); font: 500 13px var(--mono); }
.rank.top { background: var(--sky-2); color: var(--slate-2); }
.rank.win { background: var(--ink); color: var(--sky); }
.source-link { font-size: 12.5px; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.result-detail { white-space: normal; min-width: 180px; max-width: 260px; }
.result-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 15px 20px; font-size: 13px; color: var(--muted); }

/* grafiek */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; margin-bottom: 14px; padding: 22px 0 30px; border-bottom: 1px solid var(--line); }
.chart-bar { position: relative; flex: 1; min-width: 8px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--slate), var(--sky)); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.chart-bar:nth-child(2n) { animation-delay: .05s; } .chart-bar:nth-child(3n) { animation-delay: .1s; }
@keyframes grow { from { transform: scaleY(0); } }
.chart-bar em { position: absolute; bottom: 100%; width: 100%; padding-bottom: 6px; text-align: center; font: 500 10.5px var(--mono); font-style: normal; color: var(--slate); }
.chart-bar span { position: absolute; top: 100%; width: 100%; padding-top: 9px; text-align: center; font: 500 10.5px var(--mono); color: var(--muted); }

.detail-list { display: grid; gap: 0; }
.detail-line { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-line span { color: var(--muted); }
.detail-line:last-child { border-bottom: 0; }
.progress { height: 6px; margin: 12px 0; border-radius: 99px; overflow: hidden; background: var(--paper-2); }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--slate), var(--glow)); }

.note { margin-bottom: 12px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.note p { white-space: pre-wrap; font-size: 14px; }
.note small { display: block; margin-bottom: 7px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.doc > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--sky-3); color: var(--slate); }
.doc div { flex: 1; min-width: 0; }
.doc p { font-size: 14px; font-weight: 500; }
.doc small { font-size: 12.5px; color: var(--muted); }

/* ---------- onderhandelingen ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.lane { min-height: 340px; padding: 14px; border-radius: var(--r); background: var(--paper-2); }
.lane > h3 { display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 14px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.deal { margin-bottom: 12px; padding: 18px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(13, 14, 15, .35); transition: transform .5s var(--ease), box-shadow .4s; }
.deal:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(66, 105, 124, .35), 0 24px 40px -26px rgba(13, 14, 15, .4); }
.deal h3 { margin: 12px 0 4px; font-size: 15px; }
.deal p { font-size: 13px; color: var(--muted); }
.deal .value { margin: 16px 0 4px; font-size: 26px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.deal select { width: 100%; height: 38px; margin-top: 14px; font-size: 13px; border-radius: 99px; padding: 0 12px; }
.deal small { font-size: 12px; color: var(--muted); }

.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.compare-card { position: relative; padding: 28px; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.compare-card.best { box-shadow: 0 0 0 1.5px var(--slate), 0 40px 70px -40px rgba(66, 105, 124, .5); }
.compare-card h2 { margin: 14px 0 6px; font-size: 22px; letter-spacing: -.035em; font-weight: 500; }
.compare-card .price { margin: 20px 0 4px; font: 400 52px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.compare-card.best .price { color: var(--slate); }
.compare-card .detail-list { margin-top: 22px; }

/* ---------- markt ---------- */
.market-card { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); transition: transform .6s var(--ease), box-shadow .4s; }
.market-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(66, 105, 124, .35), 0 40px 70px -40px rgba(13, 14, 15, .35); }
.market-card h2 { margin: 14px 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.035em; font-weight: 500; }
.market-card p { font-size: 14px; color: var(--muted); }
.market-card .actions { margin-top: 20px; }
.market-card small { display: block; margin-top: 14px; font: 500 11px var(--mono); letter-spacing: .04em; color: #8A8F92; }
.connection { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.connection .info { flex: 1; min-width: 0; }
.connection p { font-size: 13px; color: var(--muted); }

.timeline-item { position: relative; padding: 0 0 22px 24px; border-left: 2px solid var(--sky-2); }
.timeline-item:last-child { padding-bottom: 4px; }
.timeline-item::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--slate); }
.timeline-item small { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timeline-item p { margin-top: 5px; font-size: 14px; }

/* ---------- venster, formulier, melding ---------- */
dialog { width: calc(100% - 32px); max-width: 560px; padding: 30px; border: 0; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: 0 50px 120px -30px rgba(13, 14, 15, .5); }
dialog[open] { animation: pop .45s var(--ease); }
dialog::backdrop { background: rgba(13, 14, 15, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 8px; }
.modal-head h2 { font-size: 24px; letter-spacing: -.035em; font-weight: 500; }
dialog p { margin-bottom: 20px; font-size: 14px; color: var(--muted); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 500; }
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .actions { justify-content: flex-end; margin-top: 6px; }
#toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 100; display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500;
  box-shadow: 0 20px 50px -20px rgba(13, 14, 15, .6); opacity: 0; pointer-events: none; transform: translate(-50%, 24px);
  transition: opacity .3s, transform .6s var(--ease);
}
#toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-menu { display: none; }

/* ---------- binnenkomst bij een andere pagina ---------- */
main.is-enter > * { animation: rise .8s var(--ease) both; }
main.is-enter > *:nth-child(2) { animation-delay: .05s; }
main.is-enter > *:nth-child(3) { animation-delay: .1s; }
main.is-enter > *:nth-child(4) { animation-delay: .15s; }
main.is-enter > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- schermen ---------- */
@media (min-width: 1500px) { main { padding: 40px 52px; } .topbar { padding: 0 52px; } }
@media (max-width: 1180px) {
  :root { --side: 216px; }
  .sidebar { padding: 24px 12px 14px; }
  .topbar { padding: 0 24px; }
  main { padding: 28px 24px; }
  .grid-main { grid-template-columns: 1.2fr 1fr; }
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero .mini { display: none; }
}
@media (max-width: 860px) {
  .grid-main { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .search-wrap { width: 280px; }
  .breadcrumb { display: none; }
  .profile-hero { flex-wrap: wrap; }
  .profile-hero .actions { margin-left: 0; }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .sidebar { width: 270px; transform: translateX(-100%); transition: transform .5s var(--ease); box-shadow: 30px 0 80px -30px rgba(13, 14, 15, .6); }
  .sidebar.open { transform: none; }
  .shell:has(.sidebar.open) .workspace { filter: brightness(.55); transition: filter .4s; cursor: pointer; }
  .shell:has(.sidebar.open) .workspace * { pointer-events: none; }
  .topbar { height: 66px; padding: 0 16px; gap: 10px; }
  .mobile-menu { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); flex-shrink: 0; }
  .mobile-menu svg { width: 18px; height: 18px; }
  .search-wrap { flex: 1; width: auto; }
  .topbar > .actions > .badge, .topbar > .actions > .avatar { display: none; }
  main { padding: 22px 16px; }
  .heading { flex-wrap: wrap; align-items: flex-start; }
  .heading .actions { width: 100%; }
  .hero { padding: 24px; border-radius: 24px; }
  .hero h2 { font-size: 28px; }
  .cards { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .profile-hero { padding: 20px; border-radius: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .trend { display: none; }
  .panel-head { padding: 18px 18px 14px; }
  .panel-body { padding: 0 18px 18px; }
  .athlete-row { padding: 14px 18px; }
  .stat-value { font-size: 32px; }
  .sim-banner { flex-wrap: wrap; }
  .card-bottom { gap: 10px; }
  .kanban { grid-template-columns: repeat(4, 82%); scroll-snap-type: x mandatory; }
  .lane { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.btn.primary:not(:has(svg)), .btn.lime:not(:has(svg)) { padding: 0 20px; }

/* Existing account/language settings, matched to the supplied visual system. */
.sidebar > * { flex-shrink: 0; }
.account-button { width: 100%; text-align: left; cursor: pointer; }
.account-button > span:nth-child(2) { flex: 1; min-width: 0; }
.account-button > svg { width: 16px; height: 16px; color: var(--faint-dark); }
.account-button:hover strong, .account-button:hover > svg { color: var(--sky); }
.account-avatar { width: 32px; height: 32px; font-size: 10px; cursor: pointer; }
.preferences .panel-head { align-items: flex-start; }
.preferences .panel-head p { max-width: 650px; }
.preferences .panel-head > svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--sky-3); color: var(--slate); }
.language-label { margin-bottom: 8px; }
#language-select { width: 100%; max-width: 360px; min-height: 48px; }
.language-hint { margin-top: 12px; font-size: 13px; }
.preferences-details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; max-width: 650px; }
.preferences-details h3 { margin-bottom: 8px; }
.detail-line > strong { text-align: right; }
.detail-line > strong > [data-content] { color: inherit; }
/* Keep longer translations usable without altering the reference layout. */
.heading > div:first-child, .hero > div:first-child, .grid-main > *, .stats > *, .compare > * { min-width: 0; }
.pills { flex-wrap: wrap; }
.connection > .badge { flex-shrink: 0; }
.account-button small { line-height: 1.5; }
#toast { max-width: calc(100vw - 32px); }
#toast::before { flex-shrink: 0; }
@media (max-width: 860px) {
 .hero { grid-template-columns: minmax(0, 1fr); }
 .athlete-row { flex-wrap: wrap; }
 .athlete-row .info { flex-basis: calc(100% - 70px); }
 .connection { flex-wrap: wrap; }
 .connection .info { flex-basis: calc(100% - 60px); }
 .doc { flex-wrap: wrap; }
 .doc > div { flex-basis: calc(100% - 60px); }
}
@media (max-width: 640px) {
 .topbar > .actions > .account-avatar { display: inline-flex; }
 .topbar > .actions { gap: 6px; flex-wrap: nowrap; }
 .search-wrap { min-width: 0; }
 .topbar .search-box { padding-inline: 10px; }
 .topbar .search-box input { min-width: 0; font-size: 12px; }
 .stat-top { letter-spacing: .06em; font-size: 9px; flex-wrap: wrap; }
 .panel-head { flex-wrap: wrap; }
 .toolbar > .actions, .toolbar > .pills { max-width: 100%; }
 .btn { max-width: 100%; }
 .detail-line { gap: 12px; font-size: 13px; }
 .account-avatar { width: 30px; height: 30px; }
}

/* Persistent compact navigation; mobile retains the existing drawer. */
.sidebar-toggle-row{display:flex;justify-content:flex-end;margin:-18px 8px 12px}
.sidebar-toggle{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line-dark);border-radius:9px;color:var(--muted-dark);background:var(--ink-2)}
.sidebar-toggle:hover{color:var(--sky);background:var(--ink-3)}
.sidebar-toggle svg{width:16px;height:16px;transform:rotate(180deg)}
.account-collapsed-icon{display:none}
@media(min-width:641px){
 .shell.sidebar-collapsed{--side:76px}
 .sidebar-collapsed .sidebar{padding:26px 12px 18px}
 .sidebar-collapsed .brand{padding:0;justify-content:center}
 .sidebar-collapsed .brand-name,.sidebar-collapsed .brand-sub,.sidebar-collapsed .sidebar>.eyebrow,.sidebar-collapsed .nav-label,.sidebar-collapsed .nav small,.sidebar-collapsed .side-note{display:none}
 .sidebar-collapsed .sidebar-toggle-row{justify-content:center;margin:20px 0 18px}
 .sidebar-collapsed .sidebar-toggle svg{transform:none}
 .sidebar-collapsed .nav{gap:8px;align-items:center}
 .sidebar-collapsed .nav button{width:44px;height:44px;padding:0;justify-content:center;gap:0}
 .sidebar-collapsed .nav button.active::after{display:none}
 .sidebar-collapsed .side-bottom{padding-top:20px}
 .sidebar-collapsed .account-button{justify-content:center;padding:16px 0 0;min-height:48px}
 .sidebar-collapsed .account-button>.avatar,.sidebar-collapsed .account-button>span:nth-child(2),.sidebar-collapsed .account-button>svg{display:none}
 .sidebar-collapsed .account-collapsed-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--ink-2);color:var(--sky)}
 .sidebar-collapsed .account-collapsed-icon svg{width:18px;height:18px}
}
@media(max-width:640px){.sidebar-toggle-row{display:none}}
