/* The selected Live runs hero uses the shared Run mockup on the page ground. */
.sp-live-hero { padding-bottom: 0; }
.sp-live-hero::before { display: none; }
.sp-live-hero .sp-hero-grid.has-aside {
  max-width: calc(var(--ox-space) * 400);
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(calc(var(--ox-space) * 8), 3.6vw, calc(var(--ox-space) * 16));
  align-items: start;
}
.sp-live-hero .sp-hero-copy { min-width: 0; padding-top: clamp(calc(var(--ox-space) * 14), 12vh, calc(var(--ox-space) * 40)); }
.sp-live-hero .sp-lead { max-width: 40ch; }

.lr-stage { min-width: 0; display: flex; flex-direction: column; gap: calc(var(--ox-space) * 3); }
.harnesses { display: flex; flex-wrap: wrap; gap: calc(var(--ox-space) * 7); padding: 0; margin: 0; list-style: none; }
.h-btn {
  position: relative; display: inline-flex; align-items: center; gap: calc(var(--ox-space) * 2.5);
  padding: calc(var(--ox-space) * 1.5) 0 calc(var(--ox-space) * 3); border: 0; background: none; cursor: pointer;
  font: inherit; font-size: var(--fs-small); font-weight: 500; color: var(--ink-3);
  opacity: .62; transition: opacity .2s, color .2s;
}
.h-btn:hover { opacity: .9; }
.h-btn[aria-pressed="true"] { opacity: 1; color: var(--ink); }
.h-mark { width: calc(var(--ox-space) * 6); height: calc(var(--ox-space) * 6); flex: none; display: inline-grid; place-items: center; }
.h-mark svg { width: 100%; height: 100%; display: block; }
.h-mark.is-mono { color: var(--ink); }
.h-track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--ink-3) 22%, transparent); opacity: 0; transition: opacity .2s; }
.h-btn[aria-pressed="true"] .h-track { opacity: 1; }
.h-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); transition: width .45s var(--ease); }


.lr-view {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--ink) 0, var(--ink) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, var(--ink) 0, var(--ink) 78%, transparent 100%);
  transition: opacity .22s var(--ease);
}
.lr-view.is-swapping { opacity: 0; }
.lr-view .pm-screen { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.lr-view .pm-canvas { visibility: visible !important; }

.lr-view .pm-run-feed { display: block !important; height: calc(var(--ox-space) * 105); max-height: none !important; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, var(--ink) calc(var(--ox-space) * 9)); mask-image: linear-gradient(to bottom, transparent 0, var(--ink) calc(var(--ox-space) * 9)); }
.lr-view .pm-run-layout { grid-template-columns: minmax(0, 1fr) calc(var(--ox-space) * 80); }
.lr-view button.pm-icon-btn { cursor: pointer; }
.lr-view button.pm-icon-btn:hover { color: var(--pm-fg); background: var(--pm-hl); }
.lr-view .pm-icon-btn.rh-ring { box-shadow: inset 0 0 0 1.5px var(--pm-gold); color: var(--pm-gold-text); }

.rh-off { display: none !important; }
.rh-in { animation: rh-in .36s var(--ease) both; }
@keyframes rh-in { from { opacity: 0; transform: translateY(calc(var(--ox-space) * 2)); } }
.lr-stage [data-fx] { animation: rh-new 1.8s var(--ease) both; animation-delay: var(--fx, 0ms); border-radius: var(--pm-r-sm); }
@keyframes rh-new { from { background: color-mix(in oklab, var(--pm-gold) 22%, transparent); } }
.rh-caret::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 1px; vertical-align: -0.18em; background: currentColor; animation: rh-blink 1s steps(2, start) infinite; }
@keyframes rh-blink { 50% { opacity: 0; } }


.rh-replay {
  display: flex; align-items: center; gap: calc(var(--u) * 4);
  margin-top: calc(var(--u) * 3);
  padding: calc(var(--u) * 2.5) calc(var(--u) * 3);
  border: 1px solid var(--pm-line); border-radius: var(--pm-r-lg);
  background: var(--pm-raised);
  font-size: var(--pm-fs-sm);
}
.rh-bars { position: relative; flex: 1 1 auto; min-width: 0; }
.rh-bars:has(input:focus-visible) { outline: 2px solid var(--pm-gold); outline-offset: calc(var(--ox-space) * 1); border-radius: var(--pm-r-sm); }
.rh-segs { display: flex; gap: calc(var(--u) * 1); }
.rh-seg { display: flex; flex-direction: column; gap: calc(var(--u) * 1); min-width: calc(var(--ox-space) * 10); flex-basis: 0; }
.rh-seg-l { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: var(--pm-fs-xs); color: var(--pm-muted); cursor: pointer; }
.rh-seg-l:hover, .rh-seg[data-current] .rh-seg-l { color: var(--pm-fg); }
.rh-seg[data-current] .rh-seg-l { font-weight: 600; }
.rh-seg-b { position: relative; display: block; height: calc(var(--ox-space) * 1.5); overflow: hidden; border-radius: var(--pm-r-pill); background: var(--pm-hl); }
.rh-seg-f { display: block; height: 100%; width: 0; background: var(--pm-gold); transition: width .3s var(--ease); }
.rh-bars input { position: absolute; inset-inline: 0; bottom: -6px; width: 100%; height: calc(var(--ox-space) * 4.5); margin: 0; opacity: 0; cursor: pointer; }
.rh-read { display: flex; flex-direction: column; align-items: flex-end; flex: none; min-width: calc(var(--u) * 24); line-height: 1.35; }
.rh-read b { font-weight: 400; color: var(--pm-fg); }
.rh-read span { color: var(--pm-muted); font-variant-numeric: tabular-nums; }
.rh-speed { display: flex; flex: none; gap: 2px; padding: 2px; border-radius: var(--pm-r-pill); background: var(--pm-hl); }
.rh-speed button { padding: 2px calc(var(--ox-space) * 2.5); border: 0; border-radius: var(--pm-r-pill); background: none; font: inherit; font-size: var(--pm-fs-sm); color: var(--pm-muted); cursor: pointer; font-variant-numeric: tabular-nums; }
.rh-speed button:hover { color: var(--pm-fg); }
.rh-speed button[aria-pressed="true"] { background: var(--pm-raised); color: var(--pm-fg); box-shadow: 0 0 0 1px var(--pm-line); }


.rh-wi { display: grid; gap: calc(var(--u) * 1.5); }
.rh-wi-h { display: flex; align-items: center; gap: calc(var(--u) * 2); min-width: 0; }
.rh-wi-h b { font-weight: 600; color: var(--pm-fg); }
.rh-wi-h .pm-chip { margin-left: auto; }
.rh-wi p { margin: 0; color: var(--pm-body); }


.rh-mini { margin: calc(var(--u) * 1) 0 calc(var(--u) * 1.5) calc(var(--u) * 6); border: 1px solid var(--pm-line); border-radius: var(--pm-r-sm); overflow: hidden; font-family: var(--pm-mono); font-size: var(--pm-fs-xs); line-height: 1.6; }
.rh-mini div { display: flex; gap: calc(var(--u) * 1.5); padding: 0 calc(var(--u) * 2); white-space: pre; overflow: hidden; text-overflow: ellipsis; color: var(--pm-body); }
.rh-mini div::before { content: " "; flex: none; width: 1ch; color: var(--pm-muted); }
.rh-mini .is-add { background: color-mix(in oklab, var(--pm-success) 16%, transparent); }
.rh-mini .is-add::before { content: "+"; color: var(--pm-success); }
.rh-mini .is-del { background: color-mix(in oklab, var(--pm-error) 14%, transparent); }
.rh-mini .is-del::before { content: "−"; color: var(--pm-error); }


.lr-view { min-height: calc(var(--ox-space) * 80); }
.lr-view button.pm-icon-btn { border: 0; font: inherit; }
.lr-stage :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 960px) {
  .sp-live-hero .sp-hero-grid.has-aside { grid-template-columns: 1fr; }
  .sp-live-hero .sp-hero-copy { padding-top: 0; }
}
@media (max-width: 600px) {
  .lr-stage .harnesses { justify-content: space-between; gap: calc(var(--ox-space) * 2); }
  .lr-stage .h-name { display: none; }
  .lr-view .pm-canvas { width: 100% !important; position: relative; }
  .lr-view .pm-rail, .lr-view .pm-top { display: none; }
  .lr-view .pm-app { display: block; }
  .lr-view [data-pm-region="content"] { padding: 0; }
  .lr-view .pm-run-layout { grid-template-columns: minmax(0, 1fr); }
  .lr-view .pm-run-side { grid-row: 2; }
  .lr-view .pm-run-feed { height: calc(var(--ox-space) * 80); }
  .lr-view .pm-run-head-row { flex-wrap: wrap; }
  .lr-view .pm-run-head-row .pm-h1 { flex-basis: 70%; }
  .lr-view .rh-replay { flex-wrap: wrap; }
  .lr-view .rh-bars { flex-basis: 55%; }
  .lr-view .pm-run-livebar, .lr-view .pm-run-live-end { flex-wrap: wrap; }
  .lr-view .pm-run-now { min-width: 0; }
  .lr-view .pm-run-figs { flex-wrap: wrap; max-width: 100%; }
  .lr-view .pm-run-live-end { min-width: 0; max-width: 100%; }
  .lr-view { mask-image: none; -webkit-mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lr-stage *, .lr-stage *::before, .lr-stage *::after { animation: none !important; transition: none !important; }
}
