.chart-panel .chart-wrap {
  margin-top: 15px;
}

.chart-panel .speed-chart {
  display: block;
  width: 100%;
  height: clamp(172px, 15vw, 208px);
  overflow: visible;
}

.speed-chart:focus-visible {
  outline: 2px solid var(--focus, var(--teal));
  outline-offset: 4px;
  border-radius: 4px;
}

.speed-chart .chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  opacity: .74;
}

.speed-chart .chart-axis {
  opacity: 1;
}

.speed-chart .chart-guide {
  stroke-dasharray: 2 4;
}

.speed-chart .chart-label {
  fill: var(--muted);
  font-family: inherit;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.speed-chart .chart-unit {
  font-size: 10px;
  font-weight: 650;
}

.speed-chart .chart-fill-start {
  stop-color: var(--blue);
  stop-opacity: .19;
}

.speed-chart .chart-fill-end {
  stop-color: var(--blue);
  stop-opacity: .025;
}

.speed-chart .chart-rx {
  stroke: var(--blue);
}

.speed-chart .chart-tx {
  stroke: var(--teal);
}

.speed-chart .chart-line {
  fill: none;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.speed-chart .chart-line.chart-tx {
  stroke-dasharray: 4.5 4;
}

.speed-chart .chart-dot.chart-rx {
  fill: var(--surface);
  stroke-width: 1.75;
}

.speed-chart .chart-dot.chart-tx {
  fill: var(--teal);
  stroke: var(--surface);
  stroke-width: 1;
}

.speed-chart[data-retained="true"] .chart-line,
.speed-chart[data-retained="true"] .chart-dot {
  opacity: .7;
}

.chart-panel .chart-empty {
  inset-inline: 39px 10px;
  padding-inline: 12px;
}

.chart-panel .chart-footer {
  align-items: flex-start;
  margin-top: 8px;
}

.chart-panel .chart-footer > :last-child {
  text-align: end;
}
