/* =========================================================================
   Vermey Performance, Daan Jansen
   Licht, rond en vriendelijk. Ring met het dagtotaal, weekstrip, balken met
   percentages erboven, kaarten met een plusknop. Eén frisse accentkleur die
   altijd donkere tekst draagt, zodat het contrast klopt.
   ========================================================================= */

:root {
  --bg: #F4F6F2;
  --card: #FFFFFF;
  --soft: #EDF0E8;                 /* zachte sectie of invoervlak */
  --line: rgba(20, 24, 26, .09);
  --line-2: rgba(20, 24, 26, .16);

  --ink: #14181A;                  /* 17,9:1 op kaart */
  --ink-2: #555F68;                /* 6,5:1  op kaart */
  --ink-3: #626C77;                /* 5,0:1  op kaart */

  --lime: #B4E84C;                 /* alleen als vlak, met donkere tekst: 12,4:1 */
  --lime-2: #C8F06B;
  --lime-3: #9ED42F;
  --on-lime: #14181A;
  --green: #37600C;                /* groene tekst en iconen: 7,4:1 op kaart */
  --green-soft: rgba(180, 232, 76, .26);

  --warn: #B35309;                 /* 4,9:1 op kaart */
  --bad: #B3291A;                  /* 6,9:1 op kaart */
  --bad-deep: #7A1B10;             /* foutmelding op het lime inlogscherm: 7,6:1 */
  --blue: #1D6FA5;
  --blue-soft: rgba(29, 111, 165, .12);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;

  --shadow: 0 1px 2px rgba(20, 24, 26, .04), 0 0 0 1px rgba(20, 24, 26, .04);
  --shadow-lift: 0 6px 20px rgba(20, 24, 26, .10), 0 0 0 1px rgba(20, 24, 26, .04);

  --gutter: 18px;
  --r: 22px;
  --r-sm: 16px;
  --tap: 46px;
  --bar: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
svg { display: block; width: 100%; height: 100%; }
canvas { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 14px; top: -70px; z-index: 99;
  padding: 12px 20px; border-radius: 999px;
  background: var(--lime); color: var(--on-lime);
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 14px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 10px; }

/* ---------- Tekststijlen ------------------------------------------------ */
.display {
  font-size: clamp(27px, 8vw, 34px); font-weight: 700; line-height: 1.14;
  letter-spacing: -.025em;
}
.display em { font-style: normal; color: var(--green); }
.h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.lede { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.note { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin-top: 10px; }

/* ---------- Raamwerk ---------------------------------------------------- */
.app { min-height: 100dvh; }
.scene { min-height: 100dvh; }

.wrap {
  max-width: 720px; margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left))
           calc(var(--bar) + 44px + env(safe-area-inset-bottom))
           max(var(--gutter), env(safe-area-inset-right));
}
.wrap:focus { outline: none; }

.screen { display: none; }
.screen.active { display: block; }

.block { margin: 0 0 26px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- Kopbalk met begroeting --------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
  background: linear-gradient(to bottom, var(--bg) 66%, rgba(244, 246, 242, 0));
}
.hello { flex: 1; min-width: 0; }
.hello small { display: block; font-size: 12.5px; color: var(--ink-3); }
.hello strong { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.top-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--soft); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.bare { background: none; box-shadow: none; }

.avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  background: var(--soft);
  font-size: 13px; font-weight: 700;
  color: var(--ink-2);
  overflow: hidden;
}
.avatar.lg { width: 62px; height: 62px; font-size: 18px; box-shadow: 0 0 0 3px var(--lime); }
:root.coach-photo [data-coach] { background: url("img/coach.jpg") 19% 16% / 165% no-repeat; color: transparent; font-size: 0; }
:root.client-photo [data-client] { background: var(--client-foto) 50% 30% / cover no-repeat; color: transparent; font-size: 0; }

/* ---------- De groene hoofdkaart met ring -------------------------------- */
.ring-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
  border-radius: var(--r);
  background: linear-gradient(120deg, var(--lime-2) 0%, var(--lime) 52%, var(--lime-3) 100%);
  color: var(--on-lime);
}
.ring-text { flex: 1; min-width: 0; }
.ring-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-size: 11.5px; font-weight: 700;
}
.ring-tag svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ring-big { font-size: clamp(34px, 11vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.ring-big em { font-style: normal; font-size: 15px; font-weight: 700; letter-spacing: -.01em; opacity: .66; }
.ring-sub { font-size: 13px; font-weight: 600; opacity: .72; margin-top: 7px; }

.ring-wrap { position: relative; width: 96px; height: 96px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring-track { stroke: rgba(255, 255, 255, .5); }
.ring-fill {
  stroke: var(--card);
  stroke-dasharray: 282.74;                 /* 2 * pi * 45 */
  stroke-dashoffset: 282.74;
  transition: stroke-dashoffset .7s cubic-bezier(.32, .72, 0, 1);
}
.ring-fill.over { stroke: var(--bad); }
.ring-mid { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-mid b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ring-mid span { display: block; font-size: 10.5px; font-weight: 600; opacity: .7; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .ring-fill { transition: none; } }
@media (max-width: 370px) { .ring-hero { flex-direction: column; align-items: flex-start; } }

/* ---------- Twee tegels naast elkaar ------------------------------------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }

.mini {
  display: block; width: 100%;
  padding: 15px 16px 16px;
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  min-width: 0;
}
button.mini:hover { background: var(--soft); }
button.mini:active { transform: scale(.98); }
.mini-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mini-top dt, .mini-label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); line-height: 1.3; }
.mini-glyph {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--green-soft); color: var(--green);
}
.mini-glyph svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mini-glyph.blue { background: var(--blue-soft); color: var(--blue); }
.mini dd { margin: 0; }
.mini .big { font-size: clamp(22px, 6.6vw, 27px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.mini .unit { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; white-space: nowrap; }
.mini dd, .mini > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0; }
.mini .sub { flex: 1 0 100%; }
.mini .sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.trio .mini { padding: 14px; }
.trio .mini-top { margin-bottom: 9px; }

/* ---------- Actiekaart --------------------------------------------------- */
.act {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 26px;
  border-radius: var(--r);
  background: var(--lime); color: var(--on-lime);
  text-align: left;
}
.act:hover { background: var(--lime-2); }
.act:active { transform: scale(.99); }
.act-glyph { width: 26px; height: 26px; flex: none; }
.act-glyph svg { stroke: currentColor; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.act strong { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.act small { display: block; font-size: 13px; opacity: .72; margin-top: 2px; }
.act-go { margin-left: auto; font-size: 20px; flex: none; opacity: .7; }

/* ---------- Tegelrij ----------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  min-height: 90px; padding: 15px 6px 13px;
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}
.tile:hover { background: var(--soft); }
.tile:active { transform: scale(.96); }
.tile .t-g { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--green-soft); color: var(--green); }
.tile .t-g svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tile span { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
@media (max-width: 344px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .tile { padding: 13px 4px 11px; min-height: 84px; } .tile span { font-size: 10.5px; } }

/* ---------- Weekstrip ---------------------------------------------------- */
.weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 24px; }
.wday {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 64px; padding: 10px 2px;
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.wday em { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.wday b { font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.wday i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.wday i.filled { background: var(--green); }
.wday:hover { background: var(--soft); }
.wday.today { background: var(--lime); color: var(--on-lime); box-shadow: none; }
.wday.today em { color: rgba(20, 24, 26, .64); }
.wday.today i { background: rgba(20, 24, 26, .3); }
.wday.today i.filled { background: var(--on-lime); }
.wday.sel:not(.today) { box-shadow: 0 0 0 2px var(--green); }
.wday.ahead { opacity: .45; }

/* ---------- Balken met percentages ---------------------------------------- */
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 6px; height: 196px; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; min-width: 0; width: 100%; padding: 0; border-radius: 12px; }
button.bar-col:hover .bar-track { background: var(--soft-2, rgba(20, 24, 26, .08)); }
button.bar-col:active { transform: scale(.97); }
button.bar-col:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.bar-col.on .bar-day { color: var(--ink); font-weight: 800; }
.bar-col.on .bar-val { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.bar-pct { font-size: 10.5px; font-weight: 700; text-align: center; color: var(--ink-3); margin-bottom: 6px; white-space: nowrap; }
.bar-col.best .bar-pct { color: var(--green); }
.bar-col.over .bar-pct { color: var(--bad); }
.bar-track {
  position: relative; width: 66%; max-width: 24px; margin: 0 auto; height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(to bottom, var(--soft) 0 4px, transparent 4px 8px);
}
.bar-val { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; background: var(--lime); transition: height .55s cubic-bezier(.32, .72, 0, 1); }
.bar-col.best .bar-val { background: var(--lime-3); }
.bar-col.over .bar-val { background: var(--bad); }
.bar-day { font-size: 10.5px; font-weight: 600; text-align: center; color: var(--ink-3); margin-top: 9px; }
.bar-col.today .bar-day { color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .bar-val { transition: none; } }

/* ---------- Kaart, lijst en regel ----------------------------------------- */
.card { padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.list { border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.list:empty { display: none; }

.row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px;
  width: 100%; min-height: var(--tap);
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.row:first-child { border-top: 0; }
button.row:hover { background: var(--soft); }
button.row:active { background: var(--soft); opacity: .8; }

.row-glyph {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-soft); color: var(--green);
}
.row-glyph svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.row-main { flex: 1 1 150px; min-width: 0; }
.row-main strong { display: block; font-size: 14.5px; font-weight: 600; overflow-wrap: break-word; }
.row-main small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; overflow-wrap: break-word; }
.row-trail { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: 0 1 auto; min-width: 0; }
.row-value { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.row-value.green { color: var(--green); font-weight: 700; }
.row-value.bad { color: var(--bad); font-weight: 700; }

.go { width: 9px; height: 15px; flex: none; color: var(--ink-3); }
.go svg { stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done-mark { width: 22px; height: 22px; flex: none; color: var(--green); }
.done-mark svg { stroke: currentColor; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.pill { display: inline-block; flex: none; padding: 4px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11.5px; font-weight: 700; }
.pill.mute { background: var(--soft); color: var(--ink-3); }
.pill.bad { background: rgba(179, 41, 26, .1); color: var(--bad); }

/* ---------- Knoppen -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
}
.btn.go-btn { background: var(--lime); color: var(--on-lime); width: 100%; }
.btn.go-btn:hover { background: var(--lime-2); }
.btn.go-btn:active { transform: scale(.99); }
.btn.go-btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); width: 100%; }
.btn.ghost:hover { background: var(--soft); }
.btn.quiet { color: var(--green); min-height: var(--tap); padding: 12px 16px; font-weight: 600; }
.btn.quiet.grey { color: var(--ink-2); font-weight: 500; }
.btn.quiet:hover { background: var(--soft); }
.btn.danger { color: var(--bad); }
.stack { display: grid; gap: 8px; }
@media (min-width: 560px) { .btn.go-btn, .btn.ghost { width: auto; min-width: 280px; } .stack { justify-items: start; } }

/* ---------- Schakelaar ------------------------------------------------------ */
.switch { display: flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: var(--soft); }
.switch button { flex: 1; min-height: 44px; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.switch button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.switch.sm { margin: 0; flex: none; }
.switch.sm button { flex: none; min-height: 44px; padding: 6px 14px; font-size: 12.5px; }

.daynav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.daynav strong { flex: 1; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.daynav .icon-btn:disabled { opacity: .3; cursor: default; }
.daynav .icon-btn:disabled:hover { background: var(--card); }

/* ---------- Maaltijdkaart ---------------------------------------------------- */
.meal {
  display: flex; align-items: center; gap: 13px;
  width: 100%;
  padding: 13px 13px 13px 15px;
  margin-bottom: 10px;
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
}
.meal-glyph { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.meal-glyph svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.meal-body { flex: 1; min-width: 0; }
.meal-body strong { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.meal-body small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.meal-body small b { color: var(--green); font-weight: 700; }
.meal-add { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--on-lime); }
.meal-add svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 2.8; fill: none; stroke-linecap: round; }
.meal-add:hover { background: var(--lime-2); }
.meal-add:active { transform: scale(.92); }

.meal-items { margin: -4px 0 14px; }
.meal-items .list { background: var(--soft); box-shadow: none; }
.meal-items .row { border-top-color: rgba(20, 24, 26, .07); }

.empty { padding: 26px 18px; text-align: center; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); margin-bottom: 18px; }
.empty strong { display: block; font-size: 15.5px; font-weight: 700; }
.empty small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ---------- Zestien weken ---------------------------------------------------- */
.strip { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); align-items: end; gap: 3px; padding: 18px 14px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.strip-wk { display: grid; align-content: end; gap: 2px; }
.seg { height: 13px; border-radius: 3px; background: var(--soft); }
.seg.on { background: var(--lime); }
.strip-wk.now .seg { outline: 2px solid var(--green); outline-offset: 1px; }
.strip-wk.later .seg { opacity: .55; }
.wk-n { margin-top: 7px; font-size: 9px; font-weight: 600; text-align: center; color: var(--ink-3); }
.strip-wk.now .wk-n { color: var(--green); font-weight: 700; }

/* ---------- Grafieken --------------------------------------------------------- */
.chart { height: 200px; }
.chart.sm { height: 150px; }

/* ---------- Oefeningen -------------------------------------------------------- */
.ex { margin-bottom: 22px; }
.set-knoppen { display: flex; justify-content: space-between; gap: 8px; }
.ex-head { margin-bottom: 10px; }
.ex-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.ex-head p { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.ex-head b { color: var(--ink-2); font-weight: 700; }

.set { display: grid; grid-template-columns: 24px minmax(56px, 1fr) minmax(56px, 1fr) var(--tap); align-items: center; gap: 9px; min-height: 56px; padding: 7px 12px 7px 16px; border-top: 1px solid var(--line); }
.set:first-child { border-top: 0; }
.set.head { min-height: 32px; padding-top: 10px; padding-bottom: 2px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.set-n { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.field { width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 12px; background: var(--soft); font-size: 15px; font-weight: 600; text-align: center; }
.field:focus { outline: 2px solid var(--green); outline-offset: -2px; }
.field:disabled { opacity: .45; }
.check { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%; color: var(--ink-3); }
.check svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.check:hover { background: var(--soft); }
.check.done { color: var(--green); }
.check.done svg { stroke-width: 2.4; }

/* ---------- Coach --------------------------------------------------------------- */
.coach-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.coach-top strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.coach-top small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.letter { padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.letter h2 { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 6px; }
.letter .when { font-size: 12.5px; font-weight: 600; color: var(--green); margin-bottom: 14px; }
.letter p { font-size: 15px; line-height: 1.62; color: var(--ink-2); }

/* ---------- Tabbalk ------------------------------------------------------------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex;
  height: calc(var(--bar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card);
  border-top: 1px solid var(--line);
}
.tabs-mark, .tabs-detail, .tabs-me { display: none; }
.tab {
  flex: 1; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 2px;
  color: var(--ink-3);
}
.tab .t-i { width: 24px; height: 24px; }
.tab .t-i svg { fill: currentColor; }
.tab .t-i svg.stroked { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* line-height ruim genoeg, anders snijdt overflow de staart van de g af */
.tab span.t-l { font-size: 10.5px; font-weight: 600; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab.on { color: var(--green); }
.tab.on .t-i { background: var(--green-soft); border-radius: 999px; width: 42px; height: 26px; padding: 3px 11px; }
.tab:active { opacity: .6; }
.tab-dot { position: absolute; top: 8px; left: calc(50% + 10px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
  .tabs {
    position: sticky; top: 0; left: auto; right: auto; bottom: auto;
    height: 100dvh; flex-direction: column; gap: 4px;
    padding: 24px 12px calc(18px + env(safe-area-inset-bottom));
    border-top: 0; border-right: 1px solid var(--line);
    background: var(--bg);
  }
  .tabs-mark { display: block; padding: 2px 14px 24px; font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
  .tabs-mark span { color: var(--green); }
  .tab { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 13px; min-height: var(--tap); padding: 0 14px; border-radius: 999px; color: var(--ink-2); }
  .tab .t-i { width: 21px; height: 21px; flex: none; }
  .tab.on { background: var(--lime); color: var(--on-lime); }
  .tab.on .t-i { background: none; width: 21px; height: 21px; padding: 0; }
  .tab span.t-l { font-size: 14px; font-weight: 600; }
  .tab:hover:not(.on) { background: var(--soft); }
  .tabs-detail { display: block; margin-left: auto; font-size: 11.5px; font-weight: 600; opacity: .7; }
  .tab-dot { position: static; margin-left: auto; }
  .tabs-me { display: flex; align-items: center; gap: 11px; margin-top: auto; padding: 8px 12px; border-radius: 999px; min-height: var(--tap); text-align: left; }
  .tabs-me:hover { background: var(--soft); }
  .tabs-me strong { display: block; font-size: 13.5px; font-weight: 700; }
  .tabs-me small { display: block; font-size: 11.5px; color: var(--ink-3); }
  .wrap { padding-bottom: 60px; }
  #meBtn { display: none; }
}

/* ---------- Sheets ----------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(20, 24, 26, .38); animation: fade .18s ease; }

.sheet {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  max-height: 93dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -4px 40px rgba(20, 24, 26, .18);
  animation: rise .3s cubic-bezier(.32, .72, 0, 1);
}
.sheet.tall { height: 93dvh; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 9px auto 0; flex: none; }
.sheet-head {
  display: grid; grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
  align-items: center; gap: 8px;
  padding: 6px 8px 10px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.sheet-head h2 { font-size: 15.5px; font-weight: 700; text-align: center; letter-spacing: -.01em; }
.sheet-head .btn:first-child { justify-self: start; }
.sheet-head .btn:last-child { justify-self: end; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 24px max(var(--gutter), env(safe-area-inset-left)) calc(30px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-right)); }
@media (min-width: 700px) {
  .sheet { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 48px)); border-radius: 26px; animation: pop .22s cubic-bezier(.32, .72, 0, 1); }
  .sheet.tall { height: min(740px, 88dvh); }
  .grab { display: none; }
}

/* ---------- Wegen ------------------------------------------------------------- */
.weigh { display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 16px 0 20px; }
.weigh input { width: 190px; padding: 6px 0; border: 0; border-bottom: 3px solid var(--line-2); background: none; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.045em; text-align: center; }
.weigh input:focus { outline: none; border-bottom-color: var(--green); }
.weigh input::placeholder { color: var(--ink-3); opacity: .4; }
.weigh span { font-size: 20px; font-weight: 700; color: var(--ink-3); }
.err { min-height: 18px; padding: 0 4px 12px; font-size: 13px; font-weight: 600; color: var(--bad); }
.err:empty { min-height: 0; padding: 0; }

/* ---------- Zoeken --------------------------------------------------------------- */
.search { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 16px; margin-bottom: 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--ink-3); }
.search svg { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; background: none; font-size: 15px; color: var(--ink); padding: 12px 0; }
.search input:focus { outline: none; }

.pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); padding: 9px 16px; margin-bottom: 10px; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow); }
.pick > span { flex: none; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.pick select, .pick input { flex: 1; min-width: 0; border: 0; background: none; text-align: right; font-size: 15px; font-weight: 600; color: var(--ink); padding: 7px 0; min-height: 44px; }
.pick select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.pick select:focus, .pick input:focus { outline: none; }

.heart { width: var(--tap); height: var(--tap); flex: none; display: grid; place-items: center; margin-right: -10px; border-radius: 50%; color: var(--ink-3); }
.heart svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.heart:hover { background: var(--soft); }
.heart.on { color: var(--bad); }
.heart.on svg { fill: currentColor; }

.qty-name { font-size: 21px; font-weight: 700; letter-spacing: -.025em; }
.qty-sub { font-size: 12.5px; color: var(--ink-3); margin: 4px 0 20px; }

/* ---------- Record ---------------------------------------------------------------- */
.record { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(20, 24, 26, .5); animation: fade .18s ease; }
.record-card { width: min(390px, 100%); padding: 32px 26px 24px; border-radius: 26px; background: var(--card); text-align: center; box-shadow: var(--shadow-lift); animation: pop-card .3s cubic-bezier(.32, .72, 0, 1); }
.record-kind { display: inline-block; padding: 5px 13px; margin-bottom: 14px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: 12px; font-weight: 700; }
.record-card h2 { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.jump { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 14px; font-size: 18px; font-weight: 600; color: var(--ink-3); }
.jump .now { color: var(--green); font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.record-detail { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin-bottom: 24px; }

/* ---------- Rust en melding --------------------------------------------------------- */
.rest {
  position: fixed; z-index: 45; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 14px);
  display: flex; align-items: center; gap: 12px;
  padding: 7px 8px 7px 20px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}
.rest-l { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.rest-n { font-size: 17px; font-weight: 800; min-width: 52px; letter-spacing: -.02em; }
@media (min-width: 900px) { .rest { bottom: 26px; left: calc(50% + 125px); } }

.toast {
  position: fixed; z-index: 80; left: 50%; transform: translate(-50%, 14px);
  bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 16px);
  max-width: calc(100vw - 32px);
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--card);
  font-size: 14px; font-weight: 600;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
@media (min-width: 900px) { .toast { bottom: 28px; left: calc(50% + 125px); } }

/* ---------- Beweging ----------------------------------------------------------------- */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.96); } }
@keyframes pop-card { from { opacity: 0; transform: scale(.94); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .tile:active, .btn.go-btn:active, .act:active, .icon-btn:active, .meal-add:active, button.mini:active { transform: none; }
}

/* =========================================================================
   TRAINING KIEZEN
   Vier kaarten, één per training, zodat je meteen ziet wat je kunt doen.
   De startbalk eronder blijft altijd zichtbaar en zegt wat hij start.
   ========================================================================= */

.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .picks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.pick-card {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 15px 14px 14px;
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  min-width: 0;
}
.pick-card:hover { background: var(--soft); }
.pick-card:active { transform: scale(.98); }
.pick-card.on { background: var(--lime); box-shadow: none; }
.pick-card.on .pick-focus, .pick-card.on .pick-meta, .pick-card.on .pick-last { color: rgba(20, 24, 26, .68); }

.pick-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.pick-name { font-size: 16px; font-weight: 800; letter-spacing: -.025em; }
.pick-tick { width: 19px; height: 19px; flex: none; margin-left: auto; color: var(--green); }
.pick-card.on .pick-tick { color: var(--on-lime); }
.pick-tick svg { stroke: currentColor; stroke-width: 2.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.pick-focus { font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.pick-meta { font-size: 11.5px; color: var(--ink-3); }
.pick-last { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.pick-flag {
  position: absolute; top: -7px; right: 10px;
  padding: 2px 9px; border-radius: 999px;
  background: var(--ink); color: var(--card);
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
.pick-card.on .pick-flag { background: var(--ink); color: var(--card); }

/* ---------- Startbalk ---------- */
.startbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 12px 12px 18px;
  margin: 4px 0 28px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
}
.startbar-txt { flex: 1 1 130px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.startbar .btn.go-btn { width: auto; min-width: 0; flex: 0 0 auto; min-height: 48px; padding: 12px 24px; }
@media (max-width: 400px) {
  .startbar { border-radius: var(--r); padding: 14px; }
  .startbar-txt { flex: 1 0 100%; margin-bottom: 4px; }
  .startbar .btn.go-btn { width: 100%; }
}

/* ---------- Embleem bij een oefening ------------------------------------ */
.ex-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ex-title { flex: 1; min-width: 0; }
.ex-muscle { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-top: 1px; }

.ex-art {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ex-art.gear { color: var(--green); background: var(--green-soft); box-shadow: none; }
.ex-art.gear svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ex-art img { width: 100%; height: 100%; object-fit: cover; }

.ex-art.sm { width: 40px; height: 40px; }
.ex-art.sm.gear svg { width: 21px; height: 21px; }

/* ---------- Begroeting bij binnenkomst ---------------------------------
   Groot in beeld bij het openen, na ongeveer een seconde vervaagt hij en
   wordt hij uit de pagina gehaald. Daarna is er niets meer van te zien. */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 36px max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(140deg, var(--lime-2) 0%, var(--lime) 50%, var(--lime-3) 100%);
  color: var(--on-lime);
  text-align: center;
}
.splash-in { animation: splash-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.splash-mark {
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  opacity: .6; margin-bottom: 16px;
}
.splash h2 {
  font-size: clamp(34px, 10.5vw, 54px); font-weight: 800;
  line-height: 1.04; letter-spacing: -.04em;
  text-wrap: balance;
}
.splash-day { margin-top: 14px; font-size: 14.5px; font-weight: 600; opacity: .64; }

.splash.gone {
  opacity: 0; transform: scale(1.04); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
@keyframes splash-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Inlogscherm ---------------------------------------------------- */
.gate {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  padding: 28px max(var(--gutter), env(safe-area-inset-left));
  background: linear-gradient(140deg, var(--lime-2) 0%, var(--lime) 50%, var(--lime-3) 100%);
  color: var(--on-lime);
  overflow-y: auto;
}
.gate-card { width: min(420px, 100%); text-align: center; }
.gate-mark { font-size: 12.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; opacity: .6; margin-bottom: 14px; }
.gate h1 { font-size: clamp(30px, 9vw, 42px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 12px; }
.gate-lede { font-size: 15px; line-height: 1.55; opacity: .78; margin-bottom: 22px; }
.gate-lede strong { opacity: 1; font-weight: 700; }

.gate-field { display: block; margin-bottom: 14px; }
.gate-field span { display: block; text-align: center; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; opacity: .72; }
.gate-field input {
  width: 100%; min-height: 54px;
  padding: 14px 18px;
  border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  font: 16px var(--font); color: var(--on-lime);
  text-align: center;
}
.gate-field input::placeholder { color: rgba(20, 24, 26, .42); }
.gate-field input:focus { outline: 3px solid var(--on-lime); outline-offset: 2px; }
.gate .err { color: var(--bad-deep); font-weight: 700; }
.gate .btn.ghost { background: rgba(255, 255, 255, .5); box-shadow: none; color: var(--on-lime); }
.gate .btn.ghost:hover { background: rgba(255, 255, 255, .72); }

/* ---------- Melding over de verbinding ------------------------------------- */
.cloud-status {
  position: fixed; z-index: 85; left: 50%; transform: translateX(-50%);
  top: max(10px, env(safe-area-inset-top));
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: var(--card);
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-lift);
}

/* ---------- Beeldmerk ------------------------------------------------------
   Het VM-teken. Staat alleen bij binnenkomst, op de begroeting en het
   inlogscherm, en verder nergens in de app. */
.mark-svg { display: block; width: 76px; height: auto; margin: 0 auto 14px; }

/* ---------- Check-in op Vandaag ------------------------------------------- */
.row .check { margin-right: -10px; }
.row .check.done { background: var(--green-soft); }

/* ---------- Een gelogde regel wijzigen ------------------------------------ */
.meal-items .row-main { flex-basis: 100px; }
.row-pen { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.row-pen svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.meal-items .row-trail .icon-btn { margin-right: -8px; }
.meal-items .row-trail .icon-btn:hover { background: var(--card); }
.diary-note { margin: -4px 4px 24px; }

/* ---------- Extra gewicht bij een oefening op eigen gewicht --------------- */
.ex-plus {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; margin: 0 0 10px; padding: 8px 14px;
  border-radius: var(--r-sm); background: var(--card); box-shadow: var(--shadow);
  cursor: pointer;
}
.ex-plus:hover { background: var(--soft); }
.ex-plus input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green); cursor: pointer; }
.ex-plus input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.ex-plus strong { display: block; font-size: 14px; font-weight: 600; }
.ex-plus small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }

.ex-plus.man-per100 { margin: 0 0 14px; }

/* ---------- Zoeken met barcode, en resultaten van Open Food Facts --------- */
.search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.search-row .search { flex: 1; min-width: 0; margin-bottom: 0; }
.scan-btn { flex: none; }
.off-list { margin-top: 14px; }
.off-list:empty { display: none; }
#offNote a, .sheet-body .note a { color: var(--green); font-weight: 600; }

.scan-view { position: relative; aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.scan-view video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 24% 10%; border: 3px solid var(--lime); border-radius: 14px; box-shadow: 0 0 0 999px rgba(20, 24, 26, .38); pointer-events: none; }
.scan-status { min-height: 22px; margin: 0 4px 14px; font-size: 14px; font-weight: 600; text-align: center; color: var(--ink-2); }
#scanForm .btn.ghost { margin-top: 2px; }


/* ---------- Een bewaarde training wijzigen -------------------------------- */
.edit-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0 0 14px; border-radius: var(--r-sm); background: var(--green-soft); }
.edit-banner .row-glyph { width: 34px; height: 34px; border-radius: 11px; background: var(--card); }
.edit-banner strong { display: block; font-size: 14px; font-weight: 700; }
.edit-banner p { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.field.changed { background: var(--card); box-shadow: inset 0 0 0 2px var(--lime-3); }
.btn svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cardio als eigen blok ----------------------------------------- */
.cardio { padding: 14px 14px 8px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.cardio-velden { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cardio-velden.twee { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cardio-velden.een { grid-template-columns: minmax(0, 1fr); max-width: 50%; }
.cardio-veld span { display: block; margin: 0 0 6px 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cardio .switch { margin: 12px 0 0; }
.cardio .switch button { padding: 8px 6px; font-size: 13px; }
.cardio-hint { margin: 8px 4px 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.cardio-uit { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cardio-uit .mini-glyph { width: 38px; height: 38px; border-radius: 12px; }
.cardio-kcal { flex: 1; min-width: 0; }
.cardio-kcal b { font-size: 24px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.cardio-kcal .eenh { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.cardio-kcal small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.cardio .btn.quiet { width: 100%; min-height: 44px; margin-top: 2px; padding: 10px; font-size: 13.5px; }
.cardio .pick.cardio-horloge { margin: 12px 0 6px; background: var(--soft); box-shadow: none; }
#cardioLos .cardio { margin-top: 4px; }

/* ---------- Cardio op het caloriescherm ----------------------------------- */
.list.cardio-dag { margin-bottom: 0; }
.cardio-uitleg { margin: 10px 4px 22px; }

/* ---------- Computer: de kop in lijn, en vanaf 1200 breder in twee kolommen --
   Op de telefoon doen .kolommen en .kolom niets: alles staat gewoon onder
   elkaar, in dezelfde volgorde. Op een computer loopt de begroeting gelijk
   met de inhoud, en vanaf 1200 pixels komt er een tweede kolom bij. */
.kolom { min-width: 0; }
@media (min-width: 900px) {
  .top { width: 100%; max-width: 720px; margin: 0 auto; }
}
@media (min-width: 1200px) {
  .wrap, .top { max-width: 1100px; }
  .kolommen { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .kolom .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* een lopende training: de oefeningen in twee kolommen, de rest over de hele breedte */
  #activeExercises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
  #activeExercises > :not(.ex):not(.pick) { grid-column: 1 / -1; }
}
@media (min-width: 1500px) {
  .wrap, .top { max-width: 1200px; }
}

/* Een aanwijzing van de coach bij een oefening uit het schema */
.ex-head p.ex-notitie { margin-top: 5px; font-size: 12.5px; font-weight: 600; color: var(--green); }
