/* ═══════════════════════════════════════════════════════════════════════
   FITNESS TESTING v3.0 — Dark UI Tokens
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.ft-hero { padding: 32px 0 24px; }
.ft-hero__inner {
  display: flex; align-items: center; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.ft-hero__left { flex: 0 0 150px; }
.ft-hero__right { flex: 1; min-width: 0; }
.ft-hero__title {
  font-size: 1.6rem; font-weight: 700; margin: 0 0 4px;
  color: rgba(255,255,255,0.95); letter-spacing: -0.02em;
}
.ft-hero__sub {
  font-size: 0.82rem; color: rgba(255,255,255,0.40);
  margin: 0 0 14px;
}
.ft-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Gauge ── */
.ft-gauge-wrap { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.ft-gauge { width: 100%; height: 100%; }
.ft-gauge__arc { transition: stroke-dashoffset 0.8s cubic-bezier(0.4,0,0.2,1); }
.ft-gauge__center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.ft-gauge__num { font-size: 1.8rem; font-weight: 800; color: rgba(255,255,255,0.95); }
.ft-gauge__label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); }
.ft-gauge__conf { font-size: 0.65rem; font-weight: 600; margin-top: 2px; }

/* ── Tabs ── */
.ft-tabs {
  display: flex; gap: 0; max-width: 1200px; margin: 0 auto 20px; padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ft-tab {
  padding: 10px 18px; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.40); font-size: 0.82rem; font-weight: 600;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.ft-tab:hover { color: rgba(255,255,255,0.70); }
.ft-tab.active { color: var(--accent,#f59e0b); border-bottom-color: var(--accent,#f59e0b); }

/* ── Buttons ── */
.ft-btn {
  padding: 8px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.ft-btn--primary {
  background: var(--accent,#f59e0b); color: #000; border-color: transparent;
}
.ft-btn--primary:hover { filter: brightness(1.15); }
.ft-btn--secondary {
  background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.70); border-color: rgba(255,255,255,0.10);
}
.ft-btn--secondary:hover { background: rgba(255,255,255,0.08); }
.ft-btn--sm { padding: 5px 12px; font-size: 0.75rem; }

/* ── Panel ── */
.ft-panel { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; }

/* ── Baseline Setup Card ── */
.ft-baseline-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(245,158,11,0.18);
  border-radius: 14px; padding: 18px; margin-bottom: 18px;
}
.ft-baseline-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.ft-baseline-bar {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06);
  overflow: hidden; margin-bottom: 14px;
}
.ft-baseline-bar__fill {
  height: 100%; border-radius: 3px; background: var(--accent,#f59e0b);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.ft-baseline-items { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-baseline-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px; font-size: 0.78rem;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; transition: all 0.2s;
}
.ft-baseline-item:hover:not(.ft-baseline-item--done) {
  background: rgba(255,255,255,0.06); border-color: var(--accent,#f59e0b);
}
.ft-baseline-item--done {
  opacity: 0.5; cursor: default;
}
.ft-baseline-item__check { font-size: 0.85rem; }
.ft-baseline-item__icon { font-size: 1rem; }
.ft-baseline-item__name { color: rgba(255,255,255,0.80); font-weight: 500; }
.ft-baseline-item__req { color: rgba(255,255,255,0.30); font-size: 0.72rem; margin-left: 4px; }

/* ── KPI Strip ── */
.ft-kpi-strip {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 10px;
  margin-bottom: 18px;
}
.ft-kpi-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 14px 10px; text-align: center;
  position: relative; overflow: hidden;
}
.ft-kpi-card--locked { opacity: 0.7; }
.ft-kpi-card__num { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.ft-kpi-card__lbl { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.ft-kpi-card__unlock { font-size: 0.62rem; color: rgba(255,255,255,0.25); margin-top: 4px; line-height: 1.3; }

/* ── Risk Strip ── */
.ft-risk-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ft-risk {
  padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.ft-risk--danger { background: rgba(239,68,68,0.10); color: #ef4444; border: 1px solid rgba(239,68,68,0.20); }
.ft-risk--warn { background: rgba(245,158,11,0.10); color: #f59e0b; border: 1px solid rgba(245,158,11,0.20); }
.ft-risk--info { background: rgba(59,130,246,0.10); color: #3b82f6; border: 1px solid rgba(59,130,246,0.20); }

/* ── Cards ── */
.ft-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 18px; overflow: hidden;
}
.ft-card--accent { border-color: rgba(245,158,11,0.12); }
.ft-card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.ft-card__title { font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.90); }
.ft-card__sub { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ── Dash Grid ── */
.ft-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── Feed / Rows ── */
.ft-feed { display: flex; flex-direction: column; gap: 2px; }
.ft-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 12px; border-radius: 8px;
  transition: background 0.15s;
}
.ft-row:hover { background: rgba(255,255,255,0.03); }
.ft-row--clickable { cursor: pointer; }
.ft-row__left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.ft-row__icon { font-size: 1.1rem; flex: 0 0 auto; }
.ft-row__title { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.ft-row__sub { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 1px; }
.ft-row__right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ft-row__date { font-size: 0.68rem; color: rgba(255,255,255,0.25); white-space: nowrap; }

/* ── Badges ── */
.ft-badge {
  display: inline-flex; padding: 3px 10px; border-radius: 6px; font-size: 0.7rem;
  font-weight: 600; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55); white-space: nowrap;
}
.ft-badge--warn { background: rgba(245,158,11,0.10); color: #f59e0b; border-color: rgba(245,158,11,0.20); }
.ft-badge--ok { background: rgba(16,185,129,0.10); color: #10b981; border-color: rgba(16,185,129,0.20); }
.ft-badge--danger { background: rgba(239,68,68,0.10); color: #ef4444; border-color: rgba(239,68,68,0.20); }

/* ── Confidence Badge ── */
.ft-conf-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 6px; font-size: 0.7rem; font-weight: 600;
  border: 1px solid; background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.60);
}
.ft-conf-badge--sm { font-size: 0.65rem; padding: 2px 7px; }
.ft-conf-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }

/* ── Confidence Tips ── */
.ft-conf-tips {
  font-size: 0.68rem; color: rgba(255,255,255,0.30); margin-top: 4px;
  font-style: italic;
}
.ft-conf-preview { margin-top: 12px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,0.02); }
.ft-detail__conf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }

/* ── Test Grid ── */
.ft-test-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.ft-test-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 16px; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  animation: ftCardIn 0.4s ease both;
}
.ft-test-card:nth-child(1) { animation-delay: 0.04s; }
.ft-test-card:nth-child(2) { animation-delay: 0.08s; }
.ft-test-card:nth-child(3) { animation-delay: 0.12s; }
.ft-test-card:nth-child(4) { animation-delay: 0.16s; }
.ft-test-card:nth-child(5) { animation-delay: 0.20s; }
.ft-test-card:nth-child(6) { animation-delay: 0.24s; }
.ft-test-card:nth-child(7) { animation-delay: 0.28s; }
.ft-test-card:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.045); transform: translateY(-2px); }
.ft-test-card--empty { border-style: dashed; border-color: rgba(255,255,255,0.08); }
.ft-test-card--empty:hover { border-color: var(--accent,#f59e0b); }
.ft-test-card--coming {
  cursor: default;
  border-style: dashed;
  border-color: rgba(99,102,241,0.28);
  background: linear-gradient(180deg, rgba(99,102,241,0.08), rgba(255,255,255,0.02));
}
.ft-test-card--coming:hover {
  transform: none;
  border-color: rgba(99,102,241,0.40);
  background: linear-gradient(180deg, rgba(99,102,241,0.12), rgba(255,255,255,0.03));
}
.ft-test-card__icon--coming {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.45);
}
.ft-coming-pill {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 999px;
  color: #c7d2fe;
  background: rgba(99,102,241,0.18);
  border: 1px solid rgba(99,102,241,0.45);
}
.ft-coming-note {
  font-size: 0.68rem;
  color: rgba(199,210,254,0.80);
}

.ft-test-card__header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ft-test-card__icon {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex: 0 0 38px;
}
.ft-test-card__info { flex: 1; min-width: 0; }
.ft-test-card__name { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.90); }
.ft-test-card__desc { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 1px; }
.ft-test-card__trend { text-align: right; flex: 0 0 auto; }
.ft-trend__arrow { font-size: 0.9rem; }
.ft-trend__label { font-size: 0.68rem; color: rgba(255,255,255,0.35); display: block; }
.ft-trend--improving .ft-trend__arrow { color: #10b981; }
.ft-trend--declining .ft-trend__arrow { color: #ef4444; }
.ft-trend--stable .ft-trend__arrow { color: #f59e0b; }
.ft-trend--neutral .ft-trend__arrow { color: rgba(255,255,255,0.25); }

.ft-test-card__body { margin-bottom: 12px; }
.ft-test-card__stats { display: flex; gap: 16px; margin-bottom: 8px; }
.ft-stat { text-align: center; min-width: 0; }
.ft-stat__num { font-size: 0.95rem; font-weight: 700; color: rgba(255,255,255,0.90); }
.ft-stat__lbl { font-size: 0.62rem; color: rgba(255,255,255,0.30); text-transform: uppercase; letter-spacing: 0.04em; }

.ft-test-card__footer {
  display: flex; align-items: center; gap: 8px;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
}
.ft-test-card__age { font-size: 0.68rem; color: rgba(255,255,255,0.30); margin-left: auto; }
.ft-test-card__age--stale { color: #ef4444; }

/* —— Tutorial Section —— */
.ft-tutorial-card { margin-top: 16px; }
.ft-tutorial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ft-tutorial-item {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}
.ft-tutorial-item[open] {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.035);
}
.ft-tutorial-item__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.ft-tutorial-item__summary::-webkit-details-marker { display: none; }
.ft-tutorial-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex: 0 0 28px;
}
.ft-tutorial-item__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}
.ft-tutorial-item__hint {
  margin-left: auto;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.45);
}
.ft-tutorial-item__body {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ft-tutorial-meta {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  align-items: start;
}
.ft-tutorial-meta > span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.ft-tutorial-meta p {
  margin: 0;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.76);
  line-height: 1.45;
}
.ft-tutorial-steps {
  margin: 0;
  padding-left: 16px;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.76);
  line-height: 1.45;
}
.ft-tutorial-steps li + li { margin-top: 4px; }

/* ── Empty test card body ── */
.ft-test-card__empty-body { padding: 10px 0; }
.ft-test-card__empty-line {
  font-size: 0.78rem; color: rgba(255,255,255,0.50);
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.ft-test-card__empty-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: rgba(255,255,255,0.30); flex: 0 0 20px;
}

/* ── Sparkline ── */
.ft-spark {
  display: flex; align-items: flex-end; gap: 3px; height: 40px;
  padding: 4px 0;
}
.ft-spark--empty { justify-content: center; align-items: center; color: rgba(255,255,255,0.15); font-size: 0.82rem; }
.ft-spark__bar {
  flex: 1; min-width: 8px; border-radius: 3px 3px 0 0;
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.ft-spark__bar--last { opacity: 1; }

/* ── Insights Grid ── */
.ft-insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── ACWR ── */
.ft-acwr { padding: 8px 0; }
.ft-acwr__gauge { text-align: center; margin-bottom: 12px; }
.ft-acwr__num { font-size: 2rem; font-weight: 800; }
.ft-acwr__zone { font-size: 0.78rem; font-weight: 600; }
.ft-acwr__scale { padding: 0 4px; }
.ft-acwr__bar {
  height: 8px; border-radius: 4px; background: rgba(255,255,255,0.06);
  overflow: hidden; margin-bottom: 4px;
}
.ft-acwr__fill { height: 100%; border-radius: 4px; transition: width 0.6s; }
.ft-acwr__labels {
  display: flex; justify-content: space-between; font-size: 0.62rem; color: rgba(255,255,255,0.25);
}

/* ── Unlock Card ── */
.ft-unlock {
  display: flex; align-items: center; gap: 10px;
  padding: 16px; text-align: center; justify-content: center;
}
.ft-unlock__icon { font-size: 1.5rem; opacity: 0.5; }
.ft-unlock__text { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* ── Readiness Drivers ── */
.ft-drivers { display: flex; flex-direction: column; gap: 12px; }
.ft-driver__head {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.60); margin-bottom: 4px;
}
.ft-driver__bar {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.ft-driver__fill { height: 100%; border-radius: 3px; transition: width 0.5s; }

/* ── Traits ── */
.ft-traits { display: flex; flex-direction: column; gap: 12px; }
.ft-trait__head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.ft-trait__icon { font-size: 1rem; }
.ft-trait__name { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.75); flex: 1; }
.ft-trait__pct { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.ft-trait__bar {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.ft-trait__fill { height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.4,0,0.2,1); }
.ft-trait__val { font-size: 0.68rem; color: rgba(255,255,255,0.30); margin-top: 2px; }

/* ── Training Load Chart ── */
.ft-load-chart {
  display: flex; align-items: flex-end; gap: 12px;
  height: 120px; padding: 8px 0;
}
.ft-load-bar {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%;
}
.ft-load-bar__fill {
  width: 100%; border-radius: 6px 6px 0 0;
  background: linear-gradient(to top, rgba(139,92,246,0.30), rgba(139,92,246,0.60));
  transition: height 0.5s;
}
.ft-load-bar__val { font-size: 0.65rem; color: rgba(255,255,255,0.40); margin-top: 4px; }
.ft-load-bar__lbl { font-size: 0.62rem; color: rgba(255,255,255,0.25); margin-top: 2px; }

/* ── Injuries ── */
.ft-injury-list { display: flex; flex-direction: column; gap: 2px; }
.ft-inj-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
}
.ft-inj--active .ft-inj-dot { background: #ef4444; }
.ft-inj--recovering .ft-inj-dot { background: #f59e0b; }
.ft-inj--recovered .ft-inj-dot { background: #10b981; }

/* ── History Filters ── */
.ft-history-filters {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.ft-filter {
  padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.45);
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.ft-filter:hover { background: rgba(255,255,255,0.06); }
.ft-filter.active {
  background: var(--accent,#f59e0b); color: #000; border-color: transparent;
}

/* ── Timeline ── */
.ft-timeline { display: flex; flex-direction: column; gap: 2px; }
.ft-timeline__month {
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.30);
  text-transform: uppercase; letter-spacing: 0.06em; padding: 14px 12px 6px;
}

/* ── Empty States ── */
.ft-empty {
  text-align: center; padding: 28px 16px;
}
.ft-empty__icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; }
.ft-empty__title { font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.60); margin-bottom: 4px; }
.ft-empty__sub { font-size: 0.78rem; color: rgba(255,255,255,0.30); max-width: 320px; margin: 0 auto; }

/* ── Test Detail Modal ── */
.ft-detail { padding: 4px 0; }
.ft-detail__stats {
  display: flex; gap: 16px; padding: 14px; margin-bottom: 14px;
  background: rgba(255,255,255,0.02); border-radius: 10px;
  flex-wrap: wrap;
}
.ft-detail__bench {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 0; font-size: 0.78rem;
}
.ft-detail__bench-label { font-size: 0.72rem; color: rgba(255,255,255,0.35); width: 100%; margin-bottom: 2px; }
.ft-detail__table { overflow-x: auto; margin-top: 14px; }
.ft-detail__table table {
  width: 100%; border-collapse: collapse; font-size: 0.78rem;
}
.ft-detail__table th {
  text-align: left; padding: 8px; font-size: 0.7rem; font-weight: 600;
  color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ft-detail__table td {
  padding: 8px; color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.ft-detail__pb-row td { background: rgba(245,158,11,0.04); }

/* Detail empty state */
.ft-detail__empty-hero {
  text-align: center; padding: 24px 16px 16px;
}
.ft-detail__empty-icon { font-size: 2.5rem; margin-bottom: 8px; }
.ft-detail__empty-title { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.65); }
.ft-detail__empty-sub { font-size: 0.82rem; color: rgba(255,255,255,0.35); margin-top: 4px; }
.ft-detail__protocol {
  margin: 14px 0; padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
}
.ft-detail__protocol summary {
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.55); cursor: pointer;
}
.ft-detail__protocol p {
  font-size: 0.78rem; color: rgba(255,255,255,0.40); margin: 8px 0 0; line-height: 1.5;
}
.ft-detail__affects {
  font-size: 0.78rem; color: rgba(255,255,255,0.40); margin: 10px 0;
}

/* ── Session Builder Form ── */
.ft-session-form { display: flex; flex-direction: column; gap: 14px; }
.ft-session-form__divider {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.25); font-weight: 700; padding: 8px 0 2px;
  border-top: 1px solid rgba(255,255,255,0.06); margin-top: 4px;
}

/* ── RSA Rep Inputs ── */
.ft-rsa-reps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.ft-rsa-rep-row {
  display: flex; align-items: center; gap: 8px;
}
.ft-rsa-rep-num {
  font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.35);
  min-width: 40px;
}
.ft-rsa-rep-row .form-input { flex: 1; }
.ft-rsa-computed { margin-top: 10px; }
.ft-rsa-metrics {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  padding: 10px; background: rgba(255,255,255,0.02); border-radius: 8px;
}

/* ── Trial Inputs ── */
.ft-trial-inputs {
  display: flex; flex-direction: column; gap: 8px;
}
.ft-trial-computed { margin-top: 6px; }
.ft-trial-summary {
  font-size: 0.78rem; color: rgba(255,255,255,0.50);
  padding: 8px 10px; background: rgba(255,255,255,0.02); border-radius: 8px;
}

/* ── RPE Scale ── */
.rpe-scale {
  display: flex; gap: 4px; margin-top: 6px;
}
.rpe-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.60);
  font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.rpe-btn:hover { background: rgba(255,255,255,0.08); }
.rpe-btn.low:hover, .rpe-btn.low.selected { background: rgba(16,185,129,0.25); color: #10b981; border-color: #10b981; }
.rpe-btn.medium:hover, .rpe-btn.medium.selected { background: rgba(59,130,246,0.25); color: #3b82f6; border-color: #3b82f6; }
.rpe-btn.high:hover, .rpe-btn.high.selected { background: rgba(245,158,11,0.25); color: #f59e0b; border-color: #f59e0b; }
.rpe-btn.max:hover, .rpe-btn.max.selected { background: rgba(239,68,68,0.25); color: #ef4444; border-color: #ef4444; }

/* ── Injury Status Buttons ── */
.ft-injury-status-btns {
  display: flex; gap: 6px; margin-top: 6px;
}
.ft-inj-status-btn {
  padding: 8px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.60);
  font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.ft-inj-status-btn:hover { background: rgba(255,255,255,0.06); }
.ft-inj-status-btn.selected {
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.90);
  border-color: var(--accent,#f59e0b);
}

/* ── Baseline Wizard ── */
.ft-wizard { padding: 4px 0; }
.ft-wizard__header { text-align: center; margin-bottom: 16px; }
.ft-wizard__progress { font-size: 1.1rem; font-weight: 800; color: var(--accent,#f59e0b); }
.ft-wizard__sub { font-size: 0.82rem; color: rgba(255,255,255,0.40); margin-top: 4px; }
.ft-wizard__list { display: flex; flex-direction: column; gap: 6px; }
.ft-wizard__item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; transition: all 0.15s;
}
.ft-wizard__item:hover:not(.ft-wizard__item--done) {
  background: rgba(255,255,255,0.06); border-color: var(--accent,#f59e0b);
}
.ft-wizard__item--done {
  opacity: 0.5; cursor: default;
}
.ft-wizard__check { font-size: 1rem; flex: 0 0 auto; }
.ft-wizard__icon { font-size: 1.2rem; flex: 0 0 auto; }
.ft-wizard__info { flex: 1; min-width: 0; }
.ft-wizard__name { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.ft-wizard__req { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ── Peer Group Label ── */
.ft-peer-label {
  font-size: 0.68rem; color: rgba(255,255,255,0.30);
  font-style: italic; cursor: help;
}

/* ── Anthropometrics Strip ── */
.ft-anthro-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 10px 0;
}
.ft-anthro-nudge {
  font-size: 0.72rem; padding: 8px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 6px;
  margin-top: 4px;
}
.ft-anthro-nudge--info {
  background: rgba(59,130,246,0.08); color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.15);
}
.ft-anthro-nudge--warn {
  background: rgba(245,158,11,0.08); color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.15);
}

/* ── View Toggle ── */
.ft-view-toggle {
  display: inline-flex; gap: 2px; padding: 3px;
  background: rgba(255,255,255,0.04); border-radius: 10px;
  margin: 12px 0; border: 1px solid rgba(255,255,255,0.06);
}
.ft-view-btn {
  padding: 6px 16px; border-radius: 8px; border: none;
  background: transparent; color: rgba(255,255,255,0.45);
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: all 0.18s;
}
.ft-view-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.65); }
.ft-view-btn.active {
  background: var(--accent,#f59e0b); color: #000;
}

/* ── Derived Metrics Panel ── */
.ft-derived-panel {
  margin: 8px 0 14px; min-height: 40px;
}
.ft-derived-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px; background: rgba(255,255,255,0.02);
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);
}
.ft-derived-metric {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  min-width: 100px;
}
.ft-derived-metric__label {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: rgba(255,255,255,0.30);
}
.ft-derived-metric__value {
  font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.85);
}
.ft-derived-metric__value small {
  font-size: 0.68rem; font-weight: 500; color: rgba(255,255,255,0.35);
}
.ft-derived-note {
  font-size: 0.72rem; color: rgba(255,255,255,0.30);
  font-style: italic; width: 100%;
}

/* ── Role-fit Header ── */
.ft-rolefit-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px; width: 100%;
}

/* ── Animations ── */
@keyframes ftCardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ft-hero__inner { flex-direction: column; text-align: center; gap: 16px; }
  .ft-hero__actions { justify-content: center; }
  .ft-kpi-strip { grid-template-columns: repeat(3,1fr); }
  .ft-dash-grid { grid-template-columns: 1fr; }
  .ft-insights-grid { grid-template-columns: 1fr; }
  .ft-test-grid { grid-template-columns: 1fr; }
  .ft-tutorial-list { grid-template-columns: 1fr; }
  .ft-rsa-reps { grid-template-columns: 1fr; }
  .ft-detail__stats { flex-direction: column; gap: 10px; }
  .ft-anthro-strip { grid-template-columns: 1fr; }
  .ft-derived-grid { flex-direction: column; }
  .ft-view-toggle { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .ft-hero { padding: 20px 0 16px; }
  .ft-gauge-wrap { width: 100px; height: 100px; }
  .ft-gauge__num { font-size: 1.4rem; }
  .ft-kpi-strip { grid-template-columns: repeat(2,1fr); }
  .ft-hero__title { font-size: 1.3rem; }
  .ft-tabs { overflow-x: auto; }
  .ft-tab { padding: 8px 12px; white-space: nowrap; }
}
