/* Layout: one iOS-style column — large title, grouped inset lists, frosted tab bar, bottom sheet for details. */
/* Dark only, one look for everyone. The old names (--bg, --label, --accent …) still drive the older
   components; they point at the Forma tokens in forma.css, so pregnancy mode's accent follows too. */
:root {
  color-scheme: dark;
  --bg: var(--f-bg);
  --surface: var(--f-surface-1);
  --surface-2: var(--f-surface-2);
  --label: var(--f-text);
  --label-2: var(--f-text-2);
  --label-3: var(--f-text-3);
  --separator: var(--f-sep);
  --accent: var(--f-accent);
  --accent-ink: var(--f-accent-text);
  --accent-soft: var(--f-accent-soft);
  --on-accent: var(--f-on-accent);
  --spicy: var(--f-worse);
  --spicy-soft: var(--f-worse-soft);
  --ok: var(--f-better);
  --care: var(--f-worse);
  --c-p: var(--f-protein);
  --c-w: var(--f-water);
  --c-c: var(--f-carbs);
  --c-f: var(--f-fat);
  --bar: var(--f-glass);
  --shadow: var(--f-shadow-1);
  --sheet-shadow: var(--f-shadow-3);
  --backdrop: var(--f-scrim);

  --fig-bg: var(--f-surface-2);
  --fig-floor: var(--f-surface-3);
  --fig-shadow: var(--f-bg);
  --fig-prop: #4A4359;
  --fig-prop2: #6B6380;
  --fig-metal: #8E86A3;
  --fig-ball: #45396A;
  --fig-mat: var(--f-surface-3);
  --fig-breath: var(--f-accent-text);

  --font: var(--f-font);
  --font-display: var(--f-font-display);
  --font-rounded: var(--f-font-num);

  --radius: var(--f-r-md);
  --radius-lg: var(--f-r-lg);
  --spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  --ease-out: var(--f-ease-out);
  --sheet-ease: var(--f-ease-sheet);
  --tabbar-h: var(--f-dock-h);
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
/* The status bar strip (standalone PWA): the flat page grey, so content scrolls under it without showing through. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
body.sheet-open { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
button:focus { outline: none; }
button:focus-visible { outline: none; box-shadow: var(--f-focus); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; box-shadow: var(--f-focus-field); }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }

/* Press feedback: quick shrink, springy release. */
/* In: 120 ms down to 0.96 and it holds there. Out: a 280 ms spring back. */
.pressable { transition: transform 0.28s var(--spring), background-color 0.2s var(--ease-out), opacity 0.2s var(--ease-out); }
.pressable.is-pressed { transform: scale(0.96); transition: transform 0.12s var(--ease-out), background-color 0.1s var(--ease-out); }
.row.pressable.is-pressed { transform: scale(0.985); background-color: var(--surface-2); }

/* ---------------------------------------------------------------- frame */
.app {
  max-width: 640px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: calc(env(safe-area-inset-top, 0px) + 16px) calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 32px);
}

/* Tab switches feel instant: a 120 ms opacity settle, no slide (none with reduced motion). */
/* The blocks of a view pop in themselves (main.js enterView, motion.js gooPopIn); the view itself does not fade. */

.view-title { font-family: var(--font-display); font-size: 30px; line-height: 1.15; font-weight: 650; padding: 8px 4px 20px; }
.lead { color: var(--label-2); font-size: 16px; margin: 0 0 20px; max-width: 60ch; }

/* ---------------------------------------------------------------- segmented control */
.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2px;
  border-radius: 10px;
  background: var(--surface-2);
  margin-bottom: 24px;
}
.segmented-thumb {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc((100% - 4px) / 3);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 3px 8px rgba(30, 10, 70, 0.12), 0 1px 1px rgba(30, 10, 70, 0.06);
  transition: transform 0.5s var(--spring);
}
.segment {
  position: relative;
  z-index: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--label-2);
  transition: color 0.2s var(--ease-out);
}
.segment[aria-selected="true"] { color: var(--label); font-weight: 600; }
.segment .today-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------------------------------------------------------------- day summary */
.day-content { display: grid; gap: 28px; }
/* A day switch pops the new day's blocks in from JS (training.js, gooPopIn). swap-in: a panel that appears in place
   pops once on the pop spring (--f-spring-pop, set by motion.js). */
@keyframes swap-in { from { opacity: 0; transform: scale(0.94); } }

.ring { width: 76px; height: 76px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--separator); }
.ring .value { stroke: var(--accent); transition: stroke-dashoffset 0.7s var(--ease-out); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-family: var(--font-rounded); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: 11px; color: var(--label-2); }

/* session length: one compact segmented row across the summary card */

/* ---------------------------------------------------------------- grouped lists */
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 10px; }
.group-head h3 { font-size: 19px; font-weight: 600; font-family: var(--font-display); display: flex; align-items: center; gap: 8px; }

.group-head .meta { font-size: 13px; color: var(--label-2); white-space: nowrap; }
.group-note { font-size: 13px; color: var(--label-2); padding: 10px 4px 0; }

.list { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.row {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  text-align: left;
  position: relative;
  background: var(--surface);
}
.row + .row::before, .row-wrap + .row-wrap::before { content: ""; position: absolute; top: 0; left: 84px; right: 0; border-top: 0.5px solid var(--separator); z-index: 1; }
.row-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: var(--surface); }
.row-wrap .row { grid-template-columns: 58px minmax(0, 1fr); padding-right: 4px; }
.quick { display: flex; align-items: center; gap: 10px; padding-right: 14px; }
.q-btn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent-ink); }
.q-btn svg { width: 13px; height: 13px; }
.q-btn.add { width: 36px; height: 36px; background: var(--accent-soft); color: var(--accent-ink); }
.q-btn.q-done { width: 36px; height: 36px; background: var(--surface-2); color: var(--label-3); }
.q-btn.q-done.is-on { background: var(--accent); color: var(--on-accent); }
.q-btn:disabled { opacity: 0.35; cursor: default; }
.row-text .done-pill { justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.done-pill svg { width: 11px; height: 11px; }
.done-pill.pop { animation: pop var(--f-spring-pop-dur, 330ms) var(--f-spring-pop, cubic-bezier(.3,1.35,.55,1)); }
.thumb { width: 58px; height: 58px; border-radius: 12px; background: var(--fig-bg); overflow: hidden; }
.thumb svg { width: 100%; height: 100%; }
.pic { display: block; width: 100%; height: 100%; position: relative; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic.has-photo svg { visibility: hidden; }
.row-text { min-width: 0; display: grid; gap: 2px; }
.row-title { font-size: 16px; font-weight: 500; line-height: 1.3; }
.row-meta { font-size: 13px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.row-end { display: flex; align-items: center; gap: 8px; color: var(--label-3); }
.row-end .chev { width: 8px; height: 14px; }
.done-pill {
  font-family: var(--font-rounded);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--label-2);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.done-pill.is-done { background: var(--accent); color: var(--on-accent); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.chip.spicy { background: var(--spicy-soft); color: var(--spicy); }
.chip svg { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- info cards */
.cards { display: grid; gap: 32px; }
.card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.card p, .card li { font-size: 15px; color: var(--label-2); }
.card p + p { margin-top: 8px; }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

.weeks { display: grid; gap: 10px; }
.weeks div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; font-size: 15px; color: var(--label-2); }
.weeks b { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.weeks .is-now { background: var(--accent-soft); color: var(--label); border-radius: 10px; padding: 8px 10px; margin: 0 -10px; }

.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent-ink);
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.add-btn svg, .link svg { width: 13px; height: 13px; }
.primary { display: block; width: 100%; margin-top: 18px; padding: 15px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; }

.chip.done { background: var(--accent); color: var(--on-accent); }
.chip.done svg { width: 13px; height: 13px; }

.card.empty { font-size: 15px; color: var(--label-2); text-align: center; padding: 20px 16px; }

/* ---------------------------------------------------------------- journal */
.calendar { padding: 12px 12px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { margin: 0; font-size: 17px; font-weight: 650; }
.cal-head h3::first-letter { text-transform: uppercase; }
.cal-nav { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-ink); }
.cal-nav svg { width: 8px; height: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-week span { text-align: center; font-size: 12px; font-weight: 600; color: var(--label-3); padding-bottom: 4px; }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--label);
}
.cal-day span { position: relative; z-index: 1; }
.cal-day i { position: absolute; bottom: 12%; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.cal-day.is-plan { color: var(--accent-ink); font-weight: 600; }
.cal-day.has-log i { background: var(--accent); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--accent); }

.cal-day.is-complete { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }

.cal-sum { font-size: 13px; color: var(--label-2); text-align: center; margin-top: 10px; }
.note-field {
  width: 100%;
  display: block;
  resize: vertical;
  min-height: 84px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--label);
  font: 16px/1.4 var(--font);
}
.note-field:focus { outline: none; box-shadow: var(--f-focus-field); }
.note-field::placeholder { color: var(--label-3); }
.hist-row { display: grid; grid-template-columns: 1fr auto 52px; align-items: baseline; gap: 10px; padding: 14px 16px; font-size: 15px; }
.hist-row + .hist-row { border-top: 0.5px solid var(--separator); }
.hist-row span { color: var(--label-2); min-width: 0; }
.hist-row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.hist-row small { text-align: right; font-size: 13px; color: var(--label-2); font-variant-numeric: tabular-nums; }

.form { display: grid; }
.field { display: grid; grid-template-columns: 1fr 92px 54px; align-items: center; gap: 8px; padding: 6px 14px; min-height: 52px; }
.field + .field { border-top: 0.5px solid var(--separator); }
.field input[type="date"] { grid-column: 2 / 4; font-size: 15px; padding: 0 8px; }
.field input::placeholder { color: var(--label-3); }
.field span { font-size: 16px; }
.field em { font-style: normal; font-size: 14px; color: var(--label-2); }
.field.wide { grid-template-columns: 64px 1fr; gap: 10px; }
.field.wide input { text-align: left; padding: 0 12px; font: 500 16px var(--font); }
.primary:disabled { opacity: 0.6; }

/* Login: the only screen until she is signed in. */

.login-error { min-height: 20px; margin: 10px 4px 0; font-size: 14px; color: var(--spicy); text-align: left; }

.field input, .num input {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--label);
  text-align: center;
  font: 600 16px var(--font-rounded);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button,
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------------------------------------------------------------- tab bar */

@keyframes bounce { 40% { transform: scale(0.82); } }

/* ---------------------------------------------------------------- sheet = popup */
/* Every sheet (#sheet, ui.js presentSheet) is a popup: it floats --f-sheet-gap (10 px) from the sides and the bottom
   and is only as tall as its content (owner 2026-11-17: a popup with one control must not fill the screen); the
   exercise popup, forms and long lists still reach up to 10 px under the top edge
   (the home indicator and the notch count as edges), rounded on all four corners, on the flat page grey, over a scrim.
   Tall content scrolls inside .sheet-scroll. Drag down (handle, or the content at its top) or back closes it. */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--backdrop);
  opacity: 0;
  transition: opacity 0.24s var(--f-ease-in);
}
.sheet-backdrop.is-open { opacity: 1; transition: opacity 0.3s var(--ease-out); }
.sheet {
  --sheet-gap: var(--f-sheet-gap);
  --sheet-bottom: max(var(--sheet-gap), env(safe-area-inset-bottom, 0px));
  position: fixed;
  left: max(var(--sheet-gap), env(safe-area-inset-left, 0px));
  right: max(var(--sheet-gap), env(safe-area-inset-right, 0px));
  bottom: var(--sheet-bottom);
  z-index: 41;
  max-width: 620px;
  margin: 0 auto;
  /* as tall as what it holds (--sheet-fit, ui.js sheetFit), at most the screen less the gaps */
  height: min(var(--sheet-fit, 200vh), calc(100% - max(var(--sheet-gap), env(safe-area-inset-top, 0px)) - var(--sheet-bottom)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--f-bg);
  border-radius: var(--f-r-xl);
  box-shadow: none;
  transform: translateY(calc(100% + var(--sheet-bottom) + 8px));
  transition: transform 0.24s var(--f-ease-in); /* closing: builds speed on the way out */
}
.sheet.is-open { transform: translateY(0); transition: transform 0.3s var(--sheet-ease); } /* opening: fast, then settles */
.sheet.is-dragging { transition: none; }
.sheet-body { position: absolute; inset: 0; display: flex; flex-direction: column; min-width: 0; }
.sheet.is-spring { transition: none; animation: none; }
.sheet-handle { flex: none; height: 20px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.grabber { width: 36px; height: 4px; border-radius: 2px; background: var(--label-3); opacity: 0.6; }
.sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-inline: 16px;
  padding-block: 0 24px;
}
.sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 4px 0 14px; }
.sheet-top h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.sheet-top .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.close {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--label-2);
}
.close svg { width: 12px; height: 12px; }

/* exercise stepper: ‹ 3 / 8 › above the title */
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 10px; }
.ex-nav { display: flex; align-items: center; gap: 4px; padding: 2px; border-radius: 999px; background: var(--surface-2); }
.ex-step { width: 36px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: var(--accent-ink); }
.ex-step svg { width: 8px; height: 14px; }
.ex-step[data-ex-step="-1"] svg { transform: scaleX(-1); }
.ex-step:disabled { color: var(--label-3); opacity: 0.5; cursor: default; }
.ex-count { min-width: 44px; text-align: center; font-size: 13px; font-weight: 600; color: var(--label-2); font-variant-numeric: tabular-nums; }
/* exercise to exercise: the page slides in from its side and lands on a soft spring (~11 % past, one swing) */
.sheet.step-r .sheet-scroll { animation: step-r var(--f-spring-slide-dur, 350ms) var(--f-spring-slide, cubic-bezier(.3,1.15,.5,1)); }
.sheet.step-l .sheet-scroll { animation: step-l var(--f-spring-slide-dur, 350ms) var(--f-spring-slide, cubic-bezier(.3,1.15,.5,1)); }
@keyframes step-r { from { opacity: 0; transform: translateX(24px); } }
@keyframes step-l { from { opacity: 0; transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { .sheet.step-r .sheet-scroll, .sheet.step-l .sheet-scroll { animation: none; } }
/* a sideways swipe in the exercise popup: the page follows the finger (training.js), and comes back if she lets go early */
.sheet-scroll > .is-swiping { will-change: transform; }
.sheet-scroll > .is-swipe-back { transition: transform 0.28s var(--f-spring-slide, cubic-bezier(.3,1.15,.5,1)), opacity 0.2s; }

.poses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pose { width: 100%; border-radius: 16px; overflow: hidden; background: var(--fig-bg); aspect-ratio: 1; max-width: 100%; }
.pose svg { width: 100%; height: 100%; }
.pose-wrap { margin: 0; display: grid; gap: 7px; justify-items: center; }
.pose-wrap figcaption {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--label-2);
}
.pose-wrap.active figcaption { background: var(--accent); color: var(--on-accent); }

.fact { padding: 14px 16px; display: grid; gap: 3px; }
.fact:nth-child(odd) { border-right: 0.5px solid var(--separator); }
.fact:nth-child(n+3) { border-top: 0.5px solid var(--separator); }
.fact span { font-size: 12px; color: var(--label-2); }
.fact b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

.section-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--label-2); margin: 22px 4px 8px; }

.tracker { padding: 6px 14px 12px; display: grid; gap: 8px; }

.set {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 16px;
  background: var(--surface-2);
  color: var(--label-2);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.45s var(--spring);
}
.set svg { width: 18px; height: 18px; }
.set svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.set.is-done { background: var(--accent); color: var(--on-accent); }
.set.is-done svg path { stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s 0.08s var(--ease-out); }
.set.pop { animation: pop var(--f-spring-pop-dur, 330ms) var(--f-spring-pop, cubic-bezier(.3,1.35,.55,1)); }
@keyframes pop { from { transform: scale(0.9); } }
.num { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px; }
.num span { font-size: 12px; color: var(--label-2); }

.link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 2px; color: var(--accent-ink); font-size: 15px; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 11px 14px; font-size: 15px; line-height: 1.4; }
.steps li + li { border-top: 0.5px solid var(--separator); }
.steps li::before {
  content: counter(step);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 13px var(--font-rounded);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.note { border-radius: var(--radius); padding: 12px 14px; font-size: 15px; line-height: 1.4; display: grid; grid-template-columns: 22px 1fr; gap: 8px; margin-top: 10px; }
.note svg { width: 20px; height: 20px; margin-top: 1px; }
.note.tip { background: var(--accent-soft); color: var(--label); }
.note.tip svg { color: var(--accent-ink); }
.note.warn { background: var(--spicy-soft); color: var(--label); }
.note.warn svg { color: var(--spicy); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- food */

/* the day at a glance: energy as one big number, then six pillars built the same way */

.meter { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }

.nutri-note { font-size: 14px; color: var(--label-2); margin-top: 8px; }

.nutri-why { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--label-2); }
.nutri-why b { color: var(--label); font-weight: 600; }
/* Ja → Plán: where the plan comes from (a quiet list of links) */
.pl-src { list-style: none; margin: 0 0 4px; padding: 0 4px; display: grid; gap: 12px; font-size: 14px; }
.pl-src a { color: var(--f-accent-text); text-decoration: none; }
.pl-src span { display: block; font-size: 12px; color: var(--label-2); margin-top: 2px; }

.composer { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px; display: grid; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 8px; }
.composer.in-sheet { position: sticky; bottom: 0; margin-top: 12px; }
.composer.in-sheet .cmp-row { grid-template-columns: 1fr auto; }
.composer.draft-add { margin-top: 10px; }
.composer.draft-add .cmp-row { grid-template-columns: 1fr auto; align-items: center; }
.composer input[type="text"] { height: 40px; }
.composer textarea, .composer input[type="text"] { width: 100%; min-height: 40px; max-height: 140px; resize: none; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--label); font: 16px/1.35 var(--font); padding: 9px 12px; }
.composer textarea:focus, .composer input[type="text"]:focus { outline: none; box-shadow: var(--f-focus-field); }
.composer textarea::placeholder, .composer input[type="text"]::placeholder { color: var(--label-3); }
.cmp-cam, .cmp-send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.cmp-cam { background: var(--accent-soft); color: var(--accent-ink); }
.cmp-cam svg { width: 22px; height: 22px; }
.cmp-send { background: var(--accent); color: var(--on-accent); }
.cmp-send svg { width: 18px; height: 18px; }
.cmp-send:disabled { opacity: 0.7; }
.cmp-send.is-rec { background: #d6455d; animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { box-shadow: 0 0 0 7px rgb(214 69 93 / 0.18); } }
@media (prefers-reduced-motion: reduce) { .cmp-send.is-rec { animation: none; } }
.cmp-status { font-size: 14px; color: var(--label-2); min-height: 0; }
.cmp-status:empty { display: none; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-chips .chip { font-size: 13px; padding: 6px 12px; background: transparent; color: var(--label-2); box-shadow: inset 0 0 0 1px var(--separator); }
.cmp-photo { position: relative; width: 88px; height: 88px; }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.cmp-x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--label); color: var(--surface); }
.cmp-x svg { width: 10px; height: 10px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* meals: one list, the tapped meal unfolds under its row */
.meal + .meal { border-top: 0.5px solid var(--separator); }

.fold-head .chev { width: 8px; height: 14px; color: var(--label-3); transform: rotate(90deg); transition: transform 0.3s var(--ease-out); }
.fold[open] > .fold-head .chev { transform: rotate(-90deg); }
.meal-panel { padding: 0 6px 14px 56px; animation: swap-in var(--f-spring-pop-dur, 330ms) var(--f-spring-pop, cubic-bezier(.3,1.35,.55,1)); }

.meal-panel .supps { padding: 0 12px; }
.link.quiet { justify-self: center; color: var(--label-2); font-weight: 500; }

/* folds: sections and text that open on tap */
.folds { display: grid; gap: 14px; }
.fold { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.fold-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title chev" "meta chev"; align-items: center; gap: 3px 12px; padding: 18px 20px; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.fold-head::-webkit-details-marker { display: none; }
.fold-title { grid-area: title; display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }

.fold-head .chev { grid-area: chev; }
.fold > .list { box-shadow: none; border-radius: 0; border-top: 0.5px solid var(--separator); }
.fold > .group-note { padding: 12px 20px 16px; }
.folds-list { display: grid; }
.folds-list .fold { border-radius: 0; box-shadow: none; background: transparent; }
.folds-list .fold + .fold { border-top: 0.5px solid var(--separator); }
.text-fold .fold-head { padding: 16px 18px; }
.text-fold .fold-title { font-family: var(--font); font-size: 16px; font-weight: 500; }
.fold-body { padding: 0 18px 18px; font-size: 15px; line-height: 1.5; color: var(--label-2); }
.fold-body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.fold-body p + p { margin-top: 10px; }

.msg-ico { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.msg-ico svg { width: 16px; height: 16px; }
.add-btn + .folds-list { margin-top: 12px; }

.food-row { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; text-align: left; position: relative; background: var(--surface); }
.food-row + .food-row::before { content: ""; position: absolute; top: 0; left: 50px; right: 0; border-top: 0.5px solid var(--separator); }
.food-row .chev { width: 7px; height: 12px; color: var(--label-3); }

.ai-row .tick { background: var(--accent-soft); color: var(--accent-ink); }
.ai-row .tick svg { width: 12px; height: 12px; }
.add-form { margin: 4px 0 14px; }
.add-form input { width: 100%; height: 40px; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--label); font: 16px var(--font); padding: 0 12px; -webkit-appearance: none; appearance: none; }
.add-form input:focus { outline: none; box-shadow: var(--f-focus-field); }
.add-form .cmp-row { align-items: center; }
#add-results .section-label { margin-top: 0; }
.cmp-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-suggest:empty { display: none; }
.cmp-suggest .chip { font-size: 13px; padding: 6px 11px; background: var(--accent); color: var(--on-accent); }
.cmp-suggest .chip svg { width: 10px; height: 10px; }
.tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.tick svg { width: 13px; height: 13px; }
.tick.is-item { background: var(--accent-soft); color: var(--accent-ink); }
.food-row.is-off .tick { background: transparent; box-shadow: inset 0 0 0 2px var(--label-3); }
.food-row.is-off .row-title { color: var(--label-3); text-decoration: line-through; }
.food-row.is-off .row-meta { color: var(--label-3); }
.src { font-size: 11px; font-weight: 600; color: var(--label-3); white-space: nowrap; }
.src-odhad { color: var(--spicy); }

.supps { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.supp { display: inline-flex; align-items: center; gap: 5px; text-align: left; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.supp svg { width: 11px; height: 11px; }
.supp.is-off { background: transparent; color: var(--label-3); box-shadow: inset 0 0 0 1px var(--separator); text-decoration: line-through; }
.supp.add { background: var(--surface); box-shadow: var(--shadow); }

.draft-meal { margin: 12px 0 4px; }
.field select { width: 100%; height: 36px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--label); font: 500 16px var(--font); padding: 0 10px; }
.draft-row { padding: 10px 12px; display: grid; gap: 8px; }
.draft-row + .draft-row { border-top: 0.5px solid var(--separator); }
.draft-name { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.draft-name b { margin-right: auto; }
.draft-amt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.draft-amt .d-kcal { padding-top: 9px; }
.amount { display: grid; grid-template-columns: 34px minmax(44px, 64px) minmax(78px, 1fr) 34px; align-items: center; gap: 6px; max-width: 280px; }
.amount input, .amount select { width: 100%; height: 34px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--label); font: 600 16px var(--font-rounded); font-variant-numeric: tabular-nums; }
.amount input { text-align: center; }
.amount select { padding: 0 20px 0 8px; font: 500 15px var(--font); -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center / 9px 6px; }
.amt-grams:empty { display: none; }
.amount.big { grid-template-columns: 44px 1fr 1.3fr 44px; max-width: none; }
.amount.big .q-btn { width: 44px; height: 44px; }
.amount.big input, .amount.big select { height: 44px; }
.amount.big input { font-size: 22px; }
.amount-box { display: grid; gap: 8px; min-width: 0; }
.sizes-slot:empty { display: none; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 2px; border-radius: 10px; background: var(--surface-2); max-width: 280px; }
.size { display: grid; justify-items: center; padding: 5px 4px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--label-2); line-height: 1.15; }
.size small { font-size: 11px; font-weight: 500; color: var(--label-3); font-variant-numeric: tabular-nums; }
.size.is-on { background: var(--surface); color: var(--label); box-shadow: 0 1px 4px rgba(30, 10, 70, 0.12); }
.size.is-on small { color: var(--label-2); }
.big + .sizes-slot .sizes, .amount-box .big ~ .sizes-slot .sizes { max-width: none; }
.amt-grams { text-align: center; font-size: 14px; color: var(--label-2); margin-top: 10px; font-variant-numeric: tabular-nums; }
.d-kcal { font-size: 13px; color: var(--label-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-del { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--label-3); flex: none; }
.d-del svg { width: 10px; height: 10px; }
.draft-total { font-size: 14px; font-weight: 600; padding: 10px 4px 0; font-variant-numeric: tabular-nums; }

.add-btn.danger { color: var(--spicy); }
#export-day svg { width: 18px; height: 18px; }
.export-text { width: 100%; margin: 4px 0 14px; padding: 12px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--label); font: 13px/1.45 ui-monospace, "SF Mono", Menlo, monospace; resize: vertical; }

.chat { display: grid; gap: 10px; padding-bottom: 4px; }
.msg { display: grid; gap: 6px; justify-items: start; }
.msg.me { justify-items: end; }
.bubble { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: 16px; line-height: 1.4; background: var(--surface); box-shadow: var(--shadow); }
.msg.me .bubble { background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; box-shadow: none; }
.msg.ai .bubble { border-bottom-left-radius: 6px; }
.msg-card { max-width: 86%; display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); font-size: 13px; color: var(--label-2); }
.msg-card .link { justify-self: start; padding: 2px 0; }
.typing { display: flex; gap: 4px; padding: 13px 15px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--label-3); animation: blink 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* ---------------------------------------------------------------- plan editing and library */

#plan-reset { display: block; margin: 14px auto 0; }
.q-btn.remove { color: var(--spicy); background: var(--spicy-soft); }
.fold .add-btn { box-shadow: none; background: var(--surface-2); width: auto; margin: 10px 14px 14px; }
.lib-cats { display: flex; gap: 8px; overflow-x: auto; margin: -6px -16px 20px; padding: 2px 16px; scrollbar-width: none; }
.lib-cats::-webkit-scrollbar { display: none; }
.lib-cat {
  flex: none;
  padding: 7px 13px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--label-2);
  font-size: 14px;
  font-weight: 600;
}
.lib-cat.is-on { background: var(--accent); color: var(--on-accent); }
.row .row-end.q-btn { color: var(--accent-ink); justify-content: center; align-items: center; }
.row .row-end.q-btn svg { width: 15px; height: 15px; }
.row .row-end.q-btn.is-on svg { width: 20px; height: 20px; }
.row .row-end.q-btn.is-on { background: var(--accent); color: var(--on-accent); }
.pose.anim { background: #F4EADC; }
.pose.anim img { object-fit: cover; }
.thumb .pic img { object-fit: cover; }

/* ---------------------------------------------------------------- fit for her week */
.fit-tag { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; }
.fit-tag.care { color: var(--care); background: color-mix(in srgb, var(--care) 14%, transparent); }
.fit-tag.skip { color: var(--spicy); background: var(--spicy-soft); }
.chip.pos { background: var(--surface-2); color: var(--label-2); }

.guide-phases { padding: 16px 20px; }
.guide-list ul, .note.stop ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.guide-list.good li::marker { color: var(--ok); }
.guide-list.bad li::marker { color: var(--spicy); }
.note.stop { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 22px; background: var(--spicy-soft); color: var(--label); }
.note.stop b { color: var(--spicy); }

/* ---------------------------------------------------------------- v2: boot, programs, start */
/* boot.js sets data-screen before the first paint: the app markup or the start screen, never both. */
:root[data-screen="start"] #app { display: none !important; }
:root[data-screen="app"] .start:not(.rp) { display: none !important; }

/* The loading screen (index.html .f-boot, boot.js bootDots): the timer's dotted ring, grey like a pause, in the
   middle of the empty screen. Only while nothing else is there: no view shown yet and the start screen empty or on
   its wait step (whose small spinner it stands in for). It fades in after a beat, so a quick start never flashes it.
   Browsers without :has() keep the plain empty screen and the spinner. */
.f-boot { display: none; }
@supports selector(:has(a)) {
  :root:not(:has(#app > .view:not([hidden]), #start > :not(.st-wait), #start > .st-wait > :not(.spinner))) .f-boot {
    position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none;
    color: var(--f-text-3); opacity: 0; animation: f-boot-in 0.6s var(--f-ease-out) 0.35s forwards;
  }
  #start > .st-wait > .spinner { visibility: hidden; }
}
.from-dive .f-boot { display: none !important; }
.f-boot__dots { display: block; width: min(44vw, 176px); aspect-ratio: 1; }
@keyframes f-boot-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .f-boot { animation-duration: 0.01s; } }

/* Any number of training days. */
.segmented { grid-template-columns: repeat(var(--n, 3), 1fr); }
.segmented-thumb { width: calc((100% - 4px) / var(--n, 3)); }

/* Start: landing, login, register, wizard. The same dark Forma look as the app (only --f-* tokens). */
.start { min-height: 100vh; min-height: 100dvh; }
.start.is-in .st-wrap { animation: st-in 0.4s var(--f-ease-out); }
@keyframes st-in { from { opacity: 0; transform: translateY(10px); } }
.st-wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + var(--f-s5)) max(var(--f-gutter), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + var(--f-s6)) max(var(--f-gutter), env(safe-area-inset-left, 0px));
}
.st-wait { display: grid; place-items: center; min-height: 60vh; color: var(--f-text-3); }

/* the start screen: the brand, one line, two buttons (the pitch and the pictures are on the landing page, vitaj/) */
.st-landing { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: var(--f-s7, 40px); }
/* Arriving from the landing page through the ram's head: ember first, then it fades over the form (boot.js, start.js). */
.from-dive body::before { content: ""; position: fixed; z-index: 400; inset: 0; background: #FF5A1F; pointer-events: none; transition: opacity 0.55s ease; }
.from-dive.dive-out body::before { opacity: 0; }
.st-hero { display: grid; gap: var(--f-s2); }
.st-brand { display: flex; align-items: center; gap: var(--f-s3); }
.st-mark { width: 0.92em; height: 0.92em; flex: none; }
.st-brand { font-family: var(--f-font-display); font-size: var(--f-fs-hero); font-weight: 800; line-height: var(--f-lh-tight); letter-spacing: -0.02em; }
.st-lead { font-size: var(--f-fs-body); line-height: var(--f-lh-body); color: var(--f-text-2); max-width: 34ch; }
.st-actions { display: grid; gap: var(--f-s3); }
.st-note { font-size: var(--f-fs-caption); color: var(--f-text-3); text-align: center; }

/* forms */
.start .st-back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--f-tap); padding: 0 4px; color: var(--f-accent-text); font-size: var(--f-fs-body); font-weight: 600; }
.start .st-back svg { width: 9px; height: 15px; }
.start a.st-back { text-decoration: none; }   /* the login step's link back to the landing page looks like the other steps' Späť */
.st-form, .wz-form { display: grid; gap: var(--f-s4); margin-top: var(--f-s3); }
.st-title { font-family: var(--f-font-display); font-size: var(--f-fs-display); font-weight: 800; line-height: var(--f-lh-head); }
.st-form .st-lead, .wz-form .st-lead { margin-top: calc(var(--f-s2) * -1); }
.st-fields { display: grid; gap: var(--f-s3); }
.st-field { display: grid; gap: 6px; }
.st-field > span { font-size: var(--f-fs-caption); font-weight: 600; color: var(--f-text-2); padding-left: 4px; }
.st-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--f-s4);
  border: 1px solid var(--f-stroke);
  border-radius: var(--f-r-md);
  background: var(--f-surface-1);
  color: var(--f-text);
  font: 500 var(--f-fs-body) var(--f-font);
  -webkit-appearance: none;
  appearance: none;
}
.st-hint { font-size: var(--f-fs-caption); color: var(--f-text-2); padding: 0 4px; margin-top: calc(var(--f-s2) * -1); }
.st-error { min-height: 20px; font-size: var(--f-fs-sub); color: var(--f-worse); }
.st-error:empty { min-height: 0; margin-top: calc(var(--f-s4) * -1); }
.start .st-switch { justify-self: center; display: flex; width: fit-content; margin: var(--f-s4) auto 0; min-height: var(--f-tap); }
.start .f-btn:disabled { opacity: 0.45; }

/* consent: the real checkbox sits over the drawn box, so taps and screen readers both reach it */
.st-consent { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--f-s3); align-items: start; padding: var(--f-s4); border-radius: var(--f-r-md); background: var(--f-surface-1); cursor: pointer; }
.st-consent input { position: absolute; left: var(--f-s4); top: var(--f-s4); width: 28px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.st-consent__box { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; border: 2px solid var(--f-stroke); color: transparent; transition: background-color var(--f-dur-2) var(--f-ease-out); }
.st-consent__box svg { width: 16px; height: 16px; }
.st-consent input:checked + .st-consent__box { background: var(--f-accent); border-color: var(--f-accent); color: var(--f-on-accent); }
.st-consent input:focus-visible + .st-consent__box { box-shadow: var(--f-focus); }
.st-consent__text { font-size: var(--f-fs-sub); line-height: 1.4; color: var(--f-text-2); }
.st-consent__text a { color: var(--f-accent-text); font-weight: 600; text-decoration: none; }

/* wizard: one question per screen, a thin progress line, big targets */
.wz-top { display: flex; align-items: center; justify-content: space-between; gap: var(--f-s3); }
.wz-step { font-size: var(--f-fs-caption); color: var(--f-text-2); font-variant-numeric: tabular-nums; }
.wz-progress { height: 4px; border-radius: var(--f-r-pill); background: var(--f-track); overflow: hidden; margin: var(--f-s2) 0 var(--f-s5); }
.wz-progress i { display: block; height: 100%; border-radius: inherit; background: var(--f-accent); transition: width 0.5s var(--f-ease-out); }
.wz-next { margin-top: var(--f-s2); }
.wz-options { display: grid; gap: var(--f-s2); }
.start .wz-option { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--f-s3); min-height: 64px; padding: var(--f-s3) var(--f-s4); border-radius: var(--f-r-md); text-align: left; background: var(--f-surface-1); transition: transform var(--f-dur-1) var(--f-ease-out); }
.start .wz-option:active { transform: scale(0.985); }
/* the picked option is filled with the accent: a tap only selects, Ďalej moves on */
.start .wz-option { transition: transform var(--f-dur-1) var(--f-ease-out), background-color var(--f-dur-2) var(--f-ease-out), color var(--f-dur-2) var(--f-ease-out); }
.start .wz-option.is-on { background: var(--f-accent); color: var(--f-on-accent); }
.start .wz-option.is-on .wz-option__meta { color: var(--f-on-accent); opacity: 0.78; }
.start .wz-option.is-on .st-tick { background: var(--f-on-accent); border-color: var(--f-on-accent); color: var(--f-accent); }
.start .wz-next:disabled { opacity: 0.4; cursor: default; }
.wz-option__text { display: grid; gap: 2px; min-width: 0; }
.wz-option__title { font-size: var(--f-fs-body); font-weight: 650; }
.wz-option__meta { font-size: var(--f-fs-caption); color: var(--f-text-2); }
.st-tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--f-stroke); color: var(--f-on-accent); }
.st-tick:not(:empty) { background: var(--f-accent); border-color: var(--f-accent); }
.st-tick svg { width: 14px; height: 14px; }
.wz-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.start .wz-day { aspect-ratio: 1; min-height: var(--f-tap); border-radius: 50%; background: var(--f-surface-1); font-size: var(--f-fs-sub); font-weight: 650; color: var(--f-text-2); transition: background-color var(--f-dur-2) var(--f-ease-out); }
.start .wz-day.is-on { background: var(--f-accent); color: var(--f-on-accent); }
.wz-count { font-size: var(--f-fs-sub); color: var(--f-text-2); text-align: center; }
.wz-sex[data-empty]::before { opacity: 0; }
.start .wz-sex > button { min-height: 48px; font-size: var(--f-fs-body); }
.wz-nums { display: grid; gap: var(--f-s2); }
.wz-num { display: grid; grid-template-columns: minmax(0, 1fr) 96px 56px; align-items: center; gap: var(--f-s3); min-height: 64px; padding: 0 var(--f-s4); border-radius: var(--f-r-md); background: var(--f-surface-1); }
.wz-num__label { font-size: var(--f-fs-body); font-weight: 600; }
.wz-num input { width: 100%; height: 44px; border: 0; border-radius: var(--f-r-sm); background: var(--f-surface-2); color: var(--f-text); text-align: center; font: 700 22px var(--f-font-num); font-variant-numeric: tabular-nums; outline: none; padding: 0; }
.wz-num__unit { font-size: var(--f-fs-caption); color: var(--f-text-2); }

/* ---------------------------------------------------------------- v2: in the app */
.fig-ph { display: block; width: 100%; height: 100%; background: var(--fig-bg); }
.pose .fig-ph { min-height: 160px; }
.food-row.plain { grid-template-columns: minmax(0, 1fr) auto; padding: 13px 14px 13px 16px; }
.food-row.plain + .food-row::before, .food-row + .food-row.plain::before { left: 16px; }
.danger-row .row-title { color: var(--spicy); font-weight: 500; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .lib-cat { min-height: 36px; }
.invite-code { display: grid; gap: 6px; text-align: center; margin-top: 4px; }
.invite-code b { font: 600 30px var(--font-rounded); letter-spacing: 0.04em; color: var(--label); word-break: break-all; }
.invite-code span { font-size: 13px; color: var(--label-2); word-break: break-all; }

/* after-birth notes */
.note.stop span { line-height: 1.45; }

/* Daily check-in */
.checkin { display: grid; gap: 16px; padding: 18px; }

.ci-hint { font-size: 15px; line-height: 1.45; color: var(--label); padding-top: 12px; border-top: 0.5px solid var(--separator); }
.ci-hint .link { display: inline-flex; padding: 0; }
.ci-hint .link .chev { width: 7px; height: 12px; }

/* ====================================================================== trial over (state.js accessGate, docs/trial.md) */
/* One calm screen over the app: the mark, two short lines, the way to Predplatné. Flat coal, cream text, no ember. */
html.is-locked, html.is-locked body { overflow: hidden; }
.lock {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: var(--f-bg);
  color: var(--f-text);
  overflow-y: auto;
}
.lock__in { width: min(100%, 400px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.lock__mark { width: 64px; height: 44px; margin-bottom: 28px; }
.lock__title {
  margin: 0 0 14px;
  font-family: var(--f-font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.lock__text { margin: 0 0 6px; font-size: var(--f-fs-body); line-height: 1.45; color: var(--f-text-2); text-wrap: pretty; }
.lock__actions { width: 100%; margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lock__actions .f-btn--primary { text-decoration: none; margin-bottom: 6px; }
.lock__actions .f-btn--ghost { color: var(--f-text-2); }
.lock__note { min-height: 1.4em; margin: 10px 0 0; font-size: var(--f-fs-sub); color: var(--f-text-2); }
@media (prefers-reduced-motion: no-preference) {
  .lock { animation: lock-in 0.32s var(--f-ease-out); }
  @keyframes lock-in { from { opacity: 0; } }
}
