  :root {
    --bg: #F4F6F8;
    --card: #FFFFFF;
    --hdr: #1A237E;
    --accent: #1565C0;
    --text: #212121;
    --muted: #757575;
    --border: #E0E0E0;
    --folfox: #E65100;
    --folfiri: #6A1B9A;
    --high: #C62828;
    --low: #1565C0;
  }

  /* ── Stats bar ── */
  #stats-bar {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }

  .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 16px;
    min-width: 120px;
  }

  .stat-card .lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 2px;
  }

  .stat-card .val {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
  }

  .stat-card .val small {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
  }

  /* ── Chart sections ── */
  .chart-section {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 20px 14px;
    margin-bottom: 22px;
  }

  .chart-section h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--hdr);
    margin-bottom: 2px;
    color: #000000 !important;
  }

  .chart-section .subtitle {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 14px;
  }

  /* ── Legend ── */
  .chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
  }

  .li {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .li-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .li-band {
    width: 18px;
    height: 10px;
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.6);
    flex-shrink: 0;
  }

  .li-line {
    width: 20px;
    height: 0;
    border-top: 2px dotted var(--folfox);
    flex-shrink: 0;
  }

  .li-line.folfiri {
    border-top-color: var(--folfiri);
  }

  /* ── Loading / error ── */
  #loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    font-size: 15px;
  }

  #error-msg {
    display: none;
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--high);
    font-size: 13px;
    margin-bottom: 20px;
  }