.bio-efficiency-heading { margin: 16px 0 10px; text-align: center; }
.bio-efficiency-heading h3 { margin: 0; color: #f8fafc !important; font-size: clamp(1rem, 2vw, 1.2rem); }
.bio-efficiency-heading p { margin: 5px auto 0; max-width: 46ch; color: rgba(226,232,240,.62); font-size: .78rem; line-height: 1.45; }
.bio-efficiency-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); width: min(100%, 930px); margin-inline: auto; }

/* Runner Type total: the same translucent depth and restrained glow as the Distribution bars. */
.bio-sig-total-score-block { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 7px; margin: 9px 0 2px; }
.bio-sig-total-score { position: relative; display: grid; width: 104px; height: 104px; place-items: center; isolation: isolate; }
.bio-sig-total-score-ring { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.bio-sig-total-score-track, .bio-sig-total-score-progress { fill: none; stroke-width: 7.5; }
.bio-sig-total-score-track { stroke: rgba(30, 64, 72, .72); filter: drop-shadow(0 0 4px rgba(1, 195, 168, .08)); }
.bio-sig-total-score-progress { stroke: url(#bioSigTotalScoreGradient); stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(1, 195, 168, .28)); transition: stroke-dashoffset .52s cubic-bezier(.16, 1, .3, 1), opacity .24s ease; }
.bio-sig-total-score::after { position: absolute; z-index: -1; width: 68%; height: 68%; border-radius: 50%; background: radial-gradient(circle, rgba(1,195,168,.11) 0%, rgba(1,195,168,.035) 52%, transparent 76%); content: ''; }
.bio-sig-total-score-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #f8fafc; font-variant-numeric: tabular-nums; line-height: 1; }
.bio-sig-total-score-value strong { color: inherit; font-size: 2rem; font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.bio-sig-total-score-value small { color: rgba(226,232,240,.48); font-size: .62rem !important; font-weight: 700; letter-spacing: 0; }
.bio-sig-total-score-caption { color: rgba(226,232,240,.72); font-size: .72rem; font-weight: 600; line-height: 1.2; }
.bio-sig-total-score.is-unavailable .bio-sig-total-score-progress { opacity: .16; }
.bio-sig-metrics-panel .bio-sig-total-score-block + .bio-sig-metrics-grid { flex: 0 0 auto; align-items: center; align-content: center; margin-top: 8px; }

@media (orientation: landscape) and (max-height: 600px) and (min-width: 641px) and (max-width: 1180px) {
  .bio-sig-total-score-block { gap: 4px; margin-top: 4px; }
  .bio-sig-total-score { width: 62px; height: 62px; }
  .bio-sig-total-score-value strong { font-size: 1.25rem; }
  .bio-sig-total-score-value small { font-size: .48rem !important; }
  .bio-sig-total-score-caption { font-size: .56rem; }
  .bio-sig-metrics-panel .bio-sig-total-score-block + .bio-sig-metrics-grid { margin-top: 4px; }
}

@media (max-width: 640px) {
  .bio-sig-total-score-block { margin-top: 6px; }
  .bio-sig-total-score { width: 92px; height: 92px; }
  .bio-sig-total-score-value strong { font-size: 1.75rem; }
  .bio-sig-total-score-caption { font-size: .68rem; }
}

/* -- Zone score cards: one score per type of run, zone colour on the top edge -- */
.bio-efficiency-card { position: relative; box-sizing: border-box; overflow: hidden; min-width: 0; min-height: 158px; padding: 21px 20px 24px; color: #e2e8f0; text-align: center; border: .5px solid color-mix(in srgb, var(--bio-zone) 32%, transparent); border-radius: .9rem; background: linear-gradient(160deg, color-mix(in srgb, var(--bio-zone) 7%, transparent) 0%, rgba(16,22,36,.7) 100%); box-shadow: 0 0 0 .5px color-mix(in srgb, var(--bio-zone) 14%, transparent), 0 6px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06); cursor: pointer; transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.bio-efficiency-card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; z-index: 1; height: 2px; border-radius: inherit; background: color-mix(in srgb, var(--bio-zone) 52%, transparent); pointer-events: none; }
.bio-efficiency-card:hover, .bio-efficiency-card.is-active { border-color: color-mix(in srgb, var(--bio-zone) 60%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--bio-zone) 12%, transparent) 0%, rgba(16,22,36,.7) 100%); box-shadow: 0 0 0 .5px color-mix(in srgb, var(--bio-zone) 26%, transparent), 0 12px 34px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08); }
.bio-efficiency-card:hover::before, .bio-efficiency-card.is-active::before { background: var(--bio-zone); }
/* Hover highlights the card in place and only a selected card lifts. The cards have no blurred
   backdrop: with it, a hover repaint also redrew a strip of the next card's blur, which stayed
   lighter (a mirror-like band on its edge) until that card was hovered too. The tint stands in
   for the light the blur let through, above phone widths (phones never had the blur). */
.bio-efficiency-card.is-active { transform: scale(1.02) translateY(-2px); z-index: 6; }
@media (min-width: 641px) {
  .bio-efficiency-card::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.042) 0%, rgba(255,255,255,.038) 100%); }
  /* A selected card is a stacking layer of its own, so there the tint lies over its background. */
  .bio-efficiency-card.is-active::after { background: linear-gradient(160deg, rgba(255,255,255,.033) 0%, rgba(255,255,255,.018) 100%); }
}
.bio-efficiency-card:focus-visible { outline: 3px solid #f8fafc; outline-offset: 2px; }
/* Cyan compare card, matched to .bio-metric-card--compare: the same 0.5px border, the same
   160deg wash and box-shadow triple (no backdrop blur, like the metric card), and the same 2px
   top bar (a real 2px element there, a ::before here) rather than an approximation. */
.bio-efficiency-card--compare { cursor: default; border: .5px solid rgba(34,211,238,.25); background: linear-gradient(160deg, rgba(34,211,238,.06) 0%, rgba(16,22,36,.7) 100%); box-shadow: 0 0 0 .5px rgba(34,211,238,.1), 0 6px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06); }
.bio-efficiency-card--compare::before { background: rgba(34,211,238,.45); }
.bio-efficiency-card--compare:hover { transform: none; border: .5px solid rgba(34,211,238,.25); background: linear-gradient(160deg, rgba(34,211,238,.06) 0%, rgba(16,22,36,.7) 100%); box-shadow: 0 0 0 .5px rgba(34,211,238,.1), 0 6px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06); }
.bio-efficiency-card--compare:hover::before { background: rgba(34,211,238,.45); }
.bio-efficiency-compare-skeleton { position: relative; z-index: 2; display: flex !important; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.bio-efficiency-skeleton-line { position: relative; display: block; overflow: hidden; border-radius: 9999px; background: rgba(148,163,184,.12); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.bio-efficiency-skeleton-line::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(103,232,249,.2), transparent); content: ''; transform: translateX(-115%); animation: bioEfficiencySkeletonSweep 1.05s ease-in-out infinite; }
.bio-efficiency-skeleton-line--score { width: 46%; height: 25px; }
.bio-efficiency-skeleton-line--meta { width: 62%; height: 8px; }
.bio-efficiency-card.is-skeleton .bio-efficiency-rail b { display: none; }
@keyframes bioEfficiencySkeletonSweep { to { transform: translateX(115%); } }
@keyframes bioValueFadeIn {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bio-efficiency-card-top { position: relative; z-index: 2; display: block; overflow: hidden; margin-bottom: 7px; color: color-mix(in srgb, var(--bio-zone) 62%, #e2e8f0); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.bio-efficiency-pace-icon { display: inline-block; width: 32px; height: 32px; margin-right: 6px; object-fit: contain; vertical-align: middle; }
.bio-efficiency-card > strong { display: block; margin: 8px 0 9px; color: #f8fafc; font-size: clamp(2.35rem, 4.2vw, 3rem); font-variant-numeric: tabular-nums; font-weight: 760; letter-spacing: -.075em; line-height: .92; text-shadow: 0 2px 16px rgba(255,255,255,.08); animation: bioValueFadeIn .34s ease both; }
.bio-efficiency-card .bio-efficiency-outof { margin-left: 2px; color: rgba(226,232,240,.48); font-size: .5em; font-weight: 650; letter-spacing: 0; }
.bio-efficiency-card .bio-efficiency-empty { color: rgba(226,232,240,.4); font-size: .42em; font-weight: 650; letter-spacing: 0; vertical-align: 0.24em; }
.bio-efficiency-card > span:not(.bio-efficiency-card-top), .bio-efficiency-card small { display: block; color: rgba(226,232,240,.7); font-size: .72rem; line-height: 1.25; }
.bio-efficiency-card small { margin-top: 5px; color: rgba(226,232,240,.5); font-size: .68rem !important; line-height: 1.25 !important; letter-spacing: -.01em; white-space: nowrap; }
.bio-efficiency-card em { display: block; min-height: 1em; margin-top: 2px; color: #9ca3af; font-size: .61rem; font-style: normal; font-weight: 700; }
.bio-efficiency-card--compare em { font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.bio-efficiency-card.is-pending > strong { color: rgba(226,232,240,.35); }
.bio-efficiency-card--compare .bio-efficiency-card-top, .bio-efficiency-card--compare .bio-efficiency-card-top span { color: #67e8f9; }
/* Keep compare values legible like the current scores; only the comparison frame and rail are cyan. */
.bio-efficiency-card.bio-efficiency-card--compare .bio-efficiency-rail b { background: linear-gradient(90deg, rgba(34,211,238,.5), rgba(34,211,238,.95)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.22), 0 0 8px rgba(34,211,238,.3); }

/* Quality rail. Carries the score on its own, using the app's bar language: inset pill track,
   gradient fill, inner hairline, outer glow. Inset from the edges so it clears the card's
   12px corner radius instead of being clipped by it. */
.bio-efficiency-rail { position: absolute; right: 20px; bottom: 13px; left: 20px; height: 6px; overflow: hidden; border-radius: 9999px; background: linear-gradient(180deg, rgba(165,195,227,.16), rgba(44,60,92,.26)); box-shadow: inset 0 1px 2px rgba(0,0,0,.42), 0 0 0 1px rgba(173,196,232,.07); pointer-events: none; }
.bio-efficiency-rail b { position: relative; display: block; width: calc(var(--bio-q, 0) * 1%); min-width: 8px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--bio-q-tone, #64748b) 52%, transparent), var(--bio-q-tone, #64748b)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.22), 0 0 8px var(--bio-q-glow, transparent); transition: width .32s cubic-bezier(.16, 1, .3, 1), background .28s ease, box-shadow .28s ease; }
/* Locked scores use the same full-card Run-It Pro treatment as the DF/VR metric cards. */
.bio-efficiency-card.is-locked .bio-efficiency-rail { display: none; }
.bio-efficiency-card.is-locked .bio-efficiency-rail b, .bio-efficiency-card.is-pending .bio-efficiency-rail b { display: none; }

/* -- Run-It Pro locked zone: exact neutral DF/VR card surface and full-card overlay -- */
.bio-efficiency-card.is-locked { background: linear-gradient(160deg, rgba(148,163,184,.07) 0%, rgba(15,23,42,.72) 58%, rgba(8,19,32,.78) 100%) !important; border-color: rgba(34,211,238,.18) !important; box-shadow: 0 0 0 1px rgba(148,163,184,.05), 0 8px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.05) !important; }
.bio-efficiency-card.is-locked:hover, .bio-efficiency-card.is-locked.is-active { background: linear-gradient(160deg, rgba(148,163,184,.07) 0%, rgba(15,23,42,.72) 58%, rgba(8,19,32,.78) 100%) !important; border-color: rgba(34,211,238,.24) !important; box-shadow: 0 0 0 1px rgba(34,211,238,.1), 0 10px 30px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.06) !important; }
.bio-efficiency-card.is-locked .bio-efficiency-card-top, .bio-efficiency-card.is-locked .bio-efficiency-locked-body { opacity: 0; }
.bio-efficiency-locked-body { display: block; filter: blur(3.5px); opacity: .34; transform: scale(.98); }
.bio-efficiency-locked-body > strong { display: block; margin: 6px 0; color: var(--bio-zone); font-size: clamp(1.7rem, 3.2vw, 2.2rem); letter-spacing: -.06em; line-height: 1; }
.bio-efficiency-locked-body small { display: block; margin-top: 5px; color: rgba(226,232,240,.5); }
.bio-efficiency-locked-wrap { position: static; display: block; min-height: 72px; }
.bio-efficiency-pro-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: inherit; pointer-events: none; }
.bio-efficiency-pro-overlay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(3,7,18,.94), rgba(3,7,18,.82)); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.bio-efficiency-pro-overlay img { position: relative; z-index: 1; width: min(78%, 142px); height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
/* -- Detail panel -- */
@property --bio-panel-pointer-x { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --bio-panel-glow-color { syntax: '<color>'; inherits: true; initial-value: rgba(34,211,238,.38); }
@property --bio-panel-edge-color { syntax: '<color>'; inherits: true; initial-value: rgba(34,211,238,.88); }
.bio-efficiency-explanation { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; overflow: visible; box-sizing: border-box; width: 100%; min-height: 574px; margin: 24px 0 0; padding: 32px 28px 28px; border: 1px solid rgba(148,163,184,.26); border-radius: 18px; background: linear-gradient(135deg, rgba(17,24,43,.9), rgba(8,13,28,.94)); box-shadow: inset 0 1px rgba(255,255,255,.05), 0 20px 48px rgba(0,0,0,.18); text-align: center; transition: height .32s cubic-bezier(.4,0,.2,1), margin-top .32s cubic-bezier(.4,0,.2,1), padding .32s cubic-bezier(.4,0,.2,1), border-width .24s ease, opacity .22s ease, transform .28s cubic-bezier(.16,1,.3,1); }
#bioEfficiencyExplanation { --bio-panel-zone-rgb: 34,211,238; --bio-panel-pointer-x: 50%; --bio-panel-glow-color: rgba(34,211,238,.38); --bio-panel-edge-color: rgba(34,211,238,.88); isolation: isolate; transition: height .32s cubic-bezier(.4,0,.2,1), margin-top .32s cubic-bezier(.4,0,.2,1), padding .32s cubic-bezier(.4,0,.2,1), border-width .24s ease, opacity .22s ease, transform .28s cubic-bezier(.16,1,.3,1), --bio-panel-pointer-x .48s cubic-bezier(.16,1,.3,1), --bio-panel-glow-color .48s cubic-bezier(.16,1,.3,1), --bio-panel-edge-color .48s cubic-bezier(.16,1,.3,1); }
#bioEfficiencyExplanation[data-bio-efficiency-zone="race"] { --bio-panel-zone-rgb: 239,68,68; --bio-panel-pointer-x: 16.666%; --bio-panel-glow-color: rgba(239,68,68,.38); --bio-panel-edge-color: rgba(239,68,68,.88); }
#bioEfficiencyExplanation[data-bio-efficiency-zone="tempo"] { --bio-panel-zone-rgb: 249,115,22; --bio-panel-pointer-x: 50%; --bio-panel-glow-color: rgba(249,115,22,.38); --bio-panel-edge-color: rgba(249,115,22,.88); }
#bioEfficiencyExplanation[data-bio-efficiency-zone="easy"] { --bio-panel-zone-rgb: 59,130,246; --bio-panel-pointer-x: 83.333%; --bio-panel-glow-color: rgba(59,130,246,.38); --bio-panel-edge-color: rgba(59,130,246,.88); }
#bioEfficiencyExplanation::before { content: ''; position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: radial-gradient(45% 34% at var(--bio-panel-pointer-x) -2%, var(--bio-panel-glow-color) 0%, color-mix(in srgb, var(--bio-panel-glow-color) 40%, transparent) 32%, transparent 72%); filter: saturate(1.08); pointer-events: none; }
#bioEfficiencyExplanation::after { content: ''; position: absolute; z-index: 1; top: -9px; left: var(--bio-panel-pointer-x); width: 17px; height: 17px; border-top: 1px solid var(--bio-panel-edge-color); border-left: 1px solid var(--bio-panel-edge-color); background: rgba(15,23,42,.96); box-shadow: -5px -5px 14px var(--bio-panel-glow-color); transform: translateX(-50%) rotate(45deg); pointer-events: none; }
.bio-efficiency-panel { position: relative; z-index: 2; display: flex; align-self: stretch; flex: 1 1 auto; flex-direction: column; justify-content: center; width: 100%; min-height: 478px; animation: none; }
.bio-efficiency-explanation.is-opening { animation: bioPanelShellOpen .38s cubic-bezier(.16,1,.3,1) both; }
.bio-efficiency-explanation.is-opening .bio-efficiency-panel { animation: bioPanelRise .42s cubic-bezier(.16,1,.3,1) both; }
.bio-efficiency-panel--swapped { animation: bioPanelSwap .32s cubic-bezier(.16,1,.3,1) both; }
#fatigueResilienceScoreExplanation {
  --bio-panel-zone-rgb: 34,211,238;
  --bio-panel-pointer-x: 50%;
  --bio-panel-glow-color: rgba(34,211,238,.38);
  --bio-panel-edge-color: rgba(34,211,238,.88);
  isolation: isolate;
  display: flex;
  min-height: 574px;
  transition: height .32s cubic-bezier(.4,0,.2,1), margin-top .32s cubic-bezier(.4,0,.2,1), padding .32s cubic-bezier(.4,0,.2,1), border-width .24s ease, opacity .22s ease, transform .28s cubic-bezier(.16,1,.3,1), --bio-panel-pointer-x .48s cubic-bezier(.16,1,.3,1), --bio-panel-glow-color .48s cubic-bezier(.16,1,.3,1), --bio-panel-edge-color .48s cubic-bezier(.16,1,.3,1);
}
#fatigueResilienceScoreExplanation[data-fatigue-score-zone="race"] { --bio-panel-zone-rgb: 239,68,68; --bio-panel-pointer-x: 16.666%; --bio-panel-glow-color: rgba(239,68,68,.38); --bio-panel-edge-color: rgba(239,68,68,.88); }
#fatigueResilienceScoreExplanation[data-fatigue-score-zone="tempo"] { --bio-panel-zone-rgb: 249,115,22; --bio-panel-pointer-x: 50%; --bio-panel-glow-color: rgba(249,115,22,.38); --bio-panel-edge-color: rgba(249,115,22,.88); }
#fatigueResilienceScoreExplanation[data-fatigue-score-zone="easy"] { --bio-panel-zone-rgb: 59,130,246; --bio-panel-pointer-x: 83.333%; --bio-panel-glow-color: rgba(59,130,246,.38); --bio-panel-edge-color: rgba(59,130,246,.88); }
#fatigueResilienceScoreExplanation::before { content: ''; position: absolute; z-index: 0; inset: 0; border-radius: inherit; background: radial-gradient(45% 34% at var(--bio-panel-pointer-x) -2%, var(--bio-panel-glow-color) 0%, color-mix(in srgb, var(--bio-panel-glow-color) 40%, transparent) 32%, transparent 72%); filter: saturate(1.08); pointer-events: none; }
#fatigueResilienceScoreExplanation::after { content: ''; position: absolute; z-index: 1; top: -9px; left: var(--bio-panel-pointer-x); width: 17px; height: 17px; border-top: 1px solid var(--bio-panel-edge-color); border-left: 1px solid var(--bio-panel-edge-color); background: rgba(15,23,42,.96); box-shadow: -5px -5px 14px var(--bio-panel-glow-color); transform: translateX(-50%) rotate(45deg); pointer-events: none; }
#fatigueResilienceScoreExplanation[hidden] { display: none; }
.bio-efficiency-explanation.is-closing { min-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; border-bottom-width: 0; opacity: 0; transform: translateY(-8px); pointer-events: none; }
.bio-efficiency-explanation.is-closing .bio-efficiency-panel { animation: none; opacity: 0; transform: translateY(-12px) scale(.985); transition: opacity .2s ease, transform .28s cubic-bezier(.16,1,.3,1); }
@keyframes bioPanelShellOpen {
  from { opacity: 0; transform: translateY(-10px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bioPanelRise {
  from { opacity: 0; transform: translateY(-16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bioPanelSwap {
  from { opacity: .35; transform: translateX(10px) translateY(-4px); }
  to { opacity: 1; transform: translateX(0) translateY(0); }
}


/* Exact race-distance pill treatment from shoes.html / .owned-race-distance-pill. */
.bio-efficiency-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 12px 0 10px; }
.bio-efficiency-chip {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255,255,255,0.58);
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  box-shadow: inset 0 -6px 15px rgba(148, 163, 184, 0.12), inset 0 6px 15px rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: clamp(0.58rem, 0.53rem + 0.2vw, 0.66rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow 0.22s ease, color 0.22s ease;
}
/* Stryd has a later, high-specificity button rule with !important. Limit the
   specificity override to typography so hover/active pill states still win. */
#bioEfficiencyExplanation .bio-efficiency-chip {
  font-size: clamp(0.58rem, 0.53rem + 0.2vw, 0.66rem) !important;
}
#fatigueResilienceScoreExplanation .bio-efficiency-chip {
  font-size: clamp(0.58rem, 0.53rem + 0.2vw, 0.66rem) !important;
}
.fatigue-resilience-chart-card {
  margin-top: clamp(18px, 2vw, 24px);
}
.bio-efficiency-chip::before,
.bio-efficiency-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.bio-efficiency-chip::before {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.22) 0.01%, rgba(100, 116, 139, 0.26) 50.01%, rgba(148, 163, 184, 0.22) 100%);
  opacity: 1;
}
.bio-efficiency-chip::after {
  background: linear-gradient(90deg, rgba(255, 77, 109, 0.78) 0.01%, rgba(225, 29, 72, 0.84) 50.01%, rgba(244, 63, 94, 0.78) 100%);
  opacity: 0;
}
.bio-efficiency-chip:hover {
  box-shadow: inset 0 -6px 17px rgba(225, 29, 72, 0.24), inset 0 6px 17px rgba(255, 77, 109, 0.2);
  color: #fff;
}
.bio-efficiency-chip:hover::before { opacity: 0; }
.bio-efficiency-chip:hover::after { opacity: 0.8; }
.bio-efficiency-chip:focus-visible { outline: 2px solid rgba(225, 29, 72, 0.72); outline-offset: 2px; }
.bio-efficiency-chip.active,
.bio-efficiency-chip[aria-pressed="true"] {
  box-shadow: inset 0 -6px 17px rgba(225, 29, 72, 0.34), inset 0 6px 17px rgba(255, 77, 109, 0.28), 0 0 0 1px rgba(225, 29, 72, 0.12);
  color: #fff;
}
.bio-efficiency-chip.active::before,
.bio-efficiency-chip[aria-pressed="true"]::before { opacity: 0; }
.bio-efficiency-chip.active::after,
.bio-efficiency-chip[aria-pressed="true"]::after { opacity: 1; }
.bio-efficiency-chip.is-pro { gap: 5px; }
.bio-efficiency-chip.is-pro img {
  width: 24px;
  height: auto;
  opacity: .72;
  pointer-events: none;
}
.bio-efficiency-chip.is-pro:hover img,
.bio-efficiency-chip.is-pro:focus-visible img { opacity: 1; }

/* -- Importance map. The rail, icon artwork and numbered hierarchy match the selected visual. -- */
.bio-efficiency-factor-map { position: relative; display: flex; width: min(100%, 930px); min-height: 210px; flex: 1 1 auto; flex-direction: column; margin: 64px auto 0; }
.bio-efficiency-map-ends { position: absolute; z-index: 1; top: 76px; right: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; color: rgba(226,232,240,.56); font-size: .72rem; pointer-events: none; }
.bio-efficiency-map-ends span:first-child { padding-left: 2px; text-align: left; }
.bio-efficiency-map-ends span:last-child { padding-right: 2px; text-align: right; }
.bio-efficiency-track-dots { position: absolute; z-index: 0; top: 58px; width: 7%; border-top: 3px dotted rgba(226,232,240,.38); pointer-events: none; }
.bio-efficiency-track-dots--start { left: 0; border-color: rgba(34,211,238,.7); }
.bio-efficiency-track-dots--end { right: 0; border-color: rgba(249,115,22,.68); }
.bio-efficiency-factors { position: relative; margin: 0; }
.bio-efficiency-factors::before { content: ''; position: absolute; z-index: 0; top: 58px; right: 8%; left: 8%; height: 2px; border-radius: 999px; background: linear-gradient(90deg, rgba(34,211,238,.86), rgba(250,204,21,.94) 48%, rgba(249,115,22,.78)); box-shadow: 0 0 8px rgba(34,211,238,.16), 0 0 14px rgba(250,204,21,.2); pointer-events: none; }
.bio-efficiency-factors::after { content: ''; position: absolute; z-index: 0; top: 43px; left: 43%; width: 150px; height: 32px; background: radial-gradient(ellipse at center, rgba(255,255,255,.82) 0%, rgba(250,204,21,.52) 10%, rgba(249,115,22,.2) 38%, transparent 72%); filter: blur(3px); transform: translateX(-50%); pointer-events: none; }
.bio-efficiency-factor-map--fatigue { --bio-fatigue-radius: 54px; min-height: 210px; margin-top: 50px; }
.bio-efficiency-factor-map--fatigue .bio-efficiency-track-dots { top: 57.5px; width: calc(25% - var(--bio-fatigue-radius) + 1px); }
.bio-efficiency-factor-map--fatigue .bio-efficiency-track-dots--end { border-color: rgba(244,114,182,.68); }
.bio-efficiency-factor-map--fatigue .bio-efficiency-map-ends span { max-width: calc(50% - 62px); line-height: 1.35; }
.bio-efficiency-factor-map--fatigue .bio-efficiency-map-ends span:last-child { justify-self: end; }
.bio-efficiency-factor-map--fatigue .bio-efficiency-factors::before { top: 58px; right: calc(25% + var(--bio-fatigue-radius) - 1px); left: calc(25% + var(--bio-fatigue-radius) - 1px); background: linear-gradient(90deg, rgba(34,211,238,.86), rgba(244,114,182,.82)); box-shadow: 0 0 8px rgba(34,211,238,.18), 0 0 14px rgba(244,114,182,.16); }
.bio-efficiency-factor-map--fatigue .bio-efficiency-factors .bio-sig-metric-ind:hover { transform: none; }
.bio-efficiency-factor-map--fatigue .bio-efficiency-factors::after { display: none; }
.bio-efficiency-factors.bio-sig-metrics-grid { display: flex; flex-wrap: nowrap; gap: 0; width: 100%; align-items: flex-start; justify-content: center; }
.bio-efficiency-factors .bio-sig-metric-ind { position: relative; z-index: 2; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; min-width: 0; cursor: pointer; transform: scale(.72); opacity: 0; transition: transform .36s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; }
.bio-efficiency-factors .bio-sig-metric-ind.bio-sig-scale-in { transform: scale(1); opacity: 1; }
.bio-efficiency-factors .bio-sig-metric-ind:hover { transform: scale(1.025) translateY(-4px); }
.bio-efficiency-factors .bio-sig-metric-icon-box { position: relative; display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: var(--bio-factor-size); height: var(--bio-factor-size); margin-top: calc((118px - var(--bio-factor-size)) / 2); margin-bottom: calc((118px - var(--bio-factor-size)) / 2); padding: 0; overflow: hidden; border: 1.5px solid rgba(var(--bio-factor-rgb),.72); border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(var(--bio-factor-rgb),.19), rgba(12,20,38,.9) 68%); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 0 24px rgba(var(--bio-factor-rgb),.08), 0 0 0 4px rgba(var(--bio-factor-rgb),.035), 0 0 24px rgba(var(--bio-factor-rgb),.17); transition: width .42s cubic-bezier(.16,1,.3,1), height .42s cubic-bezier(.16,1,.3,1), margin .42s cubic-bezier(.16,1,.3,1), transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.bio-efficiency-factors .bio-sig-metric-ind.is-importance-seeding .bio-sig-metric-icon-box,
.bio-efficiency-factors .bio-sig-metric-ind.is-importance-seeding .bio-efficiency-factor-icon-art { transition: none !important; }
.bio-efficiency-factors .bio-sig-metric-ind.is-importance-shifting .bio-sig-metric-icon-box { will-change: width, height, margin; }
.bio-efficiency-factors .bio-sig-metric-ind:hover .bio-sig-metric-icon-box,
.bio-efficiency-factors .bio-sig-metric-ind.is-open .bio-sig-metric-icon-box { border-color: rgba(var(--bio-factor-rgb),.96); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 28px rgba(var(--bio-factor-rgb),.12), 0 0 0 5px rgba(var(--bio-factor-rgb),.05), 0 0 34px rgba(var(--bio-factor-rgb),.34); }
.bio-efficiency-factors .bio-efficiency-factor-icon-art { display: block; width: var(--bio-factor-icon); height: var(--bio-factor-icon); background: rgb(var(--bio-factor-status-rgb)); -webkit-mask: var(--bio-factor-image) center / contain no-repeat; mask: var(--bio-factor-image) center / contain no-repeat; filter: drop-shadow(0 0 7px rgba(var(--bio-factor-status-rgb),.36)); transition: width .42s cubic-bezier(.16,1,.3,1), height .42s cubic-bezier(.16,1,.3,1), background-color .24s ease, filter .24s ease; }
.bio-efficiency-factors .bio-efficiency-factor-icon-art--heart { background: none; color: rgb(var(--bio-factor-status-rgb)); -webkit-mask: none; mask: none; }
.bio-efficiency-factor-copy { display: flex; flex-direction: column; align-items: center; min-width: 0; margin-top: 17px; line-height: 1.25; }
.bio-efficiency-factor-copy > strong { display: inline-flex; align-items: center; justify-content: center; color: #f8fafc; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.bio-fatigue-factor-index { display: inline-grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; margin-right: 6px; border-radius: 999px; background: rgb(var(--bio-factor-rgb)); color: #06111f; font-size: .63rem; font-weight: 900; line-height: 1; }
.bio-efficiency-factor-copy > small { margin-top: 8px; color: rgba(226,232,240,.52); font-size: .68rem; font-weight: 400; }
.bio-efficiency-factor-copy > .bio-efficiency-factor-score { display: inline-flex; align-items: baseline; gap: 3px; color: rgba(var(--bio-factor-rgb),.96); font-variant-numeric: tabular-nums; font-size: .75rem; font-weight: 800; letter-spacing: .015em; line-height: 1; }
.bio-efficiency-factor-score > b { color: rgb(var(--bio-factor-rgb)); font-size: .88rem; font-weight: 850; }
.bio-efficiency-factor-score > span { color: rgba(226,232,240,.54); font-size: .68rem; font-weight: 650; }
.bio-fatigue-factor-evidence-count { margin-top: 6px !important; color: rgba(226,232,240,.58) !important; font-size: .65rem !important; font-weight: 560 !important; }
.bio-fatigue-factor-evidence-count > b { color: rgba(248,250,252,.9); font-weight: 800; }
.bio-fatigue-score-note { max-width: 64ch; margin: 20px auto 0; padding: 0 8px; color: rgba(226,232,240,.72); font-size: .75rem; line-height: 1.5; text-align: center; }
.bio-fatigue-view-runs { margin-top: 7px !important; color: rgba(103,232,249,.78) !important; font-size: .65rem !important; font-weight: 750 !important; letter-spacing: .015em; }
.bio-fatigue-evidence { box-sizing: border-box; width: min(100%, 760px); margin: 26px auto 14px; padding: 16px; border: 1px solid rgba(103,232,249,.16); border-radius: 14px; background: linear-gradient(145deg, rgba(15,23,42,.72), rgba(15,23,42,.42)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.bio-fatigue-evidence[hidden] { display: none; }
.bio-efficiency-factor-map--fatigue:has(.bio-fatigue-evidence:not([hidden])) .bio-sig-metric-tooltip { opacity: 0 !important; visibility: hidden !important; }
.bio-fatigue-evidence-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; text-align: left; }
.bio-fatigue-evidence-heading > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.bio-fatigue-evidence-heading strong { color: #f8fafc; font-size: .82rem; font-weight: 750; }
.bio-fatigue-evidence-heading span { color: rgba(226,232,240,.6); font-size: .69rem; line-height: 1.4; }
.bio-fatigue-evidence-heading > span { flex: 0 0 auto; padding: 4px 8px; border: 1px solid rgba(148,163,184,.16); border-radius: 999px; background: rgba(15,23,42,.7); color: rgba(226,232,240,.72); font-weight: 750; }
.bio-fatigue-evidence ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.bio-fatigue-evidence-run { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid rgba(148,163,184,.12); border-radius: 10px; background: rgba(2,6,23,.34); text-align: left; }
.bio-fatigue-evidence-meta { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.bio-fatigue-evidence-meta strong { color: rgba(248,250,252,.9); font-size: .72rem; font-weight: 720; }
.bio-fatigue-evidence-meta small { overflow: hidden; color: rgba(148,163,184,.64); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.bio-fatigue-evidence-outcome { display: inline-flex; max-width: 52%; align-items: center; justify-content: flex-end; gap: 5px; color: rgba(226,232,240,.76); font-size: .64rem; font-weight: 680; line-height: 1.25; text-align: right; }
.bio-fatigue-evidence-outcome b { display: inline-grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; border-radius: 50%; font-size: .63rem; }
.bio-fatigue-evidence-run.is-within .bio-fatigue-evidence-outcome b { background: rgba(52,211,153,.15); color: #34d399; }
.bio-fatigue-evidence-run.is-higher .bio-fatigue-evidence-outcome b { background: rgba(248,113,113,.14); color: #f87171; }
.bio-efficiency-factor-copy > .bio-efficiency-factor-score--compare { gap: 4px; margin-top: 5px; color: rgba(34,211,238,.9); font-size: .67rem; font-weight: 760; }
.bio-efficiency-factor-score--compare > i { color: rgba(103,232,249,.72); font-size: .61rem; font-style: normal; font-weight: 750; letter-spacing: .02em; text-transform: uppercase; }
.bio-efficiency-factor-score--compare > b { color: #67e8f9; font-size: .78rem; }
#bioEfficiencyExplanation .bio-efficiency-direction-note { margin: auto auto 0; max-width: 760px; color: rgba(148,163,184,.42); font-size: 7px !important; font-weight: 400; line-height: 1.45 !important; text-align: center; }
#fatigueResilienceScoreExplanation .bio-efficiency-direction-note { margin: auto auto 0; max-width: 760px; color: rgba(148,163,184,.42); font-size: 7px !important; font-weight: 400; line-height: 1.45 !important; text-align: center; }
.bio-efficiency-map-note { display: none; }
.bio-efficiency-factor-icon { display: block; width: 24px; height: 24px; background: currentColor; }
.bio-efficiency-factor-icon--gct { -webkit-mask: url('/images/gct.svg') center / contain no-repeat; mask: url('/images/gct.svg') center / contain no-repeat; }
.bio-efficiency-factors .bio-sig-metric-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s; z-index: 100; pointer-events: none; white-space: nowrap; }
.bio-efficiency-factors .bio-sig-metric-ind:hover .bio-sig-metric-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.bio-efficiency-factors:has(.bio-sig-metric-ind:hover) .bio-sig-metric-ind:not(:hover) .bio-sig-metric-tooltip { opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px); transition: none; }
.bio-efficiency-factors .bio-sig-metric-tooltip-inner { background: linear-gradient(135deg, rgba(17,24,39,0.98), rgba(31,41,55,0.98)); backdrop-filter: blur(12px); border-radius: 10px; padding: 8px 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.4); display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 210px; max-width: min(300px, calc(100vw - 24px)); white-space: normal; }
.bio-efficiency-factors .bio-sig-metric-tooltip-inner--value-only { flex-direction: column; align-items: center; gap: 6px; min-width: 140px; max-width: min(220px, calc(100vw - 24px)); padding: 9px 14px; text-align: center; white-space: normal; }
.bio-efficiency-factors .bio-sig-metric-tooltip-label { color: rgba(255,255,255,0.72); font-size: 0.72rem; letter-spacing: 0; text-transform: none; }
.bio-efficiency-factors .bio-sig-metric-tooltip-value { color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 9999px; }
.bio-efficiency-factors .bio-sig-metric-tooltip-arrow { position: absolute; bottom: -5px; left: 50%; width: 10px; height: 10px; background: rgba(17,24,39,0.98); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.bio-efficiency-factors .bio-efficiency-factor-why { color: rgba(226,232,240,.74); font-size: .68rem; font-weight: 400; line-height: 1.4; text-align: center; text-transform: none; letter-spacing: 0; }
.bio-efficiency-factors .bio-sig-metric-tooltip-inner { min-width: 200px; max-width: min(280px, calc(100vw - 32px)); }
/* Tap-to-open, since touch has no hover. */
.bio-efficiency-factors .bio-sig-metric-ind.is-open .bio-sig-metric-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.bio-efficiency-factors .bio-sig-metric-ind:focus-visible { outline: 3px solid #f8fafc; outline-offset: 3px; border-radius: .75rem; }
.bio-efficiency-factor-backdrop { position: fixed; inset: 0; z-index: 2147483646; background: rgba(2,6,23,.46); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.bio-efficiency-factor-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
/* The Garmin and Stryd pages define `.bio-sig-metric-tooltip` after this
   stylesheet for their in-card hover tooltips. This surface is appended
   directly to <body>, so keep its modal geometry more specific than those
   page-level rules or their absolute top/bottom constraints collapse it. */
body > .bio-efficiency-mobile-factor-tooltip.bio-sig-metric-tooltip { position: fixed; top: 50%; right: auto; bottom: auto; left: 50%; z-index: 2147483647; display: block; box-sizing: border-box; width: min(92vw, 420px); height: auto; max-height: min(70vh, 520px); overflow-y: auto; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, calc(-50% + 8px)) scale(.985); transition: opacity .2s ease, transform .22s cubic-bezier(.16,1,.3,1), visibility .2s ease; }
body > .bio-efficiency-mobile-factor-tooltip.bio-sig-metric-tooltip.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.bio-efficiency-mobile-factor-tooltip .bio-sig-metric-tooltip-inner { display: flex; box-sizing: border-box; width: 100%; min-width: 0; max-width: none; padding: 18px 20px; flex-direction: column; align-items: center; gap: 8px; border-radius: 14px; background: linear-gradient(135deg, rgba(17,24,39,.94), rgba(31,41,55,.94)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 22px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); text-align: center; white-space: normal; }
.bio-efficiency-mobile-factor-tooltip .bio-sig-metric-tooltip-label { color: rgba(255,255,255,.76); font-size: .82rem; letter-spacing: 0; text-transform: none; }
.bio-efficiency-mobile-factor-tooltip .bio-sig-metric-tooltip-value { padding: 4px 12px; border-radius: 9999px; color: #fff; font-size: .76rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.bio-efficiency-mobile-factor-tooltip .bio-efficiency-factor-why { color: rgba(226,232,240,.82); font-size: .78rem; font-weight: 400; line-height: 1.48; text-align: center; text-transform: none; letter-spacing: 0; }
.bio-efficiency-mobile-factor-tooltip .bio-sig-metric-tooltip-arrow { display: none; }

/* -- Plain-language explainer -- */
.bio-efficiency-how { margin: 0; opacity: 1; transform: translateY(0); transition: opacity .15s ease, transform .2s cubic-bezier(.16,1,.3,1); }
.bio-efficiency-how.is-copy-leaving { opacity: 0; transform: translateY(-5px); }
.bio-efficiency-how.is-copy-entering { opacity: 0; transform: translateY(5px); transition: none; }
.bio-efficiency-how h4 { margin: 0 0 12px; color: #f8fafc; font-size: clamp(1.2rem, 2.4vw, 1.48rem); font-weight: 600; letter-spacing: -.025em; }
.bio-efficiency-how p { margin: 0 auto; max-width: 62ch; color: rgba(226,232,240,.76); font-size: .9rem; line-height: 1.55; }
.bio-efficiency-how p + p { margin-top: 7px; }
.bio-efficiency-how b { color: #f8fafc; font-weight: 700; }
@media (max-width: 640px) {
  .bio-efficiency-grid { gap: 7px; }
  .bio-efficiency-card { min-height: 108px; padding: 11px 6px 15px; }
  .bio-efficiency-card-top { margin-bottom: 3px; font-size: .62rem; letter-spacing: .08em; }
  .bio-efficiency-pace-icon { display: block; width: 28px; height: 28px; margin: 0 auto 3px; }
  .bio-efficiency-card > strong { margin: 5px 0 6px; font-size: clamp(1.5rem, 8vw, 1.9rem); }
  .bio-efficiency-card > span:not(.bio-efficiency-card-top), .bio-efficiency-card small { font-size: .6rem !important; }
  .bio-efficiency-card small { margin-top: 4px; min-height: 2.5em; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .bio-efficiency-card em { font-size: .56rem; }
  .bio-efficiency-rail { right: 8px; bottom: 7px; left: 8px; height: 5px; }
  .bio-efficiency-locked-wrap { min-height: 62px; }
  .bio-efficiency-explanation { min-height: 430px; margin-top: 18px; padding: 24px 10px 18px; }
  .bio-efficiency-panel { min-height: 330px; }
  #fatigueResilienceScoreExplanation { min-height: 430px; }
  #fatigueResilienceScoreExplanation .bio-efficiency-panel { min-height: 0; }
  #fatigueResilienceScoreExplanation .bio-efficiency-factor-map { flex: 0 0 auto; }
  .bio-efficiency-how { padding: 4px 8px 0; }
  .bio-efficiency-how p { font-size: .76rem; }
  .bio-efficiency-factor-map { min-height: 170px; margin-top: 34px; }
  .bio-efficiency-map-ends { display: none; }
  .bio-efficiency-track-dots, .bio-efficiency-factors::before { top: 52px; }
  .bio-efficiency-factors::after { top: 38px; width: 100px; }
  .bio-efficiency-factor-map--fatigue { --bio-fatigue-radius: 41.04px; }
  .bio-efficiency-factors .bio-sig-metric-icon-box { transform: scale(.76); }
  .bio-efficiency-factor-copy { margin-top: 8px; }
  .bio-efficiency-factor-copy > strong { font-size: .64rem; }
  .bio-fatigue-factor-index { width: 14px; height: 14px; flex-basis: 14px; margin-right: 4px; font-size: .54rem; }
  .bio-efficiency-factor-copy > small { font-size: .56rem; }
  .bio-efficiency-factor-map--fatigue .bio-efficiency-factor-score { flex-direction: column; align-items: center; gap: 3px; }
  .bio-fatigue-factor-evidence-count { max-width: 112px; line-height: 1.3; text-align: center; }
  .bio-fatigue-view-runs { margin-top: 5px !important; font-size: .57rem !important; }
  .bio-fatigue-evidence { margin-top: 18px; padding: 12px; }
  .bio-fatigue-evidence-heading { gap: 8px; }
  .bio-fatigue-evidence-heading strong { font-size: .72rem; }
  .bio-fatigue-evidence-heading span { font-size: .62rem; }
  .bio-fatigue-evidence ul { grid-template-columns: 1fr; }
  .bio-fatigue-evidence-run { padding: 8px; }
  .bio-fatigue-evidence-outcome { max-width: 55%; font-size: .59rem; }
  #bioEfficiencyExplanation .bio-efficiency-direction-note,
  #fatigueResilienceScoreExplanation .bio-efficiency-direction-note { box-sizing: border-box; flex-shrink: 0; width: 100%; max-width: 72ch; margin-top: auto; padding: 24px 6px 4px; overflow-wrap: anywhere; font-size: 7px !important; line-height: 1.45 !important; }
  #fatigueResilienceScoreExplanation .bio-efficiency-direction-note { margin-top: 20px; padding-top: 8px; }
  .bio-efficiency-map-note { font-size: .56rem; }
  .bio-efficiency-factors .bio-sig-metric-tooltip { display: none; }
  /* The biomech section drops backdrop blur on mobile for performance
     (`#biomechanicalProfileSection .bio-metric-card { backdrop-filter: none !important }`).
     Match that rather than reintroducing a blur the section deliberately removed. */
  .bio-efficiency-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bio-efficiency-pro-overlay img { width: min(78%, 116px); }
}
@media (hover: none) and (pointer: coarse) {
  .bio-efficiency-factors .bio-sig-metric-tooltip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bio-efficiency-card, .bio-efficiency-chip, .bio-efficiency-chip::before, .bio-efficiency-chip::after, .bio-efficiency-factor, .bio-efficiency-factor-tip { transition: none; }
  .bio-efficiency-factor-tip { transform: none; }
  .bio-efficiency-panel, .bio-efficiency-card > strong { animation: none; }
  .bio-efficiency-explanation.is-closing, .bio-efficiency-explanation.is-closing .bio-efficiency-panel { transition: none; }
  .bio-efficiency-rail b { transition: none; }
  .bio-efficiency-factors .bio-sig-metric-icon-box,
  .bio-efficiency-factors .bio-sig-metric-icon-box img { transition: none; }
  .bio-efficiency-factor-backdrop, .bio-efficiency-mobile-factor-tooltip { transition: none; }
  .bio-efficiency-skeleton-line::after { animation: none; }
}

/* Fatigue matrix evidence uses the same criterion counts as the score cards. */
.frp-matrix-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.frp-matrix-heading { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.frp-matrix-heading > h5 { margin: 0; color: #f8fafc; font-size: .82rem; line-height: 1.25; }
.frp-matrix-heading > .section-tooltip-trigger { display: inline-flex; align-items: center; flex: 0 0 auto; margin: 0; }
.frp-matrix-heading .section-tooltip-btn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-height: 20px !important; padding: 0 !important; margin: 0; vertical-align: middle; }
.frp-secondary-card--matrix .rmt-cell.is-tooltip-open { opacity: 1 !important; outline: 2px solid #f8fafc; outline-offset: 2px; box-shadow: inset 0 0 0 1px rgba(248,250,252,.55), 0 0 12px rgba(248,250,252,.2) !important; }
.frp-secondary-card--matrix .rmt-cell[role="button"]:focus-visible { outline: 2px solid #f8fafc; outline-offset: 2px; }
.frp-matrix-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid rgba(148,163,184,.14); border-radius: 9px; background: rgba(15,23,42,.42); }
.frp-matrix-tab { appearance: none; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: rgba(203,213,225,.58); font: inherit; font-size: .61rem; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.frp-matrix-tab:hover { color: rgba(248,250,252,.86); }
.frp-matrix-icon { display: block; width: 20px; height: 20px; }
/* Override the profile's svg-only button reset: both metric cards share one box. */
.frp-matrix-tabs > button.frp-matrix-tab { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 32px; min-height: 32px !important; padding: 5px 8px !important; }
.frp-matrix-icon--gct { background: currentColor; mask: url('/images/gct.svg') center / contain no-repeat; -webkit-mask: url('/images/gct.svg') center / contain no-repeat; }
.matrix-run-tooltip button.bio-sig-dist-tooltip-item { box-sizing: border-box; width: 100%; min-width: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.matrix-run-tooltip button.bio-sig-dist-tooltip-item:hover, .matrix-run-tooltip button.bio-sig-dist-tooltip-item:focus-visible { outline: none !important; box-shadow: inset 0 0 0 1px #22d3ee !important; background: rgba(34,211,238,.12); }
.matrix-run-tooltip button.bio-sig-dist-tooltip-item:disabled { cursor: default; opacity: .5; }
.frp-matrix-tab:focus-visible { outline: 2px solid #f8fafc; outline-offset: 2px; }
.frp-matrix-tab.active[data-matrix-metric="gct"] { border-color: rgba(46,209,244,.34); background: rgba(46,209,244,.12); color: #67e8f9; box-shadow: 0 0 12px rgba(46,209,244,.1); }
.frp-matrix-tab.active[data-matrix-metric="hr"] { border-color: rgba(244,114,182,.36); background: rgba(244,114,182,.12); color: #F472B6; box-shadow: 0 0 12px rgba(244,114,182,.1); }
.frp-matrix-note { margin: 0 0 8px; color: rgba(203,213,225,.48); font-size: .62rem; line-height: 1.4; }
.rmt-cell .rmt-count { display: block; color: inherit; font-size: .83rem; font-weight: 800; letter-spacing: -.02em; }
.rmt-cell .rmt-count-label { display: block; margin-top: 2px; color: inherit; font-size: .56rem; font-weight: 650; opacity: .7; }
.rmt-cell .rmt-empty { display: block; color: rgba(203,213,225,.4); font-size: .57rem; font-weight: 600; line-height: 1.15; }
@media (max-width: 640px) {
  .frp-matrix-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .frp-matrix-tabs { width: 100%; box-sizing: border-box; }
  .frp-matrix-tab { flex: 1 1 0; padding: 6px 5px; }
  .frp-matrix-note { font-size: .57rem; }
  .rmt-cell .rmt-count { font-size: .74rem; }
  .rmt-cell .rmt-count-label { font-size: .5rem; }
}

/* The live Strava profile uses the exact shared metric-card shell. Summary
   activities do not provide running-dynamics or derived-form fields, so those
   cards stay in place but visibly disabled rather than becoming a new layout.
   Garmin runs without running dynamics get the same page. */
body[data-profile-source="strava"] .bio-metric-card--unavailable,
body[data-profile-dynamics="summary"] .bio-metric-card--unavailable {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(1);
}

body[data-profile-source="strava"] .strava-control-unavailable,
body[data-profile-dynamics="summary"] .strava-control-unavailable {
  cursor: not-allowed !important;
  filter: grayscale(1);
  opacity: .46 !important;
  color: rgba(255,255,255,.46) !important;
  background: rgba(255,255,255,.025) !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: none !important;
}
body[data-profile-source="strava"] .bio-metric-card--unavailable .bio-expand-arrow,
body[data-profile-dynamics="summary"] .bio-metric-card--unavailable .bio-expand-arrow {
  display: none;
}
body[data-profile-source="strava"] .bio-card-unavailable-note,
body[data-profile-dynamics="summary"] .bio-card-unavailable-note {
  display: block;
  margin-top: 5px;
  color: rgba(203, 213, 225, .72);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .035em;
}
body[data-profile-source="strava"] .bio-sig-metric-ind--unavailable,
body[data-profile-dynamics="summary"] .bio-sig-metric-ind--unavailable {
  opacity: .52;
  filter: grayscale(1);
}

/* HR uses the same metric overview layout, with six neutral bpm ranges. */
.bio-hr-overview .bio-overview-bars { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bio-hr-overview .bio-expl-badge { background: #F472B6; color: #fff; }
.bio-hr-overview .bio-overview-bar-label { font-size: .64rem; line-height: 1.2; min-height: 3.6em; overflow-wrap: anywhere; }
.bio-hr-overview .bio-overview-bar-track { max-width: 100%; box-sizing: border-box; }

.bio-metric-card--contextual .bio-card-badge { color: #fff !important; }

.bio-hr-overview .bio-overview-score-visual svg { fill: currentColor; }

.bio-low-hr-form { padding: 1rem; margin-bottom: 1rem; border: 1px solid rgba(244,114,182,.18); border-radius: 16px; background: rgba(244,114,182,.04); }
.bio-hr-coming-soon {
  overflow: hidden;
  position: relative;
  padding: 1.1rem 1.15rem;
  background:
    radial-gradient(circle at 100% 0, rgba(244,114,182,.11), transparent 42%),
    rgba(244,114,182,.035);
}
.bio-hr-coming-soon::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 44%, rgba(255,255,255,.025) 52%, transparent 60%);
}
.bio-hr-coming-soon-copy {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:1rem;
  position:relative;
  z-index:1;
}
.bio-hr-coming-soon-copy > div { grid-column:1; grid-row:1; min-width:0; }
.bio-hr-coming-soon-badge {
  grid-column:2;
  grid-row:1;
  justify-self:end;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:1.15rem;
  padding:.24rem .55rem;
  border:0;
  border-radius:999px;
  background:#f472b6;
  color:#fff;
  font-size:.6rem;
  font-weight:800;
  letter-spacing:.035em;
  line-height:1;
  text-transform:uppercase;
  box-shadow:0 0 14px rgba(244,114,182,.32);
}
.bio-hr-coming-soon h5 { margin:.3rem 0 .45rem; color:rgba(255,255,255,.94); font-size:1.04rem; font-weight:750; line-height:1.3; }
.bio-hr-coming-soon p { max-width:780px; margin:0; color:rgba(255,255,255,.68); font-size:.82rem; line-height:1.65; }
@media(max-width:560px) {
  .bio-hr-coming-soon-copy { grid-template-columns:1fr; gap:.75rem; }
  .bio-hr-coming-soon-copy > div { grid-column:1; grid-row:2; }
  .bio-hr-coming-soon-badge { grid-column:1; grid-row:1; justify-self:center; }
  .bio-hr-coming-soon h5 { font-size:.98rem; }
}
.bio-low-hr-headline { font-size: 1.1rem; font-weight: 700; margin: .5rem 0; }
.bio-low-hr-note { font-size: .8rem; line-height: 1.6; opacity: .7; margin: .6rem 0 0; }
.bio-low-hr-ranges { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; margin: 1rem 0; }
.bio-low-hr-ranges > div { display: flex; flex-direction: column; gap: .35rem; padding: .8rem; border-radius: 12px; background: rgba(0,0,0,.18); }
.bio-low-hr-ranges span { font-size: .75rem; opacity: .75; }
.bio-low-hr-ranges strong { color: #f472b6; font-size: 1.15rem; }
.bio-low-hr-ranges small { font-size: .7rem; }
@media(max-width:480px) { .bio-low-hr-ranges { grid-template-columns: 1fr; } }

/* One filtered-set form result, reusing the metric artwork. */
.bio-hr-optimal-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.bio-hr-optimal-confidence { display:flex; flex-direction:column; align-items:center; text-align:center; min-width:110px; gap:.2rem; }
.bio-hr-optimal-confidence span { font-size:.7rem; opacity:.7; }
.bio-hr-optimal-confidence strong { font-size:1.6rem; color:#f472b6; }
.bio-hr-optimal small { font-size:.7em; }
.bio-hr-optimal .bio-low-hr-ranges { grid-template-columns:repeat(3,minmax(0,1fr)); }
.bio-hr-optimal-metric { align-items:center; text-align:center; justify-content:center; min-width:0; }
.bio-hr-optimal .bio-hr-optimal-icon { display:block; width:64px; height:64px; margin:.3rem 0 .7rem; background:#f472b6; opacity:1; -webkit-mask:var(--hr-form-icon) center/contain no-repeat; mask:var(--hr-form-icon) center/contain no-repeat; }
.bio-hr-optimal-result { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; padding:1rem; border-radius:12px; background:rgba(244,114,182,.07); }
.bio-hr-optimal-result > div { display:flex; flex-direction:column; gap:.35rem; }
.bio-hr-optimal-result span { font-size:.8rem; opacity:.75; }
.bio-hr-optimal-result strong { font-size:1.7rem; color:#f472b6; }
.bio-hr-optimal-details summary { cursor:pointer; font-size:.8rem; margin-top:1rem; opacity:.75; }
@media(max-width:480px) {
 .bio-hr-optimal-heading { align-items:flex-start; gap:.5rem; }
 .bio-hr-optimal-confidence { min-width:85px; }
 .bio-hr-optimal .bio-low-hr-ranges { gap:.35rem; }
 .bio-hr-optimal .bio-low-hr-ranges > div { padding:.6rem .25rem; }
 .bio-hr-optimal .bio-hr-optimal-icon { width:44px; height:44px; }
 .bio-hr-optimal .bio-low-hr-ranges strong { font-size:1rem; }
 .bio-hr-optimal-result { padding:.7rem; gap:.7rem; }
}

/* Pace projections share one fitted HR model and one confidence score. */
.bio-hr-pace-types { display:flex; gap:.5rem; margin:.6rem 0 1rem; }
.bio-hr-pace-type { flex:1; padding:.4rem .65rem; border:1px solid #f472b644; border-radius:999px; color:#e5e7eb; background:#f472b60a; font:inherit; font-size:.75rem; cursor:pointer; }
.bio-hr-pace-type[aria-pressed="true"] { background:#f472b62b; border-color:#f472b6; color:white; }
.bio-hr-pace-type:focus-visible { outline:2px solid #22d3ee; outline-offset:2px; }
