*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0f1117;
  --surface:   #1a1d27;
  --border:    #2a2d3a;
  --text:      #e2e4ef;
  --muted:     #7c7f9a;
  --accent:    #b06aff;
  --green:     #4caf83;
  --red:       #e05c6a;
  --yellow:    #f0b429;
  --blue:      #4da6ff;
  --radius:    10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 32px 24px;
}

header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

header h1 span { color: var(--accent); }

.meta {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.meta strong { color: var(--text); }

/* ── Empty state ── */
.empty-banner {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.empty-banner.visible { display: block; }

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.card h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 18px;
}

.card canvas {
  max-height: 240px;
}

/* volume chart taller for horizontal bars */
.card.tall canvas {
  max-height: 360px;
}

footer {
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  color: var(--border);
}