  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    padding: 20px;
  }
  h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 2.1rem;
    color: #f1f5f9;
  }
  .subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 24px;
    font-size: 0.9rem;
  }
  .controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .controls .date-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.9rem;
  }
  .controls input[type="date"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
    color-scheme: dark;
  }
  .controls select, .controls button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
  }
  .controls button:hover { background: #334155; }
  .controls button.active { background: #3b82f6; border-color: #3b82f6; }
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
    gap: 20px;
  }
  .chart-card {
    background: #1e293b;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #334155;
    transition: border-color 0.2s;
  }
  .chart-card:hover { border-color: #3b82f6; }
  .chart-card h3 {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
  }
  .chart-card canvas { width: 100% !important; }
  .stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #64748b;
  }
  .stats span { display: inline-flex; align-items: center; gap: 4px; }
  .stats .val { color: #cbd5e1; font-weight: 600; }

  /* Modal overlay for enlarged chart */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  .modal-overlay.active { display: flex; }
  .modal-content {
    background: #1e293b;
    border-radius: 16px;
    padding: 24px;
    width: 90vw;
    max-width: 1100px;
    height: 70vh;
    border: 1px solid #334155;
    cursor: default;
  }
  .modal-content h3 {
    color: #e2e8f0;
    margin-bottom: 12px;
    font-size: 1.1rem;
  }
  .modal-chart-wrap { position: relative; height: calc(100% - 40px); }
