/* DanDun Sports: thema's via html[data-theme]; standaard donker (nacht). Geen externe lettertypen of bestanden: alles blijft lokaal. */
:root {
    --bg: #0D1117;
    --card: #161B22;
    --card2: #1C222B;
    --line: #262D38;
    --text: #F4F6F8;
    --muted: #9AA4B2;
    --brand1: #FF8A3D;
    --brand2: #FF3D77;
    --sleep: #8B7CFF;
    --hrv: #34D399;
    /* Sportkleuren: zelfde waarden als SportInfo.Color */
    --run: #FF7A45;
    --bike: #4DA3FF;
    --swim: #2DD4BF;
    --other: #B794F6;
    /* Overige themakleuren */
    --navactive: #1F2630; --rowhover: #262D38; --tipbg: #0A0E13; --line2: #3A4452;
    --hover1: rgba(255,255,255,.04); --hover2: rgba(255,255,255,.07); --onbrand: #fff;
    --brand-text: var(--brand1); --t-sleep: #B7AEFF; --t-stress: #F0A58B; --shadow: rgba(0,0,0,.45);
    color-scheme: dark;
}
html[data-theme="dag"] {
    --bg: #F3F5F8; --card: #FFFFFF; --card2: #F0F2F6; --line: #DDE1E8; --text: #1B1F2A; --muted: #5F6778;
    --brand1: #F26B3A; --brand2: #E5386D; --brand-text: #C2410C; --sleep: #5B49D1; --hrv: #0B8A5E;
    --run: #C94A14; --bike: #2563C9; --swim: #0B8577; --other: #6D4FC9;
    --navactive: #E4E8EF; --rowhover: #E8ECF2; --tipbg: #FFFFFF; --line2: #C5CBD6;
    --hover1: rgba(0,0,0,.04); --hover2: rgba(0,0,0,.07); --t-sleep: #5B49D1; --t-stress: #B84A22; --shadow: rgba(20,30,50,.18);
    color-scheme: light;
}
html[data-theme="oceaan"] {
    --bg: #0A1626; --card: #10213A; --card2: #152B4A; --line: #1C3558; --text: #E3EEFB; --muted: #8FA6C4;
    --brand1: #38BDF8; --brand2: #818CF8; --onbrand: #06223B; --sleep: #A5B4FC; --hrv: #34D399;
    --navactive: #16304F; --rowhover: #1B3A60; --tipbg: #07101D; --line2: #2B4D7A; --t-sleep: #A5B4FC;
}
html[data-theme="bos"] {
    --bg: #0C1511; --card: #13211A; --card2: #192B21; --line: #1F3629; --text: #E4F1E8; --muted: #86A593;
    --brand1: #4ADE80; --brand2: #2DD4BF; --onbrand: #072B16; --sleep: #A78BFA; --hrv: #4ADE80;
    --navactive: #1B3226; --rowhover: #213D2E; --tipbg: #08100C; --line2: #2E5240; --t-sleep: #C4B5FD;
}
html[data-theme="contrast"] {
    --bg: #000; --card: #000; --card2: #151515; --line: #FFFFFF; --text: #FFFFFF; --muted: #D4D4D4;
    --brand1: #FFD60A; --brand2: #FFB400; --onbrand: #000; --sleep: #B39DFF; --hrv: #3CFF9A;
    --run: #FF8A3D; --bike: #3DB8FF; --swim: #2DFFE0; --other: #D08CFF;
    --navactive: #2A2A2A; --rowhover: #262626; --tipbg: #000; --line2: #FFFFFF;
    --hover1: rgba(255,255,255,.1); --hover2: rgba(255,255,255,.18); --t-sleep: #CDBEFF; --t-stress: #FFB199;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; }
h1:focus { outline: none; }
code { background: var(--card2); padding: 2px 6px; border-radius: 6px; }

/* Indeling */
.dd-shell { max-width: 1240px; margin: 0 auto; padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
.dd-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 20; margin: -24px -32px 0; padding: 16px 32px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.dd-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dd-footer { text-align: center; font-size: 12.5px; color: var(--muted); padding-top: 8px; }
.dd-empty { padding: 40px 28px; align-items: flex-start; }
.dd-brand { display: flex; align-items: center; gap: 12px; }
.dd-wordmark { display: flex; flex-direction: column; line-height: 1; }
.dd-wordmark strong { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.dd-wordmark span { font-size: 10px; font-weight: 600; letter-spacing: 3.2px; color: var(--muted); margin-top: 4px; }
.dd-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.dd-nav a { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); }
.dd-nav a { transition: background .2s, color .2s; }
.dd-nav a:hover { color: var(--text); }
.dd-nav a.active { background: var(--navactive); color: var(--text); font-weight: 600; }
.dd-nav a:focus-visible, .dd-btn:focus-visible, .dd-seg-pills button:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
.dd-privacy { font-size: 13px; color: var(--muted); }

/* Kaarten */
.dd-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.dd-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dd-split { display: flex; flex-wrap: wrap; gap: 16px; }
.dd-split > .dd-card { min-width: 0; }
.dd-ring-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.dd-ring-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dd-ring-heading { font-size: 20px; font-weight: 700; }
.dd-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.dd-muted { font-size: 14px; color: var(--muted); }
.dd-h2 { font-size: 18px; font-weight: 700; }
.dd-title { font-size: 32px; font-weight: 800; letter-spacing: -0.8px; }
.dd-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.dd-stack { display: flex; flex-direction: column; gap: 16px; }

/* Begroeting en profiel */
.dd-hello { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dd-pill { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.dd-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand1), var(--brand2)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; }
.dd-pill select { background: transparent; color: var(--text); border: 0; font-size: 14px; font-weight: 600; padding: 6px 4px; cursor: pointer; }
.dd-pill select option { background: var(--card); color: var(--text); }

/* Legenda en grafieken */
.dd-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.dd-legend span { display: flex; align-items: center; gap: 6px; }
.dd-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dd-bars { display: grid; gap: 12px; align-items: end; height: 190px; }
.dd-bars.w8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.dd-bars.w7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dd-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.dd-stackbar { width: 100%; max-width: 44px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.dd-seg { border-radius: 6px; min-height: 2px; }
.dd-empty-bar { width: 100%; max-width: 44px; height: 4px; border-radius: 2px; background: var(--line); }
.dd-col small { font-size: 12px; color: var(--muted); }
.dd-col small.now { color: var(--text); font-weight: 700; }

/* Activiteiten */
.dd-activity { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.dd-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dd-activity-name { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; }
.dd-activity-name strong { font-size: 16px; font-weight: 600; }
.dd-activity-name span { font-size: 13px; color: var(--muted); }
.dd-metrics { display: flex; gap: 28px; flex-wrap: wrap; }
.dd-metric { display: flex; flex-direction: column; min-width: 72px; }
.dd-metric span { font-size: 12px; color: var(--muted); }
.dd-metric strong { font-size: 16px; font-weight: 700; }
.dd-kpis { display: flex; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.dd-kpi { display: flex; flex-direction: column; }
.dd-kpi span { font-size: 12px; color: var(--muted); }
.dd-kpi strong { font-size: 20px; font-weight: 700; }

.dd-alert { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; color: var(--muted); }

/* Smalle schermen */
@media (max-width: 640px) {
    .dd-shell { padding: 16px 16px 32px; gap: 20px; }
    .dd-header { margin: -16px -16px 0; padding: 10px 16px; gap: 8px; flex-wrap: nowrap; flex-direction: column; align-items: stretch; }
    .dd-wordmark strong { font-size: 19px; }
    .dd-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
    .dd-nav::-webkit-scrollbar { display: none; }
    .dd-nav a { white-space: nowrap; padding: 8px 14px; }
    .dd-ring-card { gap: 14px; }
    .dd-hello { align-items: flex-start; }
    .dd-title { font-size: 26px; }
    .dd-card { padding: 18px; }
    .dd-metrics { gap: 18px; }
}

/* Foutmeldingen van Blazor */
.blazor-error-boundary { background: #b32121; padding: 1rem; color: #fff; border-radius: 12px; }
.blazor-error-boundary::after { content: "Er is een fout opgetreden."; }

/* Knop */
.dd-btn { background: linear-gradient(135deg, var(--brand1), var(--brand2)); color: var(--onbrand); border: 0; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.dd-btn:disabled { opacity: 0.6; cursor: progress; }

/* Animaties: kort en rustig. De eindtoestand is altijd de gewone staat; animaties starten vanuit "van". */
:root { --ease: cubic-bezier(.22, .8, .3, 1); }
@property --num { syntax: "<integer>"; inherits: false; initial-value: 0; }

.dd-view { display: flex; flex-direction: column; gap: 24px; animation: dd-view .4s var(--ease) both; }
@keyframes dd-view { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }
@keyframes dd-fade { from { opacity: 0; transform: translateY(6px); } }
@view-transition { navigation: auto; }

/* D. Kaarten komen binnen */
.dd-enter { animation: dd-rise .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 110ms); }
@keyframes dd-rise { from { opacity: 0; transform: translateY(16px); } }

/* A. Ringen vullen zich en het getal telt mee */
.dd-ring { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.dd-ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dd-count { animation: dd-count 1.3s var(--ease) both; counter-reset: n var(--num); }
.dd-count::after { content: counter(n); }
@keyframes dd-count { from { --num: 0; } }
.dd-ring-fg { animation: dd-fill 1.3s var(--ease) both; }
@keyframes dd-fill { from { stroke-dasharray: 0 314.16; } }

/* B. Staven groeien omhoog (zowel de weken als de slaapnachten) */
.dd-seg { transform-origin: bottom; animation: dd-grow .8s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
@keyframes dd-grow { from { transform: scaleY(0); } }

/* C. HRV-lijn tekent zichzelf */
.dd-chartwrap svg { animation: dd-reveal 1.4s var(--ease) both; }
@keyframes dd-reveal { from { clip-path: inset(-10px 100% -10px -10px); } to { clip-path: inset(-10px -10px -10px -10px); } }
.dd-end { animation: dd-pop .4s var(--ease) 1.5s both; }
@keyframes dd-pop { from { opacity: 0; } }

/* E. Ophaalknop */
.dd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 190px; transition: background .3s, transform .15s; }
.dd-btn:active:not(:disabled) { transform: scale(.97); }
.dd-btn.busy { background: linear-gradient(110deg, var(--brand1) 30%, #ffb27a 50%, var(--brand2) 70%); background-size: 220% 100%; animation: dd-shimmer 1.2s linear infinite; opacity: 1; }
.dd-btn.done { background: #1F9D6B; opacity: 1; }
@keyframes dd-shimmer { to { background-position: -220% 0; } }
.dd-spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: dd-rot .7s linear infinite; }
@keyframes dd-rot { to { transform: rotate(360deg); } }
.dd-tick { width: 14px; height: 14px; }
.dd-tick path { stroke: #fff; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; animation: dd-tickdraw .4s ease-out both; }
@keyframes dd-tickdraw { from { stroke-dashoffset: 20; } }
.dd-alert.dd-result { animation: dd-rise .4s var(--ease) both; }

/* F. Rijen reageren op de muis */
.dd-activity { transition: transform .25s var(--ease), background .25s; border-radius: 12px; }
.dd-activity:hover { transform: translateX(6px); background: var(--card2); }
.dd-icon { transition: transform .3s var(--ease); }
.dd-activity:hover .dd-icon { transform: scale(1.12) rotate(-6deg); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Belasting en herstel */
.dd-split-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line); }
.dd-split-bar i { display: block; transition: width .6s var(--ease); }
.dd-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.dd-evidence p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.dd-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); margin-left: 6px; vertical-align: 1px; }

/* Formulieren */
.dd-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dd-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dd-form input, .dd-form select { font: inherit; font-size: 15px; font-weight: 500; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color-scheme: dark; }
.dd-form input:focus-visible, .dd-form select:focus-visible { outline: 2px solid var(--brand1); outline-offset: 1px; }
.dd-btn.ghost { background: var(--card2); border: 1px solid var(--line); color: var(--text); font-weight: 600; min-width: 0; padding: 8px 14px; }

/* Training */
.dd-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.dd-block { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; padding: 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.dd-rep { align-self: center; font-weight: 800; padding: 0 6px; color: var(--muted); }
.dd-step { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 10px; border-left: 4px solid var(--z); background: var(--card2); min-width: 96px; }
.dd-step strong { font-size: 14px; }
.dd-step span { font-size: 12px; color: var(--muted); }
.dd-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dd-day { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font: inherit; color: var(--text); text-align: left; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.dd-day:hover { transform: translateY(-2px); }
.dd-day:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
.dd-day.sel { background: var(--card2); box-shadow: 0 0 0 1px var(--brand1) inset; }
.dd-day .dd-daytag { color: var(--text); font-weight: 600; }
.dd-day.kracht { border-color: #B794F6; }
.dd-day strong { font-size: 13px; text-transform: capitalize; }
.dd-day span { font-size: 13px; color: var(--muted); }
.dd-day.hard { border-color: #FF7A45; }
.dd-day.lang { border-color: #4DA3FF; }
.dd-day.rustig { border-color: #2DD4BF; }
.dd-day.vandaag { border-color: var(--brand1); background: var(--card2); }
.dd-day.race { border-color: var(--brand2); }

/* Sportkeuze in het doelenformulier */
.dd-sports { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dd-sports legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 8px; }
.dd-check { flex-direction: row !important; align-items: center; gap: 8px !important; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text) !important; font-size: 14px !important; cursor: pointer; transition: border-color .2s, background .2s; }
.dd-check.on { border-color: var(--brand1); background: var(--card2); }
.dd-check input { accent-color: var(--brand1); width: 16px; height: 16px; padding: 0; }

/* Hover-tips: tekst in data-tip verschijnt bij muis of toetsenbordfocus */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after {
    content: attr(data-tip); white-space: pre; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--tipbg); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
    font-size: 12px; font-weight: 500; line-height: 1.5; text-align: left; z-index: 30; pointer-events: none;
    box-shadow: 0 8px 24px var(--shadow); animation: dd-fade .15s ease both;
}
.dd-bars > [data-tip]:first-child:hover::after, .dd-bars > [data-tip]:first-child:focus-visible::after { left: 0; transform: none; }
.dd-bars > [data-tip]:last-child:hover::after, .dd-bars > [data-tip]:last-child:focus-visible::after { left: auto; right: 0; transform: none; }
.dd-col[data-tip] { cursor: default; border-radius: 10px; transition: background .2s; }
.dd-col[data-tip]:hover { background: var(--hover1); }
[data-tip]:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }

.dd-chartwrap { position: relative; }
.dd-hcol { position: absolute; top: 0; height: 150px; border-radius: 8px; }
.dd-hcol:hover { background: var(--hover2); }
.dd-hcol:first-of-type:hover::after, .dd-hcol:first-of-type:focus-visible::after { left: 0; transform: none; }
.dd-hcol:last-of-type:hover::after, .dd-hcol:last-of-type:focus-visible::after { left: auto; right: 0; transform: none; }

/* Klikbare activiteiten */
a.dd-activity { color: inherit; padding-inline: 8px; margin-inline: -8px; }
a.dd-activity:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
.dd-chevron { font-size: 26px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
a.dd-activity:hover .dd-chevron { transform: translateX(4px); color: var(--text); }

/* Activiteitdetail */
.dd-back { color: var(--muted); font-size: 14px; font-weight: 600; width: max-content; }
.dd-back:hover { color: var(--text); }
.dd-detailgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.dd-dl { margin: 0; display: flex; flex-direction: column; }
.dd-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.dd-dl > div:first-child { border-top: 0; }
.dd-dl dt { color: var(--muted); font-size: 14px; }
.dd-dl dd { margin: 0; font-weight: 700; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.dd-zones { display: flex; flex-direction: column; gap: 8px; }
.dd-zone { display: grid; grid-template-columns: 64px 1fr 72px; align-items: center; gap: 12px; font-size: 13px; padding: 2px 0; }
.dd-zone-name { color: var(--muted); }
.dd-zone-track { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dd-zone-track i { display: block; height: 100%; border-radius: 999px; animation: dd-grow-x .8s var(--ease) both; transform-origin: left; }
@keyframes dd-grow-x { from { transform: scaleX(0); } }
.dd-zone-time { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dd-zone[data-tip]:hover::after, .dd-zone[data-tip]:focus-visible::after { bottom: 100%; left: 64px; transform: none; }

/* Lijngrafiek met as-labels en keuzeknoppen */
.dd-axis { position: absolute; left: 4px; font-size: 11px; color: var(--muted); pointer-events: none; }
.dd-axis.top { top: 0; }
.dd-axis.bottom { bottom: 0; }
.dd-chartlabels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.dd-chartlabels span { flex: 1; text-align: center; min-height: 1em; }
.dd-chartlabels span:first-child { text-align: left; }
.dd-chartlabels span:last-child { text-align: right; }
.dd-seg-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dd-seg-pills button { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.dd-seg-pills button:hover { color: var(--text); }
.dd-seg-pills button[aria-pressed="true"] { color: var(--onbrand); border-color: transparent; background: linear-gradient(135deg, var(--brand1), var(--brand2)); }
.dd-seg-pills button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.dd-delta { font-size: 12px; color: var(--muted); }
.dd-kpi-card { display: flex; flex-direction: column; gap: 2px; }
.dd-kpi-card strong { font-size: 24px; font-weight: 800; }
.dd-kpi-card span { font-size: 12px; color: var(--muted); }
.dd-kpigrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.dd-hl { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 8px; margin-inline: -8px; border-top: 1px solid var(--line); border-radius: 10px; transition: background .2s; }
.dd-hl:first-of-type { border-top: 0; }
a.dd-hl:hover { background: var(--card2); }
.dd-hl span { color: var(--muted); font-size: 14px; }
.dd-hl strong { font-size: 14px; }
.dd-hl small { color: var(--muted); font-size: 12px; margin-left: 8px; }
.dd-chartlabels span { white-space: nowrap; }

/* Fitheid en lichaamskaart */
.dd-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-badge { padding: 6px 14px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.dd-bullets { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.dd-bullets strong { color: var(--text); }
.dd-note { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.dd-note strong { color: var(--text); }
.dd-zones.wide .dd-zone { grid-template-columns: 130px 1fr 130px; }
.dd-bodyrow { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.dd-bodymap { display: flex; gap: 12px; flex: 0 1 auto; }
.dd-bodymap figure { margin: 0; text-align: center; }
.dd-bodymap figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dd-bodymap svg { width: 250px; max-width: 44vw; height: auto; -webkit-tap-highlight-color: transparent; }
.dd-bodymap svg *:focus { outline: none; }
.dd-base path { fill: var(--card2); stroke: var(--line); stroke-width: 1.2; }
.dd-muscle path { stroke: rgba(0,0,0,.45); stroke-width: .8; stroke-linejoin: round; }
.dd-muscle .m-base { fill: #7A2E3A; fill-opacity: .55; }
.dd-muscle .m-fill { fill: var(--brand1); }
.dd-muscle .m-fibre { fill: none; stroke: rgba(255,255,255,.22); stroke-width: .8; stroke-linecap: round; }
.dd-muscle { transition: filter .2s, opacity .25s; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.dd-muscle:hover, .dd-muscle:focus-visible { filter: drop-shadow(0 0 4px rgba(255,255,255,.5)); }
.dd-muscle.sel { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 9px var(--brand1)); }
.dd-muscle.sel path { stroke: rgba(255,255,255,.85); stroke-width: 1; }
.dd-bodymap.has-sel .dd-muscle:not(.sel) { opacity: .5; }
.dd-vessel { fill: none; stroke-width: 1.2; stroke-linecap: round; opacity: .5; pointer-events: none; }
.dd-vessel.art { stroke: #E5484D; }
.dd-vessel.vein { stroke: #4DA3FF; }
.dd-vessel.dd-flow { stroke-width: 2.4; stroke-dasharray: 0.1 9; opacity: .95; animation: dd-flow 2.6s linear infinite; }
@keyframes dd-flow { to { stroke-dashoffset: -36; } }
.dd-heart { fill: #E5484D; stroke: rgba(0,0,0,.35); stroke-width: .6; transform-box: fill-box; transform-origin: center; animation: dd-beat 1.3s ease-in-out infinite; pointer-events: none; }
@keyframes dd-beat { 0%, 40%, 100% { transform: scale(1); } 10% { transform: scale(1.18); } 22% { transform: scale(1.04); } }
@media (max-width: 640px) { .dd-grid3 > [style*="span 2"] { grid-column: auto !important; } .dd-zones.wide .dd-zone { grid-template-columns: 100px 1fr 90px; } }

/* Spierdetail */
.dd-pick { font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 6px 8px !important; margin-inline: -8px; width: calc(100% + 16px); cursor: pointer; text-align: left; transition: background .2s, border-color .2s; }
.dd-pick:hover { background: var(--card2); }
.dd-pick.on { background: var(--card2); border-color: var(--brand1); }
.dd-pick:focus-visible { outline: 2px solid var(--brand1); outline-offset: 1px; }
.dd-detail { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; animation: dd-rise .35s var(--ease) both; }
.dd-detail h3 { margin: 0; font-size: 18px; }
.dd-src { display: grid; grid-template-columns: 1fr 72px 44px; gap: 10px; align-items: center; font-size: 13px; }
.dd-src .dd-zone-track { height: 8px; }
.dd-src b { text-align: right; font-variant-numeric: tabular-nums; }
.dd-hint { color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: 16px; padding: 14px 18px; }

.dd-contour { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1; stroke-linecap: round; pointer-events: none; }

/* Klikbare blokken op het overzicht en terug-link op detailpagina's */
.dd-click { cursor: pointer; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.dd-click:hover { transform: translateY(-2px); border-color: var(--brand1); }
.dd-click:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
.dd-more { font-size: 13px; font-weight: 600; color: var(--brand-text); }
.dd-back { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 14px; text-decoration: none; }
.dd-back:hover { color: var(--text); }
.dd-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.dd-tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; }
.dd-tbl td { padding: 9px 8px; border-top: 1px solid var(--line); }
.dd-tbl th.r, .dd-tbl td.r { text-align: right; }
.dd-tblwrap { overflow-x: auto; }

.dd-muscle.planned .m-base { stroke: var(--t-sleep); stroke-width: 1.6; stroke-dasharray: 3 2; }
.dd-muscle.planned .m-fibre { stroke: color-mix(in srgb, var(--t-sleep) 50%, transparent); }
.dd-planned-tag { font-size: 12px; font-weight: 600; color: var(--t-sleep); margin-left: 6px; }

/* Oefening-animaties (poppetje van opzij) */
.dd-exanim { width: 100%; max-width: 220px; height: auto; flex: none; background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--line); border-radius: 12px; }
.dd-exanim .limb { stroke: var(--brand1); stroke-width: 5; stroke-linecap: round; fill: none; }
.dd-exanim .head { fill: none; stroke: var(--brand1); stroke-width: 4.5; }
.dd-exanim .ground { stroke: var(--line); stroke-width: 2; }
.dd-exanim .prop { stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.dd-exanim .prop.thin { stroke-width: 2; opacity: .6; }
.dd-exanim .block { fill: var(--line); }
@media (prefers-reduced-motion: reduce) { .dd-exanim animate { display: none; } }
.dd-exrow { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.dd-exfig { width: 132px; flex: none; }
@media (max-width: 560px) { .dd-exfig { width: 96px; } }
.dd-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Kalender (jaarraster) */
.dd-heatwrap { overflow-x: auto; padding-bottom: 6px; }
.dd-heat-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; gap: 3px; width: max-content; }
.dd-heat { display: block; width: 14px; height: 14px; border-radius: 3px; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.dd-heat.none { background: transparent; cursor: default; }
.dd-heat.l1 { background: color-mix(in srgb, var(--brand1) 30%, var(--line)); }
.dd-heat.l2 { background: color-mix(in srgb, var(--brand1) 55%, var(--line)); }
.dd-heat.l3 { background: color-mix(in srgb, var(--brand1) 80%, var(--line)); }
.dd-heat.l4 { background: var(--brand1); }
.dd-heat.sel { outline: 2px solid var(--text); outline-offset: 1px; }
.dd-heat:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }

/* Dagkaart op het overzicht */
.dd-daycard { display: flex; align-items: center; gap: 28px; padding: 24px 28px; margin-bottom: 20px; }
.dd-daytext { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.dd-daytitle { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.dd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-chips .dd-chip { font-size: 12.5px; }
.dd-dayfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 640px) { .dd-daycard { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; } .dd-daytitle { font-size: 22px; } }

/* Prestaties */
.dd-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dd-badge { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.dd-badge.earned { border-color: var(--brand1); background: color-mix(in srgb, var(--brand1) 8%, transparent); }
.dd-badge .dd-meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dd-badge .dd-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand1), var(--brand2)); }
.dd-badge:not(.earned) strong { color: var(--muted); }

/* Vandaag in vier kaartjes onder de dagkaart */
.dd-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.dd-mini { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-decoration: none; color: inherit; }
.dd-mini strong { font-size: 26px; font-weight: 700; line-height: 1.1; }
.dd-mini .dd-meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.dd-mini .dd-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand1), var(--brand2)); }
@media (max-width: 800px) { .dd-grid4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.dd-linkrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.dd-linkrow a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none; color: inherit; }
@media (max-width: 800px) { .dd-linkrow { grid-template-columns: 1fr; gap: 12px; } }

/* Profielmenu in de kop */
.dd-pmenu { position: relative; }
.dd-pchip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s; }
.dd-pchip:hover { border-color: var(--line2); }
.dd-pchip:focus-visible, .dd-prow:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
.dd-pav { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.dd-pchev { color: var(--muted); transition: transform .2s; }
.dd-pchev.up { transform: rotate(180deg); }
.dd-pbackdrop { position: fixed; inset: 0; z-index: 30; }
.dd-pdrop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 300px; max-width: calc(100vw - 32px); background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 32px var(--shadow); }
.dd-plabel { font-size: 11px; color: var(--muted); padding: 8px 10px 4px; }
.dd-prow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; text-decoration: none; }
.dd-prow:hover, .dd-prow.act { background: var(--rowhover); }
.dd-prow:disabled { opacity: .6; cursor: progress; }
.dd-ptext { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dd-ptext small { color: var(--muted); font-size: 11.5px; }
.dd-psep { height: 1px; background: var(--line); margin: 6px 4px; }
.dd-picon { width: 30px; text-align: center; color: var(--muted); font-size: 16px; }
@media (max-width: 640px) {
    .dd-header { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand menu" "nav nav"; align-items: center; }
    .dd-brand { grid-area: brand; }
    .dd-nav { grid-area: nav; }
    .dd-pmenu { grid-area: menu; }
    .dd-pname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Instellingen */
.dd-setrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dd-setlabel { font-size: 13px; font-weight: 600; color: var(--muted); }
.dd-setlabel small { font-weight: 400; margin-left: 4px; }
.dd-swatches { display: flex; gap: 10px; }
.dd-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; outline-offset: 2px; }
.dd-swatch.sel { border-color: var(--text); box-shadow: 0 0 0 2px var(--card); }
.dd-swatch:focus-visible { outline: 2px solid var(--brand1); }

/* De kop: logo links, profielmenu rechts. Past het menu niet ernaast, dan komt het eronder. */
.dd-header { flex-wrap: nowrap; }
.dd-nav { min-width: 0; }
@media (max-width: 1180px) {
    .dd-header { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand menu" "nav nav"; align-items: center; row-gap: 8px; }
    .dd-brand { grid-area: brand; }
    .dd-nav { grid-area: nav; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
    .dd-nav::-webkit-scrollbar { display: none; }
    .dd-nav a { white-space: nowrap; }
    .dd-pmenu { grid-area: menu; }
}

/* Hubs: tabbladen onder het hoofdmenu en keuzechips voor de verbandgrafiek */
.dd-subtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-top: -12px; }
.dd-subtabs::-webkit-scrollbar { display: none; }
.dd-subtabs a { white-space: nowrap; padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: -1px; border-radius: 10px 10px 0 0; background: linear-gradient(var(--brand1), var(--brand1)) center bottom / 0% 2px no-repeat; transition: color .2s, background-size .35s var(--ease), background-color .2s; }
.dd-subtabs a:hover { color: var(--text); background-color: var(--rowhover, transparent); }
.dd-subtabs a.active { color: var(--text); background-size: 100% 2px; font-weight: 600; }
.dd-subtabs a:focus-visible { outline: 2px solid var(--brand1); outline-offset: -2px; }
.dd-vchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.dd-vchip:hover { color: var(--text); }
.dd-vchip.on { color: var(--text); border-color: var(--c); background: var(--navactive); }
.dd-vchip:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }

/* Themakeuze in Instellingen */
.dd-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.dd-theme { text-align: left; font: inherit; color: var(--text); background: var(--card2); border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s; }
.dd-theme:hover { border-color: var(--line2); }
.dd-theme[aria-pressed="true"] { border-color: var(--brand1); }
.dd-theme:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
.dd-theme-prev { border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; border: 1px solid; }
.dd-theme-prev i { display: block; height: 7px; border-radius: 99px; }
.dd-theme-prev b { display: block; height: 16px; border-radius: 6px; border: 1px solid; }

/* Dagelijks gevoel */
.dd-feel { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px; }
.dd-feel-text { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.dd-feel-btns { display: flex; gap: 8px; }
.dd-feel-btn { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 64px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2); color: var(--muted); font: inherit; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.dd-feel-btn b { font-size: 16px; color: var(--text); }
.dd-feel-btn span { font-size: 12px; }
.dd-feel-btn:hover { border-color: var(--line2); color: var(--text); }
.dd-feel-btn[aria-pressed="true"] { border-color: var(--brand1); background: var(--navactive); color: var(--text); }
.dd-feel-btn:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
@media (max-width: 640px) { .dd-feel-btns { width: 100%; } .dd-feel-btn { flex: 1; min-width: 0; } }

/* Je week: zeven dagen in één oogopslag */
.dd-week7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dd-dayc { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 12px; position: relative; animation: dd-rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.dd-dayc.today { background: var(--card2); box-shadow: 0 0 0 1px var(--brand1) inset; }
.dd-dayc[data-tip] { cursor: default; }
.dd-dayname { font-size: 12.5px; color: var(--muted); text-transform: capitalize; }
.dd-dayc.today .dd-dayname { color: var(--text); font-weight: 700; }
.dd-dot7 { --c: var(--line2, var(--line)); width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--c); display: grid; place-items: center; font-size: 14px; font-weight: 800; color: var(--onbrand, #fff); transition: transform .25s var(--ease); }
.dd-dot7.hard { --c: var(--hrv); }
.dd-dot7.normaal { --c: var(--bike); }
.dd-dot7.rustig { --c: var(--t-stress); }
.dd-dot7.trained { background: var(--brand1); }
.dd-dayc:hover .dd-dot7, .dd-dayc:focus-visible .dd-dot7 { transform: scale(1.12); }
@media (max-width: 640px) { .dd-dot7 { width: 30px; height: 30px; font-size: 12px; } }

/* Mijlpalen in de Battle */
.dd-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dd-badges li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; transition: transform .25s var(--ease), background .25s; }
.dd-badges li.earned { border: 1px solid var(--brand1); color: var(--text); background: var(--card2); }
.dd-badges li.earned > span:first-child { color: var(--brand-text, var(--brand1)); }
.dd-badges li:hover { transform: translateX(4px); }
.dd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Ochtendbeeld: smal en rustig */
.dd-morning { max-width: 860px; }

/* Ring met hoog herstel ademt zacht */
.dd-glow svg { animation: dd-glow 3.6s ease-in-out 1.8s infinite; border-radius: 50%; }
@keyframes dd-glow { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 9px color-mix(in srgb, var(--glow) 65%, transparent)); } }

/* Tijdens het ophalen schuift er een zacht licht over de kaarten en pulseren de cijfers */
html.dd-syncing .dd-card { position: relative; overflow: hidden; }
html.dd-syncing .dd-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--text) 9%, transparent) 50%, transparent 65%); background-size: 250% 100%; animation: dd-sweep 1.6s linear infinite; }
@keyframes dd-sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }
html.dd-syncing .dd-ring-num, html.dd-syncing .dd-kpi strong, html.dd-syncing .dd-mini strong { animation: dd-pulse 1.4s ease-in-out infinite; }
@keyframes dd-pulse { 50% { opacity: .55; } }

/* Wie minder beweging wil, ziet geen ademende ring en geen schuivend licht */
@media (prefers-reduced-motion: reduce) {
    .dd-glow svg, html.dd-syncing .dd-ring-num, html.dd-syncing .dd-kpi strong, html.dd-syncing .dd-mini strong { animation: none !important; }
    html.dd-syncing .dd-card::after { display: none; }
    html { scroll-behavior: auto; }
}

/* Slaapbehoefte: staaf per nacht met een streepje voor wat je nodig had */
.dd-needchart { display: grid; align-items: end; }
.dd-need { position: absolute; left: -2px; right: -2px; height: 3px; border-radius: 2px; background: var(--text); opacity: .85; pointer-events: none; }

/* Route en kilometertijden */
.dd-route { display: block; background: var(--bg); border-radius: 14px; border: 1px solid var(--line); }
.dd-route-line { stroke-dasharray: 3000; animation: dd-routedraw 1.6s var(--ease) both; }
@keyframes dd-routedraw { from { stroke-dashoffset: 3000; } to { stroke-dashoffset: 0; } }
.dd-splits { display: flex; flex-direction: column; gap: 6px; }
.dd-split-row { display: grid; grid-template-columns: 52px 1fr 92px 62px 70px; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 10px; font-size: 14px; animation: dd-rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.dd-split-row:hover { background: var(--rowhover, var(--card2)); }
.dd-split-km { color: var(--muted); font-variant-numeric: tabular-nums; }
.dd-split-track { height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.dd-split-track i { display: block; height: 100%; border-radius: 999px; background: var(--bike); transform-origin: left; animation: dd-grow-x .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.dd-split-row.fast .dd-split-track i { background: var(--hrv); }
.dd-split-row.slow .dd-split-track i { background: var(--t-stress); }
.dd-split-val { font-variant-numeric: tabular-nums; text-align: right; }
.dd-split-hr, .dd-split-el { font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .dd-split-row { grid-template-columns: 44px 1fr 80px; } .dd-split-hr, .dd-split-el { display: none; } }
@media (prefers-reduced-motion: reduce) { .dd-route-line { stroke-dasharray: none; } }

/* Inloggen (alleen als de app online staat) */
.dd-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.dd-login { width: min(400px, 100%); gap: 18px; }
.dd-login-brand { display: flex; align-items: center; gap: 12px; }
.dd-field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.dd-field input { background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.dd-field input:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; }
.dd-login .dd-btn { width: 100%; padding: 12px 18px; font-size: 16px; }
