/* ──────── Charts (hand-rolled SVG, ui/charts.js) ──────── */

.chart-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.chart-card {
  background: var(--bfc-surface);
  border: 1px solid var(--bfc-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px 16px 10px;
}
.chart-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--bfc-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.chart-svg { width: 100%; height: auto; display: block; }
/* SVG <text> does not inherit the document font on all engines (it can fall
   back to a UA serif). Axis ticks + data labels are numeric, so pin them to the
   mono family: tabular digits align on the axis and it matches the app's
   "mono = data" convention (heatmap labels, quantities). The chart *title* is
   prose and stays --font-sans (see .chart-title above). */
.chart-svg text { font-family: var(--font-mono); }
.chart-svg .seg-a { fill: var(--bfc-indigo); }
.chart-svg .seg-b { fill: var(--bfc-teal); }
.chart-svg .seg-c { fill: var(--bfc-line-strong); }
.chart-svg .chart-grid { stroke: var(--bfc-line); stroke-width: 1; }
.chart-svg .chart-axis { fill: var(--bfc-muted); font-size: 10px; font-family: var(--font-mono); }
.chart-svg .chart-hit { fill: transparent; }
.chart-svg g:hover rect:not(.chart-hit) { opacity: 0.82; }
.chart-svg .chart-line { fill: none; stroke: var(--bfc-indigo); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .chart-dot { fill: var(--bfc-indigo); }
.chart-svg g:hover .chart-dot { r: 3.6; }
.chart-empty {
  padding: 28px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--bfc-muted);
}
.chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 6px 2px 2px;
  font-size: 12px;
  color: var(--bfc-copy);
}
.chart-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.chart-legend-swatch.seg-a { background: var(--bfc-indigo); }
.chart-legend-swatch.seg-b { background: var(--bfc-teal); }
.chart-legend-swatch.seg-c { background: var(--bfc-line-strong); }
.lane-head { display: flex; align-items: center; justify-content: space-between; }
.lane-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--bfc-navy);
}
.lane-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--bfc-muted);
}
.lane-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--bfc-muted);
  background: var(--bfc-soft);
  border: 1px dashed var(--bfc-line-strong);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}
.lane .classic-link { align-self: flex-start; margin: -2px 0 -4px -6px; }

.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bfc-warn-bg);
  border: 1px solid var(--bfc-warn-line);
  color: var(--bfc-warn-text);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
