body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f6;
  color: #111827;
}

header {
  padding: 24px;
  background: #111827;
  color: #fff;
}

.heading h1 {
  margin: 0;
  font-size: 1.8rem;
}

.heading p {
  margin: 8px 0 0;
  color: #d1d5db;
}

.topline {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #9ca3af;
}

.topline.error {
  color: #f87171;
}

.panel {
  margin: 24px auto;
  padding: 20px;
  max-width: 1200px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

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

.summary-card {
  padding: 18px;
  background: #111827;
  color: white;
  border-radius: 14px;
}

.summary-card h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #9ca3af;
}

.summary-value {
  font-size: 2rem;
  font-weight: 700;
}

.filters-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-items: end;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group label {
  font-size: 0.9rem;
  color: #374151;
}

.filter-group input,
.filter-group select,
button {
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: white;
}

button {
  cursor: pointer;
  background: #2563eb;
  color: white;
  border: none;
}

button:hover {
  background: #1d4ed8;
}

.chart-panel,
.table-panel,
.changelog-panel {
  overflow: hidden;
}

.histogram {
  display: grid;
  gap: 12px;
}

.histogram-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.histogram-label {
  font-size: 0.95rem;
}

.histogram-fill {
  height: 18px;
  background: #2563eb;
  border-radius: 999px;
}

.histogram-count {
  min-width: 32px;
  text-align: right;
  font-weight: 700;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

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

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

th:hover {
  background: #eef2ff;
}

.change-item {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #fafafa;
}

.change-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.change-details {
  margin-bottom: 10px;
  color: #4b5563;
}

.change-diff {
  margin: 0;
  padding-left: 18px;
  color: #111827;
}

.change-link {
  display: inline-block;
  margin-top: 10px;
  color: #2563eb;
}

.empty-state {
  display: none;
  padding: 14px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .summary-panel,
  .filters-panel {
    grid-template-columns: 1fr;
  }
}
