/* 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: 20px;
  box-shadow: var(--nx-shadow-card); padding: 20px 24px; }

.ft-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--nx-ink-3); }
.ft-focus { font-family: var(--nx-serif); font-weight: 560; font-variation-settings: "opsz" 60;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.05; color: var(--nx-ink);
  margin: 4px 0 10px; }

/* One exercise: name + cue left, the dose right in tabular numerals. */
.ft-slot { display: flex; justify-content: space-between; align-items: baseline; 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: 1.5; margin-top: 2px; }
.ft-dose { font-family: var(--mono, ui-monospace, monospace); font-variant-numeric: tabular-nums;
  font-size: 13px; color: var(--nx-ink); white-space: nowrap; }

.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); }
.ft-set-in { max-width: 92px; 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; roomier than the old four. */
.ft-seg button { padding: 10px 20px; }
@media (max-width: 560px) { .ft-seg button { padding: 9px 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; 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: var(--nx-shadow-card); transition: border-color .15s, box-shadow .15s; }
.ft-goalhead:hover { border-color: var(--nx-hair-2); box-shadow: var(--nx-shadow-card-hover); }
.ft-goalhead .sub { color: var(--nx-ink-2); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.ft-goalhead .chev { flex: none; font-size: 20px; color: var(--nx-ink-3); line-height: 1; }

/* The status row: three separate statuses, never one composite score. Status is a colored
   WORD (house rule — no chrome dots). */
.ft-statusgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; }
.ft-status { background: var(--nx-card); border: 1px solid var(--nx-hair); border-radius: 16px;
  box-shadow: var(--nx-shadow-card); padding: 13px 16px; }
.ft-status .num { font-family: var(--nx-serif); font-weight: 560;
  font-variation-settings: "opsz" 50; font-variant-numeric: tabular-nums; font-size: 26px;
  color: var(--nx-ink); margin-top: 3px; line-height: 1.1; }
.ft-status .num .u { font-size: 14px; color: var(--nx-ink-3); font-family: inherit; }
.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 (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; max-width: 470px; margin: 12px auto 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: 16.5px; font-weight: 550;
  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); }
.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); }

/* Training 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. */
.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; }
@media (max-width: 560px) { .ft-setupbtn span { display: none; } .ft-setupbtn { padding: 8px; } }
