:root {
  --bg: #f5f7f5; --card: #fff; --card2: #f1f5f0; --line: #e2e8e2; --text: #202b25; --muted: #65736a;
  --accent: #587d3e; --accent-text: #fff; --danger: #a83d35; --ok: #397c55;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; min-height: 100vh; }
a { color: var(--accent); }
h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.035em; }
h2 { font-size: 1.25rem; margin: 0; }
h3 { font-size: 1.05rem; margin: 0; }
h4 { margin: 0; font-size: .95rem; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 34px 20px 56px; flex: 1; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px max(20px, calc((100vw - 1040px) / 2)); border-bottom: 1px solid #293a34; background: rgb(12 19 18 / 92%); backdrop-filter: blur(18px); }
.brand { font-weight: 800; font-size: 1.3rem; color: var(--text); text-decoration: none; letter-spacing: -.035em; }
.brand span { color: var(--accent); }
.brand-logo { display: block; width: min(100%, 210px); height: auto; }
.privacy-header { background: #fff; border-bottom-color: var(--line); }
nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.foot { padding: 18px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.landing-hero { position: relative; overflow: hidden; margin: 12px 0 26px; padding: clamp(26px, 6vw, 64px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(ellipse at 86% 16%, rgb(88 125 62 / 14%), transparent 34%), linear-gradient(145deg, #fff, #edf3eb); }
.landing-hero h1 { max-width: 800px; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -.06em; }
.landing-hero h1 span { color: var(--accent); }
.landing-lede { max-width: 62ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.landing-actions { margin-top: 24px; }
.landing-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.landing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.landing-card { min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.landing-card h2 { margin: 12px 0 8px; }
.landing-card p, .landing-integrations p { color: var(--muted); }
.landing-number { color: var(--accent); font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.youth-notice { margin: 18px 0; padding: 18px 20px; border: 1px solid #c8d6a5; border-radius: var(--radius); background: #f2f6e8; }
.youth-notice h2 { margin-bottom: 7px; color: #3e5b2a; }
.youth-inline-note { padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 4px 10px 10px 4px; background: #f2f6e8; color: #40513a; font-size: .9rem; }
.landing-integrations { margin-top: 22px; padding: 4px 2px 0; }
.landing-integrations h2 { margin-bottom: 7px; }
.home-back { margin-bottom: 12px; }
.wizard-intro { margin: -4px 0 16px; }
.wizard { max-width: 780px; margin: 0 auto; }
.wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.wizard-progress-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border-bottom: 2px solid var(--line); color: var(--muted); font-size: .88rem; }
.wizard-progress-item.active { border-color: var(--accent); color: var(--text); font-weight: 750; }
.wizard-progress-item.complete { border-color: #9ab786; color: #40513a; }
.wizard-progress-number { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .78rem; }
.wizard-actions { justify-content: space-between; padding-top: 8px; }
.wizard-actions [hidden], .wizard-panel[hidden] { display: none; }
.wizard-panel { min-height: 260px; }
@media (max-width: 700px) { .landing-grid { grid-template-columns: 1fr; } .landing-card { min-height: auto; } }
@media (max-width: 440px) { .landing-hero { padding: 24px 18px; border-radius: 20px; } .wizard-progress-item { flex-direction: column; align-items: flex-start; gap: 5px; font-size: .75rem; } .wizard-actions { position: sticky; bottom: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgb(255 255 255 / 96%); } }
.card { background: linear-gradient(145deg, rgb(24 39 34 / 95%), rgb(17 28 26 / 97%)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 24px); margin-bottom: 18px; box-shadow: 0 14px 36px rgb(0 0 0 / 12%); }
.hero { margin-bottom: 18px; }
.hero p { color: var(--muted); max-width: 60ch; }
.dashboard-heading { margin: 4px 0 18px; }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; margin-bottom: 6px; }

.field { display: flex; flex-direction: column; gap: 5px; }
.label { font-weight: 600; font-size: .92rem; }
.hint { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
input[type=file] { width: 100%; padding: 8px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; font: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { resize: vertical; }
.zone-editor { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.zone-editor summary { cursor: pointer; font-weight: 650; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin: 12px 0; }
.equipment-settings h3 { margin-top: 4px; }
fieldset.days { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
fieldset.days legend { padding: 0 6px; font-weight: 600; font-size: .92rem; }
.daybox { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; }

.btn { display: inline-block; padding: 11px 18px; font: inherit; font-weight: 750; color: var(--accent-text); background: var(--accent); border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: #182622; color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); color: #2a0000; }
.btn.small { padding: 7px 12px; font-size: .88rem; }
.link { background: none; border: 0; padding: 6px 8px; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.error { color: var(--danger); min-height: 0; }
.error:empty { display: none; }
.warn { background: #3a1d1d; border: 1px solid var(--danger); border-radius: var(--radius); padding: 14px; margin-bottom: 18px; }
.tip { background: var(--card2); border-radius: 10px; padding: 12px 14px; margin-top: 4px; }
.training-import { border-top: 1px solid var(--line); padding-top: 16px; }
.import-summary { color: var(--ok); }
.workout-editor { width: 100%; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card2); }
.coach-panel { scroll-margin-top: 84px; gap: 17px; }
.coach-heading { display: flex; align-items: center; gap: 13px; }
.coach-heading h2 { font-size: 1.4rem; letter-spacing: -.025em; }
.coach-heading .eyebrow { margin-bottom: 2px; }
.coach-avatar { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--accent-text); background: linear-gradient(135deg, #d5f79d, #8eca55); font-size: 1.05rem; font-weight: 900; box-shadow: 0 0 20px rgb(193 238 121 / 13%); }
.coach-presence { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--muted); font-size: .78rem; }
.coach-presence i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgb(131 214 165 / 45%); }
.coach-context { gap: 12px; }
.chat { display: flex; flex-direction: column; gap: 16px; min-height: 190px; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid #283b34; border-radius: 15px; background: rgb(9 17 15 / 58%); scroll-behavior: smooth; }
.chat-message { display: flex; flex-direction: column; gap: 5px; max-width: min(82%, 640px); }
.chat-message.user { align-self: flex-end; align-items: flex-end; }
.chat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-message.user .chat-meta { justify-content: flex-end; }
.chat-label { color: #b7c8be; font-size: .74rem; font-weight: 750; }
.chat-context { color: var(--muted); font-size: .7rem; }
.chat-bubble { background: #1b2b26; border: 1px solid #2b4037; border-radius: 4px 15px 15px 15px; padding: 11px 14px; white-space: pre-wrap; }
.chat-message.user .chat-bubble { background: #29391e; border-color: #526839; border-radius: 15px 4px 15px 15px; }
.chat-message.coach { align-self: flex-start; }
.coach-chat-form { margin-top: 0; }
.chat-empty { display: grid; grid-template-columns: 42px 1fr; gap: 3px 12px; align-items: center; max-width: 620px; padding: 4px; }
.chat-empty .coach-avatar { grid-row: span 2; }
.chat-empty p:first-of-type { font-weight: 650; }
.chat-empty .hint { grid-column: 2; }
.quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -5px; }
.prompt-chip { padding: 7px 11px; border: 1px solid #34473d; border-radius: 999px; background: #192722; color: #d3e2d7; font: inherit; font-size: .82rem; cursor: pointer; }
.prompt-chip:hover { border-color: var(--accent); color: var(--accent); }
.coach-chat-form textarea { min-height: 86px; }
.coach-submit-row { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.outline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); font-size: .8rem; min-width: 74px; }
.chip.future { opacity: .55; }
.chip.clickable { cursor: pointer; }
.chip.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.ph-basis { border-left: 4px solid #5aa9ff; }
.ph-opbouw { border-left: 4px solid var(--ok); }
.ph-piek { border-left: 4px solid #ff9f43; }
.ph-afbouw { border-left: 4px solid #b28dff; }
.ph-herstel { border-left: 4px solid #8ea0c8; }

.days-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--line); }
.day.rest { opacity: .7; }
.day .badge { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--card2); }
.day .dur { font-size: 1.25rem; font-weight: 800; }
.day .dtitle { font-weight: 600; }
.day .muted { font-size: .85rem; }
.t-duurrit { border-top-color: #5aa9ff; }
.t-herstelrit { border-top-color: #8ea0c8; }
.t-tempo { border-top-color: var(--ok); }
.t-drempel { border-top-color: #ff9f43; }
.t-vo2max, .t-sprint { border-top-color: var(--danger); }
.t-kracht, .t-techniek { border-top-color: #b28dff; }
.t-race { border-top-color: var(--accent); }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgb(20 31 24 / 56%); }
.workout-details { width: min(100%, 560px); max-height: min(90vh, 780px); overflow-y: auto; padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgb(15 26 18 / 24%); }
.workout-detail-summary { display: grid; justify-items: start; gap: 10px; }
.workout-detail-summary > strong { font-size: 1.4rem; }
.workout-profile { display: grid; gap: 9px; width: 100%; margin: 4px 0; }
.workout-block-editor { padding-top: 12px; border-top: 1px solid var(--line); }
.workout-block-editor summary { color: var(--text); font-weight: 650; cursor: pointer; }
.workout-block-editor .btn { margin-top: 8px; }
.workout-block-row { display: grid; grid-template-columns: minmax(70px, .7fr) minmax(90px, .8fr) minmax(150px, 1.6fr) auto; align-items: end; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; }
.workout-block-row .field { min-width: 0; }
.workout-profile figcaption { display: grid; gap: 2px; }
.workout-profile-chart { display: flex; align-items: flex-end; width: 100%; height: 132px; overflow: hidden; border-bottom: 1px solid #cbd6df; background: repeating-linear-gradient(to top, #edf2f6 0 1px, transparent 1px 25%); }
.profile-segment { position: relative; display: flex; flex: 1 1 0; min-width: 3px; align-items: flex-start; justify-content: center; border-top: 3px solid #2455f4; background: #075b92; transition: height .2s ease; }
.profile-segment + .profile-segment { border-left: 2px solid #fff; }
.profile-z1 { background: #166c9c; }
.profile-z2 { background: #075b92; }
.profile-z3 { background: #064e83; }
.profile-z4, .profile-z5 { background: #093d77; }
.profile-z6, .profile-z7 { background: #102c66; }
.profile-zone-unknown { background: #6b8394; border-color: #8799a6; }
.profile-zone-label { padding-top: 5px; color: #fff; font-size: .68rem; font-weight: 800; text-shadow: 0 1px 2px #092941; }
.profile-time-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .7rem; }
.zone-ranges { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.zone-ranges li { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; border-radius: 8px; background: #f1f5f2; font-size: .8rem; }
.zone-ranges li strong { color: #3e6530; }
.coach-thinking { display: inline-flex; align-items: center; gap: 10px; color: #52635a; }
.coach-wheel { position: relative; display: inline-block; flex: 0 0 24px; width: 24px; height: 24px; border: 2px solid #547a45; border-radius: 50%; animation: wheel-spin .8s linear infinite; }
.coach-wheel::before, .coach-wheel::after, .coach-wheel-spokes::before, .coach-wheel-spokes::after { position: absolute; top: 50%; left: 50%; width: 1px; height: 20px; background: #547a45; content: ""; transform: translate(-50%, -50%); }
.coach-wheel::after { transform: translate(-50%, -50%) rotate(90deg); }
.coach-wheel-spokes::before { transform: translate(-50%, -50%) rotate(45deg); }
.coach-wheel-spokes::after { transform: translate(-50%, -50%) rotate(-45deg); }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
.optional-trainingpeaks { padding-top: 12px; border-top: 1px solid var(--line); }
.optional-trainingpeaks summary { color: var(--muted); font-size: .86rem; cursor: pointer; }
.optional-trainingpeaks .btn { margin-top: 10px; }
.activity-list { display: grid; gap: 10px; }
.fit-upload-card { gap: 9px; padding: 14px 18px; margin-bottom: 14px; }
.fit-upload-card h2 { font-size: 1.08rem; }
.fit-upload-card input[type=file] { padding: 5px 7px; }
.activity-item { display: grid; gap: 8px; }
.activity-item-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.activity-title-main { display: flex; min-width: 0; align-items: center; gap: 4px; }
.activity-item-heading h2 { margin: 0; font-size: 1.05rem; }
.activity-item-heading time { flex: 0 0 auto; font-size: .82rem; }
.activity-details { gap: 8px; }
.activity-chart-block { display: grid; gap: 5px; }
.activity-chart-block h3 { margin: 0; font-size: .9rem; }
.activity-chart { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #eef4eb; }
.activity-map { position: relative; width: 100%; height: min(360px, 62vw); min-height: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #dce8d9; }
.activity-map-tile { position: absolute; width: 256px; height: 256px; max-width: none; }
.activity-map-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.activity-map-attribution { position: absolute; right: 4px; bottom: 3px; padding: 1px 4px; background: rgb(255 255 255 / 84%); color: #355545; font-size: .65rem; }
.activity-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 8px; }
.activity-metric { display: grid; gap: 1px; min-height: 54px; padding: 8px 10px; border-radius: 9px; background: #f1f5ef; }
.activity-metric span { color: var(--muted); font-size: .72rem; }
.activity-metric strong { font-size: .95rem; }
.activity-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.activity-edit { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #607466; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.activity-edit:hover { border-color: #d7e2d3; background: #f1f7ee; color: var(--accent); }
.activity-edit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.activity-name-input { min-width: 0; margin: -2px 0 2px; }
.activity-delete { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8c655f; font-size: 1rem; line-height: 1; cursor: pointer; }
.activity-delete:hover { border-color: #e6cbc7; background: #fff5f3; color: #a33f35; }
.activity-delete:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.activity-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.activity-date-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border-radius: 12px; background: #edf3e8; color: #3e6530; }
.activity-date-badge strong { font-size: 1.05rem; }
.activity-date-badge span { font-size: .72rem; }
.activity-main { min-width: 0; }
.activity-main h3 { overflow-wrap: anywhere; }
.activity-main > .muted { margin-top: 2px; font-size: .8rem; }
.activity-reflection { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
.activity-reflection > div { display: grid; gap: 5px; }
.integration-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px; }
.integration-mark { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: #f0f2f1; color: #34403a; font-weight: 850; }
.wahoo-mark { color: #fff; background: #1687c9; }
@media (max-width: 560px) {
  .activity-item-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .activity-reflection { align-items: stretch; flex-direction: column; }
  .activity-reflection .btn { width: 100%; }
  .workout-block-row { grid-template-columns: 1fr 1fr; }
  .workout-block-row .field:nth-child(3) { grid-column: 1 / -1; }
}

.privacy-page h2 { margin: 26px 0 8px; }
.privacy-page p, .privacy-page li { color: var(--muted); }
.privacy-page ul { padding-left: 20px; }
.privacy-page li { margin: 4px 0; }
.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; gap: 34px; height: 100vh; padding: 28px 18px; background: #fff; border-right: 1px solid var(--line); }
.sidebar .brand, .mobile-top .brand { color: #23332a; font-size: 1.35rem; }
.mobile-top .brand-logo { width: 140px; }
.sidebar nav { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.nav-item, .nav-logout { display: flex; align-items: center; min-height: 44px; padding: 10px 13px; border: 0; border-radius: 10px; background: transparent; color: #58665d; font: inherit; text-align: left; cursor: pointer; }
.nav-item:hover, .nav-logout:hover { background: #f1f5f0; color: #26352b; }
.nav-item.active { background: #edf3e8; color: #3e6530; font-weight: 700; }
.nav-label-with-badge { display: inline-flex; align-items: center; gap: 8px; }
.coach-unread-badge { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: #d65b45; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; }
.coach-unread-badge::after { content: attr(data-count); }
.launcher-badge { margin-left: auto; }
#sidebar-account { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.sidebar-username { padding: 0 12px; color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.nav-logout { font-size: .9rem; }
.main-shell { display: flex; min-width: 0; min-height: 100vh; flex-direction: column; }
.main-shell > .wrap { width: 100%; max-width: 1440px; padding: 42px clamp(22px, 5vw, 72px) 56px; }
.mobile-top { display: none; }
.foot { margin-top: auto; border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
.foot a { color: var(--accent); }
.card, .day, .stat-card { background: var(--card); border: 1px solid var(--line); box-shadow: 0 4px 16px rgb(26 43 31 / 4%); }
.card { background: var(--card); }
.day { background: #fff; }
.day .badge, .chip { background: var(--card2); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn.danger { color: #fff; }
.coach-avatar { color: #fff; background: linear-gradient(135deg, #6b8f51, #426638); box-shadow: none; }
.chat { border-color: var(--line); background: #f8faf8; }
.chat-label { color: #506056; }
.chat-bubble { background: #fff; border-color: #e2e8e2; }
.chat-message.user .chat-bubble { background: #edf3e8; border-color: #dae6d0; }
.prompt-chip { border-color: var(--line); background: #fff; color: #425046; }
.prompt-chip:hover { color: var(--accent); }
.coach-presence i { box-shadow: none; }
.typing-dots i { background: #61765b; }
.page-heading { margin: 0 0 22px; }
.page-heading .eyebrow, .dashboard-heading .eyebrow { color: var(--accent); }
.page-heading h1 { margin-bottom: 7px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { display: flex; min-height: 100px; flex-direction: column; justify-content: space-between; gap: 10px; padding: 17px; border-radius: var(--radius); }
.stat-card strong { font-size: 1.45rem; line-height: 1.15; }
.volume-chart { display: flex; align-items: end; gap: 8px; min-height: 176px; overflow-x: auto; padding: 14px 4px 0; }
.volume-column { display: flex; flex: 1 0 38px; min-width: 38px; height: 150px; flex-direction: column; align-items: center; justify-content: end; gap: 5px; }
.volume-value, .volume-date { color: var(--muted); font-size: .68rem; white-space: nowrap; }
.volume-track { display: flex; width: min(28px, 80%); height: 105px; align-items: end; overflow: hidden; border-radius: 7px; background: #edf1ec; }
.volume-bar { width: 100%; min-height: 3px; border-radius: 7px; background: #7a9c5e; }
.metrics-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 13px; }
.wellness-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.wellness-entry { display: flex; flex-direction: column; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wellness-values { display: flex; flex-wrap: wrap; gap: 6px; }
.wellness-value { padding: 4px 8px; border-radius: 999px; background: var(--card2); color: var(--muted); font-size: .78rem; }
.suggestion-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #d5e1cb; border-radius: 12px; background: #f6f9f3; }
.suggestion-card .row { margin-top: 4px; }
.suggestion-comparison { padding: 10px; border-radius: 9px; background: rgb(0 0 0 / 3%); }
.load-warning { padding: 9px 12px; border: 1px solid #e8d9a8; border-radius: 10px; background: #fff9e8; color: #66551f; font-size: .86rem; }
.plan-events { border-left: 4px solid var(--accent); }
.plan-event { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.event-outline-changes { margin: 0; padding-left: 20px; color: var(--muted); font-size: .86rem; }
.suggestion-arrow { text-align: center; font-size: 1.15rem; color: var(--accent); }
.import-summary-card { border-left: 4px solid var(--accent); }
.daily-metrics-promo { background: #fbfcfa; }
input[type=text], input[type=password], input[type=number], input[type=date], select, textarea, input[type=file] { color: var(--text); background: #fff; border-color: #d7dfd7; }
::placeholder { color: #88948b; opacity: 1; }
@media (max-width: 560px) {
  .wrap { padding: 22px 12px 40px; }
  .top { padding: 9px 12px; }
  .brand { font-size: 1.15rem; }
  nav { gap: 0; justify-content: flex-end; }
  nav .link { padding: 5px; font-size: .83rem; }
  .coach-presence { font-size: 0; }
  .coach-presence i { width: 9px; height: 9px; }
  .chat { max-height: 55vh; padding: 12px; }
  .chat-message { max-width: 94%; }
  .coach-submit-row { align-items: stretch; flex-direction: column; }
  .coach-submit-row .btn { width: 100%; }
}
@media (max-width: 760px) {
  .app-shell { display: flex; flex-direction: column; }
  .main-shell { display: contents; }
  .mobile-top { position: sticky; top: 0; z-index: 5; display: flex; min-height: 58px; align-items: center; padding: 8px 18px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 94%); backdrop-filter: blur(12px); }
  .sidebar { position: static; order: 1; display: flex; height: auto; gap: 0; padding: 0; border: 0; }
  .sidebar > .brand { display: none; }
  .mobile-top { order: 0; }
  .main-shell > .wrap { order: 2; }
  .main-shell > .foot { order: 3; }
  .main-shell > .wrap { padding: 28px 18px 42px; }
  .main-shell > .foot { padding: 14px 18px; text-align: left; }
  #nav { display: flex; flex-direction: row; gap: 4px; overflow-x: auto; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #fff; }
  .nav-item { flex: 0 0 auto; min-height: 38px; padding: 7px 10px; white-space: nowrap; font-size: .85rem; }
  #sidebar-account { flex-direction: row; align-items: center; justify-content: space-between; margin: 0; padding: 6px 16px; border: 0; background: #fff; }
  .sidebar-username { padding: 0; }
  .nav-logout { min-height: 34px; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: filter .15s, transform .15s; } .btn:hover { transform: translateY(-1px); } }
.chat { min-height: 320px; max-height: min(62vh, 680px); padding: 22px clamp(14px, 4vw, 42px); border-color: #dfe7df; border-radius: 18px; background-color: #edf2eb; background-image: radial-gradient(circle at 20% 20%, rgb(255 255 255 / 54%) 0 1px, transparent 1px), radial-gradient(circle at 80% 70%, rgb(255 255 255 / 48%) 0 1px, transparent 1px); background-size: 24px 24px, 30px 30px; }
.chat-message { gap: 4px; }
.chat-bubble { border: 0; border-radius: 4px 14px 14px 14px; padding: 10px 13px; box-shadow: 0 1px 1px rgb(22 43 26 / 10%); }
.chat-message.user .chat-bubble { background: #d9f4c8; border: 0; border-radius: 14px 4px 14px 14px; }
.checkin-bubble { background: #fffdf2; border: 1px solid #eee8cb; }
.chat-composer { display: flex; align-items: end; gap: 9px; padding: 9px; border: 1px solid #e1e8e1; border-radius: 17px; background: #f5f7f4; }
.chat-composer textarea { min-height: 44px; max-height: 140px; padding: 10px 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e6ebe5; }
.chat-composer textarea:focus-visible { outline: 2px solid #8da981; outline-offset: 1px; }
.chat-send { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #547a45; font-size: 1.15rem; cursor: pointer; }
.chat-send:hover { background: #426638; }
.chat-send:disabled { opacity: .6; cursor: wait; }
.week-checkin-prompt { border-left: 4px solid #7d9c62; }
.week-checkin-prompt .eyebrow { margin-bottom: -8px; }
.coach-launcher-button { position: fixed; right: 18px; bottom: 18px; z-index: 8; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px 7px 7px; border: 1px solid #426638; border-radius: 15px; background: #426638; color: #fff; box-shadow: 0 6px 20px rgb(25 49 29 / 22%); text-align: left; cursor: pointer; }
.coach-launcher-button:hover { background: #35572e; transform: translateY(-2px); }
.launcher-avatar { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 2px solid rgb(255 255 255 / 65%); border-radius: 50%; background: #edf4e7; color: #426638; font-weight: 850; }
.launcher-copy { display: flex; flex-direction: column; line-height: 1.3; }
.launcher-copy strong { font-size: .78rem; }
.launcher-copy > span { color: #e0eadb; font-size: .68rem; }
.launcher-arrow { margin-left: auto; font-size: .95rem; }
.t-mtb { border-top-color: #6d7840; }
@media (max-width: 760px) {
  .coach-launcher-button { right: 14px; bottom: 14px; width: 44px; height: 44px; justify-content: center; padding: 6px; border-radius: 50%; }
  .launcher-copy, .launcher-arrow { display: none; }
}
.week-actions { justify-content: flex-end; }
@media (max-width: 650px) { .week-actions { width: 100%; } .week-actions .btn { flex: 1 1 auto; } }
@media (max-width: 560px) {
  .chat { max-height: 55vh; padding: 12px; }
  .chat-message { max-width: 94%; }
  .chat-composer { position: sticky; bottom: 8px; }
}

/* ---------- analyse en racekop ---------- */
.analytics-range { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.range-btn { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; padding: 5px 11px; border-radius: 8px; cursor: pointer; }
.range-btn.active { background: var(--accent); color: var(--accent-text); }
.analytics-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.analytics-panels .card, .stack > .card { margin-bottom: 0; }
.big-number { margin: 0; }
.big-number strong { font-size: 2.6rem; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.small-text { font-size: .82rem; }
.meter { height: 8px; border-radius: 99px; background: var(--card2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.meter-risk { background: linear-gradient(90deg, #cfe0bd, #f3d9a8 55%, #f1b3ac); }
.meter-risk > span { background: transparent; border-right: 3px solid var(--text); border-radius: 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.mini-stats > div { display: flex; flex-direction: column; gap: 2px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-bar { fill: #dfe5df; }
.chart-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-ctl { stroke: #5b9bd5; }
.chart-atl { stroke: #e8837a; }
.chart-legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.legend-bar { background: #dfe5df; } .legend-ctl { background: #5b9bd5; } .legend-atl { background: #e8837a; }
.night-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.night-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.night-bar-fill { width: 100%; max-width: 44px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: #8fb7d9; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--card2); color: var(--muted); font-size: .78rem; font-weight: 650; }
.tag-accent { background: #e3efd6; color: var(--accent); }
.race-header { display: flex; flex-direction: column; gap: 16px; }
.race-title h2 { font-size: 1.5rem; letter-spacing: -.03em; }
.race-countdown { text-align: right; display: flex; flex-direction: column; }
.race-countdown strong { font-size: 2.2rem; line-height: 1; color: var(--accent); }
.race-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.race-stat { display: flex; flex-direction: column; gap: 2px; }
.race-stat-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 560px) { .mini-stats { grid-template-columns: 1fr; } }

/* ---------- wedstrijden in de intake ---------- */
.race-row { display: grid; grid-template-columns: 150px 1fr 150px auto; gap: 8px; align-items: center; }
.label-text { margin: 0; font-weight: 650; }
@media (max-width: 700px) { .race-row { grid-template-columns: 1fr 1fr; } .race-row input[type="text"] { grid-column: 1 / -1; } }

/* ---------- vinkje gedane training en nachtbalkjes ---------- */
.day.is-done { border-color: var(--accent); background: #f1f6ec; }
.day-done { margin: 6px 0 0; font-size: .82rem; font-weight: 700; color: var(--accent); }
.night-bars { height: 150px; }
.night-bar-value { font-size: .75rem; font-weight: 650; color: var(--muted); }
.night-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.night-bar-fill.night-ok { background: #7fb069; }

/* ---------- startpagina-inhoud (ook voor zoekmachines) ---------- */
.landing-info { max-width: 760px; margin: 30px 0; }
.landing-info h2 { margin: 0 0 10px; letter-spacing: -.02em; }
.landing-info ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.noscript-note { color: var(--muted); }