.live-practice {
  --lp-ink: #f5f2e8;
  --lp-muted: #b5c0bd;
  --lp-gold: #f5c075;
  position: absolute;
  z-index: 7;
  inset: var(--live-practice-top, clamp(70px, 11vh, 100px)) var(--live-practice-right, clamp(12px, 2.2vw, 34px)) auto auto;
  box-sizing: border-box;
  width: 190px;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(216, 223, 212, .26);
  border-radius: 8px;
  background: #121a1cf2;
  box-shadow: 0 4px 16px #0003;
  color: var(--lp-ink);
  font: 500 12px/1.3 Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  text-shadow: none;
  pointer-events: none;
}
.live-practice[hidden], .live-practice [hidden] { display: none !important; }
.live-practice *, .live-practice *::after { box-sizing: border-box; }
.live-practice__toggle {
  display: flex;
  width: 100%;
  height: 35px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  margin: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}
.live-practice__toggle:focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 2px; }
.live-practice__toggle:hover { background: #ffffff09; }
.live-practice__mark { display: inline-flex; height: 14px; align-items: flex-end; gap: 2px; }
.live-practice__mark i { width: 2px; height: 7px; background: var(--lp-gold); border-radius: 1px; }
.live-practice__mark i:nth-child(2) { height: 12px; }
.live-practice__mark i:nth-child(3) { height: 9px; }
.live-practice__title { flex: 1; font-size: 12px; font-weight: 670; }
.live-practice__key {
  margin: 0;
  padding: 1px 4px;
  min-width: 15px;
  border: 1px solid #ffffff35;
  border-radius: 3px;
  color: var(--lp-muted);
  background: transparent;
  font-weight: 500;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}
.live-practice__arrow {
  height: 5px;
  width: 5px;
  margin: 2px 1px 0 2px;
  border: solid var(--lp-muted);
  border-width: 1px 1px 0 0;
  transform: rotate(-45deg);
}
.live-practice[data-expanded=false] { width: auto; }
.live-practice[data-expanded=false] .live-practice__arrow { transform: rotate(135deg); margin-top: -2px; }
.live-practice__body { border-top: 1px solid #ffffff21; padding: 0 12px 11px; }
.live-practice__metrics { display: block; margin: 0; padding: 0; }
.live-practice__metric { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 3px 0; }
.live-practice__metric dt, .live-practice__metric dd { margin: 0; line-height: 1.3; font-size: 12px; white-space: nowrap; }
.live-practice__metric dt { font-weight: 450; color: var(--lp-muted); }
.live-practice__metric dd { font-weight: 670; color: var(--lp-ink); }
.live-practice__metric:first-child { padding: 6px 0 5px; margin: 0 0 4px; border-bottom: 1px solid #ffffff17; }
.live-practice__metric:first-child dd { color: var(--lp-gold); font-size: 19px; font-weight: 650; letter-spacing: -.045em; }
.live-practice__plot { border-top: 1px solid #ffffff21; padding-top: 7px; margin-top: 5px; }
.live-practice__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; color: var(--lp-muted); font-size: 10px; line-height: 1.3; }
.live-practice__count { color: #a7b4b1; }
.live-practice__chart { position: relative; height: 20px; margin-top: 3px; }
.live-practice__chart[data-mode=events] { display: grid; grid-template-columns: repeat(18, 1fr); gap: 2px; align-items: end; }
.live-practice__chart i { display: block; height: 3px; border-radius: 1px; background: #ffffff1e; }
.live-practice__chart i[data-sample=yes] { height: 14px; background: var(--lp-gold); }
.live-practice__chart i[data-sample=no] { height: 6px; background: #8f9a9f; }
.live-practice__chart[data-mode=line] { background: repeating-linear-gradient(to top, #ffffff18 0 1px, transparent 1px 9px); }
.live-practice__chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.live-practice__chart polyline { fill: none; stroke: var(--lp-gold); stroke-width: 1.7; stroke-linejoin: round; }
.live-practice__chart circle { fill: var(--lp-gold); }
@media (max-width: 760px), (max-height: 590px) {
  .live-practice { width: 166px; }
  .live-practice__toggle { height: 32px; }
  .live-practice__metric { padding: 2px 0; }
  .live-practice__metric:first-child { padding-block: 3px; }
}
@media (pointer: coarse) {
  .live-practice__toggle { min-height: 44px; }
  .live-practice__key { display: none; }
}
.range-frame:has(.live-practice[data-expanded=true]:not([hidden])) #hud-counter { visibility: hidden; }
.range-frame:has(.live-practice[data-expanded=true]:not([hidden])) .hud-accuracy-stat { display: none; }
.ready-score-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 20px; margin: 6px auto 0; }
.ready-score-links a { min-height: 24px; color: #dcdfd9; font-size: 12px; line-height: 24px; text-decoration: underline; text-underline-offset: 3px; }
.ready-score-links a:focus-visible { outline: 2px solid #f5c075; outline-offset: 2px; }
#result-board:not([hidden]) + #result-analysis { margin-inline-start: 18px; }
