.value-chart { min-width: 0; margin-top: 6px; }
.chart-readout { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 12px; min-height: 62px; padding: 0 2px 8px; font-variant-numeric: tabular-nums; }
.chart-readout-date { color: var(--muted); font-size: .82rem; }
.chart-readout-value { color: var(--ink); font-size: 1.3rem; font-weight: 650; letter-spacing: -.025em; }
.chart-readout-basis { grid-column: 1/-1; color: var(--muted); font-size: .75rem; text-align: right; }
.value-chart .chart-svg { width: 100%; height: auto; min-height: 0; overflow: visible; touch-action: pan-y; border-radius: 4px; }
.value-chart .chart-grid { stroke: var(--line); stroke-width: 1; opacity: .7; }
.value-chart .chart-label { font: 11px ui-sans-serif, system-ui, sans-serif; fill: var(--muted); font-variant-numeric: tabular-nums; }
.value-chart .chart-line { fill: none; stroke: #24644f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.value-chart .chart-line.exact { stroke: var(--ink); }
.value-chart .chart-line.mixed { stroke: #426b85; }
.value-chart .chart-line.partial { stroke: #956114; stroke-dasharray: 5 4; }
.value-chart .chart-dot { fill: #24644f; stroke: var(--surface); stroke-width: 1.5; }
.value-chart .chart-dot.exact { fill: var(--ink); }
.value-chart .chart-dot.partial { fill: #956114; }
.value-chart .chart-dot.mixed { fill: #426b85; }
.chart-cursor { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; pointer-events: none; }
.chart-focus { fill: var(--surface); stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.chart-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; color: var(--muted); font-size: .72rem; margin: 7px 0 12px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .73rem; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item::before { content: ""; width: 18px; border-top: 2px solid #24644f; }
.legend-item.exact::before { border-color: var(--ink); }
.legend-item.mixed::before { border-color: #426b85; }
.legend-item.partial::before { border-top: 2px dashed #956114; }
.history-summary { border-top: 1px solid var(--line); font-size: .8rem; }
.history-summary > p, .history-summary .backfill-status { margin: 6px 0 12px; }
@media (max-width: 420px) {
  .chart-readout { min-height: 66px; }
  .chart-readout-value { font-size: 1.15rem; }
  .chart-instruction { font-size: .68rem; }
}
