/* =========================================================
   DREAMAX² app — bouwt verder op ../styles.css (zelfde kleuren & fonts)
   ========================================================= */
:root {
  --good: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --tabbar-h: 68px;
}
body.app { font-size: 16px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

/* ---------- top & shell ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 9, 16, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.topbar__who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.week-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--border-strong); background: rgba(139, 92, 246, .14); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.shell { max-width: 780px; margin: 0 auto; padding: 22px 16px 40px; }
.shell--wide { max-width: 1180px; }

/* ---------- tabbar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(14, 12, 22, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--faint); font-size: 11.5px; white-space: nowrap; font-weight: 600; cursor: pointer; position: relative; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar button[aria-current="page"] { color: #fff; }
.tabbar button[aria-current="page"] svg { color: var(--purple-400); filter: drop-shadow(0 0 8px rgba(167,132,255,.6)); }
.tabbar .dot { position: absolute; top: 10px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
@media (min-width: 900px) {
  body.app { padding-bottom: 0; }
  .tabbar { position: sticky; top: 62px; bottom: auto; height: 54px; max-width: 780px; margin: 14px auto 0; border: 1px solid var(--border); border-radius: 14px; padding: 5px; gap: 5px; }
  .tabbar button { flex-direction: row; gap: 8px; font-size: 14px; border-radius: 10px; }
  .tabbar button[aria-current="page"] { background: rgba(139, 92, 246, .18); }
  .tabbar svg { width: 18px; height: 18px; }
  .tabbar .dot { top: 12px; left: auto; right: 14px; }
}

/* ---------- headings ---------- */
.view-head { margin: 6px 0 20px; }
.view-head h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 6px; }
.view-head p { margin: 0; color: var(--muted); }

/* ---------- cards ---------- */
.card { border: 1px solid var(--border); background: var(--bg-2); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
/* neutraliseer de site-.card (die is flex + hover-lift) */
.app .card { display: block; gap: 0; transition: none; }
.app .card:hover { transform: none; }
.app .card:not(.card--glow):hover { border-color: var(--border); }
.app .card p { flex: none; font-size: inherit; }
.app .card h3, .app .card h2 { font-size: 17px; margin: 0 0 14px; }
.app .card .card__sub { font-size: 13.5px; color: var(--faint); margin: -8px 0 14px; }
.app .card.done-card { display: flex; flex-direction: row; }
.app .card.done-card h2 { font-size: 19px; margin: 0 0 4px; }
.app .card.done-card p { font-size: 14.5px; }
.card--glow { border-color: var(--border-strong); background: linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(139, 92, 246, .02)), var(--bg-2); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__title { font-size: 17px; margin: 0 0 14px; }
.card__sub { color: var(--faint); font-size: 13.5px; margin: -8px 0 14px; }
.card__head .card__title { margin-bottom: 14px; }

/* ---------- datum-strip ---------- */
.day-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -16px 18px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; }
.day-strip::-webkit-scrollbar { display: none; }
.day { flex: none; width: 56px; padding: 10px 0 9px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: center; cursor: pointer; scroll-snap-align: end; transition: border-color .2s, background .2s; }
.day span { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.day strong { display: block; font-size: 19px; font-family: var(--font-head); margin: 2px 0 5px; }
.day i { display: block; width: 7px; height: 7px; border-radius: 50%; margin: 0 auto; background: transparent; border: 1.5px solid var(--faint); }
.day.is-done i { background: var(--good); border-color: var(--good); }
.day.is-missing i { border-color: var(--warn); }
.day[aria-pressed="true"] { border-color: var(--purple-500); background: rgba(139, 92, 246, .2); }
.day:hover { border-color: var(--border-strong); }

/* ---------- formulier ---------- */
.q { padding: 14px 0; border-top: 1px solid var(--border); }
.q:first-of-type { border-top: 0; padding-top: 2px; }
.q__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; margin-bottom: 10px; }
.q__label small { font-weight: 500; color: var(--faint); font-size: 13px; }
.q__hint { font-size: 13px; color: var(--faint); margin: 8px 0 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.rating-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rate { height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .12s, background .2s, border-color .2s; }
.rate:hover { border-color: var(--border-strong); }
.rate:active { transform: scale(.95); }
.rate[aria-pressed="true"] { color: #0a0910; border-color: transparent; }
.rating-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 6px; }

.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 22px; line-height: 1; cursor: pointer; }
.stepper button:hover { border-color: var(--border-strong); }
.stepper output { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -.02em; text-align: center; flex: 1; }
.stepper output small { font-family: var(--font-body); font-size: 13px; color: var(--faint); font-weight: 500; letter-spacing: 0; margin-left: 4px; }

.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 12px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; }
.chip { font-size: 13.5px; padding: 9px 13px; }

.time-input, .text-input, .select, textarea.text-input {
  width: 100%; font: 600 18px/1.2 var(--font-body); color: #fff; color-scheme: dark;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
}
.text-input, .select, textarea.text-input { font-size: 15.5px; font-weight: 500; }
textarea.text-input { min-height: 84px; resize: vertical; line-height: 1.5; }
.time-input:focus, .text-input:focus, .select:focus { outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

.toggle { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 13px 14px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.toggle:last-child { margin-bottom: 0; }
.toggle__box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--faint); display: grid; place-items: center; transition: all .2s; }
.toggle__box svg { width: 16px; height: 16px; opacity: 0; color: #0a0910; }
.toggle[aria-pressed="true"] { border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .08); }
.toggle[aria-pressed="true"] .toggle__box { background: var(--good); border-color: var(--good); }
.toggle[aria-pressed="true"] .toggle__box svg { opacity: 1; }
.toggle__txt { flex: 1; font-weight: 600; }
.toggle__txt small { display: block; color: var(--faint); font-weight: 500; font-size: 12.5px; }
.toggle a { color: var(--purple-300); font-size: 13px; }

.calc { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.calc b { color: #fff; }

.savebar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px); z-index: 30; margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.savebar .btn { flex: 1; }
@media (min-width: 900px) { .savebar { bottom: 18px; } }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn--ghost, .btn-ghost { background: var(--surface); box-shadow: none; border: 1px solid var(--border); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; cursor: pointer; }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-danger { color: var(--bad); }
.link { color: var(--purple-300); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; font-weight: 600; }

/* ---------- status / samenvatting ---------- */
.done-card { display: flex; gap: 16px; align-items: center; }
.done-card__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(74, 222, 128, .14); color: var(--good); font-size: 24px; }
.done-card h2 { font-size: 20px; margin: 0 0 4px; font-family: var(--font-body); letter-spacing: -.01em; }
.done-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.nudge { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); font-size: 14px; margin-bottom: 16px; }
.nudge b { color: var(--warn); }

/* ---------- stat tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-grid .stat-tile { padding: 16px; background: var(--bg-2); }
.stat-grid .stat-tile__value { font-size: clamp(22px, 3.2vw, 30px); }
.stat-tile__sub { display: block; font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.delta { font-weight: 700; margin-left: 4px; }
.delta.is-good { color: var(--good); }
.delta.is-bad { color: var(--bad); }
@media (max-width: 720px) { .stat-grid { grid-template-columns: 1fr 1fr; } }

.insights { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.insights li { position: relative; padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--surface); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.insights li strong { color: #fff; }
.insights li::before { content: "↗"; position: absolute; left: 12px; top: 9px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.insights li.is-good::before { background: rgba(74, 222, 128, .18); color: var(--good); }
.insights li.is-warn::before { content: "!"; background: rgba(251, 191, 36, .18); color: var(--warn); }

/* ---------- grafiek ---------- */
.chart-wrap { margin: 0 -6px; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .grid--week { stroke-dasharray: 3 4; }
.chart .axis { fill: var(--faint); font-size: 11.5px; font-family: var(--font-body); }
.chart .today-line { stroke: var(--purple-300); stroke-width: 1.5; stroke-dasharray: 2 3; opacity: .7; }
.chart__line { fill: none; stroke: rgba(196, 176, 255, .35); stroke-width: 1.5; }
.chart__dot { fill: var(--purple-300); opacity: .75; cursor: pointer; }
.chart__dot:hover { opacity: 1; r: 6; }
.chart__wline { fill: none; stroke: var(--purple-500); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(139, 92, 246, .6)); }
.chart__wdot { fill: var(--bg-2); stroke: var(--purple-400); stroke-width: 3; cursor: pointer; }
.chart__legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--faint); margin-top: 6px; padding-left: 6px; }
.lg { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.lg--day { background: rgba(196, 176, 255, .55); }
.lg--week { background: var(--purple-500); height: 4px; }
.mini-spark { width: 120px; height: 32px; display: block; }
.mini-spark path { fill: none; stroke: var(--purple-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tooltip { position: fixed; z-index: 100; pointer-events: none; max-width: 260px; padding: 9px 12px; border-radius: 10px; background: #1b1628; border: 1px solid var(--border-strong); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }

/* ---------- tabellen ---------- */
.table-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.wtable { border-collapse: separate; border-spacing: 3px; font-size: 13.5px; min-width: 100%; }
.wtable th, .wtable td { padding: 8px 10px; border-radius: 8px; text-align: center; white-space: nowrap; }
.wtable thead th { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.wtable thead th small { display: block; font-weight: 500; color: var(--faint); font-size: 11px; }
.wtable tbody th, .wtable tr > th:first-child { text-align: left; color: var(--muted); font-weight: 600; position: sticky; left: 0; background: var(--bg-2); z-index: 1; }
.wtable td { background: var(--surface); font-variant-numeric: tabular-nums; }
.wtable td .delta { font-size: 10px; }

.chal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chal-list li { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; }
.chal-list .wk { font-weight: 700; color: var(--faint); font-size: 13px; }
.chal { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 4px 8px; font-size: 12.5px; min-width: 0; }
.chal__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.chal b { font-variant-numeric: tabular-nums; }
.chal__bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.chal__bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; }
@media (max-width: 560px) { .chal-list li { grid-template-columns: 1fr; } .chal-list .wk { margin-top: 6px; } }

/* ---------- week ---------- */
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 10px; }
.week-days span { height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--faint); background: var(--surface); border: 1px solid var(--border); }
.week-days span.is-done { background: rgba(74, 222, 128, .2); border-color: rgba(74, 222, 128, .45); color: #fff; }
.week-days span.is-no { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .35); }
.chal-card { padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 10px; }
.chal-card__top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.chal-card__top a { color: var(--purple-300); font-size: 13px; font-weight: 600; }
.chal-card__n { font-family: var(--font-head); color: var(--purple-300); }
.reply { margin-top: 14px; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: rgba(139, 92, 246, .14); border: 1px solid var(--border-strong); }
.reply__who { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-300); margin-bottom: 6px; }
.reply p { margin: 0; white-space: pre-wrap; }

/* ---------- info ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.contact .btn { flex: 1 1 160px; }
.btn--wa { background: linear-gradient(135deg, #2bd36b, #128c4a); box-shadow: 0 10px 30px -12px rgba(37, 211, 102, .8); }
.kv { display: grid; gap: 12px; }
.kv div { padding: 12px 14px; border-radius: 12px; background: var(--surface); }
.kv dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.kv dd { margin: 0; white-space: pre-wrap; }
.kv a { color: var(--purple-300); }
.mod-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mod { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.mod .toggle__box { cursor: pointer; background: none; }
.mod[data-done="1"] .toggle__box { background: var(--good); border-color: var(--good); }
.mod[data-done="1"] .toggle__box svg { opacity: 1; }
.mod a { flex: 1; text-decoration: none; font-weight: 600; }
.mod a:hover { color: var(--purple-300); }
.mod[data-done="1"] a { color: var(--muted); }
.mod__play { font-size: 12px; color: var(--faint); }
.progress { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 0 0 14px; }
.progress i { display: block; height: 100%; background: var(--grad); }
.doc-links { display: grid; gap: 8px; }
.doc-links a { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px; border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 600; border: 1px solid var(--border); }
.doc-links a:hover { border-color: var(--border-strong); }
.doc-links a span { color: var(--faint); font-weight: 500; font-size: 13px; }

.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.sum { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.sum__n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(139, 92, 246, .25); color: var(--purple-300); font-weight: 800; font-size: 12px; margin-bottom: 8px; }
.sum h4 { margin: 0 0 4px; font-size: 15px; }
.sum p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) { .sum-grid { grid-template-columns: 1fr; } }
.factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.factors li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.factors p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
@media (max-width: 640px) { .factors { grid-template-columns: 1fr; } }
.rating { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 8px; font-weight: 800; font-size: 14px; letter-spacing: -.05em; }
.rating--mm { background: rgba(248, 113, 113, .18); color: var(--bad); }
.rating--m { background: rgba(251, 191, 36, .16); color: var(--warn); }
.rating--p { background: rgba(74, 222, 128, .14); color: var(--good); }
.rating--pp { background: rgba(74, 222, 128, .24); color: var(--good); }
.rating--none { background: var(--surface-2); color: var(--faint); }
.legend-line { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--faint); margin: 14px 0 0; }
.legend-line .rating { min-width: 28px; height: 20px; font-size: 12px; margin-right: 4px; }

/* ---------- toast & leeg ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px); transform: translate(-50%, 20px); z-index: 120; padding: 12px 18px; border-radius: 12px; background: #1b1628; border: 1px solid var(--border-strong); font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.toast[data-kind="err"] { border-color: rgba(248, 113, 113, .6); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.empty { text-align: center; padding: 70px 20px; }
.empty h1 { font-size: 30px; }
.empty p { color: var(--muted); max-width: 420px; margin: 0 auto 1em; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--purple-400); animation: spin 0.9s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- coach ---------- */
.coach-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 22px; }
.coach-head h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.coach-head p { margin: 4px 0 0; color: var(--muted); }
.coach-nav { display: flex; gap: 8px; align-items: center; }
.coach-nav a, .coach-nav button { font-size: 14px; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cc { display: block; text-decoration: none; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-2); transition: border-color .2s, transform .2s; }
.cc:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cc__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cc h3 { margin: 0; font-size: 18px; }
.cc__meta { font-size: 13px; color: var(--faint); }
.cc__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 14px; }
.cc__big { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.cc__big small { font-family: var(--font-body); font-size: 12px; color: var(--faint); font-weight: 500; display: block; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge--ok { background: rgba(74, 222, 128, .14); color: var(--good); }
.badge--warn { background: rgba(251, 191, 36, .14); color: var(--warn); }
.badge--bad { background: rgba(248, 113, 113, .14); color: var(--bad); }
.badge--q { background: rgba(139, 92, 246, .22); color: var(--purple-300); }
.subtabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 20px; scrollbar-width: none; }
.subtabs button { flex: none; padding: 12px 14px; border: 0; background: none; color: var(--faint); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs button[aria-current="page"] { color: #fff; border-bottom-color: var(--purple-500); }
.diary { border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.diary th, .diary td { padding: 6px 8px; border-radius: 6px; text-align: center; white-space: nowrap; }
.diary thead th { position: sticky; top: 0; background: var(--bg-2); color: var(--muted); font-size: 11.5px; font-weight: 700; z-index: 2; }
.diary td { background: var(--surface); font-variant-numeric: tabular-nums; }
.diary td.date { text-align: left; color: var(--muted); }
.diary tr.wk-start td { border-top: 2px solid var(--border-strong); }
.diary td.note { max-width: 260px; overflow: hidden; text-overflow: ellipsis; text-align: left; color: var(--muted); }
.diary-scroll { overflow: auto; max-height: 70vh; }
.wk-acc { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-2); margin-bottom: 12px; }
.wk-acc > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.wk-acc > summary::-webkit-details-marker { display: none; }
.wk-acc > summary::after { content: "+"; color: var(--purple-300); font-size: 20px; }
.wk-acc[open] > summary::after { content: "−"; }
.wk-acc__body { padding: 0 18px 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.ch-edit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; margin-bottom: 8px; }
.factor-edit { display: grid; grid-template-columns: 1fr 120px; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.factor-edit textarea { grid-column: 1 / -1; min-height: 56px; }
.factor-edit .rm { grid-column: 1 / -1; justify-self: end; }
.mod-edit { display: grid; grid-template-columns: 64px 1fr 1.3fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
@media (max-width: 640px) { .mod-edit { grid-template-columns: 1fr; } .ch-edit { grid-template-columns: 1fr; } }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: #fff; border-color: var(--border-strong); }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { flex: 1; font-size: 13.5px; }
.login { max-width: 400px; margin: 10vh auto; }
.pin { letter-spacing: .5em; text-align: center; font-size: 26px; font-weight: 800; }
dialog.modal { width: min(520px, calc(100% - 32px)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-2); color: #fff; padding: 24px; }
dialog.modal::backdrop { background: rgba(5, 4, 10, .7); backdrop-filter: blur(4px); }
dialog.modal h2 { font-size: 24px; }
.ex-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ex-opts .btn-ghost { justify-content: center; padding: 14px 8px; }
@media (max-width: 480px) { .ex-opts { grid-template-columns: 1fr 1fr; } }
.modal .btn--wa { padding: 11px 16px; font-size: 14px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.quickstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 720px) { .quickstats { grid-template-columns: 1fr 1fr; } }
.qa { padding: 12px 14px; border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.qa dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.qa dd { margin: 4px 0 0; white-space: pre-wrap; }

/* ---------- onboarding: rondleiding ---------- */
body.has-tour { overflow: hidden; }
.tour { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  background: radial-gradient(520px 420px at 80% 0, rgba(139, 92, 246, .34), transparent 70%), radial-gradient(420px 380px at 0 100%, rgba(109, 58, 224, .2), transparent 70%), var(--bg); overflow: hidden; }
.tour__top { display: flex; justify-content: space-between; align-items: center; max-width: 460px; width: 100%; margin: 0 auto; min-height: 36px; }
.tour__count { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--faint); }
.tour__skip { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; padding: 8px 0; }
.tour__slide { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; max-width: 460px; width: 100%; margin: 0 auto; padding: 18px 0 10px; display: flex; flex-direction: column; justify-content: safe center; animation: tourIn .38s cubic-bezier(.2, .7, .2, 1); }
.tour__slide--back { animation-name: tourBack; }
@keyframes tourIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes tourBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.tour__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 22px; background: var(--grad-btn); box-shadow: 0 18px 44px -14px rgba(139, 92, 246, .9), inset 0 1px 0 rgba(255,255,255,.2); }
.tour__icon svg { width: 30px; height: 30px; color: #fff; }
.tour__eb { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-300); }
.tour__h { font-size: clamp(28px, 7.4vw, 36px); margin: 0 0 12px; }
.tour__p { color: var(--muted); font-size: 16.5px; line-height: 1.55; margin: 0 0 22px; }
.tour__tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tour__tips li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; line-height: 1.5; color: var(--muted); }
.tour__tips b { color: #fff; }
.tour__e { flex: none; font-size: 19px; line-height: 1.2; }
.tour__scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 12px 0 0; }
.tour__scale span { height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #0a0910; font-size: 14px; }
.tour__small { margin: 14px 0 0; font-size: 14px; color: var(--faint); }
.tour__rhythm { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tour__rhythm li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border-strong); background: linear-gradient(90deg, rgba(139, 92, 246, .16), rgba(139, 92, 246, .03)); }
.tour__rhythm b { font-family: var(--font-head); font-size: 18px; letter-spacing: -.01em; }
.tour__rhythm span { color: var(--muted); font-size: 14.5px; text-align: right; }
.tour__nav { flex: none; display: flex; align-items: center; gap: 12px; max-width: 460px; width: 100%; margin: 0 auto; padding-top: 10px; }
.tour__nav .btn { flex: 1; }
.tour__back { flex: none; width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 20px; cursor: pointer; color: #fff; }
.tour__dots { display: flex; gap: 6px; }
.tour__dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .18); transition: width .3s, background .3s; }
.tour__dots i.on { width: 20px; background: var(--purple-400); }
@media (max-width: 420px) { .tour__dots { display: none; } }

/* ---------- eerste stappen ---------- */
.tasks { display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, background .2s; }
.task .toggle__box { cursor: pointer; background: none; }
.task.is-done { border-color: rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .07); }
.task.is-done .toggle__box { background: var(--good); border-color: var(--good); }
.task.is-done .toggle__box svg { opacity: 1; }
.task.is-done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.task__txt { flex: 1; min-width: 0; }
.task__txt strong { display: block; font-size: 15px; }
.task__txt small { display: block; color: var(--faint); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.task__go { flex: none; font-size: 13px; font-weight: 700; color: var(--purple-300); text-decoration: none; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border-strong); }
.task__go:hover { background: rgba(139, 92, 246, .14); }
.tour__slide > * { flex: none; }

/* ---------- formulieren in de app (onboarding, chronotype, doel) ---------- */
.flow__bar { max-width: 460px; width: 100%; margin: 8px auto 0; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; flex: none; }
.flow__bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .4s ease; }
.flow .tour__slide { padding-top: 24px; }
.fq { padding: 16px 0; border-top: 1px solid var(--border); scroll-margin: 80px; }
.fq__t { margin: 0 0 10px; font-weight: 700; font-size: 16px; line-height: 1.4; }
.fq__t small { font-weight: 500; color: var(--faint); font-size: 13px; }
.fq.is-missing .fq__t { color: var(--bad); }
.fq.is-missing .opts .opt, .fq.is-missing .rate, .fq.is-missing input { border-color: rgba(248, 113, 113, .6); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts--col { flex-direction: column; margin-top: 8px; }
.opt { font: 600 15px/1.3 var(--font-body); color: var(--muted); text-align: left; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.opts--col .opt { padding: 16px 18px; font-size: 16px; }
.opt:hover { color: #fff; border-color: var(--border-strong); }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { color: #fff; background: rgba(139, 92, 246, .24); border-color: var(--purple-500); box-shadow: 0 0 0 1px var(--purple-500) inset; }
.rate--sm { height: 42px; font-size: 14px; padding: 0; }
.unit-input { display: flex; align-items: center; gap: 10px; max-width: 200px; }
.unit-input span { color: var(--faint); font-weight: 600; }
.tour__h--q { font-size: clamp(24px, 6.4vw, 30px); }
.chrono-badge { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 44px; margin-bottom: 18px; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 60%), var(--grad-btn); box-shadow: 0 20px 50px -16px rgba(139, 92, 246, .9); }
.chrono-scale { position: relative; height: 10px; border-radius: 99px; margin-top: 6px; background: linear-gradient(90deg, #3b2a7a, #8b5cf6 50%, #fbbf24); }
.chrono-scale i { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 246, .5), 0 6px 16px rgba(0,0,0,.5); }
.chrono-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.why-chain { display: grid; gap: 4px; justify-items: start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; }
.why-chain span { padding: 8px 12px; border-radius: 10px; background: rgba(139, 92, 246, .14); color: var(--muted); }
.why-chain span b { color: #fff; }
.why-chain i { font-style: normal; font-size: 12.5px; color: var(--purple-300); padding-left: 12px; }
.flow .sum-grid { grid-template-columns: 1fr; }
.flow .factors { grid-template-columns: 1fr; }
.doc-btn { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font: 600 16px/1.3 var(--font-body); color: #fff; text-align: left; cursor: pointer; }
.doc-btn:hover { border-color: var(--border-strong); }
.doc-btn span { color: var(--purple-300); font-weight: 600; font-size: 13px; white-space: nowrap; }
button.task__go { background: none; cursor: pointer; font-family: var(--font-body); }

/* coach: antwoorden */
.ans-h { margin: 18px 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-300); }
.ans { margin: 0; display: grid; gap: 6px; }
.ans div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.ans dt { color: var(--faint); }
.ans dd { margin: 0; white-space: pre-wrap; }
.grid-2 .ans div { grid-template-columns: 90px 1fr; }
.ans-details { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.ans-details > summary { cursor: pointer; font-weight: 700; color: #fff; }
@media (max-width: 640px) { .ans div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- chat ---------- */
body.in-chat .shell { padding-bottom: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; min-height: 44px; }
.chat-head__t { font-size: 30px; margin: 0; }
.seg2 { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.seg2 button { position: relative; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--font-body); color: var(--muted); background: none; border: 0; padding: 10px 14px; border-radius: 9px; cursor: pointer; }
.seg2 button[aria-pressed="true"] { color: #fff; background: rgba(139, 92, 246, .28); }
.seg2__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--warn); color: #0a0910; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.chatbox { height: calc(100vh - 62px - var(--tabbar-h) - 100px); height: calc(100dvh - 62px - var(--tabbar-h) - env(safe-area-inset-bottom) - 100px); min-height: 320px; }
@media (min-width: 900px) { .chatbox { height: calc(100dvh - 62px - 68px - 130px); } }
.chat { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-2); overflow: hidden; }
.chat__list { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 16px; overscroll-behavior: contain; }
.chat__note { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .25); margin-bottom: 4px; }
.chat__empty { text-align: center; color: var(--muted); padding: 48px 18px; font-size: 15px; line-height: 1.55; }
.chat__empty p { margin: 0 0 8px; }
.chat__empty b { color: #fff; }
.chat__day { text-align: center; margin: 16px 0 6px; }
.chat__day span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--faint); padding: 4px 10px; border-radius: 99px; background: var(--surface); }
.msg { display: flex; flex-direction: column; align-items: flex-start; margin-top: 10px; max-width: 82%; }
.msg--cont { margin-top: 3px; }
.msg--me { margin-left: auto; align-items: flex-end; }
.msg__name { font-size: 12px; font-weight: 700; color: var(--purple-300); margin: 0 0 3px 12px; }
.msg__name b { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; margin-left: 4px; border-radius: 6px; background: var(--grad-btn); color: #fff; }
.msg__bubble { padding: 8px 12px 7px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--cont .msg__bubble { border-top-left-radius: 8px; }
.msg--me .msg__bubble { background: var(--grad-btn); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.msg--me.msg--cont .msg__bubble { border-top-right-radius: 8px; border-top-left-radius: 18px; }
.msg--coach .msg__bubble { background: rgba(139, 92, 246, .16); border-color: var(--border-strong); }
.msg__bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.msg__time { float: right; margin: 6px 0 0 10px; font-size: 11px; line-height: 1; color: rgba(255, 255, 255, .5); }
.msg__del { color: var(--faint); }
.msg__rm { font: 600 11.5px/1 var(--font-body); color: var(--faint); background: none; border: 0; cursor: pointer; padding: 4px 8px; opacity: 0; transition: opacity .15s; }
.msg:hover .msg__rm, .msg__rm:focus-visible { opacity: 1; }
.msg__rm:hover { color: var(--bad); }
@media (hover: none) { .msg__rm { opacity: .7; } }
.chat__compose { flex: none; display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--border); background: rgba(10, 9, 16, .55); }
.chat__input { flex: 1; resize: none; font: 500 16px/1.4 var(--font-body); color: #fff; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 10px 15px; max-height: 140px; color-scheme: dark; }
.chat__input:focus { outline: none; border-color: var(--purple-500); }
.chat__send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--grad-btn); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px -8px rgba(139, 92, 246, .9); transition: opacity .2s, transform .1s; }
.chat__send svg { width: 19px; height: 19px; margin-left: -2px; }
.chat__send:disabled { opacity: .35; box-shadow: none; cursor: default; }
.chat__send:active { transform: scale(.94); }

/* coach: gesprekken */
.cchat { display: grid; grid-template-columns: 320px 1fr; gap: 16px; height: calc(100dvh - 62px - 160px); min-height: 440px; }
.threads { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-right: 2px; }
.thr { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-2); text-decoration: none; color: inherit; }
.thr:hover { border-color: var(--border-strong); }
.thr[aria-current="page"] { border-color: var(--purple-500); background: rgba(139, 92, 246, .14); }
.thr__av { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); color: var(--purple-300); }
.thr--group .thr__av { background: var(--grad-btn); color: #fff; }
.thr__name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr__when { font-size: 12px; color: var(--faint); justify-self: end; }
.thr__prev { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thr__n { justify-self: end; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--warn); color: #0a0910; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.thr.has-unread .thr__name, .thr.has-unread .thr__prev { color: #fff; }
.cchat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cchat__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cchat__head h2 { font-size: 22px; margin: 0; }
.cchat__main .chatbox { height: auto; flex: 1; min-height: 0; }
.cchat__back { display: none; }
.nav-n { margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--warn); color: #0a0910; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
@media (max-width: 860px) {
  .cchat { grid-template-columns: 1fr; height: calc(100dvh - 62px - 120px); }
  .cchat.has-open .threads { display: none; }
  .cchat:not(.has-open) .cchat__main { display: none; }
  .cchat__back { display: inline-flex; }
}

/* ---------- chat v2: foto, spraak, poll, reacties, vastzetten ---------- */
.chat { position: relative; }
.chat__pin { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--border); background: rgba(139, 92, 246, .12); color: #fff; cursor: pointer; font: 500 13.5px/1.35 var(--font-body); }
.chat__pin svg { flex: none; width: 16px; height: 16px; color: var(--purple-300); }
.chat__pin span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__pin b { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-300); }
.chat__tool { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.chat__tool:hover { color: #fff; border-color: var(--border-strong); }
.chat__tool svg { width: 20px; height: 20px; }
.chat__compose { position: relative; }
.chat__send .i-mic { display: none; }
.chat__send.is-mic .i-mic { display: block; margin: 0; }
.chat__send.is-mic .i-send { display: none; }
.chat__send.is-mic { background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: none; }
.chat__menu { position: absolute; left: 10px; bottom: calc(100% + 8px); z-index: 5; display: grid; gap: 4px; padding: 6px; border-radius: 14px; background: #1b1628; border: 1px solid var(--border-strong); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.chat__menu button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 0; border-radius: 10px; background: none; color: #fff; font: 600 15px/1 var(--font-body); cursor: pointer; text-align: left; }
.chat__menu button:hover { background: rgba(139, 92, 246, .18); }
.chat__menu svg { width: 18px; height: 18px; color: var(--purple-300); }
.chat__rec { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--border); background: rgba(10, 9, 16, .55); }
.rec__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: .25; } }
.rec__time { font: 700 16px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.rec__hint { flex: 1; color: var(--faint); font-size: 13.5px; }

.msg__bubble { position: relative; cursor: pointer; }
.msg__more { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(10, 9, 16, .55); color: #fff; opacity: 0; cursor: pointer; transition: opacity .15s; }
.msg__more svg { width: 14px; height: 14px; }
.msg__bubble:hover .msg__more, .msg__more:focus-visible { opacity: 1; }
@media (hover: none) { .msg__more { display: none; } }
.msg__pinned { float: left; margin: 2px 6px 0 0; color: var(--purple-300); }
.msg__pinned svg { width: 13px; height: 13px; }
.msg.is-flash .msg__bubble { box-shadow: 0 0 0 3px var(--warn); transition: box-shadow .3s; }
.msg--image .msg__bubble { padding: 4px; max-width: 280px; }
.msg__imgbtn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.msg__img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 14px; background: var(--surface); }
.msg__cap { padding: 6px 8px 2px; }
.msg--image .msg__time { margin: 4px 6px 2px 10px; }
.voice { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 2px 0; }
.voice__btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.msg--me .voice__btn { background: rgba(255, 255, 255, .25); }
.voice__btn svg { width: 15px; height: 15px; }
.voice__bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.voice__bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width .2s linear; }
.voice__t { font-size: 12.5px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .75); min-width: 32px; }
.msg--poll { max-width: 92%; width: 340px; }
.msg--poll .msg__bubble { width: 100%; }
.poll__q { margin: 0 0 10px; font-weight: 700; font-size: 15.5px; }
.poll__o { position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 2px 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px; border-radius: 12px; border: 1px solid var(--border); background: rgba(10, 9, 16, .35); color: #fff; font: 500 14.5px/1.3 var(--font-body); cursor: pointer; overflow: hidden; }
.poll__o > * { position: relative; }
.poll__bar { position: absolute !important; left: 0; top: 0; bottom: 0; background: rgba(139, 92, 246, .28); transition: width .4s ease; }
.poll__radio { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--faint); }
.poll__o.is-mine { border-color: var(--purple-400); }
.poll__o.is-mine .poll__radio { border-color: var(--purple-300); background: var(--purple-300); box-shadow: inset 0 0 0 3px #1b1628; }
.poll__who { grid-column: 2 / -1; font-size: 11.5px; color: var(--muted); }
.poll__n { margin: 4px 0 0; font-size: 12.5px; color: var(--faint); }
.msg--me .poll__o { background: rgba(10, 9, 16, .25); border-color: rgba(255,255,255,.2); }
.msg--me .poll__n { color: rgba(255,255,255,.7); }
.msg__re { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 8px 0; position: relative; z-index: 1; }
.re { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 99px; border: 1px solid var(--border); background: #1b1628; color: #fff; font-size: 13px; cursor: pointer; }
.re b { font-size: 11.5px; color: var(--muted); }
.re.is-mine { border-color: var(--purple-400); background: rgba(139, 92, 246, .3); }

/* onderblad (acties, foto, poll) */
.chat__sheet { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; background: rgba(5, 4, 10, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadein .15s; }
.chat__sheet.is-dark { background: rgba(5, 4, 10, .92); justify-content: center; }
@keyframes fadein { from { opacity: 0; } }
.sheet__card { display: grid; gap: 6px; padding: 12px; border-radius: 18px; background: #17121f; border: 1px solid var(--border-strong); box-shadow: 0 20px 50px rgba(0,0,0,.6); max-height: 100%; overflow-y: auto; animation: sheetup .2s cubic-bezier(.2,.7,.2,1); }
@keyframes sheetup { from { transform: translateY(20px); opacity: 0; } }
.sheet__card h3 { font-size: 17px; margin: 2px 2px 6px; }
.sheet__prev { margin: 2px 4px 6px; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__re { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 4px; }
.sheet__re button { height: 46px; font-size: 24px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: transform .1s; }
.sheet__re button:active { transform: scale(.9); }
.sheet__re button.is-mine { border-color: var(--purple-400); background: rgba(139, 92, 246, .25); }
.sheet__item { padding: 13px; border-radius: 12px; border: 0; background: var(--surface); color: #fff; font: 600 15px/1 var(--font-body); cursor: pointer; text-align: center; }
.sheet__item:hover { background: var(--surface-2); }
.sheet__item.is-danger { color: var(--bad); }
.sheet__cancel { background: none; color: var(--muted); }
.sheet__row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.sheet__card--photo { gap: 10px; }
.sheet__img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 12px; background: #000; }
.sheet__zoom { border: 0; background: none; padding: 0; cursor: zoom-out; display: grid; place-items: center; height: 100%; }
.sheet__zoom img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.sheet__card--form .field { margin-bottom: 10px; }
.msg--poll .msg__bubble, .msg--voice .msg__bubble, .msg--image .msg__bubble { white-space: normal; }
.msg__cap, .poll__q, .poll__t { white-space: pre-wrap; }

/* ---------- chat v3: antwoorden, vinkjes, nieuwe berichten ---------- */
.msg { transition: transform .15s ease-out; }
.msg__quote { display: block; width: 100%; min-width: 140px; text-align: left; margin: 0 0 6px; padding: 6px 10px; border: 0; border-left: 3px solid var(--purple-300); border-radius: 8px; background: rgba(10, 9, 16, .35); color: rgba(255, 255, 255, .78); font: 500 13px/1.35 var(--font-body); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg__quote b { display: block; color: var(--purple-300); font-size: 12px; }
.msg--me .msg__quote { border-left-color: #fff; background: rgba(10, 9, 16, .25); }
.msg--me .msg__quote b { color: #fff; }
.msg--image .msg__quote { margin: 2px 2px 6px; width: calc(100% - 4px); }
.tick { margin-left: 4px; letter-spacing: -3px; padding-right: 3px; }
.tick.is-read { color: #8ff0b4; }
.chat__new { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 6; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border-strong); background: #1b1628; color: #fff; font: 600 13px/1 var(--font-body); box-shadow: 0 10px 26px rgba(0,0,0,.5); cursor: pointer; }
.chat__new svg { width: 15px; height: 15px; }
.chat__replybar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); background: rgba(139, 92, 246, .1); font-size: 13px; color: var(--muted); }
.chat__replybar > svg { flex: none; width: 18px; height: 18px; color: var(--purple-300); }
.chat__replybar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__replybar b { display: block; color: var(--purple-300); font-size: 12px; }
.chat__replybar button { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.chat__replybar button svg { width: 15px; height: 15px; }
.msg__bubble { max-width: 100%; }
.msg__quote { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.msg__quote { display: block; -webkit-line-clamp: unset; }
.q__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- eenmalige challenges ---------- */
.toggle__txt small { display: block; color: var(--faint); font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.toggle.is-locked { cursor: default; border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .06); }
.toggle.is-locked .toggle__box { background: var(--good); border-color: var(--good); }
.toggle.is-locked .toggle__box svg { opacity: 1; }
.toggle.is-locked .toggle__txt { color: var(--muted); }
.toggle.is-locked .toggle__txt small { color: var(--good); }
.toggle.is-task { cursor: default; }
.toggle.is-task .toggle__box { border-style: dashed; }
.chal-card__n.is-ok { color: var(--good); }
.chal-card__once { margin: 6px 0 0; font-size: 13px; color: var(--faint); }
.once-chk { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.app .card .q__hint, .app .card .chal-card__once { font-size: 13px; line-height: 1.45; color: var(--faint); }
.app .card .q__hint { margin: 10px 0 0; }
.chal-card__n { white-space: nowrap; }

/* ---------- vaste opdrachten, einde traject ---------- */
.ch-fixed { display: flex; align-items: center; gap: 8px; padding: 11px 14px; margin-bottom: 8px; border-radius: 12px; border: 1px dashed var(--border-strong); background: rgba(139, 92, 246, .07); font-size: 14.5px; }
.ch-fixed small { color: var(--faint); font-size: 12.5px; margin-left: 4px; }
.fq--cont { border-top: 0; padding-top: 0; }
.res-box { margin: 4px 0 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--border-strong); background: linear-gradient(180deg, rgba(139, 92, 246, .14), rgba(139, 92, 246, .03)); }
.res-box__t { margin: 0 0 10px; font-weight: 700; }
.res-box__t small { color: var(--faint); font-weight: 500; margin-left: 6px; }
.res { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14.5px; }
.res span { color: var(--muted); }
.res b i { font-style: normal; color: var(--faint); font-weight: 500; }
.res em { font-style: normal; font-weight: 700; font-size: 13px; }
.res em.is-good { color: var(--good); }
.res em.is-bad { color: var(--bad); }
.end-hl { margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: rgba(139, 92, 246, .16); border: 1px solid var(--border-strong); font-weight: 700; }

/* ---------- Mijn week: traject tot nu ---------- */
.sec-h { margin: 34px 0 14px; }
.sec-h h2 { font-size: 24px; margin: 0 0 4px; }
.sec-h p { margin: 0; color: var(--muted); font-size: 14.5px; }
.wk-table > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wk-table > summary::-webkit-details-marker { display: none; }
.wk-table[open] > summary .faint { display: none; }

/* ---------- Traject v2: call, plan, lessen ---------- */
.call-steps { margin: 0; padding: 0 0 0 20px; display: grid; gap: 14px; }
.call-steps li { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.call-steps li::marker { color: var(--purple-300); font-weight: 800; }
.call-steps b { color: #fff; }
.call-steps .btn { display: flex; width: fit-content; margin-top: 8px; }
.call-set { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.call-set .time-input { max-width: 150px; padding: 10px 12px; font-size: 17px; }
.call-when { display: flex; flex-direction: column; gap: 2px; }
.call-when__big { font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.call-when .faint { font-size: 14px; }
.call-banner { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 16px; border-radius: 16px; border: 1px solid rgba(74, 222, 128, .45); background: linear-gradient(90deg, rgba(74, 222, 128, .14), rgba(139, 92, 246, .1)); }
.call-banner__i { font-size: 26px; }
.call-banner div { flex: 1; min-width: 0; }
.call-banner b { display: block; font-size: 15px; }
.call-banner span:not(.call-banner__i) { display: block; font-size: 13px; color: var(--muted); }
.call-banner .btn { flex: none; }
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan__item { position: relative; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.plan__item--wide { grid-column: 1 / -1; }
.plan__k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.app .card .plan__item p { margin: 0; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.app .card .plan__item p.plan__big { font-family: var(--font-head); font-weight: 800; font-size: 19px; }
.app .card .plan__item p.plan__why { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.app .card .plan__item p.faint { color: var(--faint); font-size: 13.5px; }
.plan__item .btn--sm { margin-top: 8px; }
.plan__edit { position: absolute; top: 12px; right: 14px; font-size: 12.5px; }
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lesson { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: #fff; text-align: left; cursor: pointer; font: inherit; min-height: 118px; transition: border-color .2s, transform .15s; }
.lesson:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.lesson__e { font-size: 26px; line-height: 1; }
.lesson__t { font-weight: 700; font-size: 14.5px; line-height: 1.3; flex: 1; }
.lesson__m { font-size: 12px; font-weight: 600; color: var(--purple-300); }
.lesson.is-done { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .05); }
.lesson.is-done .lesson__m { color: var(--good); }
.card--slim { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.les-dots { display: flex; gap: 4px; max-width: 460px; width: 100%; margin: 8px auto 0; flex: none; }
.les-dots i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.les-dots i.on { background: var(--grad); }
.les__b { color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.les__b p { margin: 0 0 14px; }
.les__ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.les__ul li { position: relative; padding: 11px 14px 11px 38px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: #fff; font-size: 15px; line-height: 1.45; }
.les__ul li::before { content: ""; position: absolute; left: 15px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--purple-400); box-shadow: 0 0 8px var(--purple-400); }
.les__do { margin-top: 6px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.45; }
.les__do span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--good); margin-bottom: 4px; }
.home-steps { margin: 0 0 6px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.home-steps li { counter-increment: s; position: relative; padding: 11px 14px 11px 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.home-steps li b { color: #fff; }
.home-steps li::before { content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12.5px; background: var(--grad-btn); color: #fff; }
.home-os { margin: 14px 0 8px; font-weight: 700; font-size: 14px; color: var(--purple-300); }
.home-ok { padding: 12px 14px; border-radius: 12px; background: rgba(74, 222, 128, .1); color: var(--good); font-weight: 600; }
.kbd { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12px; }
.calls-today { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; border: 1px solid rgba(74, 222, 128, .4); background: rgba(74, 222, 128, .08); }
.calls-today a { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); text-decoration: none; font-weight: 600; font-size: 13.5px; }
@media (max-width: 420px) { .plan { grid-template-columns: 1fr; } }

/* ---------- lessen v2: kaarten met illustratie, rijen per thema ---------- */
.lessons-card { overflow: hidden; }
.lrow__h { margin: 18px 0 10px; font-weight: 700; font-size: 15px; display: flex; align-items: baseline; gap: 8px; }
.lrow__h small { color: var(--faint); font-weight: 500; font-size: 12.5px; }
.lrow { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; }
.lrow::-webkit-scrollbar { display: none; }
.lrec { display: grid; gap: 10px; }
.lc { flex: none; width: 168px; scroll-snap-align: start; display: flex; flex-direction: column; padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: #fff; text-align: left; cursor: pointer; font: inherit; transition: transform .15s, border-color .2s; }
.lc:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.lc__cover { position: relative; display: block; aspect-ratio: 16 / 10; background: #120c22; }
.lc__img { display: block; width: 100%; height: 100%; }
.lc__emoji { display: grid; place-items: center; height: 100%; font-size: 40px; }
.lc__ok { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #0a0910; font-weight: 800; font-size: 13px; }
.lc__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 9, 16, .7); border: 1px solid rgba(255,255,255,.4); font-size: 14px; padding-left: 3px; }
.lc__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.lc__t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.lc__i { color: var(--muted); font-size: 13px; line-height: 1.4; }
.lc__m { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--purple-300); }
.lc.is-done { border-color: rgba(74, 222, 128, .3); }
.lc.is-done .lc__m { color: var(--good); }
.lc--big { width: 100%; flex-direction: row; border-color: var(--border-strong); background: linear-gradient(90deg, rgba(139, 92, 246, .14), rgba(139, 92, 246, .03)); }
.lc--big .lc__cover { width: 132px; flex: none; aspect-ratio: auto; }
.lc--big .lc__img { height: 100%; object-fit: cover; }
.lc--big .lc__t { font-size: 15.5px; }
.les__img { margin: 0 0 18px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 50px -24px rgba(139, 92, 246, .7); flex: none; }
.les__img svg { display: block; width: 100%; height: auto; }
.quickstats--2 { grid-template-columns: repeat(2, minmax(0, 260px)); }

/* ---------- tabje Lessen (zonder thema's) ---------- */
.tabbar { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 899px) { .tabbar button { font-size: 11px; } }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.lgrid .lc { width: auto; }
@media (min-width: 720px) { .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- les als één doorlopende pagina ---------- */
.les-bar { height: 3px; max-width: 460px; width: 100%; margin: 6px auto 0; border-radius: 3px; background: rgba(255,255,255,.1); flex: none; overflow: hidden; }
.les-bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .1s; }
.les__scroll { justify-content: flex-start !important; }
.les { max-width: 620px; width: 100%; margin: 0 auto; }
.les__title { font-size: clamp(28px, 7vw, 38px); line-height: 1.1; margin: 4px 0 10px; }
.les__intro { color: var(--muted); font-size: 17px; line-height: 1.5; margin: 0 0 8px; }
.les__sec { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--border); }
.les__h { font-size: 21px; line-height: 1.25; margin: 0 0 12px; }
.les__sec .les__img { margin: 4px 0 16px; }
.lprog { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.lprog .progress { flex: 1; margin: 0; }
.lprog span { color: var(--faint); font-size: 13px; white-space: nowrap; }
.les__n { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-300); }

/* ---------- nieuwe klant: soort ---------- */
.seg-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.seg-pick label { cursor: pointer; }
.seg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg-pick span { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; background: var(--surface); }
.seg-pick small { display: block; font-weight: 500; color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.seg-pick input:checked + span { border-color: var(--purple-400, #a784ff); background: rgba(139, 92, 246, .16); }
.seg-pick input:focus-visible + span { outline: 2px solid var(--purple-300); outline-offset: 2px; }

/* ---------- pincode ---------- */
.pinscreen { max-width: 360px; margin: 6vh auto 0; text-align: center; padding: 0 12px 40px; }
.pin__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 40px -10px rgba(139, 92, 246, .7); }
.pin__icon svg { width: 30px; height: 30px; }
.pinscreen h1 { font-size: 30px; margin: 0 0 6px; }
.pin__dots { display: flex; justify-content: center; gap: 16px; margin: 26px 0 8px; }
.pin__dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--purple-300, #c4b5fd); transition: background .15s, transform .15s; }
.pin__dots i.on { background: var(--purple-300, #c4b5fd); transform: scale(1.05); }
.pin__msg { min-height: 22px; color: var(--bad, #f87171); font-size: 14px; margin: 0 0 10px; }
.pin__pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 290px; margin: 0 auto; }
.pin__pad button { height: 64px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); color: #fff; font: 700 24px/1 var(--font-head, inherit); cursor: pointer; }
.pin__pad button:active { background: rgba(139, 92, 246, .25); }
.pin__help { font-size: 13.5px; margin-top: 18px; }

/* ---------- meldingen ---------- */
.push-card { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: rgba(167, 132, 255, .45); background: linear-gradient(135deg, rgba(139, 92, 246, .18), rgba(139, 92, 246, .04)); }
.push-card h3 { margin: 0 0 4px; font-size: 17px; }
.push-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.push-card__btns { display: flex; gap: 12px; align-items: center; }

/* ---------- oud-klant ---------- */
.is-alumni .tabbar { grid-template-columns: repeat(2, 1fr); }

/* ---------- lessen van deze week (check-in) ---------- */
.wl { display: grid; gap: 8px; }
.wl__i { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: #fff; cursor: pointer; font: inherit; }
.wl__chk { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--border-strong, #4b4560); display: grid; place-items: center; }
.wl__chk svg { width: 15px; height: 15px; color: #0a0910; }
.wl__t { flex: 1; font-weight: 650; font-size: 15px; line-height: 1.3; }
.wl__t small { display: block; font-weight: 500; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.wl__go { flex: none; font-size: 13.5px; font-weight: 700; color: var(--purple-300, #c4b5fd); }
.wl__i.is-done .wl__chk { background: var(--good, #4ade80); border-color: var(--good, #4ade80); }
.wl__i.is-done .wl__t { color: var(--muted); }
.wl__i.is-today { border-color: rgba(167, 132, 255, .6); background: rgba(139, 92, 246, .14); }
.wl__i.is-today small { color: var(--purple-300, #c4b5fd); font-weight: 700; }
.wl__i.is-late small { color: var(--warn, #fbbf24); font-weight: 700; }
.wl__i.is-later { opacity: .6; }
.les__note { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); font-size: 14.5px; line-height: 1.45; }
.les__skip { margin: 18px 0 0; font-size: 14px; color: var(--faint); } .les__skip .link { font-size: 14px; }
.home-push { display: grid; gap: 6px; margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px solid rgba(167, 132, 255, .45); background: rgba(139, 92, 246, .12); }
.home-push span { color: var(--muted); font-size: 14px; }
.home-push .btn { justify-self: start; margin-top: 4px; }
