.chart-shell {
  display: grid;
  gap: 0.8rem;
}

.chart-header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.chart {
  width: 100%;
  min-height: 260px;
}

.chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.chart-grid-line {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-axis {
  stroke: var(--muted);
  stroke-width: 1;
}

.chart-label {
  fill: var(--muted);
  font-size: 12px;
}

.chart-line-primary {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-secondary {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 8;
}

.chart-dot {
  fill: var(--surface-strong);
  stroke: var(--primary);
  stroke-width: 3;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.legend-item {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.legend-swatch {
  width: 20px;
  height: 4px;
  background: var(--primary);
  border-radius: 99px;
}

.legend-swatch.secondary {
  background: var(--accent);
}
