/* Ja (v4) and the calm forms of the sheets it opens. docs/v4/design.md, mockups/finale/ja.html.
   The name on top, quiet rows under small labels, flat on the page grey: no cards, no icon circles, no chevrons.
   Only --f-* tokens. */

/* ====================================================================== the screen */
/* minmax(0, 1fr): a long value that must not wrap (Strava) may not widen the column past the screen;
   without it the whole Ja ran off the right edge on a phone and far past its column on a wide screen. */
.app .f-screen.me { gap: 0; grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--f-s3) + env(safe-area-inset-top, 0px)); }
.me-head { display: flex; align-items: center; gap: var(--f-s4); padding: var(--f-s4) 0 var(--f-s1); min-width: 0; }
/* the portrait: the approved man or woman (images/general/avatar-m|f.webp), by the profile's sex */
.me-av { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; background: var(--f-surface-1); }
/* three numbers with their picture: in a row (flame), trainings, records */
.me-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: var(--f-s4); }
.me-stat { display: grid; justify-items: center; gap: 6px; padding: 14px 4px 13px; border-radius: 20px; background: var(--f-surface-1); }
.me-stat b { display: flex; align-items: center; gap: 6px; height: 30px; font: 500 28px/1 var(--f-font-num); letter-spacing: var(--f-track-display); font-variant-numeric: tabular-nums; }
.me-stat .pg-flame { width: 30px; height: 30px; margin: 0 -4px 0 -6px; }
.me-stat .pg-flame.is-off path { fill: var(--f-surface-3); }
.me-stat .pg-flame.is-off path + path { fill: none; }
.me-stat span { font-size: 13px; color: var(--f-text-3); }
/* the picture in front of a row's label, and the week as seven circles */
.me-row__ic { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--f-text-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.me-row--quiet .me-row__ic { stroke: var(--f-text-3); }
.me-wd { margin-left: auto; display: flex; gap: 5px; flex: none; }
.me-wd i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--f-surface-1); color: var(--f-text-3); font-size: 12px; font-weight: 500; font-style: normal; }
.me-wd i.is-on { background: var(--f-text); color: #141414; }
.me-head__text { min-width: 0; }
.me-name { font-family: var(--f-font-display); font-size: var(--f-fs-display); font-weight: 600; letter-spacing: var(--f-track-display); line-height: 1.05; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-sub { font-size: var(--f-fs-sub); color: var(--f-text-2); }

/* one row: label left, value right in the secondary colour (or a switch) */
.me-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--f-s4);
  min-height: 52px;
  padding: 6px 0;
  text-align: left;
  color: var(--f-text);
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.me-row__main { min-width: 0; display: grid; }
.me-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-row small { display: block; margin-top: 3px; font-size: 14px; font-weight: 400; color: var(--f-text-2); }
.me-row__val { min-width: 0; flex: 1 1 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-weight: 400; color: var(--f-text-2); font-variant-numeric: tabular-nums; }
/* a row with a value: the label keeps its words, a long value is the one that gets cut ("Stra…" on the owner's screen) */
.me-row:has(> .me-row__val) > .me-row__main { flex: none; max-width: 58%; }
.me-row--quiet .me-row__title { color: var(--f-text-2); font-weight: 400; }
.me-row--danger .me-row__title { color: var(--f-worse); }
.me-row.pressable { transition: opacity var(--f-dur-2) var(--f-ease); }
.me-row.pressable.is-pressed, .me-row.pressable:active { transform: none; opacity: 0.6; }
.me-row[aria-expanded="true"] .me-row__title { color: var(--f-text); }
.me-row[role="switch"] { min-height: 64px; }
.me-row .sh-switch { margin-left: auto; }
.me-group > .f-label { padding-bottom: 6px; }
/* Ja is as wide as every other tab (owner, 2026-11-13: "sprav ju rovnakú ako ostatné"); the 6px match Progres.
   What once looked "mega roztiahnutá" on a wide screen was the Strava value pushing the column, fixed above. */
.app .f-screen.me { padding-inline: 6px; }
/* the signature under the last row: the mark, the wordmark, the slogan and the version. Not on her phone. */
.me-brand { display: grid; justify-items: center; gap: 10px; margin-top: 44px; padding-bottom: var(--f-s4); text-align: center; }
.me-brand img { width: 44px; height: auto; aspect-ratio: 3284 / 2252; }
.me-brand__word { font: 20px/1 var(--f-font-brand); letter-spacing: -0.01em; color: var(--f-text); }
.me-brand__line { font-size: 13px; color: var(--f-text-3); font-variant-numeric: tabular-nums; }

/* Dni, Cieľ, Vybavenie, Strava open under their row: chips inline, every tap saves */
.me .sh-inline { display: grid; gap: var(--f-s3); padding: 2px 0 var(--f-s4); }
.sh-inline .chip-row { display: flex; flex-wrap: wrap; gap: var(--f-s2); }
.sh-inline__field { display: grid; gap: 6px; font-size: var(--f-fs-caption); color: var(--f-text-2); }
.sh-inline__field input {
  min-height: 48px;
  padding: 0 var(--f-s4);
  border: 0;
  border-radius: var(--f-r-sm);
  background: var(--f-surface-1);
  color: var(--f-text);
  font: 400 16px var(--f-font);
}

/* ====================================================================== chips (Ja inline, every sheet's chip row) */
/* No tints: quiet grey, the picked one light (like the primary pill). */
:is(.me, .sheet) .chip-row .lib-cat {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--f-r-pill);
  background: var(--f-surface-1);
  color: var(--f-text-2);
  font-size: var(--f-fs-sub);
  font-weight: 500;
  transition: background-color var(--f-dur-2) var(--f-ease), color var(--f-dur-2) var(--f-ease);
}
:is(.me, .sheet) .chip-row .lib-cat.is-on { background: var(--f-text); color: #141414; }
:is(.me, .sheet) .chip-row .lib-cat::after { inset: -2px 0; }

/* ====================================================================== the sheets' calm forms */
/* Overrides app.css (.list, .field, .section-label, .group-note, .nutri-*) inside every popup sheet: no card
   around the fields, each field a row with its input on #212121, labels small and quiet, no uppercase tracking. */
.sheet .section-label { margin: 22px 0 10px; font-size: var(--f-fs-sub); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--f-text-2); }
.sheet .group-note, .sheet .nutri-note { padding: 10px 0 0; margin: 0; font-size: 14px; color: var(--f-text-2); }
.sheet .nutri-why { font-size: 14px; color: var(--f-text-2); }
.sheet .nutri-why b { font-weight: 500; color: var(--f-text); }
.sheet .login-error { margin: 8px 0 0; color: var(--f-worse); }
.sheet .login-error:empty { min-height: 0; margin: 0; }

.sheet .list.form { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; display: grid; gap: var(--f-s2); }
.sheet .field { min-height: 52px; padding: 0; grid-template-columns: minmax(0, 1fr) 112px 44px; gap: var(--f-s3); }
.sheet .field + .field { border-top: 0; }
.sheet .field > span { font-size: 16px; color: var(--f-text); }
.sheet .field em { font-size: 14px; color: var(--f-text-2); }
.sheet .field.wide { grid-template-columns: 72px minmax(0, 1fr); }
.sheet .field input, .sheet .field select, .sheet #ac-fb {
  height: 48px;
  border: 0;
  border-radius: var(--f-r-sm);
  background: var(--f-surface-1);
  color: var(--f-text);
  font: 500 17px var(--f-font-num);
  font-variant-numeric: tabular-nums;
}
.sheet .field.wide input { font: 400 16px var(--f-font); padding: 0 var(--f-s4); }
.sheet .field input[type="date"] { font: 400 16px var(--f-font); }
.sheet #ac-fb { height: auto; padding: var(--f-s3) var(--f-s4); font: 400 16px/1.45 var(--f-font); }
.sheet .field input::placeholder, .sheet #ac-fb::placeholder { color: var(--f-text-3); }
.sheet .field input:focus-visible, .sheet .field select:focus-visible, .sheet #ac-fb:focus-visible { outline: none; box-shadow: var(--f-focus-field); }

/* rows inside a sheet (Účet, Pozvať): the same quiet rows, groups apart */
.me-sheet-group { padding: var(--f-s1) 0; }
.me-sheet-group + .me-sheet-group { margin-top: var(--f-s3); padding-top: var(--f-s3); border-top: 1px solid var(--f-sep); }
.me-invite { gap: var(--f-s2); }
.me-invite__acts { display: flex; align-items: center; gap: 4px; flex: none; }
.me-invite__acts .f-btn { min-height: 40px; padding: 0 14px; font-size: var(--f-fs-sub); }
.me-invite__drop { color: var(--f-worse); }
.me-code { font-size: 30px; font-weight: 500; letter-spacing: 0; overflow-wrap: anywhere; }

/* the plan's sources: links in the primary colour, bolder, never underlined (no accent: the sheet has its one action) */
.sheet .pl-src { padding: 0; }
.sheet .pl-src a { color: var(--f-text); font-weight: 600; text-decoration: none; }

@media (max-width: 360px) {
  .me-row { gap: var(--f-s3); font-size: 16px; }
  .me-wd { gap: 3px; }
  .me-wd i { width: 23px; height: 23px; }
  .sheet .field { grid-template-columns: minmax(0, 1fr) 96px 40px; gap: var(--f-s2); }
}

/* ====================================================================== start: landing, login, register, wizard */
/* Overrides app.css (.st-*, .wz-*): the same calm look as the app. Flat mark, display weights 600, fields on #212121
   without a stroke, the picked option / day light (like the primary pill), no accent on the back link. */
.st-mark { color: var(--f-accent); }
.st-brand { gap: 14px; font-family: var(--f-font-brand); font-size: 44px; font-weight: 400; letter-spacing: -0.01em; line-height: 1; }
.st-brand .st-mark { width: auto; height: 1.05em; aspect-ratio: 3284 / 2252; }
/* the e-mail login: three short steps, one question each (start.js emRender) */
.em { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; text-align: center; }
.em > * { width: 100%; max-width: 384px; }
.em .st-back { align-self: flex-start; width: auto; }
.em-hero { justify-items: center; gap: 10px; margin-top: var(--f-s4); }
.em-hero .st-mark { width: 60px; height: auto; aspect-ratio: 3284 / 2252; }
.em-word { font-family: var(--f-font-brand); font-size: 26px; line-height: 1; letter-spacing: -0.01em; }
.em-dots { display: flex; justify-content: center; gap: 8px; margin: var(--f-s6) 0 0; padding: 0; list-style: none; }
.em-dots li { width: 28px; height: 4px; border-radius: 4px; background: var(--f-surface-2); }
.em-dots li.on { background: var(--f-accent); }
.em-form { display: grid; gap: var(--f-s4); margin-top: var(--f-s5); }
.em-q { font-family: var(--f-font-display); font-size: 30px; font-weight: 600; letter-spacing: var(--f-track-display); line-height: 1.1; }
.em-q--big { margin-top: var(--f-s6); font-size: 48px; }
.em-hint { margin-top: calc(var(--f-s2) * -1); font-size: var(--f-fs-body); line-height: 1.35; color: var(--f-text-2); }
.em-hint b { font-weight: 500; color: var(--f-text); overflow-wrap: anywhere; }
/* One size and one shape for every field and button of the login (owner 2026-11-23: the button had another rounding
   than the field and was too big): 56 px tall pills. */
.em-in { width: 100%; height: 56px; padding: 0 var(--f-s5); border: 0; border-radius: var(--f-r-pill); background: var(--f-surface-1); color: var(--f-text); font: inherit; font-size: 18px; font-weight: 500; text-align: center; }
.em-in::placeholder { color: var(--f-text-3); font-weight: 400; }
.em .em-form .f-btn--lg { min-height: 56px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.em-in:focus-visible { outline: none; box-shadow: var(--f-focus-field); }
.em-code { position: relative; width: 100%; height: 56px; }
.em-bx { position: absolute; top: 0; display: flex; align-items: center; justify-content: center; height: 56px; overflow: hidden; background: var(--f-surface-1); }
.em-bx i { color: var(--f-text); font: inherit; font-size: 24px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; will-change: transform; }
.em-car { position: absolute; top: 16px; left: 50%; width: 2px; height: 24px; background: var(--f-text); opacity: 0; transform: translateX(-50%); }
.em-ok { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--f-on-accent); font-size: 16px; font-weight: 600; opacity: 0; pointer-events: none; }
.em-ok svg { width: 20px; height: 20px; flex: none; }
#em-code { position: absolute; inset: 0; z-index: 2; width: 100%; height: 56px; padding: 0; border: 0; border-radius: 14px; background: transparent; color: transparent; caret-color: transparent; font: inherit; font-size: 16px; opacity: 0; cursor: text; }
.em-consent { text-align: left; }
/* The code screen after the login (owner 2026-11-27): who is signed in, quiet, above the question; the code in capitals. */
.em-who { font-size: var(--f-fs-sub); color: var(--f-text-2); }
.em-who b { font-weight: 500; color: var(--f-text); overflow-wrap: anywhere; }
.em-in--code { text-transform: uppercase; letter-spacing: 0.04em; }
.em-in--code::placeholder { text-transform: none; letter-spacing: 0; }
/* The counter on Vitaj for a many-use code (TMF 12 / 50): the code's name, the number, one thin bar. Ember = taken. */
.em-count { display: grid; justify-items: center; gap: var(--f-s2); margin-top: var(--f-s4); padding: var(--f-s5); border-radius: var(--f-r-lg); background: var(--f-surface-1); }
.em-count__code { font-size: var(--f-fs-sub); font-weight: 600; letter-spacing: 0.06em; color: var(--f-text-2); }
.em-count__n { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-font-display); font-variant-numeric: tabular-nums; }
.em-count__n b { font-size: 44px; font-weight: 600; line-height: 1; color: var(--f-text); }
.em-count__n span { font-size: 20px; font-weight: 500; color: var(--f-text-2); }
.em-count__bar { width: 100%; height: 6px; margin-top: var(--f-s2); border-radius: 6px; background: var(--f-surface-2); overflow: hidden; }
.em-count__bar i { display: block; width: var(--w, 0%); height: 100%; border-radius: inherit; background: var(--f-accent); }
@media (prefers-reduced-motion: no-preference) {
  .em-count__bar i { animation: em-count-in 0.9s var(--f-ease-out) 0.2s both; }
  @keyframes em-count-in { from { width: 0; } }
}
/* name and password (start.js loginOld / registerOld): the e-mail steps' look, two pills a short step apart */
.em--pass .em-form { margin-top: var(--f-s6); }
.em-fields { display: grid; gap: 10px; }
.em .st-error { text-align: center; }
.em .em-form .st-error:empty { display: none; }
.em .st-error.em-note { color: var(--f-text-2); }
.em .st-switch { margin-top: var(--f-s2); }
/* Below the step, apart from it (owner 2026-11-23: a clear order, not everything in one pile): the question for someone
   new, the invite request as the one quiet button, then the rare ways in as plain text. Sits at the foot of the screen. */
.em-alt { display: grid; justify-items: center; gap: var(--f-s3); margin-top: auto; padding-top: var(--f-s7); }
.em-alt__q { font-size: var(--f-fs-sub); color: var(--f-text-2); }
.em-alt__btn { min-height: 48px; padding: 0 var(--f-s5); font-size: var(--f-fs-sub); font-weight: 600; }
.em-links { display: flex; justify-content: center; gap: var(--f-s5); }
.em-link { min-height: var(--f-tap); padding: 0 4px; border: 0; background: none; color: var(--f-text-2); font: inherit; font-size: var(--f-fs-sub); font-weight: 500; cursor: pointer; }
.em-link:hover { color: var(--f-text); }
.em-form .em-link { justify-self: center; margin-top: calc(var(--f-s2) * -1); }
/* the one action of each step is the brand's call to action: ember with coal text */
.start .st-cta { background: var(--f-accent); color: var(--f-on-accent); }
.start .st-cta:active { opacity: 0.85; }

/* the install screen (start.js installScreen): the e-mail steps' look, then the steps as pictures with a few words */
.ig .em-hero { margin-top: var(--f-s6); }
.ig-q { margin-top: var(--f-s6); }
.ig-hint { margin-top: var(--f-s2); }
.ig-cta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: var(--f-s5); }
.ig-cta .ig-app { width: 30px; height: 30px; }
.ig-cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ig-steps { display: grid; gap: 10px; margin: var(--f-s5) 0 0; padding: 0; list-style: none; counter-reset: ig; text-align: left; }
.ig-step { display: flex; align-items: center; gap: var(--f-s4); min-height: 72px; padding: 12px var(--f-s4) 12px 12px; border-radius: 20px; background: var(--f-surface-1); }
.ig-pic { display: flex; align-items: center; justify-content: center; gap: 4px; flex: none; min-width: 56px; height: 48px; padding: 0 8px; border-radius: 14px; background: var(--f-surface-2); }
.ig-pic svg { width: 24px; height: 24px; fill: none; stroke: var(--f-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ig-pic svg circle[r="1.3"] { fill: var(--f-text); stroke: none; }
.ig-app { width: 34px; height: 34px; border-radius: 9px; }
.ig-text { min-width: 0; font-size: 17px; line-height: 1.3; color: var(--f-text-2); }
.ig-text b { font-weight: 600; color: var(--f-text); }
.ig-text small { display: block; margin-top: 2px; font-size: 14px; color: var(--f-text-3); }
.ig-note { margin-top: var(--f-s4); font-size: var(--f-fs-sub); color: var(--f-text-3); }
.ig .st-error { min-height: 1.3em; margin-top: var(--f-s3); color: var(--f-text-2); overflow-wrap: anywhere; }
.ig .ig-out { margin-top: auto; padding-top: var(--f-s5); color: var(--f-text-3); }

/* the slogan: a short brand line in the wordmark face (never a paragraph) */
.st-slogan { font-family: var(--f-font-brand); font-size: 22px; line-height: 1.15; color: var(--f-text); margin-top: var(--f-s3); }
.st-title { font-weight: 600; letter-spacing: var(--f-track-display); }
.start .st-back { color: var(--f-text-2); font-weight: 500; }
.st-field > span { font-size: var(--f-fs-sub); font-weight: 500; padding-left: 0; }
.st-field input { border: 0; font-weight: 400; }
.st-field input:focus-visible { outline: none; box-shadow: var(--f-focus-field); }
.st-hint { padding: 0; }
.st-consent input:checked + .st-consent__box { background: var(--f-text); border-color: var(--f-text); color: #141414; }
.st-consent__text a { color: var(--f-text); text-decoration-color: var(--f-outline); }
.wz-progress { height: 4px; }
.wz-progress i { background: var(--f-text); }
.wz-option__title { font-weight: 500; }
.start .wz-option.is-on { background: var(--f-text); color: #141414; }
.start .wz-option.is-on .wz-option__meta { color: #141414; opacity: 0.7; }
.st-tick:not(:empty) { background: var(--f-text); border-color: var(--f-text); color: #141414; }
.start .wz-option.is-on .st-tick { background: #141414; border-color: #141414; color: var(--f-text); }
.start .wz-day { font-weight: 500; }
.start .wz-day.is-on { background: var(--f-text); color: #141414; }
.wz-num__label { font-weight: 500; }
.wz-num input { font-weight: 500; background: var(--f-quiet); }
/* Čo máš doma: two columns of tiles with a line icon, "Nič, len ja" full width under them; picked = cream like an option */
.wz-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.start .wz-tile { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 22px; min-width: 0; min-height: 118px; padding: 18px 16px 16px; border-radius: 16px; background: var(--f-surface-1); color: var(--f-text); text-align: left; transition: background-color var(--f-dur-2) var(--f-ease-out), color var(--f-dur-2) var(--f-ease-out), transform var(--f-dur-1) var(--f-ease-out); }
.start .wz-tile:active { transform: scale(0.985); }
.wz-tile__ic { width: 34px; height: 34px; flex: none; color: var(--f-text-2); transition: color var(--f-dur-2) var(--f-ease-out); }
.wz-tile__name { font-size: 16.5px; font-weight: 500; line-height: 1.2; overflow-wrap: break-word; }
.start .wz-tile[aria-pressed="true"] { background: var(--f-text); color: #141414; }
.start .wz-tile[aria-pressed="true"] .wz-tile__ic { color: #141414; }
.start .wz-tile--none { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; min-height: 64px; padding: 0 16px; }
.wz-tile--none .wz-tile__ic { width: 26px; height: 26px; }
@media (max-width: 360px) { .start .wz-tile:not(.wz-tile--none) { min-height: 104px; gap: 16px; padding: 16px 14px 14px; } .wz-tile__name { font-size: 15.5px; } }
@media (prefers-reduced-motion: reduce) { .start .wz-tile, .wz-tile__ic { transition: none; } }
/* The plan questions (js/plan-quiz.js, 2026-11-16), in the wizard and in Nový plán. A segment per question on top
   (done and current cream, the rest the quiet track), "Odporúčané" as a quiet word next to the option (no chip), the
   equipment as compact rows with the groups behind Viac, the emphasis rows with a small muscle map, the four tiles. */
.pq-progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: var(--f-s2) 0 var(--f-s5); }
.pq-progress i { height: 4px; border-radius: 2px; background: var(--f-track); transition: background-color var(--f-dur-2) var(--f-ease-out); }
.pq-progress i.on { background: var(--f-text); }
.wz-body { display: grid; gap: var(--f-s3); min-width: 0; }
.pq-rec { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--f-text-2); white-space: nowrap; }
.start .wz-option.is-on .pq-rec { color: #141414; opacity: 0.7; }
.start .wz-option--pic { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 8px; }
/* the muscle maps are 800×533 with the figure from the front at 32 % and from the back at 67.5 % of the width */
.pq-mus { width: 52px; height: 64px; border-radius: 12px; background-color: #141414; background-repeat: no-repeat; background-size: auto 84px; }
.pq-mus--front { background-position: -15px -3px; }
.pq-mus--back { background-position: -59px -3px; }
.pq-kit { gap: 6px; }
.start .pq-kit .wz-option { min-height: 52px; padding-top: 10px; padding-bottom: 10px; }
.pq-group { margin-top: var(--f-s2); font-size: 13px; color: var(--f-text-2); }
.start .pq-more { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 var(--f-s4); border-radius: var(--f-r-md); background: var(--f-quiet); font-size: var(--f-fs-body); font-weight: 500; }
.pq-more span { font-size: 14px; font-weight: 400; color: var(--f-text-2); }
.pq-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.pq-tile { display: grid; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: 16px; background: var(--f-surface-1); }
.pq-tile__label { font-size: 13px; color: var(--f-text-2); }
.pq-tile__value { font-size: 17px; font-weight: 500; line-height: 1.2; overflow-wrap: break-word; }
.pq-wait { display: grid; place-items: center; min-height: 96px; color: var(--f-text-2); }
@media (prefers-reduced-motion: reduce) { .pq-progress i { transition: none; } }

/* ====================================================================== the pregnancy week guide (Ja → Režim) */
/* Overrides app.css (.weeks, .note.stop): week numbers in the secondary colour, the current phase a quiet grey
   band with the light text (no accent tint), the stop box plain #212121 with the warning colour on its title. */
.sheet .weeks b { color: var(--f-text-2); font-weight: 500; }
.sheet .weeks .is-now { background: var(--f-quiet); color: var(--f-text); }
.sheet .weeks .is-now b { color: var(--f-text); }
.sheet .note.stop { background: var(--f-surface-1); }
.sheet .note.stop b { color: var(--f-worse); font-weight: 500; }

/* ====================================================================== feedback (Ja → Spätná väzba, beta welcome) */
.fb-hello { display: grid; justify-items: center; gap: 10px; padding: var(--f-s3) 0 var(--f-s4); text-align: center; }
.fb-hello img { width: 64px; height: auto; aspect-ratio: 3284 / 2252; }
.fb-hello__big { font-family: var(--f-font-display); font-size: 24px; font-weight: 600; letter-spacing: var(--f-track-display); line-height: 1.15; color: var(--f-text); text-wrap: balance; }
.fb-hello__sub { font-size: var(--f-fs-body); color: var(--f-text-2); }
.sheet .fb-text { width: 100%; margin-top: var(--f-s2); padding: 14px var(--f-s4); border: 0; border-radius: var(--f-r-lg); background: var(--f-surface-1); color: var(--f-text); font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.sheet .fb-text:focus-visible { outline: none; box-shadow: var(--f-focus-field); }
/* the admin's list: who and when, the text as written, then platform and version in grey */
.fb-list { display: grid; gap: 10px; margin: var(--f-s3) 0 0; padding: 0; list-style: none; }
.fb-item { display: grid; gap: 6px; padding: 14px var(--f-s4); border-radius: 20px; background: var(--f-surface-1); }
.fb-item__who { display: flex; justify-content: space-between; gap: var(--f-s3); font-size: 15px; color: var(--f-text-3); }
.fb-item__who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--f-text); }
.fb-item__who span { flex: none; font-variant-numeric: tabular-nums; }
.fb-item__text { font-size: 16px; line-height: 1.4; color: var(--f-text); white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.fb-item__meta { font-size: 13px; color: var(--f-text-3); }

/* ====================================================================== Ja categories (v4.12, owner 2026-11-13)
   Tréning, Telo, Jedlo, Appka, Účet: each one row with its picture, name, a short value and a chevron that turns;
   its settings open under it, indented a little. Grey surface blocks, no outlines. */
.me-cat { margin-top: 10px; border-radius: 20px; background: var(--f-surface-1); }
.me-stats + .me-cat { margin-top: var(--f-s5); }
.me-cat__head { display: flex; align-items: center; gap: var(--f-s3); min-height: 60px; padding: 0 var(--f-s4); list-style: none; cursor: pointer; font-size: 17px; font-weight: 600; }
.me-cat__head::-webkit-details-marker { display: none; }
.me-cat__head .me-row__ic { stroke: var(--f-text); }
.me-cat__title { flex: none; }
.me-cat__meta { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-weight: 400; font-size: 15px; color: var(--f-text-3); font-variant-numeric: tabular-nums; }
.me-cat__chev { flex: none; margin-left: auto; display: grid; place-items: center; width: 20px; color: var(--f-text-3); transition: transform var(--f-dur-2) var(--f-ease-out); }
.me-cat__chev .chev { width: 8px; height: 14px; transform: rotate(90deg); }
.me-cat[open] > .me-cat__head .me-cat__chev { transform: rotate(180deg); }
.me-cat[open] > .me-cat__head .me-cat__meta { visibility: hidden; }
.me-cat__body { padding: 0 var(--f-s4) var(--f-s2); }
.me-cat__body .me-row + .me-row, .me-cat__body .sh-inline + .me-row { border-top: 1px solid var(--f-surface-2); }
.me-cat + .me-brand { margin-top: 36px; }
/* "Nový plán" is the first row of Tréning; in the Plán sheet the same action as the one big button on top */
[data-replan].me-row .me-row__ic { stroke: var(--f-accent); }
.pl-new { margin-bottom: var(--f-s4); }

/* ====================================================================== Nový plán (replan.js)
   The first-run wizard's look (app.css .start .wz-*) as a full screen over the app, then the week's preview. */
.rp { position: fixed; inset: 0; z-index: 300; overflow-y: auto; overscroll-behavior: contain; background: var(--f-bg); }
.rp-on body { overflow: hidden; }
.rp-plan { font-size: var(--f-fs-sub); color: var(--f-text-2); margin-top: calc(var(--f-s2) * -1); }
.rp-days { display: grid; gap: var(--f-s2); list-style: none; padding: 0; }
.rp-day { padding: 14px var(--f-s4) 12px; border-radius: 18px; background: var(--f-surface-1); }
.rp-day__name { display: flex; align-items: baseline; justify-content: space-between; gap: var(--f-s3); font-weight: 650; margin-bottom: 6px; }
.rp-day__name span { font-size: 13px; font-weight: 400; color: var(--f-text-3); text-align: right; }
.rp-ex { display: grid; gap: 3px; list-style: none; padding: 0; font-size: 15px; color: var(--f-text-2); }
.rp-ex li { display: flex; align-items: center; gap: 8px; }
.rp-ex li.is-new { color: var(--f-text); }
.rp-ex i { font-style: normal; font-size: 11px; font-weight: 650; color: var(--f-accent); text-transform: uppercase; letter-spacing: 0.04em; }
.rp-gone { font-size: 14px; line-height: 1.45; color: var(--f-text-3); }
.rp-gone b { font-weight: 600; color: var(--f-text-2); }
.rp-note { font-size: 14px; color: var(--f-text-2); }

/* the one-time card on Tréning (training.js rpCard) */
.rp-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--f-s3); margin: var(--f-s3) 0 var(--f-s2); padding: var(--f-s3) var(--f-s2) var(--f-s3) var(--f-s4); border-radius: var(--f-r-lg); background: var(--f-surface-1); }
.rp-card p { display: grid; gap: 2px; min-width: 0; }
.rp-card b { font-weight: 650; }
.rp-card span { font-size: 13.5px; color: var(--f-text-2); }
.rp-card__go { min-height: 40px; padding: 0 16px; }
.rp-card__x { width: 36px; height: 36px; display: grid; place-items: center; color: var(--f-text-3); }
.rp-card__x svg { width: 20px; height: 20px; }
/* the six code boxes are the field; the invisible input over them shows no line of its own */
#em-code:focus-visible { outline: none; box-shadow: none; }

/* ====================================================================== beta: Tvoj kód and the weekly question
   docs/beta/plan.md §4, §6. The Ja block has the Tréner block's shape (coach.css .co-entry) but stays calm: cream
   title, grey line, the code in grey groups, no ember (ember is for on / done). */
.mc-entry { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; margin-top: var(--f-s5); padding: 12px 18px; border-radius: 20px; background: var(--f-surface-1); color: var(--f-text); text-align: left; transition: opacity var(--f-dur-2) var(--f-ease); }
.co-entry + .mc-entry { margin-top: 10px; }
.mc-entry + .me-cat { margin-top: 14px; }
.mc-entry.is-pressed, .mc-entry:active { opacity: 0.7; transform: none; }
.mc-entry .me-row__ic { width: 24px; height: 24px; stroke: var(--f-text); }
.mc-entry__tx { display: grid; gap: 3px; min-width: 0; flex: 1 1 auto; }
.mc-entry__tx b { font: 600 17px/1.15 var(--f-font); }
.mc-entry__tx span { font-size: 14.5px; line-height: 1.25; color: var(--f-text-2); }
.mc-entry__code { flex: none; font: 500 15px/1 var(--f-font-num); color: var(--f-text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-go { width: 8px; height: 14px; flex: none; fill: none; stroke: var(--f-text-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 390px) { .mc-entry { gap: 12px; padding: 12px 16px; } .mc-entry__code { display: none; } }

.mc-code { margin: var(--f-s3) 0 var(--f-s4); text-align: center; font: 500 34px/1.1 var(--f-font-num); letter-spacing: 0; word-spacing: 0.25em; color: var(--f-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.mc-sheet .me-row { min-height: 46px; justify-content: flex-start; }
.mc-sheet .mc-note:empty { display: none; }
.sheet .mc-quiet { padding-top: var(--f-s4); font-size: 13px; color: var(--f-text-3); }

.wq-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: var(--f-s2); }
.wq-step { height: 52px; border-radius: 16px; background: var(--f-surface-1); color: var(--f-text); font: 500 20px/1 var(--f-font-num); font-variant-numeric: tabular-nums; transition: background-color var(--f-dur-2) var(--f-ease), color var(--f-dur-2) var(--f-ease); }
.wq-step.is-on { background: var(--f-text); color: #141414; }
.wq-ends { display: flex; justify-content: space-between; padding: 6px 2px 0; font-size: 13px; color: var(--f-text-3); }
.wq-label { display: block; margin-top: var(--f-s4); font-size: var(--f-fs-sub); font-weight: 500; color: var(--f-text-2); }
.sheet .wq-text { margin-top: 8px; min-height: 76px; resize: none; }
.sheet .wq-text::placeholder { color: var(--f-text-3); }
@media (prefers-reduced-motion: reduce) { .wq-step, .mc-entry { transition: none; } }
