/* 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: inset 0 0 0 1.5px var(--f-outline); }

/* 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, underlined (no accent: the sheet has its one action) */
.sheet .pl-src { padding: 0; }
.sheet .pl-src a { color: var(--f-text); text-decoration: underline; text-decoration-color: var(--f-outline); text-underline-offset: 3px; }

@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: 12px; margin-top: var(--f-s4); }
.em-hero .st-mark { width: 76px; height: auto; aspect-ratio: 3284 / 2252; }
.em-word { font-family: var(--f-font-brand); font-size: 34px; 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; }
.em-in { width: 100%; height: 60px; padding: 0 var(--f-s4); border: 0; border-radius: var(--f-r-lg); background: var(--f-surface-1); color: var(--f-text); font: inherit; font-size: 20px; font-weight: 500; text-align: center; }
.em-in:focus-visible, .em-code input:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--f-accent); }
.em-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.em-code input { width: 100%; height: 60px; padding: 0; border: 0; border-radius: 14px; background: var(--f-surface-1); color: var(--f-text); font: inherit; font-size: 24px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.em-consent { text-align: left; }
.em .st-error { text-align: center; }
.em .st-error.em-note { color: var(--f-text-2); }
.em .st-switch { margin-top: var(--f-s2); }
/* 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: inset 0 0 0 1.5px var(--f-outline); }
.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 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: inset 0 0 0 1.5px var(--f-outline); }
/* 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); }
