:root {
  color-scheme: dark;
  --bg: #070708;
  --surface: rgba(18, 19, 27, 0.92);
  --surface-alt: rgba(15, 17, 26, 0.92);
  --header: rgba(33, 34, 44, 0.82);
  --border: rgba(63, 63, 70, 0.7);
  --text: #f4f4f5;
  --muted: #a0a0ab;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.18);
  --green: #22c55e;
  --red: #f97316;
  --warn: #facc15;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.charts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.chart-card {
  display: grid;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid rgba(63, 63, 70, 0.72);
  background: var(--surface);
  padding: 16px 20px;
}

.chart-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.chart-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.chart {
  min-height: 260px;
}

.chart-placeholder {
  min-height: 200px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.delta-chip.negative {
  background: rgba(249, 115, 22, 0.16);
  color: var(--red);
}

.delta-chip.inline,
.delta-chip.neutral {
  background: rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.82);
}

.delta-chip.soft {
  background: rgba(79, 70, 229, 0.16);
  color: var(--accent);
}

@media (max-width: 720px) {
  .charts {
    grid-template-columns: 1fr;
  }
}
