/* Biolink — Fitness screen (fitness.js). Ink system: tokens come from nutrition.css
   (loaded app-wide — Fraunces, the ink ramp, hairlines, one shadow story). Only what is
   genuinely new lives here. Class prefix: ft-  (NOT fx- — that's the motion library). */

.ft-card { background: var(--nx-card); border: 1px solid var(--nx-hair); border-radius: 16px;
  box-shadow: var(--nx-shadow-card); padding: 16px; }

.ft-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--nx-ink-3); }
/* The phone's Focus title: Fraunces 600 at 26. */
.ft-focus { font-family: var(--nx-serif); font-weight: 600; font-variation-settings: "opsz" 60;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.4px; color: var(--nx-ink);
  margin: 4px 0 8px; }

/* One exercise: name + cue left, the dose right in tabular numerals. */
.ft-slot { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 11px 0; border-top: 1px solid var(--nx-hair); }
.ft-slot .nm { font-weight: 700; font-size: 14.5px; color: var(--nx-ink); }
.ft-slot .cue { color: var(--nx-ink-2); font-size: 12.5px; line-height: 18px; margin-top: 2px; }
.ft-dose { font-family: var(--mono, ui-monospace, monospace); font-variant-numeric: tabular-nums;
  font-size: 12.5px; color: var(--nx-ink); white-space: nowrap; text-align: right; }
/* The effort in words ("Finish with about 2 reps left"), under the cue on the left as on the
   phone. */
.ft-effort { font-family: inherit; font-size: 12px; line-height: 17px; color: var(--nx-ink-3);
  white-space: normal; margin-top: 3px; text-align: left; }

.ft-reason { color: var(--nx-ink-2); font-size: 12.5px; line-height: 1.6; }

/* Override chips — hairline pills; .on is ink-filled, matching the segment language. */
.ft-alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ft-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--nx-hair-2);
  background: var(--nx-card); font-size: 12.5px; font-weight: 700; color: var(--nx-ink-2);
  transition: color .15s, background .15s, border-color .15s; }
.ft-chip:hover { color: var(--nx-ink); border-color: var(--nx-ink); }
.ft-chip.on { background: var(--nx-ink); color: #fff; border-color: var(--nx-ink); }

/* Active-session checklist rows: the whole row is the tap target. */
.ft-check { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 2px;
  border: none; background: none; border-top: 1px solid var(--nx-hair); cursor: pointer; }
.ft-check .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  border: 1.5px solid var(--nx-hair-2); transition: background .15s, border-color .15s; }
.ft-check.done .mark { background: var(--nx-ink); border-color: var(--nx-ink); }
.ft-check.done .nm { text-decoration: line-through; color: var(--nx-ink-3); }
.ft-check .nm { font-weight: 700; font-size: 14.5px; color: var(--nx-ink); }
.ft-check .cue { color: var(--nx-ink-2); font-size: 12.5px; line-height: 1.5; margin-top: 2px; }

/* Per-set logging: Set n · weight · reps · ✓. Inputs are compact; the ✓ is the commit. */
.ft-exercise { border-top: 1px solid var(--nx-hair); }
.ft-exercise .ft-check { border-top: none; }
.ft-sets { padding: 0 0 12px 34px; }
.ft-sets.hidden { display: none; }
.ft-setrow { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.ft-setno { flex: none; width: 44px; font-size: 11px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--nx-ink-3); }
/* `.input.ft-set-in`: must outrank app.css `.input:not(textarea)` (the 44px field height) to
   keep the set rows compact. */
.input.ft-set-in, .ft-set-in { max-width: 92px; min-height: 0; padding: 7px 10px; font-size: 13.5px;
  font-variant-numeric: tabular-nums; }
.ft-setok { flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--nx-hair-2); background: var(--nx-card); color: var(--nx-ink-3);
  font-size: 13px; line-height: 1; transition: background .15s, color .15s, border-color .15s; }
.ft-setok:hover { border-color: var(--nx-ink); color: var(--nx-ink); }
.ft-setok.done { background: var(--nx-ink); border-color: var(--nx-ink); color: #fff; }

/* Three tabs, the phone's SegmentedToggle measures. */
.ft-seg button { padding: 6px 18px; }
@media (max-width: 560px) { .ft-seg button { padding: 6px 14px; font-size: 13px; } }

/* The persistent goal header — the goal organizes every screen rather than occupying a
   tab. A full-width quiet band between masthead and tabs (flat, as on the phone); the
   chevron says it opens. */
.ft-goalhead { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; margin: 2px 0 12px; padding: 12px 18px; cursor: pointer;
  background: var(--nx-card); border: 1px solid var(--nx-hair); border-radius: 16px;
  box-shadow: none; transition: border-color .15s; }
.ft-goalhead:hover { border-color: var(--nx-hair-2); }
.ft-goalhead .sub { color: var(--nx-ink-2); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.ft-goalhead .chev { flex: none; color: var(--nx-ink-3); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.ft-goalhead .chev .ico { width: 18px; height: 18px; }

/* The status row: three separate statuses, never one composite score. Status is a colored
   WORD (house rule — no chrome dots). The phone's StatusRow: always three equal flat tiles. */
.ft-statusgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ft-status { background: var(--nx-card); border: 1px solid var(--nx-hair); border-radius: 16px;
  box-shadow: none; padding: 13px 14px; min-width: 0; }
.ft-status .num { font-family: var(--nx-serif); font-weight: 600; letter-spacing: -0.3px;
  font-variation-settings: "opsz" 50; font-variant-numeric: tabular-nums; font-size: 24px;
  color: var(--nx-ink); margin-top: 3px; line-height: 1.1; }
.ft-status .num .u { font-size: 13px; color: var(--nx-ink-3); font-family: var(--nx-serif); }
/* The smallest phones: three tiles still, but tighter, so a five-digit step count fits. */
@media (max-width: 360px) {
  .ft-statusgrid { gap: 6px; }
  .ft-status { padding: 10px; }
  .ft-status .num { font-size: 20px; }
  .ft-status .ft-eyebrow { letter-spacing: 1.2px; }
}
.ft-status .sub { color: var(--nx-ink-2); font-size: 11.5px; margin-top: 2px; line-height: 1.45; }
.ft-status .word { font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.ft-status .word.ok { color: #256C4A; }
.ft-status .word.warn { color: #A8532B; }
.ft-status .word.mut { color: var(--nx-ink-3); }

/* The daily movement strip: one bar per 15 minutes of the provider's 5-min classes.
   Display of data, never derivation — the derived facts arrive from the server. */
.ft-stripwrap { position: relative; }
.ft-daystrip { display: flex; align-items: flex-end; gap: 2px; height: 56px; margin-top: 10px;
  touch-action: pan-y; }
.ft-daystrip:focus-visible { outline: 2px solid var(--nx-ink); outline-offset: 4px; border-radius: 3px; }
.ft-daystrip .bar { flex: 1 1 0; min-width: 0; border-radius: 1.5px;
  background: rgba(29,31,36,0.10); }
.ft-daystrip .bar.lo { background: var(--nx-ink-3); }
.ft-daystrip .bar.hi { background: var(--nx-ink); }
.ft-daystrip .bar.future { background: rgba(29,31,36,0.035); }

/* The hovered 15 minutes are marked by a full-height COLUMN behind the bars, not by
   recolouring the bar itself: this palette's accent IS the ink, so an "active" bar would be
   indistinguishable from an ordinary high-movement one — invisible on exactly the bars worth
   inspecting. A column also reads on a 3%-tall still/future bar, which a recolour cannot. */
.ft-cursor { display: none; position: absolute; z-index: 1; pointer-events: none;
  border-radius: 3px; background: rgba(29,31,36,0.09); }
.ft-daystrip .bar { position: relative; z-index: 2; }

/* Read-out for the hovered 15 minutes. Centred on its block and clamped to the strip, so it
   never runs off the card. `left` is set inline; the transform does the centring. */
.ft-tip { display: none; position: absolute; bottom: calc(100% - 4px); transform: translateX(-50%);
  z-index: 5; pointer-events: none; white-space: nowrap;
  padding: 7px 11px; border-radius: 11px; background: var(--nx-card, #fff);
  border: 1px solid var(--nx-hair, rgba(29,31,36,0.10)); box-shadow: 0 6px 22px rgba(20,21,24,0.16); }
.ft-tip b { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--nx-ink); letter-spacing: .2px; }
.ft-tip span { display: block; font-size: 12.5px; font-weight: 650; color: var(--nx-ink-2); margin-top: 2px; }
.ft-tip span.mix { font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: var(--nx-ink-3); margin-top: 3px; }
.ft-daystrip-axis { display: flex; justify-content: space-between; margin-top: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--nx-ink-3); }

/* The Adjust sheet's time slider — ink accent, full width. */
.ft-range { width: 100%; margin-top: 8px; accent-color: var(--nx-ink); }

/* Week rail: exactly seven cells across the card (the week is the unit; nothing scrolls).
   Marks: filled = counts toward the goal, hollow = other activity — two different facts,
   drawn differently. */
.ft-weekrail { display: flex; gap: 4px; margin: 12px 0 0; }
.ft-wday { flex: 1 1 0; text-align: center; padding: 6px 0; border-radius: 14px; }
.ft-wday.today { background: rgba(29,31,36,0.05); }
.ft-wday .dow { font-size: 9px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--nx-ink-3); }
.ft-wday .num { font-family: var(--nx-serif); font-size: 16px; font-weight: 500;
  font-variation-settings: "opsz" 40; color: var(--nx-ink); margin-top: 3px; }
.ft-wday .mk, .ft-legend .mk { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin: 5px auto 0; background: transparent; border: 1.5px solid transparent; }
.ft-wday .mk.q, .ft-legend .mk.q { background: var(--nx-ink); border-color: var(--nx-ink); }
.ft-wday .mk.a, .ft-legend .mk.a { background: transparent; border-color: var(--nx-ink-3); }
/* Skipped: a dashed ring, never filled - a skip is drawn, never counted. */
.ft-wday .mk.s, .ft-legend .mk.s { border-style: dashed; border-color: var(--nx-ink-3); }
.ft-legend { display: flex; align-items: center; gap: 6px; justify-content: center;
  margin-top: 8px; font-size: 11.5px; color: var(--nx-ink-3); }
.ft-legend .mk { margin: 0; }

/* Mix rows: label · 3px proportion bar · count/minutes in tabular numerals. */
.ft-mixrow { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.ft-mixrow .lbl { flex: none; width: 96px; font-size: 12.5px; font-weight: 700;
  color: var(--nx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-mixrow .bar { flex: 1 1 auto; height: 3px; border-radius: 2px; background: rgba(29,31,36,0.08); }
.ft-mixrow .fill { display: block; height: 3px; border-radius: 2px; background: var(--nx-ink); }
.ft-mixrow .val { flex: none; font-family: var(--mono, ui-monospace, monospace);
  font-variant-numeric: tabular-nums; font-size: 11.5px; color: var(--nx-ink-2); }

/* Setup: a masthead action, not a tab. Subordinate to the content by design —
   configure-once, but reachable from every tab rather than buried under one. Labelled at
   every width, like the phone's "Setup" pill. */
.ft-setupbtn { display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--nx-hair-2);
  background: var(--nx-card); font-size: 12.5px; font-weight: 700; color: var(--nx-ink-2);
  transition: color .15s, border-color .15s; }
.ft-setupbtn:hover { color: var(--nx-ink); border-color: var(--nx-ink); }
.ft-setupbtn .ico, .ft-setupbtn svg { width: 15px; height: 15px; }

/* Primary actions inside the screen and its sheets: the phone's PrimaryButton, a full-width
   ink block (radius 12, 15 bold), not an inline pill. */
.ft-card .nx-primary, .modal-card .nx-primary { display: flex; width: 100%; border-radius: 12px;
  padding: 13px; font-size: 15px; }

/* Exercise demonstrations (exercise library plan, step B4): a "How to" toggle under the cue,
   opening a square clip from this node. No native controls (they offer a download); one
   labelled Play/Pause button instead. The clip's own near-white background sits on the card. */
.ft-demo-toggle { margin-top: 6px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--nx-hair-2); background: var(--nx-card); font-size: 12px;
  font-weight: 700; color: var(--nx-ink-2); cursor: pointer; }
.ft-demo-toggle:hover, .ft-demo-toggle[aria-expanded="true"] { color: var(--nx-ink);
  border-color: var(--nx-ink); }
.ft-demo-toggle:focus-visible, .ft-demo-play:focus-visible { outline: 2px solid var(--nx-ink);
  outline-offset: 2px; }
.ft-demo { margin-top: 8px; max-width: 360px; }
.ft-demo-video { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px;
  background: #eeeeec; object-fit: contain; }
.ft-demo-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ft-demo-play { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--nx-hair-2);
  background: var(--nx-card); font-size: 12px; font-weight: 700; color: var(--nx-ink); }
.ft-demo-note { font-size: 12px; color: var(--nx-ink-3); }
