:root {
  color-scheme: light dark;
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #5eb3f6;
  --dem: #3ecf8e;
  --vector: #c792ea;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6f9;
    --surface: #fff;
    --text: #1a2332;
    --muted: #5c6b7f;
    --accent: #0b6bcb;
    --dem: #0d8f5b;
    --vector: #6b4f9a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.header {
  padding: 1.75rem 1.5rem 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

.header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 650;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

code {
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
  background: var(--surface);
}

main {
  padding: 0 1.5rem 2.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.status {
  color: var(--muted);
}

.status.error {
  color: #f07178;
}

.hidden {
  display: none !important;
}

.catalog {
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem 0.5rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.map-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.map-table th,
.map-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(127, 127, 127, 0.2);
}

.map-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.25rem;
}

.pill-dem {
  background: color-mix(in srgb, var(--dem) 22%, transparent);
  color: var(--dem);
}

.pill-vector {
  background: color-mix(in srgb, var(--vector) 22%, transparent);
  color: var(--vector);
}

.pill-unknown {
  background: rgba(127, 127, 127, 0.2);
  color: var(--muted);
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.hash {
  font-size: 0.72rem;
  word-break: break-all;
  max-width: 14rem;
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.08);
}

.meta {
  margin: 1rem 0.5rem 0;
  font-size: 0.82rem;
}
