/* Strength page (owner 2026-10-29): exercises × Running form parts. Section cards are the shared
   plain-glass .ri-card. Everything inside is the app's own (owner, same day: "use our tiles"):
   the plan tiles are the Runs score cards (S1 glow tile + score arc), the parts are the Runs metric
   tiles, each matrix cell is a small S1 glow tile, bars are the level line, pills are .ri-tag.
   Amber = a part with room to improve ("To improve", as in Insights), never red. */

.sp-source {
  margin: var(--ri-space-2, 8px) 0 0;
  color: var(--ri-text-faint, rgba(255, 255, 255, 0.62));
  font-size: var(--ri-text-caption, 13px);
  line-height: var(--ri-leading-caption, 1.35);
}
.sp-source:empty { display: none; }

.sp-root { --sp-amber: 251, 191, 36; }

/* Bars glide like the app's other bars (grown on arrival, then on every run-type switch). */
.sp-root .ri-level-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 480ms cubic-bezier(0.2, 0, 0, 1);
}
.sp-outof {
  color: var(--ri-text-faint, rgba(255, 255, 255, 0.62));
  font-size: var(--ri-text-label, 12px);
  font-weight: var(--ri-weight-regular, 400);
  letter-spacing: 0;
}
.sp-root .ri-tag img { flex: none; width: 14px; height: 14px; object-fit: contain; }
.sp-root .ri-tag em { color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-style: normal; }

/* Run type picker, top right of the card head. */
.sp-focus { flex: none; margin-left: auto; }
.sp-focus-select {
  width: auto;
  min-width: 156px;
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: var(--ri-text-secondary, 14px);
}

/* ---------- Your plan: the Runs score card ---------- */
.sp-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ri-space-3, 12px);
}
/* Two classes: the shared button.ri-tile rule (display block, text-align inherit) must not win. */
.sp-plan .sp-plan-tile {
  --tile-color: rgb(var(--run-rgb, 46, 209, 244));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 21px 16px 18px;
  color: #e2e8f0;
  text-align: center;
}
.sp-plan-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 7px;
  overflow: hidden;
  color: var(--ri-text-strong, rgba(255, 255, 255, 0.96));
  font-size: var(--ri-text-caption, 13px);
  font-weight: var(--ri-weight-regular, 400);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sp-plan-top .run-it-icon { flex: none; width: 24px; height: 24px; }
.sp-plan-top > span { overflow: hidden; text-overflow: ellipsis; }
.sp-plan-arc { --arc-color: rgb(var(--run-rgb, 46, 209, 244)); }
.sp-plan-arc .ri-score-arc-value {
  color: #f8fafc;
  font-size: calc(var(--ri-text-metric-xl, 40px) * 0.85);
  font-variant-numeric: proportional-nums;
  font-weight: var(--ri-weight-light, 300);
  letter-spacing: -0.02em;
}
.sp-plan-arc .sp-outof { display: block; margin-top: 2px; }
.sp-plan-dose {
  margin-top: 2px;
  color: var(--ri-text-faint, rgba(255, 255, 255, 0.62));
  font-size: var(--ri-text-label, 12px);
  line-height: var(--ri-leading-label, 1.35);
  white-space: nowrap;
}
.sp-plan-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  margin-top: 12px;
}
.sp-plan-crown {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #facc15;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.45));
}
.sp-crown { display: block; width: 20px; height: 20px; }
.sp-plan-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: var(--ri-space-4, 16px) 0 0;
  color: var(--ri-text-faint, rgba(255, 255, 255, 0.62));
  font-size: var(--ri-text-caption, 13px);
}
.sp-plan-note .run-it-icon { width: 16px; height: 16px; }

/* ---------- Where you gain most: the Runs metric tile ---------- */
.sp-parts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--ri-space-3, 12px);
}
.sp-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 16px 16px 14px;
  text-align: center;
}
.sp-part-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  color: var(--ri-text-muted, rgba(255, 255, 255, 0.74));
  font-size: var(--ri-text-caption, 13px);
  white-space: nowrap;
}
.sp-part-top > span { overflow: hidden; text-overflow: ellipsis; }
.sp-part-art { flex: none; width: 20px; height: 20px; object-fit: contain; }
.sp-name-short { display: none; }
.sp-part-value {
  margin-top: 6px;
  font-size: var(--ri-text-metric-lg, 24px);
  font-variant-numeric: proportional-nums;
  font-weight: var(--ri-weight-light, 300);
  line-height: 1.1;
  transition: color 480ms ease;
}
.sp-part-value .sp-outof { margin-left: 2px; }
.sp-part-band { margin-top: 2px; color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-label, 12px); }
.sp-part-bar { display: block; width: 100%; max-width: 160px; height: 4px; margin-top: 14px; border-radius: 999px; }
.sp-part-tag { display: flex; justify-content: center; min-height: 24px; margin-top: 12px; }

/* ---------- The matrix ---------- */
.sp-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 0 0 var(--ri-space-3, 12px);
  color: var(--ri-text-faint, rgba(255, 255, 255, 0.62));
  font-size: var(--ri-text-caption, 13px);
}
.sp-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sp-legend-tile { display: inline-block; width: 22px; height: 14px; padding: 0; border-radius: 5px; }
.sp-legend-tile + .sp-legend-tile { margin-right: 2px; }
.sp-matrix-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--ri-space-2, 8px)); padding: 0 var(--ri-space-2, 8px); }
.sp-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--ri-text-secondary, 14px);
}
.sp-matrix th,
.sp-matrix td { padding: 0; text-align: center; vertical-align: middle; }
.sp-matrix thead th {
  padding: 0 4px 12px;
  color: var(--ri-text-faint, rgba(255, 255, 255, 0.62));
  font-size: var(--ri-text-caption, 13px);
  font-weight: var(--ri-weight-regular, 400);
}
.sp-matrix .sp-col-ex { text-align: left; padding-left: 12px; }
.sp-col { width: 104px; }
.sp-col-match { width: 120px; }
.sp-col-head { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-col-art { width: 24px; height: 24px; object-fit: contain; }
.sp-col-name { white-space: nowrap; transition: color 300ms ease; }
.sp-col.is-priority .sp-col-name { color: rgb(var(--sp-amber)); }
.sp-col-score { justify-content: center; min-width: 40px; }

.sp-row > * { border-top: 1px solid rgba(46, 209, 244, 0.08); }
.sp-row-name { text-align: left; }
.sp-row-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ri-text-strong, rgba(255, 255, 255, 0.96));
  font: inherit;
  font-weight: var(--ri-weight-light, 300);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease;
}
@media (hover: hover) {
  .sp-row-toggle:hover { background: rgba(46, 209, 244, 0.08); }
}
.sp-row-toggle:focus { outline: none; }
.sp-row-toggle:focus-visible { outline: 2px solid var(--ri-cyan, #2ED1F4); outline-offset: -2px; }

.sp-row-icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.sp-row-icon .run-it-icon { width: 22px; height: 22px; }
.sp-row-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sp-row-crown { flex: none; color: #facc15; }
.sp-row-crown .sp-crown { width: 16px; height: 16px; }
.sp-row-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0.5;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.is-open .sp-row-chevron { transform: rotate(180deg); }

/* Each cell: a small S1 glow tile (ui-components.css .ri-tile--glow); its light (--tile-lift) and
   edge say how much the exercise works on what the runner needs, and glide on a switch. */
.sp-cell { height: 52px; }
.sp-heat {
  display: block;
  height: 32px;
  margin: 0 8px;
  padding: 0;
  border-radius: 8px;
}

.sp-matrix td.sp-match { padding-right: 12px; white-space: nowrap; }
.sp-match strong {
  display: inline-block;
  min-width: 28px;
  color: var(--ri-text-strong, rgba(255, 255, 255, 0.96));
  font-size: var(--ri-text-secondary, 14px);
  font-variant-numeric: proportional-nums;
  font-weight: var(--ri-weight-light, 300);
  text-align: right;
}
.sp-match-bar {
  display: inline-block;
  width: 64px;
  height: 4px;
  margin-right: 12px;
  border-radius: 999px;
  vertical-align: middle;
}

/* The dropdown under a row: opened and closed by RunItMotion (height + fade). */
.sp-matrix .sp-detail-row > td { padding: 0; text-align: left; }
.sp-detail-wrap { padding: 0 12px 16px; }
/* The app's inner-soft-glow card (the toast / popover surface, pro-app.css .run-toast). */
.sp-detail {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(46, 209, 244, 0.26);
  border-radius: var(--ri-radius-md, 12px);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(46, 209, 244, 0.22), rgba(46, 209, 244, 0) 66%),
    radial-gradient(120% 60% at 50% 110%, rgba(46, 209, 244, 0.10), rgba(46, 209, 244, 0) 70%),
    var(--ri-surface-overlay, #120F22);
  box-shadow: inset 0 0 24px rgba(46, 209, 244, 0.12);
}
.sp-detail-why {
  margin: 0;
  color: var(--ri-text-strong, rgba(255, 255, 255, 0.96));
  font-size: var(--ri-text-secondary, 14px);
}
.sp-detail-how {
  margin: 0;
  color: var(--ri-text-muted, rgba(255, 255, 255, 0.74));
  font-size: var(--ri-text-secondary, 14px);
  line-height: 1.45;
}
.sp-detail-parts { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  color: var(--ri-text-faint, rgba(255, 255, 255, 0.62));
  font-size: var(--ri-text-caption, 13px);
}
.sp-detail-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.sp-detail-meta .run-it-icon { flex: none; width: 16px; height: 16px; }
.sp-detail-meta a { color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.25); }
.sp-detail-meta a:hover { color: #fff; }
.sp-detail-link { justify-self: start; }

/* How we pick: a link that opens with the same motion. */
.sp-how { margin-top: var(--ri-space-4, 16px); color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); }
.sp-how-toggle { gap: 6px; color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); }
.sp-how-toggle:hover { color: #fff; }
.sp-how-toggle .run-it-icon { width: 16px; height: 16px; }
.sp-how-chevron { transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1); }
.sp-how-toggle[aria-expanded="true"] .sp-how-chevron { transform: rotate(180deg); }
.sp-how-body { display: grid; gap: 12px; padding-top: 12px; }
.sp-how-body[hidden] { display: none; }
.sp-how-body p { margin: 0; line-height: 1.45; }
.sp-how-body a { color: #8ee1f0; }
.sp-how-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sp-how-eq > span {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(46, 209, 244, 0.18);
}
.sp-how-eq b { color: var(--ri-text-strong, rgba(255, 255, 255, 0.96)); font-weight: 400; }
.sp-how-eq i { color: var(--ri-cyan, #2ED1F4); font-style: normal; font-size: 18px; }

/* ---------- Training log (owner 2026-10-29: "record which training did you do") ---------- */
.sp-log-ask {
  margin: 0 0 var(--ri-space-3, 12px);
  color: var(--ri-text-muted, rgba(255, 255, 255, 0.74));
  font-size: var(--ri-text-secondary, 14px);
}
.sp-log-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}
.sp-log-check {
  display: grid;
  grid-template-columns: 28px 24px minmax(0, 1fr);
  grid-template-areas: "box icon name" "box icon dose";
  align-items: center;
  column-gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: box-shadow 150ms ease, background-color 150ms ease;
}
.sp-log-check:has(input:checked) {
  background: rgba(52, 211, 153, 0.06);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.4), inset 0 0 14px rgba(52, 211, 153, 0.1);
}
.sp-log-check .check-toggle { grid-area: box; }
.sp-log-check-icon { grid-area: icon; display: grid; place-items: center; }
.sp-log-check-icon .run-it-icon { width: 20px; height: 20px; }
.sp-log-check-name { grid-area: name; color: var(--ri-text-strong, rgba(255, 255, 255, 0.96)); font-size: var(--ri-text-secondary, 14px); line-height: 1.3; }
.sp-log-check-dose { grid-area: dose; color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); }
/* The onboarding's square glass tick box with the green sprite check (owner 2026-10-20), scoped. */
.sp-log .check-toggle { display: inline-block; position: relative; width: 28px; height: 28px; flex: 0 0 28px; }
.sp-log .check-toggle input[type="checkbox"] { position: absolute; inset: 0; margin: 0; width: 28px; height: 28px; opacity: 0; cursor: pointer; z-index: 1; }
.sp-log .check-toggle-surface { position: absolute; inset: 0; border-radius: 7px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); box-shadow: inset 0 -5.25px 13.125px rgba(148, 163, 184, 0.12), inset 0 5.25px 13.125px rgba(255, 255, 255, 0.06); pointer-events: none; transition: box-shadow 150ms ease; }
.sp-log .check-toggle-surface::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: rgba(148, 163, 184, 0.24); -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: background 150ms ease; }
.sp-log .check-toggle-mark { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; --icon-muted: #a7f3d0; --icon-accent: #a7f3d0; opacity: 0; transition: opacity 150ms ease; }
.sp-log .check-toggle input:checked + .check-toggle-surface { box-shadow: inset 0 -5.25px 14.875px rgba(52, 211, 153, 0.34), inset 0 5.25px 14.875px rgba(110, 231, 183, 0.28), 0 0 0 1px rgba(52, 211, 153, 0.12); }
.sp-log .check-toggle input:checked + .check-toggle-surface::before { background: linear-gradient(90deg, rgba(110, 231, 183, 0.78), rgba(52, 211, 153, 0.84) 50%, rgba(16, 185, 129, 0.78)); }
.sp-log .check-toggle input:checked + .check-toggle-surface .check-toggle-mark { opacity: 1; }
.sp-log .check-toggle input:focus-visible + .check-toggle-surface { outline: 2px solid #2ed1f4; outline-offset: 4px; }
@media (forced-colors: active) {
  .sp-log .check-toggle input[type="checkbox"] { opacity: 1; appearance: auto; }
  .sp-log .check-toggle-surface { display: none; }
}
.sp-log-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: var(--ri-space-4, 16px);
}
.sp-log-field { display: grid; gap: 6px; flex: 1 1 220px; min-width: 0; }
.sp-log-field--day { flex: 0 1 180px; }
.sp-log-label { color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); }
.sp-log-save { flex: none; gap: 8px; }
.sp-log-save .run-it-icon { width: 16px; height: 16px; }
.sp-log-error { margin: 8px 0 0; }
.sp-log-week.is-met { color: rgb(52, 211, 153); }
.sp-log-history {
  margin-top: var(--ri-space-6, 24px);
  padding-top: var(--ri-space-4, 16px);
  background: linear-gradient(90deg, rgba(46, 209, 244, 0.25), transparent) left top / 100% 1px no-repeat;
}
.sp-log-list { display: grid; margin: 0; padding: 0; list-style: none; }
.sp-log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 0;
}
.sp-log-entry + .sp-log-entry { border-top: 1px solid rgba(46, 209, 244, 0.08); }
.sp-log-day { flex: 0 0 116px; color: var(--ri-text-muted, rgba(255, 255, 255, 0.74)); font-size: var(--ri-text-secondary, 14px); }
.sp-log-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; min-width: 0; }
.sp-log-remove { flex: none; margin-left: auto; }

/* The latest sessions sit beside the calendar on wide screens, under it on narrow ones. */
@media (min-width: 1024px) {
  .sp-log-history { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 32px; align-items: start; }
  .sp-log-history .sp-cal { margin-bottom: 0; }
  .sp-log-history .sp-log-entry { flex-wrap: wrap; gap: 8px; }
  .sp-log-history .sp-log-day { flex: 1 1 auto; }
  .sp-log-history .sp-log-chips { order: 3; flex: 1 1 100%; }
}
/* Four weeks, a lit day per session. */
.sp-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  max-width: 560px;
  margin-bottom: var(--ri-space-4, 16px);
}
.sp-cal-head { color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); text-align: center; }
.sp-cal-day {
  --done: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 1.6;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--ri-text-faint, rgba(255, 255, 255, 0.62));
  font-size: var(--ri-text-caption, 13px);
}
.sp-cal-day b { font-weight: 400; }
.sp-cal-day.is-done {
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(46, 209, 244, calc(0.25 + 0.35 * var(--done))), transparent 75%),
    rgba(46, 209, 244, calc(0.08 + 0.12 * var(--done)));
  box-shadow: inset 0 0 0 1px rgba(46, 209, 244, 0.55), 0 0 12px rgba(46, 209, 244, 0.25);
  color: #fff;
}
.sp-cal-day.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.sp-cal-day.is-done.is-today { box-shadow: inset 0 0 0 1px #fff, 0 0 12px rgba(46, 209, 244, 0.35); }
.sp-cal-day.is-future { opacity: 0.35; }

/* Under the log (owner 2026-10-29): not liable for injury, only do what feels comfortable. */
.sp-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.05);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3);
}
/* Right under the log card, not a section of its own. */
.sp-log + .sp-disclaimer { margin-top: calc(12px - var(--ri-section-gap, 40px)); }
.sp-disclaimer-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.sp-disclaimer p {
  margin: 0;
  color: var(--ri-text-muted, rgba(255, 255, 255, 0.74));
  font-size: var(--ri-text-caption, 13px);
  line-height: 1.5;
}
.sp-disclaimer strong { color: #fff; font-weight: 400; }

/* No scores yet: the real cards, sharp but grey and faint, then the arrow link bottom right
   (the Dashboard's empty cards, owner 2026-10-20). The log works without runs. */
.sp-ghost-wrap { display: flex; flex-direction: column; gap: var(--ri-section-gap, 32px); }
.sp-ghost {
  display: flex;
  flex-direction: column;
  gap: inherit;
  filter: grayscale(1);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.sp-ghost-link { align-self: flex-end; margin-top: calc(-1 * var(--ri-space-4, 16px)); }

/* ---------- Loading ---------- */
.sp-skel-title { display: block; width: 180px; height: 22px; }
.sp-skel-tile { height: 214px; border-radius: 12px; }
.sp-skel-matrix { height: 420px; border-radius: 12px; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .sp-log-checks { grid-template-columns: minmax(0, 1fr); }
  .sp-log-field--day { flex: 1 1 140px; }
  .sp-log-save { flex: 1 1 100%; justify-content: center; }
  .sp-log-entry { flex-wrap: wrap; gap: 8px; }
  .sp-log-day { flex: 1 1 auto; }
  .sp-log-chips { order: 3; flex: 1 1 100%; }
  .sp-cal { gap: 4px; }
  .sp-cal-day { aspect-ratio: 1; border-radius: 8px; }
  .sp-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sp-plan-tile { padding: 14px 6px 12px; }
  .sp-plan-top { flex-direction: column; gap: 3px; white-space: normal; line-height: 1.2; min-height: 2.4em; }
  .sp-plan-top .run-it-icon { width: 20px; height: 20px; }
  .sp-plan-arc .ri-score-arc-value { font-size: calc(var(--ri-text-metric-xl, 32px) * 0.7); }
  .sp-plan-dose { white-space: normal; }
  .sp-plan-type { display: none; }
  .sp-name-full { display: none; }
  .sp-name-short { display: inline; }
  .sp-plan-tags { display: none; }
  .sp-plan-crown { top: 8px; right: 8px; }
  .sp-crown { width: 16px; height: 16px; }
  .sp-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sp-part { padding: 12px 10px; }
  .sp-focus-select { min-width: 0; }
  .sp-col-name, .sp-match-bar, .sp-row-icon { display: none; }
  .sp-col { width: auto; }
  .sp-col-match { width: 44px; }
  .sp-col-score { min-width: 34px; padding: 3px 6px; }
  .sp-matrix thead th { padding: 0 2px 10px; }
  .sp-row-toggle { gap: 8px; padding: 8px 6px; font-size: var(--ri-text-secondary, 14px); }
  .sp-row-chevron { width: 14px; height: 14px; margin-left: 4px; }
  .sp-cell { height: 48px; }
  .sp-heat { height: 28px; margin: 0 3px; }
  .sp-matrix td.sp-match { padding-right: 4px; }
  .sp-detail-wrap { padding: 0 0 12px; }
}

/* Numbers stay thin (prod typography: Light 300, proportional digits); <strong> must not bolden them. */
.sp-root strong[data-count] { font-weight: inherit; }

/* Exercise icons in their part's colour (two-tone sprite: the accent is the condition colour). */
.sp-plan-icon, .sp-row-icon { display: inline-grid; place-items: center; }
.sp-plan-icon .run-it-icon { width: 24px; height: 24px; }

/* ---------- Dropdown content: what to do, at a glance (no tags) ---------- */
.sp-dd { display: grid; gap: 14px; }
.sp-dd-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: sp-step; }
.sp-dd-steps li {
  counter-increment: sp-step;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ri-text-strong, rgba(255, 255, 255, 0.96));
  font-size: var(--ri-text-secondary, 14px);
  line-height: 1.45;
}
.sp-dd-steps li::before {
  content: counter(sp-step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46, 209, 244, 0.12);
  box-shadow: inset 0 0 0 1px rgba(46, 209, 244, 0.45), 0 0 10px rgba(46, 209, 244, 0.2);
  color: #fff;
  font-size: var(--ri-text-label, 12px);
}
.sp-dd--cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 24px; }
.sp-dd--cols h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); font-weight: 400; }
.sp-dd--cols h4 .run-it-icon { width: 16px; height: 16px; }
.sp-dd-big { margin: 0; color: #fff; font-size: var(--ri-text-subtitle, 18px); font-weight: 300; }
.sp-dd-note { margin: 4px 0 0; color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); }
.sp-dd-trains { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sp-dd-trains li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: var(--ri-text-secondary, 14px); }
.sp-dd-art { width: 20px; height: 20px; object-fit: contain; }
.sp-dd-part { color: rgb(var(--part-rgb)); }
.sp-dd-effect { color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); }
@media (max-width: 640px) {
  .sp-dd--cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
.sp-art-sprite { display: inline-grid; place-items: center; }
.sp-art-sprite .run-it-icon { width: 100%; height: 100%; }

/* Dropdown spacing (owner 2026-10-29: "SPACING, improve this"): the card sits clear of its row,
   the three columns breathe with hairlines between them, each part reads as one line
   (name, then what the exercise does for it), and the Stryd link has its own footer. */
.sp-detail-wrap { padding: 8px 12px 20px; }
.sp-detail { gap: 0; padding: 20px 24px; }
.sp-dd--cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 0; }
.sp-dd--cols > div { padding: 0 24px; }
.sp-dd--cols > div:first-child { padding-left: 0; }
.sp-dd--cols > div:last-child { padding-right: 0; }
.sp-dd--cols > div + div { box-shadow: inset 1px 0 0 rgba(46, 209, 244, 0.12); }
.sp-dd--cols h4 { margin-bottom: 14px; }
.sp-dd-steps { gap: 12px; }
.sp-dd-big { line-height: 1.2; }
.sp-dd-note { margin-top: 6px; }
.sp-dd-trains { gap: 12px; }
.sp-dd-trains li { grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; }
.sp-dd-trains .sp-dd-effect { grid-column: 2; line-height: 1.2; }
.sp-detail .sp-detail-link { margin-top: 18px; padding-top: 14px; justify-self: stretch; box-shadow: inset 0 1px 0 rgba(46, 209, 244, 0.12); }
@media (max-width: 640px) {
  .sp-detail-wrap { padding: 6px 0 16px; }
  .sp-detail { padding: 16px; }
  .sp-dd--cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sp-dd--cols > div { padding: 0; }
  .sp-dd--cols > div + div { box-shadow: none; padding-top: 18px; border-top: 1px solid rgba(46, 209, 244, 0.12); }
}

/* What each tile says, in its own colour. */
.sp-heat { display: flex; align-items: center; justify-content: center; color: var(--tile-color); }
.sp-cell-dots { display: inline-flex; gap: 5px; }
.sp-cell-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.sp-cell-dots i.is-on { background: currentColor; box-shadow: 0 0 6px currentColor; }

.sp-legend .sp-legend-tile { display: inline-flex; width: 44px; height: 20px; margin: 0; }
.sp-legend .sp-cell-dots { gap: 3px; }
.sp-legend .sp-cell-dots i { width: 5px; height: 5px; }

/* Run-type dots (options, ?dots=a|b): the app's run colours. */
.sp-cell-dots--runs i { background: rgba(var(--dot-rgb), calc(0.12 + 0.88 * var(--lit, 0))); box-shadow: 0 0 calc(8px * var(--lit, 0)) rgba(var(--dot-rgb), var(--lit, 0)); }
.sp-cell-dots--tinted i.is-on { background: rgb(var(--dot-rgb)); box-shadow: 0 0 6px rgb(var(--dot-rgb)); }
.sp-legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--dot-rgb)); box-shadow: 0 0 6px rgb(var(--dot-rgb)); }
/* Run-type chips (option c): the selected chip lit in its run colour. */

/* The Stryd link (owner 2026-10-29: "SPACING again"): left, under its own hairline, with room. */
.sp-detail .sp-dd:has(+ :is(.sp-detail-link, .sp-detail-links)) { padding-bottom: 20px; box-shadow: inset 0 -1px 0 rgba(46, 209, 244, 0.12); }
.sp-detail .sp-detail-link { justify-self: start; margin-top: 16px; padding-top: 0; box-shadow: none; gap: 6px; }

/* Phones (owner: "make sure this FITS mobile"): a tighter row, small icons, dots that fit the tile. */
@media (max-width: 640px) {
  .sp-row-toggle { gap: 6px; padding: 8px 4px; font-size: var(--ri-text-caption, 13px); line-height: 1.25; }
  .sp-row-icon { width: 18px; height: 18px; }
  .sp-row-icon .run-it-icon { width: 18px; height: 18px; }
  .sp-row-crown .sp-crown { width: 13px; height: 13px; }
  .sp-row-chevron { width: 12px; height: 12px; margin-left: 2px; }
  .sp-cell { height: 44px; }
  .sp-heat { height: 26px; margin: 0 2px; border-radius: 7px; }
  .sp-cell-dots { gap: 3px; }
  .sp-cell-dots i { width: 5px; height: 5px; }
  .sp-col-art { width: 20px; height: 20px; }
  .sp-col-score { min-width: 30px; height: 22px; padding: 2px 5px; font-size: var(--ri-text-label, 12px); }
  .sp-match strong { min-width: 24px; font-size: var(--ri-text-caption, 13px); }
  .sp-legend { gap: 6px 12px; }
  .sp-legend .sp-legend-tile { width: 36px; height: 18px; }
  .sp-detail .sp-detail-link { margin-top: 14px; }
}


/* Run type = a filter (owner 2026-10-29): a filter button + the app's dropdown (look B rule in
   ui-components.css styles .catalogue-select-menu); phones get the filter bar + sheet instead. */
.sp-filter { position: relative; flex: none; margin-left: auto; }
.sp-filter-btn { gap: 8px; }
.sp-filter-chevron { width: 14px; height: 14px; opacity: 0.7; transition: transform 200ms ease; }
.sp-filter-btn[aria-expanded="true"] .sp-filter-chevron { transform: rotate(180deg); }
.sp-filter-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 200px; overflow: hidden; }
.sp-filter-menu[hidden] { display: none; }
.sp-filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap; }
.sp-filter-bar { display: none; }
.sp-sheet-field { display: grid; gap: 6px; }
@media (max-width: 640px) {
  .sp-filter { display: none; }
  .sp-filter-bar { display: block; margin-bottom: var(--ri-space-4, 16px); }
}

/* Phones: the matrix keeps its columns when a row opens or a run type changes (owner: "the columns
   SHOULDN'T JUMP"), and every row's arrow sits in one line on the right of the name. */
@media (max-width: 640px) {
  .sp-matrix { table-layout: fixed; }
  .sp-matrix .sp-col-ex { width: auto; }
  .sp-matrix .sp-col { width: 40px; }
  .sp-matrix .sp-col-match { width: 40px; }
  .sp-row-toggle { width: 100%; }
  .sp-row-label { flex: 1 1 auto; min-width: 0; }
  .sp-row-chevron { margin-left: auto; }
  .sp-row-toggle:focus:not(:focus-visible) { outline: none; }
}

/* The app's Beta tag (My Shoes Drift, Runs optimal form), beside Your plan (owner 2026-10-29). */
.sp-beta { flex: none; font-size: var(--ri-text-pill, 12px); }

/* Two Stryd links side by side: the video and the blog write-up. */
.sp-detail-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.sp-detail-links .sp-detail-link { margin-top: 0; }

/* How we pick (owner 2026-10-29): the app's soft-inner-glow card (the toast / popover surface),
   opened in place on desktop and as a popup on phones. */
.sp-how-body:not([hidden]),
.sp-how-dialog {
  border: 1px solid rgba(46, 209, 244, 0.26);
  border-radius: var(--ri-radius-md, 12px);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(46, 209, 244, 0.22), rgba(46, 209, 244, 0) 66%),
    radial-gradient(120% 60% at 50% 110%, rgba(46, 209, 244, 0.10), rgba(46, 209, 244, 0) 70%),
    var(--ri-surface-overlay, #120F22);
  box-shadow: inset 0 0 24px rgba(46, 209, 244, 0.12);
}
.sp-how .sp-how-body { margin-top: 12px; padding: 16px 18px; }
.sp-how-dialog { --ri-dialog-width: 440px; padding: 20px; box-shadow: var(--ri-shadow-overlay, 0 16px 48px rgba(0, 0, 0, 0.5)), inset 0 0 24px rgba(46, 209, 244, 0.12); }
.sp-how-dialog .sp-how-body { display: grid; gap: 14px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--ri-text-muted, rgba(255, 255, 255, 0.74)); font-size: var(--ri-text-secondary, 14px); }
.sp-how-dialog .sp-how-body p { margin: 0; line-height: 1.5; }
.sp-how-dialog .sp-how-body a { color: #8ee1f0; }
.sp-how-dialog-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sp-how-dialog-head > .run-it-icon { width: 20px; height: 20px; }
.sp-how-dialog-head .ri-btn--close { margin-left: auto; }
.sp-how-dialog .sp-how-eq { flex-direction: column; align-items: stretch; }
.sp-how-dialog .sp-how-eq i { text-align: center; }

/* While a row opens, rows slide under the pointer: their hover glow rests so nothing flickers. */
.sp-matrix.is-moving tbody { pointer-events: none; }

/* How we pick in tiles: the app's S1 glow tile for every block. */
.sp-how-eq > .sp-how-tile,
.sp-how-notes > .sp-how-tile {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 0;
  background: none;
  --tile-lift: 0.25;
}
.sp-how-tile.is-result { --tile-lift: 0.7; }
.sp-how-tile b { color: var(--ri-text-strong, rgba(255, 255, 255, 0.96)); font-weight: 400; }
.sp-how-tile small { color: var(--ri-text-muted, rgba(255, 255, 255, 0.66)); font-size: 12px; line-height: 1.45; }
.sp-how-tile a { color: #8ee1f0; }
.sp-how-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-how-dialog .sp-how-eq { gap: 6px; }
.sp-how-dialog .sp-how-eq i { font-size: 16px; line-height: 1; }
.sp-how-dialog .sp-how-notes { grid-template-columns: minmax(0, 1fr); }

/* Train safely: the X closes it (remembered in this browser). */
.sp-disclaimer p { flex: 1 1 auto; }
.sp-disclaimer-close { flex: none; margin: -4px -6px -4px 0; }

/* The row card spans the whole table, edge to edge with the row lines (owner 2026-10-29). */
.sp-matrix .sp-detail-wrap { padding: 8px 0 20px; }
.sp-matrix .sp-detail-row > td { padding-left: 0; padding-right: 0; }
@media (max-width: 640px) { .sp-matrix .sp-detail-wrap { padding: 6px 0 16px; } }

/* Day field on iOS (owner 2026-10-29: the date sat at the top). iOS draws a styled date input's
   value box top-aligned with its own min-height; give the value the field's full inner height as
   its line so it sits centred, and keep it left like the other fields. */
.sp-log input[type="date"].ri-input {
  padding-top: 0;
  padding-bottom: 0;
  line-height: calc(var(--ri-control-md, 40px) - 2px);
}
/* Phones: the shared fields are 44 px there (ui-components.css). */
@media (max-width: 640px) {
  .sp-log input[type="date"].ri-input { line-height: 42px; }
}
.sp-log input[type="date"].ri-input::-webkit-date-and-time-value {
  min-height: 0;
  margin: 0;
  line-height: inherit;
  text-align: left;
}

/* How we pick = parts-tile structure: icon + label, one readout, caption. */
.sp-how-eq > .sp-how-tile, .sp-how-notes > .sp-how-tile { display: flex; flex: 1 1 0; min-width: 0; padding: 14px 12px; gap: 0; }
.sp-how-eq { flex-wrap: nowrap; align-items: stretch; }
.sp-how-eq > i { align-self: center; }
.sp-how-value { display: flex; align-items: center; justify-content: center; min-height: 40px; font-size: 22px; }
.sp-how-value .sp-how-dots { display: inline-flex; width: 56px; height: 26px; }
.sp-how-tile .sp-part-band a { color: #8ee1f0; }
.sp-how-tile .sp-part-band { text-align: center; }
.sp-how-dialog .sp-how-eq { flex-direction: column; flex-wrap: nowrap; }
/* Phone popup: compact tiles, and the popup scrolls when it is taller than the screen. */
.sp-how-dialog { max-height: calc(100dvh - var(--ri-popup-gap-top, 24px) - var(--ri-popup-gap-bottom, 24px)); overflow-y: auto; overscroll-behavior: contain; }
.sp-how-dialog .sp-how-tile { padding: 10px 12px; }
.sp-how-dialog .sp-how-value { min-height: 32px; font-size: 20px; }
.sp-how-dialog .sp-how-eq > i { margin: -2px 0; }

/* Legend dots stand alone, in the matrix's cyan. */
.sp-legend-dots { display: inline-flex; align-items: center; font-style: normal; }
.sp-legend .sp-legend-dots .sp-cell-dots { gap: 4px; }
.sp-legend .sp-legend-dots .sp-cell-dots i { width: 7px; height: 7px; }

/* Safety note: three short paragraphs; folded = one line that stays, with "Read the full note". */
.sp-disclaimer-text { display: grid; gap: 6px; flex: 1 1 auto; min-width: 0; }
.sp-disclaimer--mini { align-items: center; padding: 10px 16px; }
.sp-disclaimer--mini p { flex: 1 1 auto; }
.sp-disclaimer--mini .sp-disclaimer-icon { margin-top: 0; }
.sp-disclaimer-more { flex: none; font-size: var(--ri-text-caption, 13px); }
@media (max-width: 640px) {
  .sp-disclaimer--mini { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 4px 12px; }
  .sp-disclaimer--mini .sp-disclaimer-more { grid-column: 2; justify-self: start; padding: 0; min-height: 0; }
}
/* Every exercise card ends with the short safety line. */
.sp-detail-safety { margin-left: auto; color: var(--ri-text-faint, rgba(255, 255, 255, 0.55)); font-size: var(--ri-text-caption, 13px); align-self: center; }
@media (max-width: 640px) { .sp-detail-safety { margin-left: 0; flex-basis: 100%; } }

/* Insights sits right of the run-type filter (owner 2026-10-29); the filter keeps the push. */
.sp-plan-card .ri-card-head > #spInsights { margin-left: 12px; }

/* Back to dashboard: phones only, under the title (the run page's "Back to activity log" link). */
.sp-back { display: none; }
@media (max-width: 640px) {
  .sp-back { display: inline-flex; align-items: center; justify-content: flex-start; align-self: flex-start; margin: -4px 0 4px; padding-left: 0; padding-right: 0; white-space: nowrap; }
  .sp-back-arrow { width: 16px; height: 16px; flex: none; margin-right: 6px; transition: transform var(--ri-dur-fast, 150ms) var(--ri-ease-standard, ease); }
  .sp-back:active .sp-back-arrow { transform: translateX(-3px); }
}
@media (max-width: 640px) {
  /* The run page's phone head spacing (owner 2026-10-29: "same spacing as my run"), measured there:
     8 px from the title to the link, 20 px from the link to the lead. */
  .sp-back { display: flex; width: max-content; max-width: 100%; margin: 8px 0 20px; }
  .sp-back + .ri-page-lead { margin-top: 0; }
  /* No filter button on phones: Insights takes the right edge again. */
  .sp-plan-card .ri-card-head > #spInsights { margin-left: auto; }
}

/* Race + distances = Pro: the Shoes page's Pro tag on the right of the row (owner 2026-10-29). */
.sp-filter-option.is-pro { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ri-tag.sp-pro-tag { --tag-rgb: 148, 163, 184; flex: none; padding: 1px 8px; }
.sp-pro-tag img { display: block; width: 36px; height: 10px; max-width: none; object-fit: cover; object-position: 50% 52%; }
.sp-filter-menu { min-width: 220px; }

/* Run-type rows (owner 2026-10-29): the label takes the free space, so the selected check sits at
   the right edge; on Pro rows the check comes just before the Pro tag at the far right. */
.sp-filter-option > span:first-child { flex: 1 1 auto; min-width: 0; }
.sp-filter-option.is-pro { justify-content: flex-start; }
.sp-filter-option[aria-selected="true"]::after { order: 1; }
.sp-filter-option .sp-pro-tag { order: 2; }

/* Phones: a small filter icon beside Insights instead of the full-width filter bar. */
.sp-filter-icon { display: none; }
@media (max-width: 640px) {
  .sp-filter-bar { display: none !important; }
  .sp-filter-icon { position: relative; display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: auto; padding: 0; }
  .sp-filter-icon .run-it-icon { width: 20px; height: 20px; }
  .sp-filter-icon .ri-filter-count { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 11px; line-height: 17px; }
  .sp-plan-card .ri-card-head > #spInsights { margin-left: 8px; }
}
@media (max-width: 640px) {
  /* A circle around the icon (owner 2026-10-29), the outlined round look of the dropdown's tags. */
  .sp-filter-icon.ri-btn {
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.06);
  }
  .sp-filter-icon.ri-btn:active { background: rgba(46, 209, 244, 0.12); border-color: rgba(46, 209, 244, 0.55); }
  .sp-filter-icon .run-it-icon { width: 18px; height: 18px; }
}

/* Share: the run page's filled primary under the source switcher; on phones only its icon, a
   40 px square at the right of the title (as the run page's "Share this run"). */
.sp-page-actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--ri-space-4, 16px); }
.sp-share-btn > .run-it-icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 640px) {
  .ri-page-head:has(.sp-share-btn) { position: relative; }
  .sp-share-btn { position: absolute; top: 4px; right: 0; --_btn-px: 0px; width: 40px; height: 40px; padding: 0; }
  .sp-share-label { display: none; }
}

/* Share your plan popup (the How we pick popup's surface). */
.sp-share-dialog { --ri-dialog-width: 460px; padding: 20px; border: 1px solid rgba(46, 209, 244, 0.26); border-radius: var(--ri-radius-md, 12px);
  background: radial-gradient(120% 80% at 50% -10%, rgba(46, 209, 244, 0.22), rgba(46, 209, 244, 0) 66%), var(--ri-surface-overlay, #120F22);
  box-shadow: var(--ri-shadow-overlay, 0 16px 48px rgba(0, 0, 0, 0.5)), inset 0 0 24px rgba(46, 209, 244, 0.12); }
.sp-share-body { display: grid; gap: 14px; }
.sp-share-text { margin: 0; color: var(--ri-text-muted, rgba(255, 255, 255, 0.74)); font-size: var(--ri-text-secondary, 14px); line-height: 1.5; }
.sp-share-error { margin: 0; color: #fbbf24; font-size: var(--ri-text-caption, 13px); }
.sp-share-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sp-share-url { font-size: var(--ri-text-caption, 13px); }

/* Shared plan page (/shared-strength): the Strength page's tiles, read-only. */
.sp-shared-page .ss-head { margin-bottom: var(--ri-space-6, 24px); }
.sp-shared-page .ss-meta { margin: 6px 0 0; color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); }
.sp-shared-page .sp-plan-tile { cursor: default; }
.ss-how { display: grid; gap: 16px; }
.ss-how-row + .ss-how-row { padding-top: 16px; border-top: 1px solid rgba(46, 209, 244, 0.12); }
.ss-how-name { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; color: #fff; font-size: var(--ri-text-body, 15px); font-weight: 400; }
.ss-how-name small { color: var(--ri-text-faint, rgba(255, 255, 255, 0.62)); font-size: var(--ri-text-caption, 13px); }
.ss-how-steps { margin: 0; padding-left: 20px; color: var(--ri-text-muted, rgba(255, 255, 255, 0.74)); font-size: var(--ri-text-secondary, 14px); line-height: 1.5; }
.ss-cta { display: grid; justify-items: start; gap: 10px; }
.ss-cta p { margin: 0; color: var(--ri-text-muted, rgba(255, 255, 255, 0.74)); }

/* Desktop: the name column takes a set third and the score columns share the rest evenly, so the
   tiles spread across the card instead of bunching on the right (owner 2026-10-29). */
@media (min-width: 1024px) {
  .sp-matrix { table-layout: fixed; }
  .sp-matrix .sp-col-ex { width: 32%; }
  .sp-matrix .sp-col { width: auto; }
  .sp-matrix .sp-col-match { width: 136px; }
  .sp-heat { max-width: 120px; margin: 0 auto; width: calc(100% - 16px); }
}

/* Shared plan page: the shared run's top bar (run-share.html .run-share-topbar, owner 2026-10-29:
   "the logo the same size as the run one"): the 122 px mark left, one cyan way into Run-It right. */
.sp-shared-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1170px; margin: 0 auto; padding: 20px 16px 0; }
.sp-shared-logo { display: block; width: 122px; height: auto; }
@media (min-width: 640px) { .sp-shared-bar { padding: 24px 32px 0; } }
@media (min-width: 1280px) { .sp-shared-bar { padding: 28px 0 0; } }
