:root {
  color-scheme: dark;
  --bg: #0c1220;
  --panel: #141e31;
  --line: #2a3a59;
  --text: #ebf1ff;
  --muted: #9cb0d3;
  --accent: #4f87ff;
  --ok: #22c55e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(79, 135, 255, 0.18), transparent 24%),
    linear-gradient(180deg, #090f1b, var(--bg));
}
.wrap {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
}
.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(8px);
}
.top .wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  font-size: 20px;
}
.brand span { color: var(--accent); }
.nav {
  display: flex;
  gap: 10px;
}
.nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: #d5e1ff;
  text-decoration: none;
  font-size: 14px;
}
main { padding: 22px 0 34px; }
h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
}
p.lead {
  color: var(--muted);
  margin: 0 0 18px;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.toolbar a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  text-decoration: none;
  color: #d5e1ff;
  font-size: 13px;
}
.toolbar a.active {
  border-color: #5f93ff;
  background: rgba(79, 135, 255, 0.2);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 13px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #c6d5f0;
}
.metric {
  font-size: 28px;
  font-weight: 700;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  background: var(--panel);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b7c8e5;
}
td {
  font-size: 14px;
  color: #deebff;
}
td .muted { color: var(--muted); font-size: 12px; }
.ok {
  color: var(--ok);
  font-weight: 700;
}
footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 30px;
  color: var(--muted);
  font-size: 13px;
}
