body {
  font-family: Inter, system-ui, sans-serif;
  margin: 0;
  background: #f5f7fb;
  color: #17233d;
}

header {
  padding: 32px;
  text-align: center;
  background: #1f4d7a;
  color: #fff;
}

.subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85);
}

section {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card, .chart-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.table-container {
  overflow-x: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e4e7f0;
}

th {
  cursor: pointer;
  background: #f8fafc;
}

th:hover {
  background: #eef2ff;
}

.change-card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.change-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.change-meta strong {
  margin-right: auto;
}

.charts {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

.hist-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hist-label {
  width: 160px;
  font-size: 0.95rem;
  color: #475569;
}

.hist-inner {
  flex: 1;
  height: 18px;
  background: #60a5fa;
  border-radius: 999px;
}

.hist-count {
  width: 40px;
  text-align: right;
  font-size: 0.95rem;
  color: #0f172a;
}

footer {
  text-align: center;
  padding: 24px 0;
  color: #475569;
}

.error {
  color: #b91c1c;
  margin-top: 16px;
}
