.lpi-explainer {
  --lpi-cyan: #55dfef;
  --lpi-cyan-rgb: 85, 223, 239;
  --lpi-amber: #f3b63f;
  --lpi-amber-rgb: 243, 182, 63;
  --lpi-purple: #a78bfa;
  --lpi-green: #34d399;
  --lpi-state-color: var(--lpi-purple);
  --lpi-panel: #050b19;
  --lpi-panel-soft: #07101f;
  --lpi-line: rgba(148, 163, 184, 0.2);
  --lpi-muted: rgba(226, 232, 240, 0.7);
  --lpi-demand: 0.5;
  --lpi-response: 0.5;
  --lpi-jump-height: 137px;
  --lpi-good-left: 37%;
  --lpi-good-width: 26%;
  --lpi-great-left: 43%;
  --lpi-great-width: 14%;
  --lpi-response-good-left: 37%;
  --lpi-response-good-width: 26%;
  --lpi-response-great-left: 43%;
  --lpi-response-great-width: 14%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: #f8fafc;
  background: var(--lpi-panel);
  font-family: inherit;
}

.lpi-explainer,
.lpi-explainer * { box-sizing: border-box; }

.lpi-explainer button,
.lpi-explainer input,
.lpi-explainer output { font: inherit; }

.lpi-explainer h5,
.lpi-explainer h6,
.lpi-explainer p { padding: 0; }

.lpi-explainer h5::after,
.lpi-explainer h6::after { display: none !important; }

.lpi-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bio-explanation-box--lpi,
#biomechanicalProfileSection .bio-explanation-box.bio-explanation-box--lpi {
  position: relative;
  isolation: isolate;
  padding: 0 !important;
  overflow: visible !important;
  border: 1px solid rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.15) !important;
  border-radius: 1.5rem !important;
  background:
    radial-gradient(ellipse 78% 520px at 24% 0%, rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.115) 0%, rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.034) 40%, transparent 100%),
    var(--lpi-panel, #050b19) !important;
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.03),
    0 0 34px rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.055),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 22px 38px rgba(255, 255, 255, 0.012),
    inset 0 -26px 44px rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.032) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bio-explanation-box--lpi::before,
#biomechanicalProfileSection .bio-explanation-box.bio-explanation-box--lpi::before {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    128deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.34) 18%,
    rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.075) 43%,
    rgba(255, 255, 255, 0.055) 64%,
    rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.22) 84%,
    rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.045) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  content: '';
}

.bio-explanation-box--lpi::after,
#biomechanicalProfileSection .bio-explanation-box.bio-explanation-box--lpi::after {
  position: absolute;
  right: 34%;
  bottom: 0;
  left: 7%;
  z-index: 8;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.3), rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.07), transparent);
  box-shadow: 0 0 13px rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.12);
  pointer-events: none;
  content: '';
}

.bio-explanation-box--lpi > :not(#bioExplTriangle) { position: relative; z-index: 1; }

/* Keep the existing moving metric pointer outside the rounded shell.
   Clip the content stack instead, so the card corners stay contained. */
.bio-explanation-box--lpi > #bioExplTriangle {
  position: absolute;
  z-index: 9;
  filter: drop-shadow(0 -1px 8px rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.16));
}

/* LPI is a cyan feature card, independent of the selected score category. */
.bio-explanation-box--lpi #bioTriFill {
  fill: var(--lpi-panel, #050b19);
}

.bio-explanation-box--lpi #bioExplTriangle path:not([id]) {
  stroke: rgba(var(--lpi-cyan-rgb, 85, 223, 239), 0.34);
}

.bio-explanation-box--lpi .bio-expl-stack {
  gap: 0;
  overflow: hidden;
  border-radius: inherit;
}

/* A single shell owns the navy and header light. Nested sections must not
   cover that fading light with separate blue rectangles. */
.bio-explanation-box--lpi .lpi-explainer { background: transparent; }

.bio-explanation-box--lpi .lpi-panel-intro {
  order: -1;
  padding: 18px 27px 0;
  background: transparent;
}

.lpi-panel-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.lpi-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-self: end;
}

.lpi-brand-mark img {
  display: block;
  width: 132px;
  height: auto;
}

.bio-explanation-box--lpi .lpi-panel-intro-row h3 {
  margin: 0;
  /* The shared dashboard h3 rule also uses !important for cyan headings. */
  color: #f8fafc !important;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.lpi-panel-intro-row .bio-expl-badge {
  min-height: 25px;
  padding: 5px 12px;
  font-size: 0.63rem;
}

.lpi-panel-intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(var(--lpi-cyan-rgb), 0.68);
  border-radius: 50%;
  color: var(--lpi-cyan);
}

.lpi-panel-intro-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
}

.lpi-panel-intro > p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.72rem;
  line-height: 1.5;
}

.bio-explanation-box--lpi .bio-expl-hero {
  margin: 22px 24px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  background: transparent !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 12px 28px rgba(0, 0, 0, 0.18) !important;
}

.bio-expl-content--lpi {
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.bio-expl-content--lpi .bio-expl-desc {
  margin: 0 !important;
  padding: 0 27px 17px;
  border-bottom: 1px solid var(--lpi-line);
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.72rem;
  line-height: 1.55;
}

.lpi-story,
.lpi-landing,
.lpi-controls,
.lpi-response,
.lpi-compliance {
  border-bottom: 1px solid var(--lpi-line);
}

.lpi-story { padding: 15px 26px 10px; }

.lpi-story-heading h5,
.lpi-section-heading h5,
.lpi-compliance h5 {
  margin: 0;
  color: var(--lpi-cyan) !important;
  font-size: 0.72rem !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lpi-story-heading #lpiStoryTitle { color: #f8fafc !important; }

.lpi-story-heading p,
.lpi-section-heading p {
  margin: 4px 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.66rem;
  line-height: 1.45;
}

.lpi-story-copy-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  margin-top: 12px;
}

.lpi-story-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.lpi-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(var(--lpi-cyan-rgb), 0.9);
  border-radius: 50%;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(var(--lpi-cyan-rgb), 0.16);
}

.lpi-story-step h6 {
  margin: 0 0 2px;
  color: #f8fafc !important;
  font-size: 0.68rem !important;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lpi-story-step-copy,
.lpi-story-mobile-copy {
  min-width: 0;
}

.lpi-story-step p {
  margin: 2px 0 0;
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.58rem;
  line-height: 1.3;
}

.lpi-story-art {
  background: var(--lpi-panel);
  position: relative;
  z-index: 1;
  min-height: 204px;
  margin-top: 4px;
  overflow: hidden;
  mix-blend-mode: lighten;
}

/* Blend the artwork's dark pixels into the same navy, even inside an
   independently composited profile or modal content wrapper. */
.lpi-story-image { mix-blend-mode: lighten; position: relative; aspect-ratio: 1800 / 520; overflow: hidden; }
.lpi-story-image > img {
  position: absolute;
  width: 100%;
  max-width: none;
  height: 183.076923%; /* Same 952px bitmap / 520px crop as the original SVG. */
  top: -21.923077%; /* Preserve the original 114px crop offset. */
  left: 0;
  transition: opacity 160ms ease;
}
.lpi-story-image[data-lpi-image-state="loading"] > img { opacity: 0; }
[data-lpi-image-state="loading"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: 8px;
  background: linear-gradient(105deg, rgba(85,223,239,.025) 25%, rgba(148,163,184,.10) 45%, rgba(85,223,239,.025) 65%);
  background-size: 220% 100%;
  animation: lpi-art-loading 1.6s ease-in-out infinite;
}
@keyframes lpi-art-loading { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  [data-lpi-image-state="loading"]::after { animation: none; }
  .lpi-story-image > img { transition: none; }
}

.lpi-story-art > .lpi-story-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 204px;
  object-fit: cover;
}

.lpi-story-mobile-flow { display: none; }

.lpi-landing { padding: 15px 24px 14px; }

.lpi-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lpi-landing-heading h5 { color: #f8fafc !important; letter-spacing: 0.04em; }

.lpi-replay {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(var(--lpi-cyan-rgb), 0.5);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.84);
  background: rgba(4, 10, 23, 0.86);
  font-size: 0.64rem !important;
  font-weight: 650;
  cursor: pointer;
}

.lpi-replay:hover { border-color: var(--lpi-cyan); color: #fff; }

.lpi-replay:focus-visible,
.lpi-response-card:focus-visible,
.lpi-slider:focus-visible,
.lpi-response-slider:focus-visible,
.lpi-science-link:focus-visible {
  outline: 2px solid var(--lpi-cyan);
  outline-offset: 3px;
}

.lpi-landing {
  --lpi-stage-height: clamp(240px, 38cqw, 360px);
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  background: var(--lpi-panel);
}

.lpi-landing-stage {
  --lpi-shoe-width: min(72cqw, 510px);
  position: relative;
  height: var(--lpi-stage-height);
  margin: 3px 0 6px;
  overflow: hidden;
  isolation: auto;
  background: transparent;
}

/* Let the floor light fade through the stage's bottom margin and padding.
   Keep the shoe stage clipped independently so the leg stays inside its frame. */
.lpi-landing::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: calc(var(--lpi-stage-height) + 20px);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 64% 30% at 50% 70%,
    rgba(var(--lpi-cyan-rgb), 0.23) 0%,
    rgba(var(--lpi-cyan-rgb), 0.11) 34%,
    rgba(var(--lpi-cyan-rgb), 0.035) 59%,
    rgba(var(--lpi-cyan-rgb), 0) 100%);
}

.lpi-landing-outcome {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 80px;
  max-width: 460px;
  margin: 0 auto;
  padding: 12px 4px;
  text-align: center;
}

.lpi-landing-outcome > strong {
  color: var(--lpi-state-color);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.3;
}

.lpi-explainer .lpi-landing-outcome > p {
  margin: 0;
  color: var(--lpi-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.lpi-motion-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 460px;
  margin: 12px auto 0;
  padding: 0;
  list-style: none;
}

.lpi-motion-progress > li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 2px;
  border-bottom: 2px solid rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lpi-phase-number { color: inherit; opacity: 0.65; font-size: 0.57rem; font-variant-numeric: tabular-nums; }

.lpi-motion-progress[data-lpi-motion-phase='landing'] [data-lpi-motion-step='landing'],
.lpi-motion-progress[data-lpi-motion-phase='catch'] [data-lpi-motion-step='catch'],
.lpi-motion-progress[data-lpi-motion-phase='result'] [data-lpi-motion-step='result'] {
  color: #fff;
  border-bottom-color: var(--lpi-cyan);
}

/* One continuous shoe mesh, shared with Shoes analysis. The artwork and
   midsole deform together, so the coloured sole cannot slip out of its outline. */
.lpi-shared-shoe {
  position: absolute;
  width: var(--lpi-shoe-width);
  aspect-ratio: 1373 / 1145;
  left: 46%;
  bottom: calc(18% - var(--lpi-shoe-width) * .157);
  transform: translateX(-50%);
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
}
.lpi-shared-shoe img, .lpi-shared-shoe canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lpi-shared-shoe canvas { left: -30%; top: -100%; width: 160%; height: 230%; opacity: 0; }
.lpi-shared-shoe[data-rendered='true'] img { opacity: 0; }
.lpi-shared-shoe[data-rendered='true'] canvas { opacity: 1; }
.lpi-motion-ground { position: absolute; top: 82%; left: 3%; right: 3%; border-top: 1px solid #503567; opacity: .5; z-index: 1; }
.lpi-motion-ripple { position: absolute; top: 82%; left: 65%; width: 30%; height: 12%; overflow: visible; opacity: 0; pointer-events: none; transform: translate(-50%, -40%); z-index: 1; }
.lpi-motion-ripple path { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; transform-origin: center; }
.lpi-motion-ripple path:first-child { opacity: .35; }
.lpi-motion-ripple path:nth-child(2) { stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lpi-motion-ripple path:last-child { opacity: 0; }
.lpi-motion-ripple[data-shape='rough'] path:nth-child(2),
.lpi-motion-ripple[data-shape='sunken'] path:nth-child(2) { stroke-dasharray: none; }
.lpi-motion-ripple[data-shape='sunken'] path { stroke-width: 1.5; }

.lpi-controls {
  padding: 0 22px 14px;
}

.lpi-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lpi-slider-panel,
.lpi-response-slider-panel {
  position: relative;
  min-width: 0;
  padding: 11px 14px 9px;
  border: 1px solid rgba(var(--lpi-cyan-rgb), 0.22);
  border-radius: 12px;
  background: rgba(7, 16, 31, 0.9);
}

.lpi-control-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.lpi-control-heading strong {
  color: #f8fafc;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.lpi-control-heading span {
  color: rgba(226, 232, 240, 0.54);
  font-size: 0.54rem;
  font-weight: 650;
}

.lpi-slider-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--lpi-cyan);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.lpi-slider-endpoints span { display: block; }
.lpi-slider-endpoints span:last-child { color: var(--lpi-amber); text-align: right; }
.lpi-slider-endpoints small { font-size: 0.48rem; font-weight: 700; }

.lpi-slider-wrap { position: relative; padding-top: 22px; }

.lpi-slider-track {
  position: absolute;
  top: 32px;
  right: 0;
  left: 0;
  height: 6px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.27);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.07);
}

.lpi-slider-zone {
  position: absolute;
  top: -2px;
  height: 10px;
  border-radius: 999px;
}

.lpi-slider-zone--good {
  left: var(--lpi-good-left);
  width: var(--lpi-good-width);
  border: 1px solid rgba(167, 243, 208, 0.9);
  background: var(--lpi-green);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2);
}

.lpi-slider-zone--great {
  left: var(--lpi-great-left);
  width: var(--lpi-great-width);
  z-index: 2;
  border: 1px solid rgba(233, 213, 255, 0.94);
  background: var(--lpi-purple);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.24);
}

.lpi-slider-value,
.lpi-response-slider-value {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 4px;
  padding: 4px 7px 5px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 7px;
  color: rgba(248, 250, 252, 0.94);
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.96));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.lpi-slider-value::after,
.lpi-response-slider-value::after {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1px;
  background: rgba(31, 41, 55, 0.98);
  content: '';
  transform: translateX(-50%) rotate(45deg);
}

.lpi-slider-value small,
.lpi-response-slider-value small {
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-transform: uppercase;
}

.lpi-slider-value strong,
.lpi-response-slider-value strong {
  color: rgba(248, 250, 252, 0.94);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.1;
}

.lpi-slider-value {
  top: -27px;
  left: clamp(32px, calc(var(--lpi-demand) * 100%), calc(100% - 32px));
  min-width: 64px;
}

.lpi-slider {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: grab;
}

.lpi-slider:active { cursor: grabbing; }

/* Page-wide text-field focus styles must not blur the match bands underneath. */
.lpi-explainer input[type='range'],
.lpi-explainer input[type='range']:focus {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.lpi-explainer input[type='range']:focus-visible {
  outline: 2px solid var(--lpi-cyan) !important;
  outline-offset: 5px;
  border-radius: 8px;
}

.lpi-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.lpi-slider::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border: 4px solid var(--lpi-amber);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--lpi-cyan);
  box-shadow: 0 0 0 3px rgba(var(--lpi-amber-rgb), 0.14), 0 0 10px rgba(var(--lpi-cyan-rgb), 0.26);
}

.lpi-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.lpi-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 5px solid var(--lpi-amber);
  border-radius: 50%;
  background: var(--lpi-cyan);
}

.lpi-slider-ticks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -2px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.58rem;
}

.lpi-slider-ticks span { text-align: center; }
.lpi-slider-ticks span:first-child { text-align: left; }
.lpi-slider-ticks span:last-child { text-align: right; }
.lpi-match-legend {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  margin: 9px 2px 0;
}

.lpi-match-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.54rem;
  font-weight: 700;
  white-space: nowrap;
}

.lpi-match-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.lpi-match-legend-item small { color: rgba(226, 232, 240, 0.54); font-size: 0.5rem; }
.lpi-match-legend-item--great i { background: var(--lpi-purple); box-shadow: 0 0 8px rgba(167, 139, 250, 0.72); }
.lpi-match-legend-item--good i { background: var(--lpi-green); box-shadow: 0 0 8px rgba(52, 211, 153, 0.68); }
.lpi-match-legend > strong { justify-self: end; color: var(--lpi-state-color); font-size: 0.56rem; text-align: right; }
.lpi-response { padding: 12px 22px 13px; }

.lpi-response > .lpi-section-heading { display: flex; }
.lpi-response #lpiResponseTitle { color: #f8fafc !important; }

.lpi-response-slider-endpoints,
.lpi-response-slider-scale {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.lpi-response-slider-endpoints {
  color: var(--lpi-cyan);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.lpi-response-slider-endpoints span { display: block; }
.lpi-response-slider-endpoints span:last-child { color: var(--lpi-amber); text-align: right; }
.lpi-response-slider-endpoints small { font-size: 0.48rem; font-weight: 700; }
.lpi-response-slider-wrap { position: relative; padding-top: 22px; }

.lpi-response-slider-track {
  position: absolute;
  top: 32px;
  right: 0;
  left: 0;
  height: 6px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.27);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.07);
}

.lpi-response-slider-zone {
  position: absolute;
  top: -2px;
  height: 10px;
  border-radius: 999px;
}

.lpi-response-slider-zone--good {
  left: var(--lpi-response-good-left);
  width: var(--lpi-response-good-width);
  border: 1px solid rgba(167, 243, 208, 0.9);
  background: var(--lpi-green);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2);
}

.lpi-response-slider-zone--great {
  left: var(--lpi-response-great-left);
  width: var(--lpi-response-great-width);
  z-index: 2;
  border: 1px solid rgba(233, 213, 255, 0.94);
  background: var(--lpi-purple);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.24);
}

.lpi-response-slider-value {
  top: -27px;
  left: clamp(34px, calc(var(--lpi-response) * 100%), calc(100% - 34px));
  min-width: 68px;
}

.lpi-response-slider {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: grab;
}

.lpi-response-slider:active { cursor: grabbing; }
.lpi-response-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: transparent; }
.lpi-response-slider::-moz-range-track { height: 8px; border-radius: 999px; background: transparent; }

.lpi-response-slider::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border: 4px solid var(--lpi-state-color);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #f8fafc;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lpi-state-color) 13%, transparent), 0 0 10px color-mix(in srgb, var(--lpi-state-color) 28%, transparent);
}

.lpi-response-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 5px solid var(--lpi-state-color);
  border-radius: 50%;
  background: #f8fafc;
}

.lpi-response-slider-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -2px;
  color: rgba(226, 232, 240, 0.58);
  font-size: 0.53rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lpi-response-slider-scale span { text-align: center; }
.lpi-response-slider-scale span:first-child { text-align: left; }
.lpi-response-slider-scale span:last-child { text-align: right; }

.lpi-response-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.lpi-response-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 9px 10px 8px;
  border: 1px solid rgba(var(--lpi-cyan-rgb), 0.22);
  border-radius: 11px;
  color: #f8fafc;
  background: rgba(5, 11, 25, 0.86);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lpi-response-card:hover { transform: translateY(-2px); }

.lpi-response-card[aria-pressed='true'] {
  border-color: var(--lpi-state-color);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lpi-state-color) 20%, transparent), inset 0 0 24px color-mix(in srgb, var(--lpi-state-color) 8%, transparent), 0 0 22px color-mix(in srgb, var(--lpi-state-color) 14%, transparent);
}

.lpi-response-label {
  display: block;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.lpi-response-card[aria-pressed='true'] .lpi-response-label { color: var(--lpi-state-color); }
.lpi-response-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 520;
  margin-top: 4px;
  object-fit: contain;
}

.lpi-response-copy {
  display: block;
  min-height: 2.6em;
  margin: 4px auto 0;
  max-width: 30ch;
  color: rgba(226, 232, 240, 0.64);
  font-size: 0.59rem;
  font-weight: 520;
  line-height: 1.3;
  text-align: center;
}

.lpi-response-card[aria-pressed='true'] .lpi-response-copy {
  color: rgba(241, 245, 249, 0.82);
}

.lpi-response-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  width: 28px;
  height: 28px;
  background-image: url('/images/lpi-compliance-icons.webp');
  background-size: 800% 100%;
  background-position: 100% 0;
}

.lpi-response-card[aria-pressed='true'] .lpi-response-check { display: block; }

.lpi-context { padding: 18px 22px 0; }
.lpi-context-panel { overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 16px; background: #040c19; }
.lpi-disclosure { box-sizing: border-box; border-top: 1px solid var(--lpi-line); }
.lpi-disclosure:first-child { border-top: 0; }
.lpi-disclosure > summary { position: relative; display: flex; align-items: center; gap: 16px; min-height: 76px; margin: 0; padding: 20px 28px; border-bottom: 1px solid transparent; color: #f8fafc; cursor: pointer; list-style: none; }
.lpi-disclosure > summary::-webkit-details-marker { display: none; }
.lpi-disclosure > summary::marker { content: ''; }
.lpi-disclosure > summary:hover { background: rgba(85, 223, 239, 0.025); }
.lpi-disclosure > summary:focus-visible { outline: 2px solid var(--lpi-cyan); outline-offset: -4px; border-radius: 6px; }
.lpi-disclosure-title { flex: 1; color: #f8fafc; font-size: 1.05rem; font-weight: 650; line-height: 1.4; }
.lpi-disclosure-icon { flex: 0 0 36px; width: 36px; height: 36px; object-fit: contain; }
.lpi-disclosure-icon .lpi-factor-icon { width: 36px; height: 36px; }
.lpi-disclosure-chevron { flex: 0 0 18px; width: 18px; height: 18px; margin-left: 10px; background: var(--lpi-cyan); -webkit-mask: url('/images/lpi-icons/chevron.svg') center / contain no-repeat; mask: url('/images/lpi-icons/chevron.svg') center / contain no-repeat; transition: transform 260ms cubic-bezier(.22, 1, .36, 1); }
.lpi-disclosure[open]:not([data-expanded='false']) > summary .lpi-disclosure-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .lpi-disclosure-chevron { transition: none; } }
.lpi-disclosure[open] > summary { border-bottom: 1px solid rgba(148, 163, 184, 0.1); }
.lpi-factor-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; padding: 30px 20px 32px; list-style: none; }
.lpi-shoe-factors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lpi-factor-list li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px; min-width: 0; padding: 0 12px; color: var(--lpi-muted); text-align: center; font-size: 0.875rem; line-height: 1.5; }
.lpi-factor-list li + li { border-left: 1px solid rgba(148, 163, 184, 0.15); }
.lpi-compliance-icon, .lpi-factor-icon { display: block; flex: 0 0 48px; width: 48px; height: 48px; color: var(--lpi-cyan); object-fit: contain; }
.lpi-compliance-icon { flex-basis: 64px; width: 64px; height: 64px; }
.lpi-factor-icon--metric {
  background-color: var(--lpi-cyan);
  -webkit-mask: var(--lpi-factor-image) center / contain no-repeat;
  mask: var(--lpi-factor-image) center / contain no-repeat;
}
.lpi-context-note { display: flex; align-items: flex-start; gap: 10px; margin: 14px 4px 2px; color: rgba(226, 232, 240, 0.6); font-size: 0.75rem; line-height: 1.6; }
.lpi-context-note > span { flex: 0 0 18px; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; font-size: 0.67rem; font-weight: 650; line-height: 1; }
.lpi-science-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 22px 20px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--lpi-cyan-rgb), 0.22);
  border-radius: 12px;
  color: inherit;
  background: linear-gradient(115deg, rgba(var(--lpi-cyan-rgb), 0.065), rgba(3, 9, 21, 0.78));
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.lpi-science-link:hover { background: rgba(var(--lpi-cyan-rgb), 0.055); }
.lpi-science-link strong { display: block; color: #f8fafc; font-size: 0.82rem; font-weight: 650; }
.lpi-science-link small { display: block; margin-top: 5px; color: rgba(226, 232, 240, 0.66); font-size: 0.67rem; line-height: 1.5; }
.lpi-science-icon { display: block; width: 64px; height: 64px; object-fit: contain; }
.lpi-science-arrow { color: var(--lpi-cyan); font-size: 1.2rem; }

@media (max-width: 760px) {
  .lpi-story,
  .lpi-landing,
  .lpi-controls,
  .lpi-response,
  .lpi-compliance,
  .lpi-slider-panel,
  .lpi-response-slider-panel { min-width: 0; max-width: 100%; }
  .bio-explanation-box--lpi .lpi-panel-intro { padding: 15px 16px 0; }
  .lpi-brand-mark img { width: 104px; }
  .bio-explanation-box--lpi .bio-expl-hero { margin: 12px 12px 10px; }
  .bio-expl-content--lpi .bio-expl-desc { padding: 0 16px 13px; }
  .lpi-story { padding: 14px 16px 9px; }
  .lpi-story-copy-grid { gap: 8px; margin-top: 10px; }
  .lpi-story-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 5px; }
  .lpi-step-number { width: 22px; height: 22px; font-size: 0.56rem; }
  .lpi-story-step h6 { font-size: 0.56rem !important; letter-spacing: 0.035em; }
  .lpi-story-art { min-height: 142px; margin-top: 3px; }
  .lpi-story-art > .lpi-story-image {
    position: relative;
    left: 50%;
    width: 520px;
    max-width: none;
    min-height: 142px;
    height: 142px;
    object-fit: cover;
    object-position: center;
    transform: translateX(-50%);
  }
  .lpi-landing { --lpi-stage-height: 248px; padding: 15px 14px 14px; }
  .lpi-landing-outcome { min-height: 88px; }
  .lpi-motion-progress { gap: 8px; }
  .lpi-controls { padding: 0 14px 12px; }
  .lpi-controls-grid { grid-template-columns: 1fr; gap: 9px; }
  .lpi-slider-panel,
  .lpi-response-slider-panel { padding-inline: 12px; }
  .lpi-match-legend { grid-template-columns: max-content max-content; justify-content: center; column-gap: 24px; }
  .lpi-match-legend > strong { grid-column: 1 / -1; justify-self: center; text-align: center; }
  .lpi-response { padding: 15px 14px 13px; }
  .lpi-response-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  /* Reserve a badge row so selection never covers a wrapped mobile title. */
  .lpi-response-card { display: block; padding: 34px 6px 8px; }
  .lpi-response-check { top: 6px; right: 6px; width: 24px; height: 24px; }
  .lpi-response-card > img { margin-top: 4px; }
  .lpi-response-label { display: flex; align-items: center; justify-content: center; min-height: 2.5em; font-size: 0.58rem; line-height: 1.25; letter-spacing: 0.035em; }
  .lpi-response-copy { min-height: 3.8em; font-size: 0.5rem; line-height: 1.25; }
  .lpi-context { padding: 14px 14px 0; }
  .lpi-disclosure > summary { gap: 10px; min-height: 68px; padding: 18px 16px; }
  .lpi-disclosure-icon, .lpi-disclosure-icon .lpi-factor-icon { flex-basis: 28px; width: 28px; height: 28px; }
  .lpi-science-icon { width: 52px; height: 52px; }
  .lpi-disclosure-title { font-size: 0.84rem; }
  .lpi-disclosure-chevron { flex-basis: 14px; width: 14px; height: 14px; margin-left: 0; }
  .lpi-factor-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 24px; padding: 24px 12px; }
  .lpi-factor-list li { padding: 0 8px; font-size: 0.74rem; }
  .lpi-factor-list li:nth-child(3n + 1) { border-left: 0; }
  .lpi-shoe-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpi-shoe-factors li:nth-child(3n + 1) { border-left: 1px solid rgba(148, 163, 184, 0.15); }
  .lpi-shoe-factors li:nth-child(2n + 1) { border-left: 0; }
  .lpi-context-note { font-size: 0.7rem; }
  .lpi-science-link { gap: 10px; margin: 12px 14px 16px; padding: 14px 12px; }
}

@media (max-width: 430px) {
  .lpi-story { padding: 14px 12px 12px; }
  .lpi-story-heading { padding-inline: 4px; }
  .lpi-story-copy-grid,
  .lpi-story-art { display: none; }
  .lpi-story-mobile-flow {
    --lpi-story-gap: 10px;
    --lpi-story-marker-size: 23px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--lpi-story-gap);
    margin-top: 12px;
  }
  .lpi-story-mobile-step {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(118px, 1.1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  /* Join each row at its midpoint, even when text makes rows different
     heights. Paint above the header background but below the solid badge. */
  .lpi-story-mobile-step::before {
    position: absolute;
    z-index: 2;
    top: calc(var(--lpi-story-gap) / -2);
    bottom: calc(var(--lpi-story-gap) / -2);
    left: calc((var(--lpi-story-marker-size) - 1px) / 2);
    width: 1px;
    background: rgba(var(--lpi-cyan-rgb), 0.38);
    pointer-events: none;
    content: '';
  }
  .lpi-story-mobile-step:first-child::before { top: 50%; }
  .lpi-story-mobile-step:last-child::before { bottom: 50%; }
  .lpi-story-mobile-step header {
    display: grid;
    grid-template-columns: var(--lpi-story-marker-size) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    /* These are captions, not the native app's frosted navigation header. */
    isolation: auto;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    min-width: 0;
    text-align: left;
  }
  .lpi-story-mobile-step .lpi-step-number {
    position: relative;
    z-index: 3;
    width: var(--lpi-story-marker-size);
    height: var(--lpi-story-marker-size);
    background: var(--lpi-panel);
    box-shadow: 0 0 12px rgba(var(--lpi-cyan-rgb), 0.2);
  }
  .lpi-story-mobile-step h6 {
    margin: 0;
    color: #f8fafc !important;
    font-size: 0.61rem !important;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0.025em;
    text-align: left;
    text-transform: uppercase;
  }
  .lpi-story-mobile-step p {
    margin: 3px 0 0;
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.54rem;
    line-height: 1.3;
    text-align: left;
  }
  .lpi-story-mobile-visual {
    position: relative;
    aspect-ratio: 15 / 13;
    overflow: hidden;
    border: 1px solid rgba(var(--lpi-cyan-rgb), 0.16);
    border-radius: 8px;
    background: var(--lpi-panel);
    mix-blend-mode: lighten;
  }
  .lpi-story-mobile-visual .lpi-story-image {
    position: absolute;
    top: 0;
    width: auto;
    max-width: none;
    height: 100%;
  }
  .lpi-story-mobile-step--landing .lpi-story-mobile-visual .lpi-story-image { left: 0; }
  .lpi-story-mobile-step--catch .lpi-story-mobile-visual .lpi-story-image { left: 50%; transform: translateX(-50%); }
  .lpi-story-mobile-step--match .lpi-story-mobile-visual .lpi-story-image { right: 0; }
  .lpi-section-heading { display: grid; }
  .lpi-landing-heading { display: flex; align-items: center; }
  .lpi-replay { justify-self: start; }
  .lpi-landing-stage { height: 234px; }
  .lpi-slider-endpoints { font-size: 0.51rem; }
  .lpi-slider-endpoints small { font-size: 0.43rem; }
  .lpi-slider-ticks { font-size: 0.52rem; }
  .lpi-match-legend { gap: 6px 10px; }
  .lpi-match-legend-item { font-size: 0.5rem; }
  .lpi-response-slider-endpoints { font-size: 0.51rem; }
  .lpi-response-slider-endpoints small { font-size: 0.43rem; }
  .lpi-compliance ul { grid-template-columns: 1fr 1fr; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .lpi-response-card,
  .lpi-motion-progress > li,
  .lpi-response-slider-track span { transition: none !important; }
}

/* Inner disclosures own their height animation; the profile shell follows it. */
#bioExplanationContainer.bio-lpi-resizing {
  max-height: none !important;
  transition: none !important;
}
