/* Sport · huisstijl "Raster + Vloer" (4-12-2026)
   Papier, zwart en signaaloranje. Oranje betekent altijd: hier moet je iets mee (wat nu komt, een afwijking).
   Groen, geel en rood alleen bij signalen. Helvetica Neue voor alles, Archivo Black alleen op de vloer. */

@font-face {
  font-family: "Archivo Black";
  src: url("/static/fonts/archivo-black-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #F4F2EE; --card: #FFFFFF; --ink: #141414; --or: #FF5A1F; --line: #D8D4CC; --muted: #7A766E;
  --vak: #E9E6E0; --cell: #BDB8AE; --btn: #141414; --btn-ink: #FFFFFF; --scrim: rgba(20, 20, 20, .45);
  --kop: #141414; --kop-ink: #FFFFFF; --kop-muted: #BDB8AE;
  --floor: #FFFFFF; --floor-ink: #141414; --floor-muted: #6E6A63; --floor-track: #E5E5E5; --floor-band: #141414;
  --groen: #2F8F5B; --geel: #D9A21B; --rood: #D2402F;
  --f: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, sans-serif;
  --heavy: "Archivo Black", "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar: 62px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #111214; --card: #1D1F22; --ink: #F4F2EE; --line: #2C2F33; --muted: #9A968E; --vak: #2C2F33;
  --cell: #4A4D52; --btn: #F4F2EE; --btn-ink: #141414; --scrim: rgba(0, 0, 0, .6); --kop: #000000;
  --floor: #0B0B0C; --floor-ink: #F4F2EE; --floor-muted: #9A968E; --floor-track: #2C2F33; --floor-band: #F4F2EE;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --paper: #111214; --card: #1D1F22; --ink: #F4F2EE; --line: #2C2F33; --muted: #9A968E; --vak: #2C2F33;
    --cell: #4A4D52; --btn: #F4F2EE; --btn-ink: #141414; --scrim: rgba(0, 0, 0, .6); --kop: #000000;
    --floor: #0B0B0C; --floor-ink: #F4F2EE; --floor-muted: #9A968E; --floor-track: #2C2F33; --floor-band: #F4F2EE;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font: 15px/1.4 var(--f); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  min-height: 100dvh; overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.or { color: var(--or); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }

/* ---------- opbouw ---------- */
#app { min-height: 100dvh; }
.view { max-width: 560px; margin: 0 auto; padding: calc(10px + var(--safe-t)) 16px calc(var(--tabbar) + 28px + var(--safe-b)); }
body.gym .view, body.bare .view { padding-bottom: calc(28px + var(--safe-b)); }
.boot { min-height: 100dvh; }

.head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 8px 14px; }
.head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.head .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.head .me { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--btn); color: var(--btn-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; padding: 14px 8px 0; }
.back svg { width: 15px; height: 15px; }
.back + .head { padding-top: 6px; }
.back + .head h1 { font-size: 23px; }
.arrows { display: flex; gap: 4px; margin-top: 2px; }
.arrows button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.arrows svg { width: 20px; height: 20px; }

.label { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 22px 8px 8px; }
.eyebrow { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card + .card { margin-top: 10px; }
.card.signal { border: 1.5px solid var(--or); }
.card.black { background: var(--kop); border: 0; color: var(--kop-ink); }
.card.black .eyebrow, .card.black .muted { color: var(--kop-muted); }
.card h2 { font-size: 22px; font-weight: 700; line-height: 1.15; margin: 6px 0 0; }
.card .lead { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.card .warn { font-size: 12.5px; color: var(--or); font-weight: 700; margin-top: 8px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* knoppen */
.btn { height: 46px; padding: 0 16px; border-radius: 10px; font-size: 14.5px; font-weight: 700; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: transparent; white-space: nowrap; }
.card .btn, .sheet .btn, .panel .card .btn { background: var(--paper); }
.btn.primary, .card .btn.primary, .sheet .btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.card.black .btn.primary { background: #FFFFFF; color: #141414; border-color: #FFFFFF; }
.btn.block { width: 100%; }
.btn.small { height: 36px; font-size: 13px; padding: 0 12px; }
.btn:disabled { opacity: .45; }
.btn svg { width: 18px; height: 18px; }
.btns { display: flex; gap: 8px; margin-top: 16px; }
.btns > .btn { flex: 1; }
.links { display: flex; justify-content: space-between; padding: 14px 8px 0; font-size: 13px; }
.links button, .links a { padding: 6px 0; }
.textbtn { font-size: 13px; font-weight: 700; padding: 8px 0; }

/* pillen en keuzes */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 13px; background: var(--paper);
  font-size: 11.5px; }
.pill.or { background: none; border: 1.5px solid var(--or); color: var(--or); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--card); font-size: 13px; }
.card .chips button, .sheet .chips button { background: var(--paper); }
.chips button.on { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.seg { display: flex; background: var(--card); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; height: 34px; border-radius: 8px; font-size: 13px; }
.seg button.on { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.scale button { height: 36px; border-radius: 7px; background: var(--card); font-size: 12.5px; }
.sheet .scale button, .card .scale button { background: var(--paper); }
.scale button.on { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.toggle { width: 42px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #FFFFFF; transition: transform .15s; }
.toggle.on { background: var(--btn); }
.toggle.on::after { transform: translateX(18px); background: var(--btn-ink); }

/* lijsten */
.rows { background: var(--card); border-radius: 14px; overflow: hidden; }
.rows > * { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; width: 100%; text-align: left;
  position: relative; }
.rows > * + *::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--vak); }
.rows .t { font-size: 13.5px; font-weight: 700; }
.rows .t.plain { font-weight: 400; }
.rows .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rows .v { font-size: 13.5px; font-weight: 700; text-align: right; }
.rows .v.plain { font-weight: 400; color: var(--muted); }
.chev { width: 16px; height: 16px; color: var(--muted); flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.groen { background: var(--groen); } .dot.geel { background: var(--geel); } .dot.rood { background: var(--rood); }
.dot.or { background: var(--or); width: 8px; height: 8px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.tiles .btn { background: var(--card); }

.daylist { display: grid; gap: 6px; }
.dayrow { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px 8px 16px; min-height: 54px; text-align: left; width: 100%; }
.dayrow.rust { background: none; border-style: dashed; }
.dayrow .d { width: 34px; flex: none; }
.dayrow .d small { display: block; font-size: 10.5px; color: var(--muted); }
.dayrow .d b { display: block; font-size: 16px; line-height: 1.1; }
.dayrow .t { font-size: 13.5px; font-weight: 700; }
.dayrow .s { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dayrow .s.or { color: var(--or); }

/* vakjes: weekstrook */
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.strip .c { height: 42px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); }
.strip .c.done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.strip .c.zaal { background: var(--vak); border-color: var(--vak); color: var(--muted); font-weight: 400; font-size: 10px; }
.strip .c.rust, .strip .c.skip { background: none; border: 1px dashed var(--line); color: var(--muted); font-weight: 400; }
.strip .c.today { border: 2.5px solid var(--or); }
.strip .d { text-align: center; font-size: 10.5px; color: var(--muted); padding-top: 4px; }
.strip .d.today { color: var(--ink); font-weight: 700; }
.cellbox { width: 34px; height: 32px; flex: none; border-radius: 4px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.cellbox.done { background: var(--ink); color: var(--paper); }
.cellbox.zaal { background: var(--vak); color: var(--muted); font-weight: 400; font-size: 9.5px; }
.cellbox.plan { background: var(--card); border: 1px solid var(--line); }
.cellbox.today { border: 2.5px solid var(--or); }
.cellbox.rust.today, .cellbox.plan.today { background: var(--card); }
.cellbox.skip, .cellbox.rust { border: 1px dashed var(--line); color: var(--muted); font-weight: 400; }

/* signalen op Vandaag */
.sig { display: flex; align-items: center; gap: 10px; padding: 7px 8px; width: 100%; text-align: left; }
.sig b { font-size: 13px; white-space: nowrap; }
.sig .r { margin-left: auto; font-size: 12.5px; color: var(--muted); text-align: right; min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }

/* plan op de kaart */
.plan { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; }
.plan b { font-weight: 600; }
.plan span { color: var(--muted); text-align: right; }

/* bezig-kaart: mini-rooster */
.mini { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; margin: 14px 0 4px; align-items: center; font-size: 12.5px; }
.mini .n { color: var(--kop-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .cs { display: flex; gap: 6px; }
.mini .cs i { width: 26px; height: 19px; border-radius: 3px; border: 1px solid #5A5752; display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: 11px; }
.mini .cs i.done { background: #F4F2EE; border-color: #F4F2EE; color: #141414; }
.mini .cs i.next { border: 2px solid var(--or); }

/* tabbalk */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line);
  display: flex; padding-bottom: var(--safe-b); }
.tabbar .tab { flex: 1; height: var(--tabbar); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--muted); font-size: 10.5px; position: relative; }
.tabbar .tab svg { width: 20px; height: 20px; }
.tabbar .tab.on { color: var(--ink); font-weight: 700; }
.tabbar .tab.on::after { content: ""; position: absolute; bottom: 6px; width: 34px; height: 3px; border-radius: 2px; background: var(--or); }
body.gym .tabbar, body.bare .tabbar { display: none; }

/* bladen van onderen */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; animation: fade .15s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--card); border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(20px + var(--safe-b)); max-height: 92dvh; overflow-y: auto; max-width: 560px; margin: 0 auto;
  animation: up .2s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.sheet h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.sheet .lead { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.sheet .label { margin: 18px 0 8px; }
.sheet .opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--paper);
  border-radius: 12px; padding: 12px 16px; margin-top: 8px; }
.sheet .opt .t { font-weight: 700; font-size: 14px; }
.sheet .opt .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sheet .opt .w { font-size: 11.5px; color: var(--or); font-weight: 700; margin-top: 3px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 12px 14px; font-size: 15px;
  outline: none; }
.sheet .input, .card .input { background: var(--paper); border-color: transparent; }
.input:focus { border-color: var(--ink); }
textarea.input { resize: none; min-height: 64px; line-height: 1.4; display: block; }
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* stappenteller (zwetende vingers) */
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; gap: 10px; align-items: center; margin: 8px 0 14px; }
.stepper button { height: 64px; border-radius: 14px; background: var(--paper); font-size: 28px; }
.stepper input { text-align: center; font-size: 36px; font-weight: 700; border: 0; background: none; width: 100%; outline: none;
  font-variant-numeric: tabular-nums; }
.stepper input.or { color: var(--or); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 6px; }
.quick button { height: 32px; padding: 0 12px; border-radius: 16px; background: var(--paper); font-size: 13px; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--tabbar) + 16px + var(--safe-b)); z-index: 60; max-width: 528px;
  margin: 0 auto; background: var(--btn); color: var(--btn-ink); border-radius: 22px; padding: 12px 18px; font-size: 13.5px;
  animation: up .2s ease-out; }
body.bare .toast { bottom: calc(20px + var(--safe-b)); }
body.gym .toast { bottom: auto; top: calc(12px + var(--safe-t)); z-index: 70; }

.spinner { width: 28px; height: 28px; margin: 80px auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty .btn { margin-top: 16px; }
.foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 22px; line-height: 1.6; }

/* inloggen */
.login { max-width: 380px; margin: 0 auto; padding: calc(70px + var(--safe-t)) 24px 40px; }
.logo { width: 76px; height: 76px; border-radius: 17px; background: #141414; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; padding: 10px; margin: 0 auto; }
.logo i { border-radius: 3px; background: #3A3A3A; }
.logo i:nth-child(1), .logo i:nth-child(2) { background: #F4F2EE; }
.logo i:nth-child(3) { background: var(--or); }
.word { text-align: center; font-size: 36px; font-weight: 700; margin-top: 28px; letter-spacing: -.01em; }
.word::after { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--or); margin-left: 3px; }
.login .tag { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
.login form { margin-top: 44px; }
.login .btn { margin-top: 22px; height: 50px; font-size: 15px; }
.login .err { color: var(--or); font-size: 13px; margin-top: 12px; min-height: 18px; text-align: center; }
.login .foot { margin-top: 28px; }

/* markdown (sportprofiel, spelregels) */
.md { font-size: 14px; line-height: 1.55; }
.md p, .md ul, .md ol, .md blockquote, .md .tbl { margin: 0 0 10px; }
.md ul, .md ol { padding-left: 20px; }
.md h4 { font-size: 14px; margin: 14px 0 6px; }
.md blockquote { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; color: var(--muted); }
.md .ct { display: block; font-weight: 700; color: var(--ink); }
.md .tbl { overflow-x: auto; }
.md table { border-collapse: collapse; font-size: 12.5px; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }

/* grafiek en getallen */
.chart { width: 100%; height: auto; display: block; margin-top: 4px; overflow: visible; }
.chart text { font: 10px var(--f); fill: var(--muted); }
.spark { width: 52px; height: 26px; flex: none; overflow: visible; }
.spark path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.spark circle { fill: var(--or); }
.big { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.big small { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.kv2 { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 16px; align-items: center; }
.kv2 .sep { background: var(--line); align-self: stretch; }
.kv2 .nx { font-size: 22px; font-weight: 700; color: var(--or); margin-top: 8px; }

/* programma */
.prow { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 8px; font-size: 13px;
  position: relative; }
.prow .l { font-size: 11px; font-weight: 700; color: var(--muted); }
.prow .x { font-size: 11.5px; color: var(--muted); text-align: right; }
.prow.opt .n { color: var(--muted); }
.prow.pair::before { content: ""; position: absolute; left: -2px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--ink); }
.prow.pair.a::before { bottom: -6px; } .prow.pair.b::before { top: -6px; }

/* ================= GYM ================= */
.kop { background: var(--kop); color: var(--kop-ink); padding: calc(8px + var(--safe-t)) 18px 0; position: sticky; top: 0; z-index: 10;
  margin: calc(-10px - var(--safe-t)) -16px 0; }
.kop .top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--kop-muted); }
.kop .top button { color: var(--kop-muted); padding: 6px 0; display: inline-flex; align-items: center; gap: 2px; }
.kop .top svg { width: 14px; height: 14px; }
.kop .main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 0 14px; }
.kop .clock { font-size: 42px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kop .clock.go { color: var(--or); }
.kop .what { font-size: 12.5px; color: var(--kop-muted); text-align: right; }
.kop .bar { height: 4px; margin: 0 -18px; }
.kop .bar i { display: block; height: 100%; width: 0; background: var(--or); }
.kop .add { font-size: 12px; color: var(--kop-ink); border: 1px solid #4A4A4A; border-radius: 13px; padding: 4px 10px; margin-left: 8px;
  white-space: nowrap; }

.gympad { padding: 14px 0 calc(130px + var(--safe-b)); }
.corr .ok { font-size: 12px; color: var(--muted); margin-top: 3px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.steps.one { grid-template-columns: 1fr; max-width: 240px; }
.step .l { font-size: 10.5px; color: var(--muted); text-align: center; margin-bottom: 6px; letter-spacing: .06em; }
.step .r { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.step button { height: 48px; border-radius: 10px; background: var(--paper); font-size: 22px; touch-action: manipulation; }
.step .v { text-align: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px 0; }
.step .v.or { color: var(--or); }
.step .v.long { font-size: 19px; }
.rpe { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rpe button { height: 38px; border-radius: 8px; background: var(--paper); font-weight: 700; font-size: 13px; }
.rpe button.half { font-size: 11.5px; }
.rpe button.on { background: var(--btn); color: var(--btn-ink); }
.subl { font-size: 10.5px; color: var(--muted); letter-spacing: .06em; margin: 16px 0 6px; text-transform: uppercase; }
.notebtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; border-radius: 22px; background: var(--paper);
  padding: 6px 6px 6px 16px; text-align: left; font-size: 13px; color: var(--muted); }
.notebtn.has { color: var(--ink); border-radius: 12px; }
.notebtn .mic { margin-left: auto; }
.mic { width: 32px; height: 32px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; flex: none; }
.mic svg { width: 16px; height: 16px; }
.ctx { font-size: 11.5px; color: var(--muted); margin-top: 8px; }

.grid { margin-top: 18px; }
.grid .dayl { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); padding: 0 2px 8px; border-bottom: 1px solid var(--line); }
.grow-row { display: flex; align-items: center; gap: 8px; padding: 7px 2px; }
.grow-row + .grow-row { border-top: 1px solid var(--vak); }
.grow-row .nm { flex: 1; min-width: 0; text-align: left; font-weight: 700; font-size: 13.5px; padding: 6px 0; }
.grow-row .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; margin-top: 1px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.grow-row.skip .nm { color: var(--muted); }
.grow-row .lb { font-size: 11px; font-weight: 700; color: var(--muted); width: 22px; flex: none; }
.grow-row .cs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 62%; }
.grow-row .rp { width: 26px; text-align: right; font-weight: 700; color: var(--muted); font-size: 13px; flex: none; }
.grow-row.pair { box-shadow: inset 3px 0 0 var(--ink); padding-left: 10px; }
.rc { width: 34px; height: 32px; border-radius: 4px; background: var(--card); border: 1px solid var(--cell); font-weight: 700; font-size: 13px;
  display: grid; place-items: center; position: relative; font-variant-numeric: tabular-nums; }
.rc.done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rc.done.dev { color: var(--or); }
.rc.next { border: 2.5px solid var(--or); }
.rc.sel { background: var(--ink); color: var(--paper); border: 2.5px solid var(--or); }
.rc.skip { background: none; border-style: dashed; color: var(--muted); }
.rc.note::after { content: ""; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--or); border: 2px solid var(--paper); }
.rc small { font-size: 10px; }

.gymfoot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 18px 16px calc(12px + var(--safe-b));
  background: linear-gradient(to top, var(--paper) 72%, transparent); }
.gymfoot .inner { max-width: 528px; margin: 0 auto; }
.gymfoot .btn.primary { width: 100%; height: 52px; font-size: 15px; }
.undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--btn); color: var(--btn-ink);
  border-radius: 22px; padding: 0 18px; height: 44px; font-size: 13px; margin-bottom: 10px; animation: up .2s ease-out; }
.undo span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo button { color: var(--or); font-weight: 700; padding: 10px 0; white-space: nowrap; flex: none; }

/* vloer: tijdens de set */
.floor { position: fixed; inset: 0; z-index: 30; background: var(--floor); color: var(--floor-ink); display: flex; flex-direction: column;
  padding-top: var(--safe-t); user-select: none; -webkit-user-select: none; touch-action: manipulation; cursor: pointer; }
.floor .fhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px 0; }
.floor .fname { font-family: var(--heavy); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }
.floor .fgrid { width: 44px; height: 44px; display: grid; place-items: center; margin: -10px -12px -10px 0; flex: none; }
.floor .fgrid i { display: grid; grid-template-columns: repeat(3, 5px); gap: 2px; }
.floor .fgrid b { width: 5px; height: 5px; border-radius: 1px; background: var(--floor-muted); }
.floor .segs { display: flex; gap: 6px; padding: 12px 20px 0; }
.floor .segs i { flex: 1; height: 8px; border-radius: 4px; background: var(--floor-track); }
.floor .segs i.done { background: var(--floor-ink); }
.floor .segs i.now { background: var(--or); }
.floor .body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; }
.floor .phase { font-family: var(--heavy); font-size: 22px; letter-spacing: .12em; color: var(--or); margin-bottom: 6px; }
.floor .phase.rest { color: var(--floor-muted); }
.floor .kg { font-family: var(--heavy); font-size: min(44vw, 30vh, 200px); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.floor .kg.mid { font-size: min(32vw, 24vh, 150px); }
.floor .kg.long { font-size: min(24vw, 20vh, 118px); }
.floor .unit { font-family: var(--heavy); font-size: 16px; letter-spacing: .25em; color: var(--floor-muted); margin-top: 12px; }
.floor .reps { font-family: var(--heavy); font-size: min(28vw, 17vh, 120px); line-height: 1; margin-top: 4vh; font-variant-numeric: tabular-nums; }
.floor .reps.solo { font-size: min(44vw, 30vh, 200px); margin-top: 0; }
.floor .side { font-family: var(--heavy); font-size: 14px; letter-spacing: .2em; color: var(--floor-muted); margin-top: 8px; }
.floor .cue { font-weight: 700; font-size: 15px; color: var(--floor-muted); margin-top: 4.5vh; max-width: 30ch; }
.floor .goal { font-size: 13px; color: var(--floor-muted); margin-top: 8px; }
.floor .track { width: min(100%, 420px); height: 10px; border-radius: 5px; background: var(--floor-track); margin-top: 5vh; overflow: hidden; }
.floor .track i { display: block; height: 100%; background: var(--floor-ink); width: 0; }
.floor .band { background: var(--floor-band); color: var(--floor); text-align: center; padding: 26px 20px calc(26px + var(--safe-b)); }
.floor .band b { display: block; font-family: var(--heavy); font-size: 24px; letter-spacing: .08em; font-weight: 400; }
.floor .band small { display: block; font-family: var(--heavy); font-size: 13px; letter-spacing: .12em; opacity: .65; margin-top: 6px; }
.floor .stop { font-size: 13px; font-weight: 700; color: var(--floor-muted); padding: 10px 12px; border: 1px solid var(--floor-track);
  border-radius: 18px; margin-top: 3vh; }

/* volledige panelen in de gym (opmerking, oefening, afronden, klaar) */
.panel { position: fixed; inset: 0; z-index: 35; background: var(--paper); overflow-y: auto; animation: up .18s ease-out; }
.panel .in { max-width: 560px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(40px + var(--safe-b)); }
.panel .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 2px; }
.panel .ph button { font-size: 13px; padding: 8px 0; display: inline-flex; align-items: center; gap: 2px; }
.panel .ph svg { width: 15px; height: 15px; }
.panel h1 { font-size: 23px; font-weight: 700; margin-top: 8px; }
.panel .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.panel .notearea { position: relative; margin-top: 16px; }
.panel .notearea textarea { min-height: 110px; border: 1.5px solid var(--ink); background: var(--card); padding-right: 54px; font-size: 15px; }
.panel .notearea .mic { position: absolute; right: 12px; bottom: 12px; }
.panel .hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.pinrow { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 12px; padding: 13px 16px; margin-top: 18px;
  width: 100%; text-align: left; font-size: 13.5px; }
.media { aspect-ratio: 16 / 9; border-radius: 12px; background: var(--vak); margin-top: 14px; overflow: hidden; }
.media iframe, .media video { width: 100%; height: 100%; border: 0; display: block; }
.letop { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; margin-top: 8px; }
.letop .dot { position: relative; top: 1px; }
.klaar-title { font-family: var(--heavy); font-size: 46px; line-height: 1; letter-spacing: -.01em; margin-top: 18px; }
.nextrow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.nextrow + .nextrow { border-top: 1px solid var(--vak); }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; font-size: 12.5px; }
.summary .cs { display: flex; gap: 5px; justify-content: flex-end; }
.summary .cs i { min-width: 26px; height: 18px; border-radius: 3px; background: var(--ink); color: var(--paper); font-style: normal;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; position: relative; }
.summary .cs i.dev { color: var(--or); }
.summary .cs i.open { background: none; border: 1px dashed var(--line); }
.summary .cs i.note::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--or); }

/* routine-klok */
.rstep { display: flex; align-items: center; gap: 12px; padding: 9px 2px; font-size: 13.5px; width: 100%; text-align: left; }
.rstep i { width: 18px; height: 18px; border-radius: 3px; border: 1px solid var(--line); background: var(--card); flex: none; }
.rstep.done i { background: var(--ink); border-color: var(--ink); }
.rstep.done span { color: var(--muted); }
.rstep.now i { border: 2px solid var(--or); }
.rstep.now span { font-weight: 700; }
.rstep em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rblock { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 2px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
