/* Kern (afgeleid van Sterk) — designsysteem naar iOS-principes: helderheid, terughoudendheid, diepte.
   Eén tintkleur voor wat je kan aanraken; inhoud in gegroepeerde lijsten; materiaal (blur) voor balken. */
:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --card-2: #F2F2F7;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .08);
  --label: #000000;
  --label-2: rgba(60, 60, 67, .60);
  --label-3: rgba(60, 60, 67, .30);
  --sep: rgba(60, 60, 67, .18);
  --tint: #0E8F7E;
  --tint-2: #1C6ED8;
  --tint-soft: rgba(14, 143, 126, .12);
  --green: #34C759; --orange: #FF9500; --blue: #007AFF; --teal: #30B0C7; --yellow: #FFCC00; --gray: #8E8E93;
  --material: rgba(242, 242, 247, .78);
  --fig: #1C1C1E; --fig-far: .30;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --fg-skin: #EFB08E; --fg-skin2: #CF8A68; --fg-top: #1E9E8B; --fg-leg: #3A4763; --fg-leg2: #27314A; --fg-shoe: #FFFFFF; --fg-shoe2: #DADDE4; --fg-hair: #2E2622; --fg-kb: #2B2F36; --fg-band: #2FBF71; --fg-door: #E6E2DA;
  --fg-mat: #DCE0E7; --fg-prop: #CDD1D9; --fg-prop2: #B9BEC8; --studio: linear-gradient(180deg, #FAFAFC 0%, #EEEFF3 100%);
  --round: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --card: #1C1C1E; --card-2: #2C2C2E;
    --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .16);
    --label: #FFFFFF; --label-2: rgba(235, 235, 245, .60); --label-3: rgba(235, 235, 245, .30); --sep: rgba(84, 84, 88, .65);
    --tint: #2BC4A9; --tint-2: #3B8CFF; --tint-soft: rgba(43, 196, 169, .18);
    --green: #30D158; --orange: #FF9F0A; --blue: #0A84FF; --teal: #40C8E0; --yellow: #FFD60A;
    --material: rgba(22, 22, 24, .72);
    --fig: #F2F2F7; --fig-far: .32;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--label); font: 17px/1.294 var(--font); letter-spacing: -.41px; -webkit-font-smoothing: antialiased; touch-action: manipulation; overscroll-behavior-y: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { display: block; }
#app { min-height: 100dvh; background: var(--bg); transition: transform .45s var(--ease), border-radius .45s var(--ease), filter .45s var(--ease); transform-origin: 50% 0; }
body.sheet-open #app { transform: scale(.94) translateY(calc(var(--safe-t) + 10px)); border-radius: 12px; overflow: hidden; filter: brightness(.82); }
body.sheet-open { background: #000; }

/* ── typografie ── */
.large-title { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: .37px; }
.title1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: .36px; }
.title2 { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: .35px; }
.title3 { font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: .38px; }
.headline { font-size: 17px; line-height: 22px; font-weight: 600; }
.callout { font-size: 16px; line-height: 21px; letter-spacing: -.32px; }
.subhead { font-size: 15px; line-height: 20px; letter-spacing: -.24px; }
.footnote { font-size: 13px; line-height: 18px; letter-spacing: -.08px; }
.caption { font-size: 12px; line-height: 16px; letter-spacing: 0; }
.eyebrow { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--label-2); }
.muted { color: var(--label-2); }
.tint { color: var(--tint); }
.num { font-family: var(--round); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ── navigatie ── */
.nav { position: sticky; top: 0; z-index: 10; height: calc(44px + var(--safe-t)); padding: var(--safe-t) 8px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: background .2s, box-shadow .2s; }
.nav.scrolled { background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 var(--sep); }
.nav-title { font-size: 17px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.nav.scrolled .nav-title { opacity: 1; }
.nav-l { justify-self: start; } .nav-r { justify-self: end; }
.nav-btn { height: 44px; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 2px; color: var(--tint); font-size: 17px; }
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn.back svg { width: 13px; height: 22px; margin-right: 4px; }
.circle-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--tint-soft); color: var(--tint); display: grid; place-items: center; margin-right: 8px; }
.circle-btn svg { width: 18px; height: 18px; }
.page { max-width: 600px; margin: 0 auto; padding: 0 16px calc(var(--safe-b) + 112px); }
.lt { padding: 2px 4px 14px; }
.lt .eyebrow { margin-bottom: 2px; }

/* ── kaarten en lijsten ── */
.card { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 20px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 4px 8px; }
.group { background: var(--card); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.group-h { font-size: 13px; line-height: 18px; text-transform: uppercase; color: var(--label-2); padding: 0 16px 7px; letter-spacing: -.08px; }
.group-f { font-size: 13px; line-height: 18px; color: var(--label-2); padding: 7px 16px 0; margin-top: -17px; margin-bottom: 24px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; width: 100%; text-align: left; position: relative; }
.row::after { content: ""; position: absolute; left: var(--inset, 16px); right: 0; bottom: 0; height: .5px; background: var(--sep); }
.row:last-child::after { display: none; }
button.row:active, label.row:active { background: var(--fill-2); }
.row .grow { flex: 1; min-width: 0; padding: 11px 0; }
.row .r { color: var(--label-2); font-size: 17px; display: flex; align-items: center; gap: 6px; }
.chev { width: 8px; height: 14px; color: var(--label-3); flex: none; }
.row.action { color: var(--tint); justify-content: flex-start; }
.row.center { justify-content: center; color: var(--tint); }
.row.danger { color: #FF3B30; }
.ex-row { --inset: 104px; min-height: 76px; }
.ex-row .tile { width: 76px; height: 56px; border-radius: 10px; }
.tile { width: 60px; height: 60px; border-radius: 12px; background: var(--studio); flex: none; overflow: hidden; display: grid; place-items: center; }
.tile .figure { width: 100%; height: 100%; }
.pill-new { display: inline-block; font-size: 11px; line-height: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--tint); background: var(--tint-soft); border-radius: 5px; padding: 2px 5px; margin-left: 6px; vertical-align: 2px; }
.icon-tile { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.icon-tile svg { width: 18px; height: 18px; }

/* ── segmented control ── */
.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); background: var(--fill); border-radius: 9px; padding: 2px; height: 36px; }
.seg::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / var(--n, 3)); border-radius: 7px; background: var(--card); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); transform: translateX(calc(100% * var(--i, 0))); transition: transform .3s var(--ease); }
@media (prefers-color-scheme: dark) { .seg::before { background: #636366; } }
.seg button { position: relative; z-index: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; font-weight: 500; letter-spacing: -.08px; }
.seg button[aria-pressed="true"] { font-weight: 600; }
.seg.tall { height: 40px; } .seg.tall button { font-size: 15px; }

/* ── week ── */
.week { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .trk { stroke: var(--tint-soft); }
.ring .val { transition: stroke-dashoffset 1s var(--ease); }
.ring .in { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.week .ring { width: 84px; height: 84px; }
.week .ring .in b { font-family: var(--round); font-size: 24px; line-height: 1; font-weight: 700; }
.week .ring .in small { display: block; font-size: 11px; color: var(--label-2); font-weight: 600; margin-top: 2px; letter-spacing: .02em; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; padding-top: 12px; border-top: .5px solid var(--sep); }
.day { display: grid; justify-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--label-2); }
.day i { width: 22px; height: 22px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; }
.day.done i { background: linear-gradient(135deg, var(--tint), var(--tint-2)); color: #fff; }
.day.done i svg { width: 12px; height: 12px; }
.day.today { color: var(--label); }
.day.today i { box-shadow: inset 0 0 0 2px var(--tint); }
.day.today.done i { box-shadow: none; }

/* ── vandaag ── */
.hero { position: relative; overflow: hidden; border-radius: 20px; background: var(--card); margin-bottom: 12px; }
.hero-art { height: 220px; background: var(--studio); display: grid; place-items: center; padding: 12px 20px 4px; }
.hero-art .figure { width: 100%; height: 100%; max-width: 340px; }
.hero-body { padding: 4px 18px 18px; }
.hero-body .eyebrow { color: var(--tint); }
.hero-body .title1 { margin: 2px 0 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 16px; color: var(--label-2); font-size: 15px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 16px; height: 16px; }

/* ── actiebalk ── */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 12px 16px calc(var(--safe-b) + 12px); background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -.5px 0 var(--sep); }
.actionbar > * { max-width: 568px; margin: 0 auto; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 14px; font-size: 17px; font-weight: 600; letter-spacing: -.41px; transition: transform .15s, opacity .15s; }
.btn:active { transform: scale(.98); opacity: .85; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--tint); color: #fff; }
.btn.gray { background: var(--fill); color: var(--tint); }
.btn.plain { color: var(--tint); height: 44px; }
.stack { display: grid; gap: 10px; }

/* ── sheet ── */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.25); animation: fade .35s var(--ease); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 640px; margin: 0 auto; height: calc(100dvh - var(--safe-t) - 18px); background: var(--bg); border-radius: 12px 12px 0 0; display: flex; flex-direction: column; animation: up .45s var(--ease); box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.sheet.small { height: auto; max-height: 80dvh; }
.sheet.small .sheet-body { flex: none; }
body.playing .sheet { --bg: #1C1C1E; --card: #2C2C2E; --fill: rgba(118,118,128,.24); --label: #fff; --label-2: rgba(235,235,245,.6); --label-3: rgba(235,235,245,.3); --tint: #2BC4A9; color: #fff; }
.sheet-nav { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 6px 8px 0; position: relative; }
.sheet-nav::before { content: ""; position: absolute; top: 5px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--label-3); }
.sheet-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(var(--safe-b) + 24px); }
.sheet.closing { animation: down .3s var(--ease) forwards; }
.scrim.closing { animation: fade .3s var(--ease) reverse forwards; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ── figuur ── */
.figure { width: 100%; height: auto; }
.fg-skin { fill: var(--fg-skin); } .fg-skin2 { fill: var(--fg-skin2); } .fg-top { fill: var(--fg-top); }
.fg-leg { fill: var(--fg-leg); } .fg-leg2 { fill: var(--fg-leg2); } .fg-hair { fill: var(--fg-hair); }
.fg-shoe { fill: var(--fg-shoe); stroke: #C3C8D1; stroke-width: .6; } .fg-shoe2 { fill: var(--fg-shoe2); }
.fg-mat { fill: var(--fg-mat); } .fg-kb { fill: var(--fg-kb); } .fg-kbh { fill: none; stroke: var(--fg-kb); stroke-width: 1.4; } .fg-band { fill: var(--fg-band); } .fg-door { fill: var(--fg-door); stroke: #CFCAC0; stroke-width: .6; } .fg-prop { fill: var(--fg-prop); } .fg-prop2 { fill: var(--fg-prop2); } .fg-shadow { fill: rgba(20, 24, 40, .08); }
.stage { background: var(--studio); border-radius: 20px; padding: 8px 12px 4px; overflow: hidden; }
.stage .figure { aspect-ratio: 16 / 11; }

/* ── uitleg ── */
.ex-head { text-align: center; padding: 14px 8px 12px; }
.ex-head .muted { margin-top: 3px; }
.chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 14px; background: var(--fill); font-size: 13px; font-weight: 600; color: var(--label); }
.chip svg { width: 14px; height: 14px; color: var(--tint); }
.prose { padding: 12px 16px; font-size: 17px; line-height: 22px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px; position: relative; font-size: 17px; line-height: 22px; }
.steps li::after { content: ""; position: absolute; left: 52px; right: 0; bottom: 0; height: .5px; background: var(--sep); }
.steps li:last-child::after { display: none; }
.steps .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: #fff; font: 600 14px/24px var(--round); text-align: center; margin-top: -1px; }
.own { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 16px; }
.own label { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--fill-2); display: grid; place-items: center; color: var(--tint); font-size: 15px; font-weight: 500; overflow: hidden; }
.own img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.own input { display: none; }

/* ── speler (altijd donker, zoals de Workout-app) ── */
.player { position: fixed; inset: 0; z-index: 20; background: #000; color: #fff; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none;
  --card: #1C1C1E; --fill: rgba(118,118,128,.24); --fill-2: rgba(118,118,128,.16); --label: #fff; --label-2: rgba(235,235,245,.6); --label-3: rgba(235,235,245,.3); --sep: rgba(84,84,88,.65); --fig: #F2F2F7; --fig-far: .32; --tint: #2BC4A9; --tint-soft: rgba(43,196,169,.2); --bg: #000; }
.player[data-phase="work"], .player[data-phase="learn"] { --ph: #2BC4A9; }
.player[data-phase="rest"] { --ph: #30D158; }
.player[data-phase="ready"], .player[data-phase="switch"] { --ph: #FFD60A; }
.player[data-phase="warm"], .player[data-phase="cool"] { --ph: #64A8FF; }
.p-top { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(var(--safe-t) + 6px) 12px 0; }
.x-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: rgba(235,235,245,.7); }
.x-btn svg { width: 12px; height: 12px; }
.p-label { text-align: center; font-size: 13px; font-weight: 600; color: var(--label-2); font-variant-numeric: tabular-nums; }
.p-bar { display: flex; gap: 3px; margin: 10px 16px 0; }
.p-bar i { flex: 1; height: 4px; border-radius: 2px; background: rgba(118,118,128,.32); overflow: hidden; position: relative; }
.p-bar i.done { background: var(--ph); opacity: .5; }
.p-bar i.cur::after { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--ph); border-radius: 2px; }
.p-body { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; max-width: 600px; width: 100%; margin: 0 auto; padding: 14px 16px 8px; }
.p-kind { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ph); }
.p-name { text-align: center; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: .36px; margin: 4px 0 14px; }
.p-stage { position: relative; background: var(--studio); border-radius: 22px; padding: 6px 10px 2px; overflow: hidden; }
.p-stage .figure { aspect-ratio: 16 / 10; }
.p-side { position: absolute; left: 12px; top: 12px; height: 26px; padding: 0 10px; border-radius: 13px; background: #1C1C1E; color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.p-tempo { position: absolute; right: 12px; top: 12px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(255,255,255,.85); color: #1C1C1E; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.p-timer { display: flex; justify-content: center; margin: 14px 0 10px; }
.p-timer .ring { width: 138px; height: 138px; }
.p-timer .ring .trk { stroke: color-mix(in srgb, var(--ph) 22%, transparent); }
.p-timer .ring .val { stroke: var(--ph); transition: stroke-dashoffset .25s linear; }
.p-timer .ring .in b { font: 600 60px/1 var(--round); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.p-cues { background: #1C1C1E; border-radius: 14px; margin-top: 4px; }
.p-cues li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; font-size: 16px; line-height: 21px; color: rgba(235,235,245,.85); position: relative; }
.p-cues li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ph); margin-top: 8px; }
.p-cues li + li { box-shadow: inset 0 .5px 0 var(--sep); }
.p-text { text-align: center; font-size: 17px; line-height: 23px; color: rgba(235,235,245,.8); margin: 2px 8px 0; }
.p-next { display: flex; align-items: center; gap: 12px; background: #1C1C1E; border-radius: 16px; padding: 10px; margin-top: 14px; }
.p-next .tile { width: 72px; height: 56px; }
.p-next .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label-2); }
.p-next .n { font-size: 17px; font-weight: 600; margin-top: 1px; }
.p-next .m { font-size: 14px; color: var(--label-2); margin-top: 1px; }
.p-ctrl { flex: none; display: flex; justify-content: center; align-items: flex-start; gap: 30px; padding: 12px 16px calc(var(--safe-b) + 14px); }
.cb { display: grid; justify-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--label-2); min-width: 64px; }
.cb i { width: 60px; height: 60px; border-radius: 50%; background: rgba(118,118,128,.24); color: #fff; display: grid; place-items: center; transition: transform .15s; }
.cb:active i { transform: scale(.94); }
.cb i svg { width: 24px; height: 24px; }
.cb.main i { width: 76px; height: 76px; background: var(--ph); color: #000; margin-top: -8px; }
.cb.main i svg { width: 30px; height: 30px; }
.cb.wide { flex: 1; max-width: 420px; }
.cb.wide .btn { background: var(--ph); color: #000; }
.paused { text-align: center; color: var(--ph); font-weight: 600; font-size: 15px; margin-top: 8px; }

.p-learn .group { background: #1C1C1E; }
.p-learn .group-h { color: var(--label-2); }

/* ── einde ── */
.done-hero { text-align: center; padding: 22px 0 10px; }
.done-hero .ring { width: 112px; height: 112px; margin: 0 auto 14px; }
.done-hero .ring .in svg { width: 40px; height: 40px; color: var(--tint); transform: none; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-radius: 12px; margin: 18px 0 24px; }
.stats3 > div { padding: 12px 8px; text-align: center; }
.stats3 > div + div { box-shadow: inset .5px 0 0 var(--sep); }
.stats3 b { display: block; font: 700 24px/1.1 var(--round); font-variant-numeric: tabular-nums; }
.stats3 span { font-size: 12px; color: var(--label-2); font-weight: 500; }
.rate { padding: 12px 16px; position: relative; }
.rate::after { content: ""; position: absolute; left: 16px; right: 0; bottom: 0; height: .5px; background: var(--sep); }
.rate:last-child::after { display: none; }
.rate .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rate .tile { width: 44px; height: 44px; border-radius: 10px; }

/* ── voortgang ── */
.mini-ring { width: 30px; height: 30px; flex: none; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lv-row { --inset: 16px; }

/* ── toast ── */
#toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); z-index: 50; transform: translate(-50%, -140%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 22px; background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 8px 30px rgba(0,0,0,.18); color: var(--label); font-size: 15px; font-weight: 600; text-align: center; opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: none; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }
.player ~ #toast, body.playing #toast { background: rgba(44,44,46,.9); color: #fff; }

/* ── overgangen ── */
.push-in { animation: pushIn .45s var(--ease); }
.pop-in { animation: popIn .45s var(--ease); }
@keyframes pushIn { from { transform: translateX(28%); opacity: 0; } }
@keyframes popIn { from { transform: translateX(-20%); opacity: 0; } }

@media (max-height: 740px) {
  .p-name { font-size: 24px; line-height: 29px; margin-bottom: 10px; }
  .p-timer { margin: 12px 0 6px; }
  .p-timer .ring { width: 124px; height: 124px; }
  .p-timer .ring .in b { font-size: 50px; }
  .p-stage .figure { aspect-ratio: 16 / 9.5; }
}
@media (prefers-reduced-motion: reduce) {
  .push-in, .pop-in, .sheet, .scrim { animation: none !important; }
}

/* ── trainingsscherm: groot beeld, naam + teller eronder (zoals Freeletics/Seven) ── */
.p-body.work { padding-top: 10px; }
.p-body.work .p-stage .figure { aspect-ratio: 16 / 12; }
.p-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 16px 2px 10px; }
.p-meta .p-kind { text-align: left; }
.p-meta h2 { font-size: 26px; line-height: 31px; font-weight: 700; letter-spacing: .3px; margin-top: 2px; }
.p-meta .sub { font-size: 15px; color: var(--label-2); margin-top: 3px; }
.p-count { font: 600 64px/0.9 var(--round); font-variant-numeric: tabular-nums; color: var(--ph); letter-spacing: -.03em; flex: none; }
.p-count small { font-size: 20px; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.p-line { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ph) 22%, transparent); overflow: hidden; margin: 0 2px 14px; }
.p-line i { display: block; height: 100%; width: 0; background: var(--ph); border-radius: 3px; }
.p-after { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--label-2); padding: 0 2px; }
.p-after b { color: #fff; font-weight: 600; }
.p-restrow { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.p-restrow .ring { width: 104px; height: 104px; flex: none; }
.p-restrow .ring .in b { font: 600 42px/1 var(--round); }
.p-restrow .ring .trk { stroke: color-mix(in srgb, var(--ph) 22%, transparent); }
.p-restrow .ring .val { stroke: var(--ph); transition: stroke-dashoffset .25s linear; }
.p-restrow p { font-size: 17px; line-height: 23px; color: rgba(235,235,245,.85); }
.p-restrow p small { display: block; font-size: 14px; color: var(--label-2); margin-top: 4px; }
@media (max-height: 740px) {
  .p-body.work .p-stage .figure { aspect-ratio: 16 / 10.5; }
  .p-count { font-size: 54px; }
  .p-meta { margin-top: 12px; }
}

/* ── zwaarte-rating ── */
.rpe .grow { padding: 10px 0; }
.rpe-dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font: 700 15px/1 var(--round); flex: none; }
.r1 { background: #34C759; } .r2 { background: #A6C937; } .r3 { background: #FFB020; } .r4 { background: #FF7A30; } .r5 { background: #FF3B30; }
.rpe-check { width: 22px; height: 22px; color: var(--tint); opacity: 0; transition: opacity .15s; flex: none; }
.rpe[aria-checked="true"] .rpe-check { opacity: 1; }
.rpe[aria-checked="true"] { background: var(--tint-soft); }
.rpe-tag { flex: none; font-size: 12px; font-weight: 700; color: #fff; border-radius: 6px; padding: 3px 7px; }
.btn:disabled { opacity: .45; }

/* ── gewoonte ── */
.day.plan i { box-shadow: inset 0 0 0 1.5px var(--label-3); }
.day.min i { background: var(--tint-soft); color: var(--tint); box-shadow: none; }
.day.min i svg { width: 12px; height: 12px; }
.day.today.plan i { box-shadow: inset 0 0 0 2px var(--tint); }
.moment { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--sep); }
.moment .grow { flex: 1; min-width: 0; }
.horizon { margin-top: 10px; }
.nudge { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--tint-soft); }
.nudge.ok { align-items: center; border: 0; }
.nudge .grow { flex: 1; min-width: 0; }
.daypick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 12px; }
.daypick button { height: 40px; border-radius: 10px; background: var(--fill); font-size: 15px; font-weight: 600; color: var(--label-2); }
.daypick button[aria-pressed="true"] { background: var(--tint); color: #fff; }
input[type="time"] { font: inherit; color: var(--tint); background: var(--fill); border: 0; border-radius: 8px; padding: 6px 10px; }
.hgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.hgrid > div { display: grid; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.hgrid i, .hlegend i { display: block; aspect-ratio: 1; border-radius: 4px; background: var(--fill-2); }
.hgrid i.full, .hlegend i.full { background: var(--tint); }
.hgrid i.min, .hlegend i.min { background: color-mix(in srgb, var(--tint) 40%, transparent); }
.hgrid i.missed, .hlegend i.missed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--label-3); }
.hgrid i.future, .hgrid i.before { opacity: .35; }
.hlegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--label-2); }
.hlegend span { display: inline-flex; align-items: center; gap: 6px; }
.hlegend i { width: 11px; }
.stats3 span { display: block; line-height: 15px; }
.seg-label { font-size: 12px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: .03em; margin: 0 2px 6px; }
