:root {
  --bg: #f2f7f8; --card: #ffffff; --ink: #0d2238; --muted: #5f7180; --line: #dde7ea;
  --accent: #0d2238; --on-accent: #ffffff; --brand: #0f8f9c;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --swim: #2f80d1; --bike: #d9822b; --run: #2a9d6a; --strength: #8b6fd6; --other: #9ca3af;
  --ctl: #2f80d1; --atl: #d6457a; --tsb: #b8860b; --good: #2a9d6a; --warn: #d9822b; --bad: #d6457a;
  --radius: 14px;
  --z1: #9ca3af; --z2: #2f80d1; --z3: #2a9d6a; --z4: #d9822b; --z5: #d6457a;
  --fz-hi: #e8892f; --fz-fresh: #2f80d1; --fz-neutral: #8b96a3; --fz-opt: #2a9d6a; --fz-risk: #dc3c3c;
  --xl: #217346; --xl-bg: #e8f3ec; --xl-ink: #ffffff;  /* zieleń Excela – treningi z pliku trenera */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1622; --card: #102236; --ink: #e6f1f3; --muted: #8fa5b2; --line: #1d3550;
    --accent: #1ec8c8; --on-accent: #0d2238; --brand: #1ec8c8; --swim: #5aa4ef; --bike: #f0a04b; --run: #48c28c; --strength: #a78bfa;
    --ctl: #5aa4ef; --atl: #f06b9a; --tsb: #e0b84a;
    --fz-hi: #f0a04b; --fz-fresh: #5aa4ef; --fz-neutral: #a3afbb; --fz-opt: #48c28c; --fz-risk: #f26b6b;
    --xl: #33a467; --xl-bg: #12301f;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
header { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 14px 16px 8px;
  display: flex; align-items: center; justify-content: space-between; }
header h1 { font-size: 20px; margin: 0; }
header .who { font-size: 12px; color: var(--muted); }
main { padding: 0 16px 16px; max-width: 760px; margin: 0 auto; }
.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  border: 1px solid var(--line); }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  margin: 0 0 10px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--muted); }
.stat .d { font-size: 12px; }
.up { color: var(--good); } .down { color: var(--bad); }
.race { display: flex; justify-content: space-between; align-items: center; }
.race .days { font-size: 36px; font-weight: 800; color: var(--accent); line-height: 1; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.sportrow { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--line); }
.sportrow:last-child { border-bottom: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.act { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; }
.act:last-child { border-bottom: 0; }
.act .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; font-size: 17px; flex: none; }
.act .main { flex: 1; min-width: 0; }
.act .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act .r { text-align: right; font-variant-numeric: tabular-nums; }
nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--card);
  border-top: 1px solid var(--line); display: flex; padding-bottom: env(safe-area-inset-bottom); }
nav.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 8px 0 9px;
  font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
nav.tabs button svg { width: 22px; height: 22px; }
nav.tabs button.on { color: var(--accent); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.seg button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px;
  padding: 5px 12px; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .axis { font-size: 10px; fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axisline { stroke: var(--muted); stroke-width: 1; opacity: .55; }
.chart .axtag { fill: #fff; font-weight: 600; }
.chart .axtag.x { fill: var(--card); }
.card h2.trk { display: flex; justify-content: space-between; align-items: baseline; }
.card h2.trk .hv { color: var(--ink); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--card); font-size: 12px;
  padding: 6px 8px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, 0); top: 4px; opacity: .94;
  display: none; z-index: 3; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .hrvnow { margin-left: auto; color: var(--ink); gap: 3px; }
/* legenda ze statusem „Dziś …” – wszystko w jednej linii */
.legend:has(.hrvnow) { flex-wrap: nowrap; gap: 8px; white-space: nowrap; font-size: 11.5px; }
.legend:has(.hrvnow) span { gap: 4px; }
.legend:has(.hrvnow) > span:not(.hrvnow) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.btn { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px; padding: 11px 16px;
  font: inherit; font-weight: 600; cursor: pointer; width: 100%; margin-top: 14px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.sm { width: auto; padding: 6px 12px; margin: 0; font-size: 13px; }
.login { max-width: 360px; margin: 12vh auto 0; padding: 0 16px; }
.err { color: var(--bad); font-size: 13px; margin-top: 8px; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: none; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; z-index: 21;
  background: var(--card); border-radius: 18px 18px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .22s ease; max-width: 760px; margin: 0 auto; }
.sheet.open { transform: none; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 12px 0; }
.kv div b { display: block; font-size: 17px; }
.kv div span { font-size: 12px; color: var(--muted); }
.comment { padding: 9px 11px; border-radius: 10px; background: var(--bg); margin: 6px 0; font-size: 14px; }
.comment .h { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.comment.coach { border-left: 3px solid var(--accent); }
.zrow { display: grid; grid-template-columns: 54px 1fr; gap: 8px; align-items: center; margin: 8px 0; font-size: 13px; }
/* pasek podziału czasu: gruba kapsuła 3D, czas w środku segmentu; jasny = plan */
.tbar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: var(--line);
  box-shadow: 0 2px 5px rgba(13, 34, 56, .16); }
.zrow .tbar { height: 18px; border-radius: 6px; }
.zrow .tbar span { font-size: 10px; }
.tbar span { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 10.5px; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
  font-variant-numeric: tabular-nums; border-right: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, rgba(255, 255, 255, .4) 0, rgba(255, 255, 255, .1) 40%, rgba(0, 0, 0, .18) 100%), var(--c); }
.tbar span:last-child { border-right: 0; }
.tbar span.plan { color: color-mix(in srgb, var(--c) 70%, var(--ink)); text-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2) 50%, rgba(0, 0, 0, .05)),
    color-mix(in srgb, var(--c) 45%, var(--card)); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.t td, table.t th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: right; }
table.t td:first-child, table.t th:first-child { text-align: left; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink);
  color: var(--card); padding: 9px 14px; border-radius: 10px; font-size: 13px; z-index: 30; display: none; }
.hidden { display: none !important; }

/* ---- plan ---- */
.banner { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; display: flex; gap: 8px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: color-mix(in srgb, var(--accent) 12%, transparent); }
.badge { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 8px; margin: 0 4px 6px 0;
  background: var(--bg); border: 1px solid var(--line); }
.badge.off { border-color: var(--bad); color: var(--bad); }
.badge.limit { border-color: var(--warn); color: var(--warn); }
.badge.race { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pitem { border-left: 4px solid var(--c); background: var(--bg); border-radius: 8px; padding: 8px 10px; margin: 6px 0;
  cursor: pointer; }
.pitem.draft { border-style: dashed; border-width: 1px 1px 1px 4px; border-color: var(--c); opacity: .9; }
.pitem .pt { font-size: 14px; }
.pitem .pd { font-size: 13px; white-space: pre-wrap; margin: 2px 0; }
.pnote { font-size: 13px; color: var(--muted); margin: 4px 0; }
.src { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
.pill.sm { font-size: 10px; padding: 1px 6px; }
.ok { color: var(--good); font-weight: 700; } .miss { color: var(--bad); font-weight: 700; }
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; text-align: center; }
.comp { font-size: 12px; padding: 2px 7px; border-radius: 99px; text-transform: none; letter-spacing: 0; }
.comp.good { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.comp.mid { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.comp.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.card.day.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card.day h2 span:first-child { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.donehdr { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
.shead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rday { border-bottom: 1px solid var(--line); padding: 8px 0; }
.rdh { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ctx { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.warn { color: var(--warn); }
.chip { border: 1px dashed var(--accent); background: transparent; color: var(--accent); border-radius: 99px;
  padding: 4px 10px; font-size: 12px; cursor: pointer; }
.chk { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; color: var(--ink); margin: 0 10px 0 0; }
.chk input { width: auto; }
.prio { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800;
  background: var(--line); }
.prio.pA { background: var(--brand); color: #fff; } .prio.pB { background: var(--warn); color: #fff; }
.prio.pC { background: var(--other); color: #fff; }
details summary { cursor: pointer; margin-top: 8px; }
.btn:disabled { opacity: .6; }

/* ---- kafelki w stylu kalendarza treningowego (zgodność z planem) ---- */
:root { --st-done: #2a9d6a; --st-partial: #e3a008; --st-missed: #d6455a; --st-planned: #9ca3af; --st-unplanned: #9ca3af; }
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.sday { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 0 5px; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer; font: inherit; }
.sday span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.sday b { font-size: 16px; }
.sday.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sday.on span { color: var(--on-accent); }
.sdots { display: flex; gap: 2px; min-height: 7px; flex-wrap: wrap; justify-content: center; max-width: 40px; }
.sdots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.dot-done { background: var(--st-done); } .dot-partial { background: var(--st-partial); }
.dot-missed { background: var(--st-missed); } .dot-planned, .dot-draft { background: transparent; box-shadow: inset 0 0 0 1.5px var(--st-planned); }
.dot-unplanned { background: var(--st-unplanned); }
.sday.on .sdots i { box-shadow: 0 0 0 1px var(--on-accent); }
.wsum .v.sm { font-size: 20px; }
.wsrow { display: grid; grid-template-columns: 12px 74px 1fr auto; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.wsbar { height: 7px; background: var(--line); border-radius: 99px; overflow: hidden; }
.wsbar span { display: block; height: 100%; border-radius: 99px; }
.dayblk { margin-bottom: 14px; scroll-margin-top: 70px; }
.dhead { display: flex; justify-content: space-between; align-items: center; padding: 4px 2px 6px; font-size: 14px; }
.dayblk.today .dhead b { color: var(--accent); }
.tile { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: start; background: var(--card);
  border: 1px solid var(--line); border-left: 6px solid var(--stc, var(--st-planned)); border-radius: 12px;
  padding: 10px 10px 10px 8px; margin-bottom: 8px; cursor: pointer; }
.tile.st-done { --stc: var(--st-done); background: color-mix(in srgb, var(--st-done) 9%, var(--card)); }
.tile.st-partial { --stc: var(--st-partial); background: color-mix(in srgb, var(--st-partial) 10%, var(--card)); }
.tile.st-missed { --stc: var(--st-missed); background: color-mix(in srgb, var(--st-missed) 8%, var(--card)); }
.tile.st-planned { --stc: var(--st-planned); }
.tile.st-draft { --stc: var(--st-planned); border-style: dashed; border-left-style: solid; }
.tile.st-unplanned { --stc: var(--st-unplanned); background: color-mix(in srgb, var(--st-unplanned) 10%, var(--card)); }
/* treningi z Excela trenera i basen z grupą: cała ramka i tło w zieleni Excela */
.tile.xl, .pitem.xl { border: 2px solid var(--xl); border-left-width: 6px; background: var(--xl-bg); }
.tile.xl.st-draft, .pitem.xl.draft { border-style: dashed; border-left-style: solid; }
.xl .src { background: var(--xl); color: var(--xl-ink); border-color: var(--xl); font-weight: 700; }
.tico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 17px; }
.tt { font-weight: 600; font-size: 14px; }
.td { font-size: 12.5px; color: var(--muted); white-space: pre-wrap; margin-top: 2px; display: -webkit-box;
  -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tnums { font-size: 12.5px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tnums .arrow { color: var(--muted); }
.tstate { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--stc, var(--muted)); font-weight: 700;
  white-space: nowrap; }
.tile.st-planned .tstate, .tile.st-draft .tstate, .tile.st-unplanned .tstate { color: var(--muted); }
pre.diff { white-space: pre-wrap; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 4px 0 0;
  color: var(--muted); }
.sheet { visibility: hidden; transition: transform .22s ease, visibility .22s; }
.sheet.open { visibility: visible; }
.rweek { margin-top: 14px; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }

/* ---- identyfikacja: kondensowana, mocna typografia, czerń/biel + czerwień ---- */
header h1, .card h2, .stat .v, .race .days, .dhead b, .weeknav b, .rweek, .login h1, .shead b, .tstate, .brand-word {
  font-family: var(--display); }
header h1 { font-size: 26px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; }
.card h2 { font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.stat .v { font-size: 30px; font-weight: 700; }
.race .days { font-size: 48px; font-weight: 800; font-style: italic; color: var(--brand); }
.dhead b { font-size: 16px; font-weight: 700; text-transform: uppercase; }
.weeknav b { font-size: 18px; font-weight: 700; text-transform: uppercase; }
.btn { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.btn.ghost { color: var(--accent); border-color: var(--accent); }
nav.tabs button.on { color: var(--brand); }
.brandbar { display: flex; align-items: center; gap: 10px; }
.brandbar .mark { width: 34px; height: 34px; flex: none; }
.ico svg.si, .tico svg.si { width: 22px; height: 22px; }
svg.si { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round;
  stroke-linejoin: round; vertical-align: -0.2em; }
svg.si circle:only-of-type { fill: currentColor; stroke: none; }
.pic { display: inline-flex; }
.login h1 { font-size: 40px; font-weight: 800; font-style: italic; text-transform: uppercase; margin: 0; }
.card.race { border-left: 5px solid var(--brand); }

/* ---- pulpit: plan tygodniowy ---- */
.wp-head { margin: 14px 0 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wp-head b { font-family: var(--display); font-size: 16px; text-transform: uppercase; letter-spacing: .03em; }
.wp-day { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.wp-day.on { background: color-mix(in srgb, var(--brand) 10%, transparent); border-radius: 8px; }
.wp-d { font-size: 11px; color: var(--muted); text-transform: uppercase; text-align: center; line-height: 1.1; padding-top: 2px; }
.wp-d b { display: block; font-size: 17px; color: var(--ink); font-family: var(--display); }
.wp-list { min-width: 0; }
.wp-s { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: center; padding: 3px 4px 3px 0; cursor: pointer; font-size: 14px; }
.wp-s.muted { cursor: default; }
.wp-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wp-m { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wp-i { display: inline-flex; }
.wp-block { margin-top: 4px; }
.wp-bar { position: relative; height: 8px; border-radius: 99px; background: var(--line); margin: 8px 0 4px; }
.wp-bar span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.wp-bar i { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); transform: translateX(-2px); }
.wp-phases { display: grid; grid-template-columns: 31% 31% 23% 15%; }
.legend.zl { flex-direction: column; gap: 4px; }
.legend.zl b { color: var(--ink); font-weight: 600; min-width: 84px; display: inline-block; }

/* ---- podsumowanie aktywności: odcinki ---- */
table.splits th { font-size: 11px; color: var(--muted); font-weight: 600; text-align: left; padding: 4px 4px 6px; }
table.splits td { padding: 5px 4px; border-top: 1px solid var(--line); white-space: nowrap; }
table.splits td:nth-child(n+4), table.splits th:nth-child(n+4) { text-align: right; }
table.splits td.sbar { width: 45%; }
.sbar span { display: block; height: 14px; border-radius: 4px; background: var(--ctl); opacity: .55; }
table.pcmp td:nth-child(n+2), table.pcmp th:nth-child(n+2) { text-align: right; }
table.pcmp td:first-child { white-space: normal; }
table.pcmp tr.muted td { color: var(--muted); font-size: 12px; }
table.pcmp tr.tot td { border-top: 2px solid var(--line); }
.kv:has(> div:nth-child(3):last-child) { grid-template-columns: 1fr 1fr 1fr; }
table.laps td:nth-child(n+2), table.laps th:nth-child(n+2) { text-align: right; }
table.laps td.sbar { width: 30%; }
table.laps tr.stepend td { border-bottom: 2px solid var(--muted); }
table.laps td:nth-child(2).small { text-align: left; color: var(--muted); }
table.laps tr.note td { border-top: 0; padding-top: 0; text-align: left; white-space: normal; }

/* ---- RPE po treningu ---- */
/* sekcje okna treningu oddzielone linią */
.sec { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sec-h { margin: 16px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.rpe-card { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.rpe-card .rpe-txt { flex: 1; min-width: 0; font-size: 15px; }
.rpe-num { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  font: 700 20px/1 var(--display); background: var(--z3); }
.rpe-num.r1, .rpe-num.r2 { background: var(--z1); } .rpe-num.r3, .rpe-num.r4 { background: var(--z2); }
.rpe-num.r7, .rpe-num.r8 { background: var(--z4); } .rpe-num.r9, .rpe-num.r10 { background: var(--z5); }
.rpe-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.rpe-b { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 9px 0;
  font: inherit; font-weight: 700; cursor: pointer; }
.rpe-b.on { color: #fff; border-color: transparent; }
.rpe-b.r1.on, .rpe-b.r2.on { background: var(--z1); } .rpe-b.r3.on, .rpe-b.r4.on { background: var(--z2); }
.rpe-b.r5.on, .rpe-b.r6.on { background: var(--z3); } .rpe-b.r7.on, .rpe-b.r8.on { background: var(--z4); }
.rpe-b.r9.on, .rpe-b.r10.on { background: var(--z5); }
.btn:disabled { opacity: .45; cursor: default; }
table.laps details summary { cursor: pointer; }
table.laps .sdet { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 2px 14px; color: var(--ink); }
table.laps .sdet .muted { color: var(--muted); }
table.laps tr.muted td { color: var(--muted); }
