:root {
  --primary-color: #2563eb;
  --text-color: #1f2937;
  --bg-color: #ffffff;
  --muted-color: #6b7280;
  --line-color: #e5e7eb;
  --border-color: #d1d5db;
  --panel-color: #f9fafb;
  --accent-color: #dc2626;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem;
}

h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.125rem; margin-bottom: 0.75rem; }

a { color: var(--primary-color); }

.back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }

.subtitle { color: var(--muted-color); margin-bottom: 1.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.chip {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8125rem;
  color: #374151;
  background: var(--panel-color);
}

.panel {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  background: var(--bg-color);
  margin-bottom: 1.5rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
}
.mini { font-size: 0.75rem; color: var(--muted-color); line-height: 1.3; }
.big { margin-top: 2px; font-weight: 700; font-size: 1.125rem; }

.note { margin-top: 0.75rem; font-size: 0.875rem; color: #374151; }
.foot { margin-top: 0.5rem; font-size: 0.75rem; color: var(--muted-color); }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; white-space: nowrap; }
th, td { text-align: right; padding: 0.5rem; border-bottom: 1px solid var(--line-color); }
th:first-child, td:first-child { text-align: left; }
th {
  font-size: 0.75rem;
  color: var(--muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
tbody tr:hover { background: var(--panel-color); }
tbody tr.active { background: #eff6ff; }
.name-cell { font-weight: 700; color: var(--primary-color); text-decoration: none; }
.name-cell:hover { text-decoration: underline; }
.sub-cell { color: var(--muted-color); font-size: 0.8125rem; }
.empty { color: var(--muted-color); font-size: 0.9375rem; }
.flag { color: var(--accent-color); }

@media (max-width: 860px) {
  body { padding: 1rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
