.kf-run-compare {
  --run-nominal: #196654;
  --run-heat: #a84b17;
  --run-fault: #5b4a91;
}
.kf-run-compare .kf-run-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .9rem 2.25rem;
  padding: 1rem clamp(.8rem, 2vw, 1.4rem);
  border: 1px solid var(--kf-rule);
  border-radius: .35rem;
  background: #edf4ef;
}
.kf-run-scrub { flex: 2 1 20rem; min-width: 0; }
.kf-run-select { flex: 1 1 16rem; min-width: 0; }
.kf-run-controls label {
  display: flex;
  justify-content: space-between;
  margin-bottom: .35rem;
  font-weight: 600;
}
.kf-run-controls [data-kf-clock] { font-variant-numeric: tabular-nums; }
.kf-run-controls input { display: block; width: 100%; min-height: 2.5rem; margin: 0; accent-color: var(--kf-link); }
.kf-run-controls select {
  width: 100%;
  min-height: 2.5rem;
  padding: .45rem 2.3rem .45rem .7rem;
  border: 1px solid #78958b;
  border-radius: .3rem;
  color: var(--kf-ink);
  background: white;
  appearance: none;
  font: inherit;
}
.kf-run-select { position: relative; }
.kf-run-select::after {
  content: "";
  position: absolute;
  right: .9rem;
  bottom: 1.08rem;
  width: .44rem;
  height: .44rem;
  border: solid var(--kf-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
.kf-run-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.3rem;
  padding: 0;
  margin-bottom: 0;
  list-style: none;
  font-size: .95rem;
}
.kf-run-legend li { display: flex; align-items: center; gap: .5rem; }
.kf-run-legend span { width: 2rem; border-top: 3px solid; }
.kf-run-legend .kf-line-nominal { border-color: var(--run-nominal); }
.kf-run-legend .kf-line-addedHeat { border-color: var(--run-heat); border-top-style: dashed; }
.kf-run-legend .kf-line-lostSpare { border-color: var(--run-fault); border-top-style: dotted; }
.kf-run-plots {
  display: grid;
  gap: 1.1rem;
  border: 1px solid var(--kf-rule);
  border-radius: .35rem;
  padding: 1rem clamp(.65rem, 2vw, 1.35rem);
  background: #fff;
}
.kf-run-plot figcaption { margin-bottom: .55rem; font-weight: 650; }
.kf-run-grid {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .35rem .55rem;
  align-items: stretch;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  color: var(--kf-muted);
}
.kf-run-vertical { display: flex; flex-direction: column; justify-content: space-between; text-align: end; }
.kf-run-horizontal { display: flex; justify-content: space-between; grid-column: 2; }
.kf-run-grid svg { display: block; width: 100%; height: 6.7rem; overflow: visible; }
.kf-run-grid svg :is(path, polyline, line) { fill: none; vector-effect: non-scaling-stroke; }
.kf-run-guides { stroke: #c8d7d2; stroke-width: 1; }
.kf-trace-nominal { stroke: var(--run-nominal); stroke-width: 3.75; }
.kf-trace-addedHeat { stroke: var(--run-heat); stroke-width: 2.7; stroke-dasharray: 8 5; }
.kf-trace-lostSpare { stroke: var(--run-fault); stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }
.kf-run-cursor { stroke: #223539; stroke-width: 1.35; stroke-dasharray: 3 2; }
.kf-run-table table { table-layout: fixed; min-width: 0; }
.kf-run-table td[colspan] { color: var(--kf-muted); font-style: italic; }
@media (max-width: 36rem) {
  .kf-run-grid { grid-template-columns: 1.9rem minmax(0, 1fr); }
  .kf-run-table :is(th, td) { padding: .5rem .35rem; overflow-wrap: anywhere; }
}
