@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/unbounded.woff2") format("woff2");
}

:root {
  --mint: #7ce3a1;
  --ground: #0b0e12;
  --white: #ffffff;
  --surface: #12161c;
  --line: #1a1f27;
  --line-strong: #222832;
  --muted: #8a929e;
  --ink: #e8ebef;
  --mint-tint: #173a26;
  --loss: #f07171;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 14px/1.45 Inter, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--white); }
.mono { font-family: Inter, sans-serif; font-size: 13px; font-variant-numeric: tabular-nums; word-break: break-all; }
::selection { background: var(--mint-tint); color: var(--white); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  height: 68px;
  display: flex;
  align-items: center;
}
.topbar-inner, .wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar-inner { display: flex; align-items: center; gap: 22px; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  min-width: 210px;
}
.brand:hover { color: var(--white); text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.brand-name {
  font-family: Unbounded, Inter, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 16px;
  color: var(--white);
}
.brand-name span { font-family: Inter, sans-serif; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; font-size: 13px; }
.search { flex: 1; }
.search form { display: flex; }
.search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 14px;
  font: 14px Inter, sans-serif;
  color: var(--white);
  outline: none;
}
.search input:focus { border-color: var(--mint); }
.search input::placeholder { color: var(--muted); }
.cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.nav { display: flex; gap: 8px; margin-left: 8px; }
.nav a {
  color: var(--muted);
  font-weight: 500;
  border-radius: 999px;
  padding: 6px 12px;
}
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--ground); background: var(--mint); }
main { padding: 22px 0 48px; }
.page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 16px; }
h1 {
  font-family: Unbounded, Inter, sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.lede, .sub, .stat-label, .muted { color: var(--muted); }
.lede { margin: 0; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.genesis {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 14px;
}
.genesis .k { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.stat, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.stat { padding: 14px 16px; min-height: 92px; }
.stat-label { font-size: 13px; font-weight: 500; }
.stat-value {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }
.bar { margin-top: 10px; height: 6px; background: var(--line-strong); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--mint); border-radius: 999px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 10px;
  font-weight: 600;
  color: var(--white);
}
.card-head a { font-weight: 500; font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.nowrap { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #161b22; }
.right { text-align: right; }
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.pill.ok { color: var(--mint); background: var(--mint-tint); }
.pill.bad { color: var(--loss); background: #3a1c1c; }
.tag {
  display: inline-block;
  margin-left: 6px;
  background: var(--line-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}
.facts { display: grid; grid-template-columns: 180px 1fr; gap: 8px 12px; padding: 4px 16px 16px; }
.facts .k { color: var(--muted); }
.balance {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  padding: 4px 16px 12px;
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; }
.pre {
  margin: 0 16px 16px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  overflow: auto;
  max-height: 220px;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: Inter, sans-serif;
  font-size: 12px;
  color: var(--ink);
}
.ix { border-top: 1px solid var(--line); padding: 12px 16px; }
.ix h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--white); }
.warn, .banner {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 20px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.banner { color: var(--loss); border-color: #3a1c1c; }
.empty { padding: 18px 16px; color: var(--muted); }
footer { color: var(--muted); font-size: 13px; padding: 8px 0 28px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .split { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .topbar { height: auto; }
  .topbar-inner { flex-wrap: wrap; padding: 12px 0; }
  .brand { min-width: 0; }
}
