/* Tréning (v4): the list, the exercise popup (Cvik), its rest (Pauza), the full-screen timer, the rest bar, menus,
   swap and stretch sheets. Contract: docs/v4/design.md; look: mockups/finale (trening, cvik, pauza).
   Flat: one page grey, #212121 wells, a light primary pill, the accent once per screen (the suggested next start).
   Only --f-* tokens. Old app.css rules that still match these screens are overridden at the end of this file. */

/* ====================================================================== shell glue */
/* index.html still has the old title and day tabs in #view-trening; the view renders its own top. */
#view-trening > .view-title, #view-trening > #day-tabs { display: none; }
#day-content { font-family: var(--f-font); color: var(--f-text); gap: 0; display: block; padding: 0 6px; }
#day-content :where(h1, h2, h3, p, ul, ol) { margin: 0; }
.t-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:is(.t-top, .t-which, .t-body, .t-rest, .t-timer, .t-menu, .t-toast, .cv-bar, .cv, .cv-rest, .t-session, .t-second, .t-swap-list, .t-swap-now) :is(button, input) { font-family: var(--f-font); text-transform: none; letter-spacing: 0; }

/* ---------------------------------------------------------------- round buttons (popup, rest, timer) */
/* outline circle (−15, +15, ±, close); --quiet: the filled quiet circle (⋯) */
.t-ob {
  width: var(--f-tap);
  height: var(--f-tap);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--f-outline);
  color: var(--f-text);
  font-size: 16px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  transition: transform var(--f-dur-1) var(--f-ease), background-color var(--f-dur-2) var(--f-ease);
}
.t-ob svg { width: 18px; height: 18px; }
.t-ob:active, .t-ob.is-pressed { transform: scale(0.92); background: var(--f-quiet); }
.t-ob--quiet { box-shadow: none; background: var(--f-quiet); }
.t-ob--quiet:active, .t-ob--quiet.is-pressed { background: var(--f-quiet-pressed); }

/* ====================================================================== Tréning list */
/* top: only the days, small centred words; the pencil (the Tréning menu) a quiet outline circle on the right */
.t-top { position: relative; display: flex; justify-content: center; align-items: center; min-height: 52px; padding: 2px 0 0; }
.t-days { display: flex; justify-content: center; gap: 0; min-width: 0; }
.t-days > button { position: relative; z-index: 1; min-height: var(--f-tap); padding: 0 13px; font-size: 15.5px; font-weight: 500; color: var(--f-text-3); white-space: nowrap; transition: color var(--f-dur-2) var(--f-ease); }
.t-days > button[aria-selected="true"] { color: var(--f-text); }
/* today (owner 2026-11-18: no dot under it): the word has an ember tint; the picked day is white on its pill */
.t-days > button.is-today:not([aria-selected="true"]) { color: color-mix(in srgb, var(--f-accent) 60%, var(--f-text-2)); }
.t-days__hl, .t-days__ink { display: none; }
.t-top.is-pill .t-days__hl {
  display: block; position: absolute; left: 0; top: 0; width: 0; height: 0;
  z-index: 0; background: var(--f-quiet); pointer-events: none;
}
.t-top.is-pill .t-days__ink {
  display: block; position: absolute; inset: 0; z-index: 2;
  pointer-events: none; color: var(--f-text);
}
.t-top.is-pill .t-days > button[aria-selected="true"] { color: var(--f-text-3); }
.t-days__ink > span {
  position: absolute; display: grid; place-items: center; font-family: var(--f-font);
  font-size: 15.5px; font-weight: 500; white-space: nowrap;
}
/* With days: the days in the middle column, the pencil in the right one. 1fr auto 1fr keeps the days centred
   while the right column has room, and moves them aside only as much as the pencil needs (training.js topFit). */
.t-top--days { display: grid; grid-template-columns: 1fr auto 1fr; }
.t-top--days > .t-days { grid-column: 2; grid-row: 1; min-width: max-content; }
.t-top__acts { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; padding-left: 4px; }
/* the pencil (owner 2026-11-23: icon only, no word, no ⋯): an outline circle at rest (not a second day pill), the
   ember check while the edit mode is on. The exercise popup's .cv-edit is the same button. */
.t-top__edit, .cv-edit { position: relative; flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px var(--f-outline); color: var(--f-text); cursor: pointer; transition: transform var(--f-dur-1) var(--f-ease), background-color var(--f-dur-2) var(--f-ease); }
.t-top__edit::after { content: ""; position: absolute; inset: -4px; } /* 44 px hit area */
.t-top__edit svg, .cv-edit svg { width: 16px; height: 16px; }
.t-top__edit:active, .t-top__edit.is-pressed, .cv-edit:active, .cv-edit.is-pressed { background: var(--f-quiet-pressed); transform: scale(0.95); }
.t-top__edit.is-on { background: var(--f-accent); box-shadow: none; color: var(--f-on-accent); }
.t-top__edit.is-on:active, .t-top__edit.is-on.is-pressed { background: var(--f-accent); }
/* a full row: the day words sit closer; the pencil always stays */
.t-top.is-cramped .t-days > button { padding: 0 8px; }

/* Tréning 1 / Tréning 2 (only with a second training): two smaller words over the day switch, the same language as
   the days (the one on screen in the primary colour, the other tertiary), a small dot between them. No pill. */
.t-which { display: flex; justify-content: center; align-items: center; gap: 2px; min-height: 36px; padding-top: 4px; }
.t-which > button { position: relative; min-height: 32px; padding: 0 10px; font-size: var(--f-fs-caption); font-weight: 500; color: var(--f-text-3); white-space: nowrap; transition: color var(--f-dur-2) var(--f-ease); }
.t-which > button::after { content: ""; position: absolute; inset: -6px 0; } /* 44 px hit area */
.t-which > button[aria-selected="true"] { color: var(--f-text); }
.t-which__dot { flex: none; width: 3px; height: 3px; border-radius: 50%; background: var(--f-text-3); }
.t-which + .t-top { min-height: 48px; padding-top: 0; }
/* Tréning 2 as a walk: no day switch, the two words and the pencil share the top row (.t-top keeps the logo corner) */
.t-top--which .t-which { min-height: 0; padding-top: 0; }
.t-top--which > .t-top__acts { position: absolute; right: 0; top: 50%; translate: 0 -50%; }

/* the trainer's plan: one quiet line under the day switch; with a note a chevron and a tap */
.t-coach { display: flex; justify-content: center; align-items: center; gap: 2px; width: 100%; min-height: var(--f-tap); margin-bottom: -6px; font-size: var(--f-fs-caption); color: var(--f-text-3); }
.t-coach__chev { display: grid; }
.t-coach__chev svg { width: 13px; height: 13px; rotate: -90deg; }
.t-coach-note { padding: 0 0 var(--f-s5); font-size: var(--f-fs-body); line-height: 1.5; color: var(--f-text-2); white-space: pre-line; overflow-wrap: anywhere; }

/* an own day of Tréning 2 before anything is in it, or own days not picked yet: one line, one button */
.t-own-empty { display: grid; justify-items: center; gap: var(--f-s4); padding: 56px 0 24px; text-align: center; }
.t-own-empty .f-btn { min-width: 180px; }

/* the Druhý tréning sheet: the three-way switch, then the step goal or the free weekdays */
.t-second { display: grid; padding-bottom: var(--f-s5); }
.t-second .chip-row { display: flex; flex-wrap: wrap; gap: var(--f-s2); }
.t-second-steps { margin-top: 2px; }
.t-second { gap: var(--f-s3); }
.t-second__lead { margin: 0; color: var(--f-text-2); font-size: var(--f-fs-body); line-height: var(--f-lh-body); }
.t-second-opts { display: grid; gap: var(--f-s2); }
.t-second-opt { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--f-s3); min-height: 68px; padding: var(--f-s3) var(--f-s4); border: 0; border-radius: var(--f-r-md); background: var(--f-surface-2); color: var(--f-text); text-align: left; }
.t-second-opt__text { display: grid; gap: 2px; }
.t-second-opt__text b { font-weight: 500; font-size: 17px; }
.t-second-opt__text span { color: var(--f-text-2); font-size: 14px; }
.t-second .section-label { margin-top: var(--f-s3); }
.t-second .t-note { margin: 0; }
.t-second [data-second-go] { margin-top: var(--f-s2); }
.t-second [data-second-go]:disabled { opacity: 0.4; }
.t-second__off { justify-self: center; color: var(--f-text-2); }
.t-second-steps .f-stepper__btn:disabled { opacity: 0.35; }

/* Dnes on a walk day (today.js): today's steps against the goal, the whole card opens the walk */
.td-walk { display: grid; gap: var(--f-s3); width: 100%; text-align: left; color: var(--f-text); font: inherit; }
.td-walk .f-card__title { font-family: var(--f-font-display); font-size: var(--f-fs-title); font-weight: 600; letter-spacing: var(--f-track-display); }
.t-body { display: block; }
/* a day switch: the new day's blocks pop in from JS (training.js renderTraining, motion.js gooPopIn) */

/* sections: a quiet label and "done / total"; a finished one folds to its one line */
.t-secs { display: block; }
.t-sec > summary { list-style: none; display: flex; align-items: baseline; gap: var(--f-s3); padding: 26px 0 10px; min-height: var(--f-tap); cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
.t-sec > summary::-webkit-details-marker { display: none; }
.t-sec:first-child > summary { padding-top: 14px; }
/* owner 2026-11-18: a hairline and a little more air between the parts (Rozcvička | Hlavná časť | Doplnky ...) */
.t-sec + .t-sec { margin-top: 18px; border-top: 1px solid var(--f-sep); }
.t-sec + .t-sec > summary { padding-top: 22px; }
.t-sec__name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: var(--f-fs-sub); font-weight: 500; line-height: 1.2; color: var(--f-text-2); }
.t-sec__count { flex: none; font-size: var(--f-fs-sub); color: var(--f-text-3); font-variant-numeric: tabular-nums; }
/* the header is a button: a chevron in a quiet circle on the right, turned up while the part is open */
.t-sec__chev { flex: none; align-self: center; width: 28px; height: 28px; margin: -4px -2px -4px 0; display: grid; place-items: center; border-radius: 50%; background: var(--f-quiet); color: var(--f-text-2); transition: transform var(--f-dur-2) var(--f-ease), background-color var(--f-dur-2) var(--f-ease); }
.t-sec__chev svg { width: 16px; height: 16px; }
.t-sec[open] > summary .t-sec__chev { transform: rotate(180deg); }
.t-sec > summary:active .t-sec__chev { background: var(--f-quiet-pressed); }
.t-sec.is-done > summary .t-sec__name { color: var(--f-text-3); }
.t-spicy { display: inline-grid; color: var(--f-text-3); }
.t-spicy svg { width: 12px; height: 12px; }
.t-info { margin: -14px -8px -14px 0; align-self: center; }
.t-tips { font-size: var(--f-fs-sub); color: var(--f-text-2); padding: 0 0 var(--f-s3); }
.t-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; list-style: disc; }
.t-list { display: grid; touch-action: pan-y; } /* two fingers on the rows pinch them (superset), the page does not zoom */
.t-empty { font-size: var(--f-fs-sub); color: var(--f-text-3); padding: 4px 0; }

/* exercise row: picture 72 · name and sets · a 44 start button */
.t-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(var(--f-tap), auto); gap: 14px; align-items: center; padding: 7px 0; }
.t-open { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; text-align: left; border-radius: var(--f-r-pic); transition: transform var(--f-dur-1) var(--f-ease); }
.t-open.is-pressed { transform: scale(0.985); }
.t-pic { width: 72px; height: 72px; border-radius: var(--f-r-pic); background: var(--f-surface-1); overflow: hidden; display: block; position: relative; transition: opacity var(--f-dur-2) var(--f-ease); }
.t-pic > svg, .t-pic .pic { width: 100%; height: 100%; display: block; }
.t-pic .pic img { object-fit: cover; }
.t-main { min-width: 0; display: block; }
.t-name { display: block; font-size: var(--f-fs-body); font-weight: 500; line-height: 1.2; overflow-wrap: break-word; }
.t-meta { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.25; color: var(--f-text-2); font-variant-numeric: tabular-nums; }
/* a caution that matters for safety: one quiet line, the small triangle in the "worse" amber */
.t-caution { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--f-fs-caption); line-height: 1.25; color: var(--f-text-2); }
.t-caution svg { width: 13px; height: 13px; flex: none; color: var(--f-worse); }
.t-caution.is-skip { color: var(--f-worse); }
/* the sets and an icon-only caution share one line; a text caution ("Radšej vymeň") wraps under them */
.t-sub { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.t-sub > .t-meta { min-width: 0; }
.t-sub > .t-caution:not(.t-caution--icon) { flex-basis: 100%; }
.t-caution--icon { margin-top: 4px; }
.t-caution--icon svg { width: 15px; height: 15px; }
.t-row .t-caution--icon.care-tag::after { inset: -14px -12px; }
.t-row .care-tag { position: relative; cursor: pointer; border-radius: 6px; }
.t-row .care-tag::after { content: ""; position: absolute; inset: -12px -8px; } /* a bigger hit area than the words */
/* the start button: quiet circle, ▶; the suggested next one in the accent; finished = a check, dimmed */
.t-go { width: var(--f-tap); height: var(--f-tap); border-radius: 50%; display: grid; place-items: center; background: var(--f-quiet); color: var(--f-text); justify-self: end; transition: transform var(--f-dur-1) var(--f-ease), background-color var(--f-dur-2) var(--f-ease); }
.t-go svg { width: 17px; height: 17px; translate: 1px 0; }
.t-go:active, .t-go.is-pressed { transform: scale(0.92); }
.t-row.is-next .t-go { background: var(--f-accent); color: var(--f-on-accent); }
.t-row.is-done .t-go { background: none; color: var(--f-text-3); }
.t-row.is-done .t-go svg { translate: 0 0; width: 20px; height: 20px; }
.t-row.is-done .t-pic { opacity: 0.4; }
/* main block: "+" logs the next set from the list; what it logs sits under it in small quiet text */
.t-add-set { display: grid; justify-items: center; gap: 3px; justify-self: end; }
.t-go--add svg { width: 18px; height: 18px; translate: 0 0; }
.t-go--tick svg { width: 18px; height: 18px; translate: 0 0; }
.t-row.is-done .t-go--add { background: var(--f-quiet); color: var(--f-text-2); }
.t-row.is-done .t-go--add svg { width: 18px; height: 18px; }
.t-add-set__val { font-size: 11.5px; line-height: 1.1; color: var(--f-text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-row.is-done :is(.t-name, .t-meta) { color: var(--f-text-3); }
/* long-press: no text selection, no iOS callout, no image drag, so the hold is never stolen by the browser */
.t-row, .t-row * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.t-row img, .t-thumb img { -webkit-user-drag: none; pointer-events: none; }

/* edit mode: no hint (owner 2026-11-23), a minus on each row, "+ Pridať cvik" under each part */
.t-minus { width: var(--f-tap); height: var(--f-tap); border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--f-outline); color: var(--f-text-2); justify-self: end; }
.t-minus svg { width: 16px; height: 16px; }
.t-add { display: inline-flex; align-items: center; gap: 10px; min-height: var(--f-tap); margin-top: 2px; padding-right: 12px; font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-2); border-radius: var(--f-r-pill); }
.t-add svg { width: 18px; height: 18px; margin-left: 27px; }
.t-reset { display: flex; margin: var(--f-s5) auto 0; color: var(--f-text-2); }
.t-trim { font-size: var(--f-fs-caption); color: var(--f-text-2); }

/* superset: one group. A small ember label, the rows tight together, and one ember bracket in the left gutter that
   joins them (owner 2026-11-13; the plan names ember for this one on purpose). The rows keep their alignment. */
.t-ss { position: relative; margin: 4px 0; }
.t-ss::before { content: ""; position: absolute; left: -13px; width: 7px; top: 38px; bottom: 6px; border: 2.5px solid var(--f-accent); border-right: 0; border-radius: 9px 0 0 9px; pointer-events: none; }
.t-ss .t-row { z-index: 1; padding: 3px 0; }
.t-ss__label { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0; text-align: left; font-size: var(--f-fs-caption); font-weight: 500; color: var(--f-accent-text); border-radius: 8px; }
.t-ss__label > svg { width: 15px; height: 15px; flex: none; margin-left: 0; }
.t-ss__more { margin-left: auto; width: var(--f-tap); height: 34px; display: grid; place-items: center; color: var(--f-text-3); }
.t-ss__more svg { width: 18px; height: 18px; }
/* a new superset pops once on the pop spring (~1.5 % past); training.js drops the class when it has landed */
.t-ss.is-new { animation: t-ss-in var(--f-spring-pop-dur, 330ms) var(--f-spring-pop, cubic-bezier(.3,1.35,.55,1)); }
@keyframes t-ss-in { from { opacity: 0.4; transform: scale(0.94); } }
.t-row.is-pinch { z-index: 2; border-radius: var(--f-r-pic); background: var(--f-surface-1); transition: background-color var(--f-dur-2) var(--f-ease); }
.t-row.is-ready { background: var(--f-surface-3); }

/* ====================================================================== Dnes: today's workout card (B2 uses it) */
.td-workout .f-card__head { align-items: center; }
.td-workout__ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--f-quiet); color: var(--f-text); flex: none; }
.td-workout__ico svg { width: 30px; height: 30px; }
.td-workout__ico.is-done { color: var(--f-better); }
.td-workout__text { display: grid; gap: 4px; min-width: 0; }

/* ====================================================================== menu, toast, rest bar (fixed on <body>) */
.t-menu-scrim { position: fixed; inset: 0; z-index: calc(var(--f-z-menu) - 1); background: var(--f-scrim); animation: t-fade var(--f-dur-2) var(--f-ease); }
@keyframes t-fade { from { opacity: 0; } }
.t-menu, .t-menu .f-menu__item, .t-toast { font-family: var(--f-font); }
body.sheet-open .t-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* the rest picker (owner 2026-11-23): two iPhone-style wheels on a drum, quick picks, Hotovo. It drops out of the
   bar's Upraviť (or the menu's Prestávka row) as a .f-menu--goo; training.js rpWheel places the rows from scrollTop. */
.t-rpick-layer .t-menu-scrim { z-index: calc(var(--f-z-menu) - 1); }
.t-rpick { font-family: var(--f-font); color: var(--f-text); }
.t-rpick__body { width: 304px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 14px 16px 16px; display: grid; gap: 14px; }
.rp-wheels { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 200px; }
/* the quiet band behind the middle row, across both wheels */
.rp-band { position: absolute; left: 0; right: 0; top: 80px; height: 40px; border-radius: 12px; background: var(--f-quiet); pointer-events: none; }
.rp-col { position: relative; min-width: 0; }
.rp-wheel {
  position: relative; height: 200px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  scroll-snap-type: y mandatory; outline: none; touch-action: pan-y; cursor: grab;
  /* the rows fade into the surface at the drum's top and bottom */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34%, #000 66%, transparent 100%);
}
.rp-wheel::-webkit-scrollbar { display: none; }
/* keyboard focus: a thin line around this wheel's part of the band */
.rp-col:has(.rp-wheel:focus-visible)::after { content: ""; position: absolute; left: 4px; right: 4px; top: 80px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--f-outline); pointer-events: none; }
.rp-list { padding: 80px 0; }
.rp-row {
  height: 40px; display: grid; align-items: center; justify-items: end; padding-right: calc(50% - 8px); scroll-snap-align: center;
  font-family: var(--f-font-num); font-weight: 500; font-size: 23px; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--f-text-2); user-select: none; -webkit-user-select: none;
  transform-origin: calc(50% + 8px) 50%; backface-visibility: hidden; will-change: transform, opacity;
}
.rp-row.is-mid { color: var(--f-text); }
/* "min" / "s" sits right after the middle number, like the iPhone's timer */
.rp-unit { position: absolute; top: 80px; height: 40px; left: calc(50% + 14px); display: grid; place-items: center start; font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-2); pointer-events: none; }
.rp-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rp-q {
  min-height: 40px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--f-text-2); cursor: pointer;
  font-family: var(--f-font-num); font-size: var(--f-fs-sub); font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color var(--f-dur-2) var(--f-ease), color var(--f-dur-2) var(--f-ease), transform var(--f-dur-1) var(--f-ease);
}
.rp-q:active { transform: scale(0.95); background: var(--f-quiet-pressed); }
.rp-q.is-on { background: var(--f-quiet); color: var(--f-text); }
.rp-note { margin: -4px 0 0; text-align: center; font-size: var(--f-fs-caption); color: var(--f-text-3); }
.rp-done { width: 100%; min-height: 56px; }
@media (prefers-reduced-motion: reduce) { .rp-q { transition: none; } }

/* the rest with the popup closed: a flat bar above the tab bar (time · +15 · ×); the time opens the exercise */
.t-rest {
  position: fixed;
  z-index: calc(var(--f-z-timer) - 1);
  left: var(--f-gutter);
  right: var(--f-gutter);
  bottom: calc(var(--f-dock-h) + var(--f-dock-bottom) + 14px);
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--f-r-pill);
  background: var(--f-bar);
  box-shadow: var(--f-shadow-2);
  color: var(--f-text);
  font-family: var(--f-font);
  animation: f-toast-in var(--f-dur-3) var(--f-ease);
}
/* its content wrapper (timer.js): the layout lives here, so the bar can be a gooey clip box (motion.js gooLayer) */
.t-rest__in { min-height: 60px; padding: 8px; display: flex; align-items: center; gap: var(--f-s2); box-sizing: border-box; }
.t-rest.is-spring { right: auto; bottom: auto; margin: 0; max-width: none; }
body.sheet-open .t-rest { display: none; }
.t-rest__text { flex: 1; min-width: 0; min-height: var(--f-tap); display: flex; align-items: baseline; gap: 10px; padding: 0 12px; text-align: left; border-radius: var(--f-r-pill); }
.t-rest__text b { align-self: center; font-family: var(--f-font-num); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 500; letter-spacing: var(--f-track-display); }
.t-rest__text span { align-self: center; font-size: var(--f-fs-sub); color: var(--f-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-rest__btn { min-height: var(--f-tap); min-width: var(--f-tap); padding: 0 14px; border-radius: var(--f-r-pill); background: var(--f-quiet); font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text); font-variant-numeric: tabular-nums; }
.t-rest__x { width: var(--f-tap); height: var(--f-tap); border-radius: 50%; display: grid; place-items: center; color: var(--f-text-2); }
.t-rest__x svg { width: 18px; height: 18px; }
.t-rest.is-done .t-rest__text span { color: var(--f-text); }
/* the timer minimised (lane F): the same bar, the time, "Bočný plank · Ľavá strana", ×; it stays over the popup
   (the timer was opened from it), a little higher, where the toast sits there */
body.sheet-open .t-tpill { display: block; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
body.sheet-open .t-tpill.is-spring { bottom: auto; }
.t-tpill.is-rest .t-rest__text b { color: var(--f-text-2); }

/* ====================================================================== the dotted ring (Pauza, timer) */
/* lib.js "dots" mode on a canvas (timer.js dotRing); the time sits inside, ~94 px at the mockup's 348 px ring */
.t-ring { position: relative; width: min(100%, 348px); aspect-ratio: 1; display: grid; place-items: center; container-type: inline-size; color: var(--f-accent); }
.t-ring__dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity var(--f-dur-3) var(--f-ease); }
.t-ring__time { position: relative; font-family: var(--f-font-display); font-weight: 600; font-size: 27cqi; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--f-text); }
/* the row under it: −15 · Preskočiť · +15 (timer: Pauza · ⏭) */
.t-ctl { display: flex; align-items: center; gap: var(--f-s3); }
.t-ctl > .f-btn { flex: 1; min-width: 0; }
.t-ctl > .t-ob { width: 64px; height: 64px; font-size: 16px; }
.t-ctl > .t-ob svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- full-screen timer (timed moves, holds) */
.f-timer.t-timer { display: block; padding: 0; overflow: hidden; font-family: var(--f-font); color: var(--f-text); animation: t-fade var(--f-dur-2) var(--f-ease); }
/* its content wrapper (timer.js): the layout lives here, so the timer can be a gooey clip box (motion.js gooLayer) */
.t-timer__in { position: absolute; inset: 0; box-sizing: border-box; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: var(--f-s4); padding: calc(var(--f-s3) + env(safe-area-inset-top, 0px)) 18px calc(var(--f-s5) + env(safe-area-inset-bottom, 0px)); }
.t-timer .f-timer__top { display: grid; grid-template-columns: var(--f-tap) minmax(0, 1fr) var(--f-tap); align-items: center; }
.t-timer .f-timer__round { color: var(--f-text-2); font-weight: 500; font-size: var(--f-fs-sub); text-align: center; }
/* minimise: a quiet arrow in the top corner (back does the same); the timer goes on in its pill */
.t-timer__min { width: var(--f-tap); height: var(--f-tap); border-radius: 50%; display: grid; place-items: center; color: var(--f-text-2); }
.t-timer__min svg { width: 24px; height: 24px; }
.t-timer__mid { min-height: 0; display: grid; place-items: center; container-type: size; }
.t-timer__mid .t-ring { width: min(100%, 348px, 100cqh); }
.t-timer__text { text-align: center; display: grid; gap: 6px; }
.t-timer__title { font-family: var(--f-font-display); font-size: 27px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.t-timer__label { font-size: var(--f-fs-sub); color: var(--f-text-2); }
.t-timer .f-timer__next { margin: 0; font-size: var(--f-fs-caption); color: var(--f-text-3); }
.t-timer.is-rest .t-ring { color: var(--f-text-3); }
/* the last 3 s of a pause (and the lead-in): "Priprav sa" in the text colour, the next round starts by itself */
.t-timer.is-ready .t-timer__label { color: var(--f-text); }
.t-timer.is-paused .t-ring__dots { opacity: 0.4; }
.t-timer [data-tm="pause-icon"] { display: inline-grid; }
.t-timer .f-btn svg { width: 20px; height: 20px; }

/* ====================================================================== exercise popup (Cvik) */
/* The popup frame is app.css (10 px from the edges, radius 28). Its content fills the height: the picture takes
   what the bar, name and the sets table leave; Viac adds below and the popup scrolls. */
#sheet-scroll:has(> .cv-bar) { display: flex; flex-direction: column; padding: 0 16px 14px; }
.cv-bar { flex: none; display: flex; align-items: center; gap: var(--f-s3); min-height: var(--f-tap); padding: 0 0 4px; }
.cv-bar__mid { flex: 1; min-width: 0; font-size: 20px; color: var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-bar__mid b { font-family: var(--f-font-num); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--f-text-2); margin-left: 4px; }
/* in the exercise during its rest: "Pauza 1:23" brings the rest back */
.cv-bar__rest { appearance: none; border: 0; background: none; padding: 8px 0; margin: 0; color: inherit; font: inherit; font-size: inherit; cursor: pointer; }
.cv-bar__rest b { color: var(--f-text); }
.cv-close svg { width: 8px; height: 14px; translate: -1px 0; }
/* Upraviť: the exercise's menu (swap, remove), the same icon-only pencil as the Tréning row (owner 2026-11-23;
   it was an ember pill with the word since 2026-11-15). Look in .t-top__edit above; shell.css gives it 48 px to hit. */
.cv { flex: 1 0 auto; display: flex; flex-direction: column; gap: 14px; font-family: var(--f-font); color: var(--f-text); }
.cv[hidden], .cv-rest[hidden] { display: none; }

/* the picture sits in a simple rounded frame, no fade (owner 2026-11-15) */
.cv-stage { position: relative; flex: 1 1 0; min-height: 200px; display: flex; flex-direction: column; margin: 0 -4px; }
.cv-stage--empty { flex: 0 0 0; min-height: 0; }
/* owner 2026-11-18 ("one gap everywhere"): the picture is never taller than it is wide, so it sits right under the
   bar with the popup's one gap (14) to the name; the room a short exercise leaves goes to the end, not around the
   picture. 100cqw = the popup's content width (#sheet-scroll is the container); +8 for the stage's -4 px margins,
   +34 for the Pohyb / Svaly tabs. */
#sheet-scroll:has(> .cv-bar) { container-type: inline-size; }
.cv-stage { max-height: calc(100cqw + 8px); }
.cv-stage.t-media { max-height: calc(100cqw + 8px + 34px); }
.cv > .cv-stage:first-child { margin-top: 10px; } /* the bar's 4 + 10 = the popup's gap of 14 */
.cv-stage.t-art:not(.t-media):not(.t-art--two), .cv-stage .t-media__page:not(.t-muscles) { container-type: size; }
.cv-stage > .pose.anim, .cv-stage .t-media__page > .pose.anim { position: absolute; inset: 0; margin: auto; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); aspect-ratio: 1; max-width: none; border-radius: var(--f-r-pic); background: #181A1E; overflow: hidden; }
.cv-stage .pose.anim .pic { position: absolute; inset: 0; }
.cv-stage .pose.anim img { object-fit: cover; }
.cv-stage .pose.anim::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(244,239,233,0.08); pointer-events: none; }
.cv-stage .pose.anim .pic > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cv-stage.t-media .t-media__track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cv-stage .t-media__track::-webkit-scrollbar { display: none; }
.cv-stage .t-media__page { position: relative; flex: 0 0 100%; min-height: 0; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.cv-stage .t-muscles { container-type: size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 4px; }
/* the map sits in a clipping frame, so a tap can zoom into it in place (ui.js zoomPic) */
.cv-stage .t-muscles .t-zoom { flex: none; display: block; width: min(100%, 520px, calc((100cqh - 56px) * 1.5)); aspect-ratio: 800 / 533; min-height: 0; overflow: hidden; border-radius: var(--f-r-pic); background: #17161D; box-shadow: 0 0 0 1px rgba(244, 239, 233, 0.08); }
.cv-stage .t-muscles .t-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv-mus { flex: none; text-align: center; font-size: 14px; line-height: 1.35; color: var(--f-text-2); text-wrap: balance; }
.cv-mus b { font-weight: 500; color: var(--f-text); }
.cv-mus i { font-style: normal; color: var(--f-text-3); }
.cv-stage .t-media__tabs { flex: none; display: flex; justify-content: center; gap: 26px; padding-top: 2px; }
.cv-stage .t-media__tab { position: relative; min-height: 32px; padding: 0 2px; font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-3); background: none; border: 0; cursor: pointer; transition: color var(--f-dur-2) var(--f-ease); }
.cv-stage .t-media__tab::after { content: ""; position: absolute; inset: -6px -10px; } /* 44 px hit area */
.cv-stage .t-media__tab.is-on { color: var(--f-text); }
.cv-stage.t-art--two { justify-content: center; }
.cv-stage.t-art--two .poses { width: min(100%, 320px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-stage.t-art--two .pose { border-radius: var(--f-r-pic); background: var(--f-surface-1); }
.cv-stage .pose-wrap figcaption { background: none; color: var(--f-text-2); font-size: var(--f-fs-caption); font-weight: 500; padding: 0; }
.cv-stage .pose-wrap.active figcaption { background: none; color: var(--f-text); }

.cv-name { padding: 0 4px; font-family: var(--f-font-display); font-size: 30px; font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; overflow-wrap: break-word; }
.cv-caution { align-self: flex-start; min-height: 32px; margin: -10px 0 -6px; padding: 0 4px; font-size: 14px; border-radius: 8px; text-align: left; }
/* the live part: the sets table right under the name; after the last set Ďalší cvik / Hotovo under it */
.cv-live { display: flex; flex-direction: column; gap: 10px; }
.cv-live__date { padding-top: 0; }
.cv-main-box:empty { display: none; }
.cv-main { width: 100%; flex: none; }
.cv-main svg { width: 20px; height: 20px; }
.cv-main .chev { width: 8px; height: 14px; margin-left: 2px; }
/* Ďalší cvik is ember (owner 2026-11-23, the one exception to "cream for buttons") with a living dotted texture
   inside, the rest ring's language (training.js cvDots: coal hex-grid dots that breathe with a soft spiral wave,
   quiet under the label, paused off screen). The label and chevron sit above the canvas. */
.cv-main--next { position: relative; isolation: isolate; overflow: hidden; }
.cv-main--next.is-pressed { background: var(--f-accent-pressed); }
.cv-main__dots { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; color: var(--f-on-accent); }
.cv-main__lbl { display: inline-flex; align-items: center; gap: inherit; }

/* Viac: a quiet line under the table; everything else of the old sheet is behind it */
.cv-more { flex: none; margin: -8px 0 0; }
.cv-more > summary { list-style: none; display: flex; justify-content: center; align-items: center; gap: 8px; min-height: var(--f-tap); font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-2); cursor: pointer; border-radius: var(--f-r-pill); }
.cv-more > summary::-webkit-details-marker { display: none; }
.cv-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--f-dur-2) var(--f-ease); }
.cv-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.cv-more__body { display: grid; gap: 14px; padding: 4px 0 8px; }
.cv-sec { display: grid; gap: 10px; }
.cv-sec__head { padding: 14px 4px 0; font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-2); }
.cv-line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--f-s3); padding: 0 4px; font-size: var(--f-fs-sub); }
.cv-line span { color: var(--f-text-2); min-width: 0; }
.cv-line b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.cv-why { margin-top: -8px; padding: 0 4px; font-size: var(--f-fs-caption); color: var(--f-text-3); }
.cv-facts { margin: 0; display: grid; }
.cv-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--f-s4); padding: 9px 4px; font-size: var(--f-fs-sub); }
.cv-facts dt { color: var(--f-text-2); flex: none; }
.cv-facts dd { margin: 0; text-align: right; min-width: 0; }

/* the sets table: # · last time · values · check. The lit row is the set to do now; its check (cream) logs it. */
.t-tracker { display: grid; gap: var(--f-s2); }
.t-table { display: grid; gap: 4px; font-family: var(--f-font); }
.t-th, .t-tr { display: grid; grid-template-columns: 24px minmax(0, 1fr) repeat(var(--t-cols, 2), 68px) 44px; align-items: center; gap: 8px; }
.t-table--1 { --t-cols: 1; }
.t-table--1 .t-th, .t-table--1 .t-tr { grid-template-columns: 24px minmax(0, 1fr) 84px 44px; }
.t-table--0 .t-th, .t-table--0 .t-tr { grid-template-columns: 24px minmax(0, 1fr) 44px; }
.t-th { padding: 0 6px 0 8px; font-size: var(--f-fs-caption); color: var(--f-text-3); }
.t-th span:nth-child(n + 3) { text-align: center; }
.t-tr { min-height: 56px; padding: 0 6px 0 8px; border-radius: var(--f-r-md); transition: background-color var(--f-dur-2) var(--f-ease); }
.t-tr.is-active { background: var(--f-surface-1); }
.t-tr__n { text-align: center; font-family: var(--f-font-num); font-weight: 500; font-size: var(--f-fs-sub); color: var(--f-text-3); font-variant-numeric: tabular-nums; }
.t-tr.is-active .t-tr__n { color: var(--f-text); }
.t-tr__prev { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: var(--f-fs-caption); color: var(--f-text-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.t-tr__arrow { font-style: normal; font-size: 10px; }
.t-tr__arrow--better { color: var(--f-better); }
.t-tr__arrow--worse { color: var(--f-worse); }
.t-cell { display: grid; height: 44px; border-radius: var(--f-r-sm); background: var(--f-surface-1); cursor: text; transition: background-color var(--f-dur-2) var(--f-ease); }
.t-tr.is-active .t-cell { background: var(--f-surface-3); }
.t-tr.is-done .t-cell { background: transparent; }
.t-tr:not(.is-active) .t-cell input { color: var(--f-text-2); }
.t-cell:focus-within { box-shadow: var(--f-focus-field); }
.t-cell input:focus-visible, .t-search input:focus-visible { outline: none; box-shadow: none; }
.t-cell input {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  text-align: center;
  font-family: var(--f-font-num);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 500;
  color: var(--f-text);
  caret-color: var(--f-text);
}
.t-cell input::selection { background: rgba(244, 239, 233, 0.2); }
.t-tr__chk, .t-tr__go { justify-self: end; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--f-quiet); color: var(--f-text-3); position: relative; transition: transform var(--f-dur-1) var(--f-ease), background-color var(--f-dur-2) var(--f-ease); }
.t-tr__chk::after, .t-tr__go::after { content: ""; position: absolute; inset: -2px; }
.t-tr__chk svg, .t-tr__go svg { width: 18px; height: 18px; }
.t-tr.is-active :is(.t-tr__chk, .t-tr__go) { background: var(--f-text); color: #141414; }
/* a logged set: the check in ember (design.md: the sets already logged are ember, as the dots were) */
.t-tr__chk[aria-pressed="true"] { background: none; color: var(--f-accent-text); box-shadow: inset 0 0 0 1.5px var(--f-accent); }
.t-tr.is-done .t-tr__n { color: var(--f-text-2); }
.t-tr__chk.is-pressed, .t-tr__go.is-pressed { transform: scale(0.92); }
.t-tr__chk.f-delta--pop { animation: f-pop var(--f-spring-pop-dur, 330ms) var(--f-spring-pop, cubic-bezier(.3,1.35,.55,1)); }
.t-tracker__actions { display: flex; justify-content: center; gap: var(--f-s2); }
.t-tracker__actions .f-btn { color: var(--f-text-2); }
.t-tracker__actions .f-btn svg { width: 16px; height: 16px; }
.t-dim { color: var(--f-text-3); }

/* cautions in full, how-to (under Viac) */
.t-fit__body { display: grid; gap: var(--f-s3); padding: 0 4px; font-size: var(--f-fs-sub); line-height: var(--f-lh-body); color: var(--f-text-2); }
.t-fit__body .f-btn, .care .f-btn { justify-self: start; }
.t-fit.skip .cv-sec__head { color: var(--f-worse); }
.care { font-family: var(--f-font); font-size: var(--f-fs-sub); line-height: var(--f-lh-body); color: var(--f-text-2); display: grid; gap: var(--f-s2); }
.cv-sec .care { padding: 0 4px; }
.care p { margin: 0; }
.care b { color: var(--f-text); font-weight: 500; }
.care .care-label { font-size: var(--f-fs-caption); font-weight: 500; color: var(--f-text-2); margin-top: var(--f-s2); }
.care-list { margin: 0; padding-left: 1.2em; list-style: disc; display: grid; gap: 6px; color: var(--f-text); }
.care-stop { display: grid; gap: 6px; padding: var(--f-s4); border-radius: var(--f-r-md); background: var(--f-surface-1); color: var(--f-text-2); margin-top: var(--f-s2); }
.care-stop b { color: var(--f-worse); }
.care-actions { display: grid; gap: var(--f-s2); margin-top: var(--f-s4); font-family: var(--f-font); }
.t-steps { margin: 0; padding: 0 4px 0 26px; display: grid; gap: 10px; font-size: var(--f-fs-sub); line-height: var(--f-lh-body); color: var(--f-text); list-style: decimal; }
.t-steps li::marker { color: var(--f-text-3); }
.t-tip { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 0; padding: 0 4px; font-size: var(--f-fs-sub); line-height: var(--f-lh-body); color: var(--f-text-2); }
.t-tip svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--f-text-3); }

/* ====================================================================== Pauza (the rest, in the popup) */
.cv-rest { flex: 1 0 auto; display: flex; flex-direction: column; gap: 14px; font-family: var(--f-font); color: var(--f-text); animation: t-fade var(--f-dur-3) var(--f-ease); }
.cv-rest__mid { flex: 1 1 0; min-height: 220px; display: grid; place-items: center; container-type: size; }
.cv-rest__mid .t-ring { width: min(100%, 348px, 100cqh); }
.cv-rest__next { text-align: center; }
.cv-rest__t { font-family: var(--f-font-display); font-size: 27px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 6px; }
.cv-rest__next p { font-size: var(--f-fs-sub); color: var(--f-text-2); font-variant-numeric: tabular-nums; }
.cv-rest .t-ctl { padding-top: 8px; }

/* ====================================================================== other sheets: swap, library, stretch session */
.t-label { font-size: var(--f-fs-caption); font-weight: 500; color: var(--f-text-2); }
.t-note { font-size: var(--f-fs-caption); color: var(--f-text-2); margin: var(--f-s3) 0 0; font-family: var(--f-font); }
.t-session__meta { margin: -6px 0 var(--f-s2); }
.t-session { display: grid; gap: var(--f-s3); font-family: var(--f-font); }
.t-session .t-sec:first-child > summary { padding-top: 6px; }
.t-session-seg { margin: var(--f-s2) 0; }
/* chips are plain words now (no tinted pills for metadata) */
.t-chips { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.t-chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--f-fs-caption); font-weight: 400; color: var(--f-text-2); white-space: nowrap; }
.t-chip svg { width: 12px; height: 12px; }
.t-swap-now { display: flex; align-items: center; gap: var(--f-s3); padding: 0 0 var(--f-s3); font-family: var(--f-font); }
.t-swap-now .t-thumb { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--f-surface-1); flex: none; }
.t-swap-now .t-thumb .pic img { object-fit: cover; }
.t-swap-now__name { font-weight: 500; }
.t-swap-now__aim { font-size: var(--f-fs-caption); color: var(--f-text-2); margin-top: 2px; }
.t-swap-now__aim b { color: var(--f-text); font-weight: 500; }
.t-swap-head { font-family: var(--f-font); font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-2); padding: var(--f-s3) 4px var(--f-s2); }
.t-swaprow { width: 100%; text-align: left; }
.t-swaprow .t-thumb { border-radius: 16px; overflow: hidden; }
.t-swaprow .t-thumb .pic img { object-fit: cover; }
.t-swaprow .f-row__main { gap: 4px; }
.t-focus { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; font-size: var(--f-fs-caption); }
.t-focus__badge { font-weight: 500; white-space: nowrap; color: var(--f-text); }
.t-focus__what { color: var(--f-text-2); min-width: 0; }
.t-swaprow--other .t-focus__badge { color: var(--f-worse); }
.t-swaprow--other .f-row__title { color: var(--f-text-2); }
.t-swaprow .t-chips:empty { display: none; }
.t-swap-warn { display: flex; gap: var(--f-s2); align-items: flex-start; margin: var(--f-s5) 0 var(--f-s2); padding: 0 4px; color: var(--f-text-2); font-family: var(--f-font); font-size: var(--f-fs-caption); line-height: 1.4; }
.t-swap-warn svg { width: 15px; height: 15px; flex: none; color: var(--f-worse); margin-top: 1px; }
.t-swap-warn b { color: var(--f-text); font-weight: 500; }
/* 2026-11-25 lane B: the swap's compare view (old ✕ → new ✓, where it applies, Zameniť / Späť) and the "Zamenené"
   drop that replaces the toast after a swap (training.js swapCompareHtml, swapDrop). */
:is(.t-swapcmp, .t-swapped) :is(button, input) { font-family: var(--f-font); text-transform: none; letter-spacing: 0; }
.t-swapcmp { display: grid; gap: var(--f-s4); padding: 0 0 var(--f-s2); font-family: var(--f-font); }
.t-swapcmp__where { margin-top: calc(-1 * var(--f-s2)); font-size: var(--f-fs-sub); color: var(--f-text-2); }
.t-swapcmp__pair { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: var(--f-s3) var(--f-s2); align-items: center; }
.t-swapcmp__pic { position: relative; display: block; aspect-ratio: 1; border-radius: var(--f-r-pic); overflow: hidden; background: var(--f-surface-1); }
.t-swapcmp__pic > .pic, .t-swapcmp__pic > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.t-swapcmp__pic img { -webkit-user-drag: none; pointer-events: none; }
.t-swapcmp__pic.is-out > .pic, .t-swapcmp__pic.is-out > svg { opacity: 0.45; }
.t-swapcmp__arrow { display: grid; place-items: center; color: var(--f-text-3); }
.t-swapcmp__arrow svg { width: 24px; height: 24px; }
.t-swapcmp__name { align-self: start; font-size: var(--f-fs-sub); font-weight: 500; line-height: 1.3; }
.t-swapcmp__name.is-out { grid-column: 1; color: var(--f-text-2); }
.t-swapcmp__name.is-in { grid-column: 3; }
.t-swapcmp__badge { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--f-on-accent); }
.t-swapcmp__badge.is-out { background: var(--f-worse); }
.t-swapcmp__badge.is-in { background: var(--f-accent); }
.t-swapcmp__badge svg { width: 15px; height: 15px; }
.t-swapcmp__what { font-size: var(--f-fs-sub); }
.t-swapcmp .t-swap-warn.t-swapcmp__what { margin: 0; padding: 0; font-size: var(--f-fs-sub); }
.t-swapcmp .t-swap-warn.t-swapcmp__what svg { margin-top: 3px; }
.t-swapcmp__chips:empty { display: none; }
.t-swapcmp__go { margin-top: var(--f-s2); }
.t-swapcmp__back { justify-self: center; min-height: 44px; margin-top: calc(-1 * var(--f-s2)); color: var(--f-text-2); font-weight: 500; }
.t-swapped { left: var(--sw-l, 16px); top: var(--sw-t, auto); width: var(--sw-w, auto); color: var(--f-text); font-family: var(--f-font); }
.t-swapped__body { display: flex; align-items: center; gap: var(--f-s2); padding: 8px 8px 8px 10px; box-sizing: border-box; }
.t-swapped__pic { position: relative; flex: none; width: 52px; height: 52px; }
.t-swapped__pic > .pic, .t-swapped__pic > svg { width: 100%; height: 100%; display: block; border-radius: 16px; overflow: hidden; background: var(--f-surface-1); }
.t-swapped__pic.is-out > .pic, .t-swapped__pic.is-out > svg { opacity: 0.45; }
.t-swapped__pic img { -webkit-user-drag: none; pointer-events: none; }
/* the small badge sits on the picture's corner, cut out of it by a ring of the drop's own colour */
.t-swapped__pic .t-swapcmp__badge { top: auto; right: -5px; bottom: -5px; width: 20px; height: 20px; box-shadow: 0 0 0 2px var(--f-bar); }
.t-swapped__pic .t-swapcmp__badge svg { width: 12px; height: 12px; }
.t-swapped__arrow { flex: none; display: grid; place-items: center; padding: 0 2px; color: var(--f-text-3); }
.t-swapped__arrow svg { width: 18px; height: 18px; }
.t-swapped__text { flex: 1; min-width: 0; padding-left: var(--f-s1); font-size: var(--f-fs-sub); font-weight: 500; white-space: nowrap; }
.t-swapped__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.t-swapped__undo { flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--f-r-pill); background: var(--f-quiet); color: var(--f-text); font-size: var(--f-fs-sub); font-weight: 500; }
.t-swapped__undo:active { background: var(--f-quiet-pressed); }
.t-search { display: flex; align-items: center; gap: var(--f-s2); min-height: var(--f-tap); padding: 0 var(--f-s4); margin: 0 0 var(--f-s3); border-radius: var(--f-r-pill); background: var(--f-surface-1); color: var(--f-text-3); font-family: var(--f-font); }
.t-search svg { width: 18px; height: 18px; flex: none; }
.t-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--f-text); font: inherit; font-size: var(--f-fs-body); padding: 10px 0; outline: none; -webkit-appearance: none; appearance: none; }
.t-search:focus-within { box-shadow: var(--f-focus-field); }

/* ====================================================================== home ladders (body-weight plan) */
/* The staircase: one bar per step of the move's ladder, rising; passed steps ember (done), this one cream, the rest
   dark grey. Small (16 px) after the sets in a row, large (24 px) under the name in the popup. --k: the bar's height. */
.lad { --h: 16px; --w: 4px; display: inline-flex; align-items: flex-end; gap: 1px; height: var(--h); flex: none; }
.lad i { width: var(--w); height: calc(var(--h) * var(--k, 1)); border-radius: 0.5px; background: var(--f-surface-3); transition: background-color 0.5s var(--f-ease); }
.lad i.p { background: var(--f-accent); }
.lad i.c { background: var(--f-text); }
.lad--lg { --h: 24px; --w: 7px; gap: 1.5px; }
.t-meta--lad { display: flex; align-items: flex-end; gap: 10px; }
.t-meta--lad > span { min-width: 0; }
.t-row.is-done .lad { opacity: 0.4; }
/* popup: the staircase, "3 z 6" and a chevron in a quiet circle that opens Postup */
.cv-lad { display: flex; align-items: center; gap: 12px; margin: -4px 0 -6px; padding: 0 4px; }
.cv-lad__open { display: inline-flex; align-items: center; gap: 12px; min-height: var(--f-tap); padding-right: 8px; border-radius: var(--f-r-pill); font-size: var(--f-fs-sub); color: var(--f-text-2); font-variant-numeric: tabular-nums; }
.cv-lad__chev { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--f-quiet); color: var(--f-text); transition: background-color var(--f-dur-2) var(--f-ease); }
.cv-lad__chev svg { width: 7px; height: 12px; }
.cv-lad__open:active .cv-lad__chev { background: var(--f-quiet-pressed); }
/* Postup: the steps easiest first, pictures joined by a thin grey line */
.lad-sheet { flex: 1 0 auto; display: flex; flex-direction: column; font-family: var(--f-font); color: var(--f-text); }
.lad-head { padding: 18px 4px 18px; }
.lad-head .cv-name { padding: 0; }
.lad-head p { margin-top: 8px; font-size: var(--f-fs-sub); color: var(--f-text-2); }
.lad-steps { list-style: none; margin: 0; padding: 0 2px; display: grid; }
.lad-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; }
.lad-step + .lad-step::before { content: ""; position: absolute; left: 27px; top: -8px; height: 16px; width: 2px; border-radius: 1px; background: var(--f-surface-3); }
.lad-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; min-height: var(--f-tap); text-align: left; border-radius: 16px; color: inherit; font-family: var(--f-font); }
.lad-pic { position: relative; display: block; width: 56px; height: 56px; border-radius: 16px; background: var(--f-surface-1); overflow: hidden; transition: opacity var(--f-dur-2) var(--f-ease); }
.lad-pic > svg, .lad-pic .pic { width: 100%; height: 100%; display: block; }
.lad-pic .pic img { object-fit: cover; }
.lad-txt { min-width: 0; display: block; }
.lad-nm { display: block; font-size: var(--f-fs-body); font-weight: 500; line-height: 1.2; overflow-wrap: break-word; }
.lad-goal { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.25; color: var(--f-text-2); font-variant-numeric: tabular-nums; }
.lad-end { min-width: var(--f-tap); display: flex; justify-content: flex-end; align-items: center; font-size: 14.5px; font-weight: 500; }
.lad-ok { display: grid; color: var(--f-accent); }
.lad-ok svg { width: 20px; height: 20px; }
.lad-now { color: var(--f-text); }
.lad-try { min-height: var(--f-tap); padding: 0 14px; border-radius: var(--f-r-pill); background: var(--f-quiet); font-size: 14.5px; font-weight: 500; color: var(--f-text); white-space: nowrap; }
.lad-try:active { background: var(--f-quiet-pressed); }
.lad-step.is-ok .lad-pic { opacity: 0.55; }
.lad-step.is-ok .lad-goal { color: var(--f-text-3); }
.lad-step.is-now .lad-pic { overflow: visible; box-shadow: 0 0 0 2px var(--f-bg), 0 0 0 3.5px var(--f-text); }
.lad-step.is-now .lad-pic .pic, .lad-step.is-now .lad-pic > :is(svg, .fig-ph) { border-radius: 16px; overflow: hidden; }
.lad-step.is-ahead .lad-nm { color: var(--f-text-2); }
.lad-step.is-ahead .lad-goal { color: var(--f-text-3); }
.lad-step.is-ahead .lad-pic { opacity: 0.45; }
.lad-step.is-ahead .lad-row[aria-expanded="true"] .lad-nm { color: var(--f-text); }
.lad-step.is-ahead .lad-row[aria-expanded="true"] .lad-pic, .lad-step.is-ok .lad-row[aria-expanded="true"] .lad-pic { opacity: 1; }
.lad-step.is-off .lad-pic { opacity: 0.25; }
.lad-step.is-off :is(.lad-nm, .lad-goal) { color: var(--f-text-3); }
/* Ďalší stupeň: a small label, the next move big, its name, the goal she reached, the staircase with the new step */
#sheet-scroll:has(> .lv) { display: flex; flex-direction: column; padding: 0 16px 14px; }
.lv { flex: 1 0 auto; display: flex; flex-direction: column; text-align: center; font-family: var(--f-font); color: var(--f-text); }
.lv-kicker { flex: none; min-height: var(--f-tap); display: grid; place-items: center; font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-2); }
.lv-stage { margin-top: 6px; }
.lv-txt { flex: none; display: grid; justify-items: center; gap: 10px; padding: 6px 8px 26px; }
.lv-txt .cv-name { padding: 0; font-size: 34px; }
.lv-txt p { font-size: 15.5px; line-height: 1.4; color: var(--f-text-2); }
.lv-txt .lad { margin-top: 12px; }
.lv-btns { flex: none; display: grid; gap: 6px; }
.lv-btns .f-btn { width: 100%; }
.lv-later { min-height: var(--f-tap); font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-2); border-radius: var(--f-r-pill); }
.lv .lad i.was { animation: lad-passed 0.6s 0.5s var(--f-ease) both; }
.lv .lad i.c { animation: lad-lit 0.6s 0.8s var(--f-ease) both; }
@keyframes lad-passed { from { background: var(--f-text); } }
@keyframes lad-lit { from { background: var(--f-surface-3); } }

/* ====================================================================== legacy app.css rules overridden here */
/* app.css .fit-tag (tinted pill) → a quiet word; .pose / .pose.anim (cream box, cover) and .pose-wrap figcaption
   (accent pill) inside the popup are handled in .cv-stage above; .day-content gap. */
.fit-tag { background: none; padding: 0; border-radius: 0; font-size: var(--f-fs-caption); font-weight: 500; color: var(--f-text-2); }
.fit-tag.skip { color: var(--f-worse); background: none; }
.fit-tag.care { color: var(--f-text-2); background: none; }
.t-art:not(.cv-stage) .pose.anim { background: none; }

@media (max-width: 360px) {
  .t-days > button { font-size: 15px; }
  .cv-name { font-size: 25px; }
  .lv-txt .cv-name { font-size: 28px; }
  .cv-stage { min-height: 150px; }
  .cv-rest__t, .t-timer__title { font-size: 24px; }
  .t-th, .t-tr { grid-template-columns: 20px minmax(0, 1fr) repeat(var(--t-cols, 2), 58px) 44px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .t-rest, .t-timer, .t-menu-scrim, .t-ss.is-new, .cv-rest { animation: none; }
  .t-ring__dots, .t-days > button, .t-which > button, .t-go, .t-open, .t-pic, .t-sec__chev, .lad i, .lad-pic, .cv-lad__chev { transition: none; }
  .lv .lad i.was, .lv .lad i.c { animation: none; }
}

/* Plán z AI (app/aiplan.js) */
.aip-now { display: grid; gap: var(--f-s3); padding: 0 0 var(--f-s2); }
.aip-sheet .is-busy, [data-aip-sheet] .is-busy { opacity: 0.6; pointer-events: none; }
.aip-text { width: 100%; min-height: 9em; margin-top: var(--f-s2); font-size: var(--f-fs-sub); }
.aip-err { margin: var(--f-s2) 0 0; font-size: var(--f-fs-sub); color: var(--f-text-2); }
.aip-skip { color: var(--f-text-3); }
.aip-day { display: grid; }
.aip-ex { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 7px 0; }
.aip-foot { display: grid; grid-template-columns: 1fr 2fr; gap: var(--f-s3); }

/* 2026-11-25 lane F: the end of a training (app/finish.js). A popup in the exercise popup's frame, as a drop out of the
   tap that finished it: the dotted ring fills to ember with a check, the title, one quiet line of facts, the coach's
   line, Hotovo (the light primary, never ember). */
.fin-scrim { position: fixed; inset: 0; z-index: calc(var(--f-z-menu) - 1); background: var(--f-scrim); animation: t-fade var(--f-dur-2) var(--f-ease); }
.fin {
  position: fixed; z-index: var(--f-z-menu);
  left: var(--f-sheet-gap); right: var(--f-sheet-gap); bottom: max(var(--f-sheet-gap), env(safe-area-inset-bottom, 0px));
  max-width: 440px; margin: 0 auto; overflow: hidden;
  background: var(--f-bg); border-radius: var(--f-r-xl); font-family: var(--f-font); color: var(--f-text);
  animation: t-fade var(--f-dur-2) var(--f-ease);
}
.fin__in { display: grid; justify-items: center; text-align: center; padding: 28px 20px 16px; }
.fin-ring { --fin-a: 0deg; width: 144px; margin: 0 0 18px; color: var(--f-accent); }
.fin-ring__base { color: var(--f-text-3); opacity: 0.55; }
.fin-ring__fill {
  -webkit-mask-image: conic-gradient(#000 calc(var(--fin-a) - 14deg), transparent var(--fin-a));
  mask-image: conic-gradient(#000 calc(var(--fin-a) - 14deg), transparent var(--fin-a));
}
.fin-ring__check { position: relative; width: 46px; height: 46px; color: var(--f-text); opacity: 0; }
.fin-ring__check path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fin-ring.is-full .fin-ring__check { opacity: 1; animation: fin-check 520ms cubic-bezier(0.3, 1.5, 0.5, 1) both; }
.fin-ring.is-full .fin-ring__check path { stroke-dashoffset: 0; transition: stroke-dashoffset 300ms var(--f-ease); }
@keyframes fin-check { from { transform: scale(0.6); } }
.fin__t { margin: 0; font-family: var(--f-font-display); font-size: 27px; font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.fin__facts { margin: 8px 0 0; font-size: var(--f-fs-sub); color: var(--f-text-2); font-variant-numeric: tabular-nums; }
.fin__line { margin: 22px 0 26px; max-width: 30ch; font-size: 19px; line-height: 1.4; color: var(--f-text); text-wrap: balance; }
.fin__ok { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .fin, .fin-scrim, .fin-ring.is-full .fin-ring__check { animation: none; }
  .fin-ring.is-full .fin-ring__check path { transition: none; }
}
