/* ==========================================================================
   BERA STAT — design tokens
   Dark, warm near-black with a honey/amber accent. Amber is a *signal*, not
   decoration: it marks the entry threshold (the literal line on the chart),
   the active tab, the primary toggle state and links — nothing else.
   Panels are quiet: hairline border, no stripes, no glow.
   Type: Inter for UI, JetBrains Mono for every number, address and timestamp.
   ========================================================================== */
:root {
  --bg: #0b0907;
  --surface: #120f0a;
  --surface-2: #1a1610;
  --bg-hover: #201a10;
  --border: #262016;
  --border-soft: #1c1810;
  --text: #f2ead8;
  --text-dim: #a69878;
  --text-faint: #6e6350;
  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.15);
  --accent-ink: #1a1204;
  --good: #8fbf6f;
  --good-soft: rgba(143, 191, 111, 0.15);
  --bad: #e2666a;
  --bad-soft: rgba(226, 102, 106, 0.15);
  --info: #6fa8c9;
  --info-soft: rgba(111, 168, 201, 0.15);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-sm: 4px;
  --wrap-max: 1248px;
  --topbar-h: 56px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-width: 0;
  overflow-x: hidden;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
button {
  font-family: inherit;
}
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 24px;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.small {
  font-size: 12px;
}
.faint {
  color: var(--text-faint);
}
.dim {
  color: var(--text-dim);
}
.good {
  color: var(--good);
}
.bad {
  color: var(--bad);
}
.strong {
  font-weight: 600;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 9, 7, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex: 0 0 auto;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 22px;
  display: block;
  color: var(--accent);
  flex: 0 0 auto;
}
.brand-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
}
.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
}
.tabs {
  display: flex;
  gap: 4px;
  align-self: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.tab:hover {
  color: var(--text);
  text-decoration: none;
}
.tab.is-active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  flex: 0 0 auto;
}
.status-sep,
#last-updated {
  color: var(--text-faint);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px var(--good-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
.live-dot.is-stale {
  background: var(--text-faint);
  box-shadow: none;
  animation: none;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.main {
  padding-top: 36px;
  padding-bottom: 64px;
}
.view {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.panel-threshold {
  gap: 20px;
}
.panel-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.row-between {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-head.row-between {
  align-items: flex-start;
  flex-wrap: nowrap;
}
.panel-head.row-between > div:first-child {
  flex: 1 1 0;
  min-width: 0;
}
.row-between > div {
  min-width: 0;
}
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.panel-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.page-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}
.page-sub.mono {
  font-size: 12px;
  color: var(--text-dim);
}
.page-sub .pill {
  vertical-align: middle;
}
.page-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.empty-state {
  color: var(--text-faint);
  font-size: 13px;
  padding: 24px 4px;
  text-align: center;
}
.error-state {
  color: var(--bad);
  font-size: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 102, 106, 0.3);
  border-radius: var(--radius-sm);
  background: var(--bad-soft);
}
.link-more {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
.link-more.as-button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}
.link-more.as-button:hover {
  text-decoration: underline;
}

/* Toggle (period / filter) */
.toggle {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex: 0 0 auto;
}
.toggle-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.toggle-btn:hover {
  color: var(--text);
}
.toggle-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

/* Chip / pill / luck */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}
.chip.good {
  color: var(--good);
  background: var(--good-soft);
}
.chip.bad {
  color: var(--bad);
  background: var(--bad-soft);
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-active {
  color: var(--good);
  background: var(--good-soft);
}
.pill-floor {
  color: var(--accent);
  background: var(--accent-soft);
}
.pill-inactive {
  color: var(--text-faint);
  background: var(--surface-2);
}
.pill-benchmark {
  color: var(--info);
  background: var(--info-soft);
}
.luck-chip {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-dim);
}
.luck-chip.luck-good {
  background: var(--good-soft);
  color: var(--good);
}
.luck-chip.luck-bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.luck-chip.luck-none {
  color: var(--text-faint);
}

/* Hero numbers, bars */
.hero-number {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-value {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
}
.hero-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}
.bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.track {
  display: inline-block;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
}
.track-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.track-fill.good {
  background: var(--good);
}
.track-fill.bad {
  background: var(--bad);
}
.track-fill.floor {
  background: var(--accent);
}

/* Charts (hand-rolled SVG) */
.chart-wrap {
  position: relative;
  min-width: 0;
}
.chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart-grid line {
  stroke: var(--border-soft);
  stroke-width: 1;
}
.chart-grid line.is-base {
  stroke: var(--border);
}
.chart-axis {
  fill: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}
.chart-axis.accent {
  fill: var(--accent);
}
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #0a0906;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 10px));
}
.chart-tooltip .tt-day {
  color: var(--text-dim);
  margin-bottom: 3px;
}
.chart-tooltip .tt-accent {
  color: var(--accent);
}
.chart-tooltip .tt-info {
  color: var(--info);
}
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.swatch {
  width: 12px;
  height: 2px;
  display: inline-block;
  border-radius: 1px;
}
.swatch-accent {
  background: var(--accent);
}
.swatch-info {
  background: var(--info);
}
.swatch-dashed {
  height: 0;
  border-top: 2px dashed currentColor;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-bad {
  background: var(--bad);
}
.dot-good {
  background: var(--good);
}
.dot-accent {
  background: var(--accent);
}
.dot-faint {
  background: var(--text-faint);
}

/* ==========================================================================
   Events
   ========================================================================== */
.events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
}
.event {
  display: flex;
  align-items: center;
  gap: 10px;
}
.event-badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 2px 6px;
  border-radius: 3px;
  min-width: 44px;
  text-align: center;
}
.badge-left {
  color: var(--bad);
  background: var(--bad-soft);
}
.badge-joined {
  color: var(--good);
  background: var(--good-soft);
}
.badge-count,
.badge-threshold {
  color: var(--accent);
  background: var(--accent-soft);
}
.event-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.event-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.event-title a {
  color: inherit;
}
.event-sub,
.event-day {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ==========================================================================
   KPI strip
   ========================================================================== */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.kpi-strip-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid var(--border-soft);
  min-width: 0;
}
.kpi:first-child {
  border-left: none;
}
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.kpi-value .mono {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.kpi-unit {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}
.kpi-sub {
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi-sub.good {
  color: var(--good);
}
.kpi-sub.bad {
  color: var(--bad);
}

/* ==========================================================================
   Vault flows
   ========================================================================== */
.stat-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.stat-line .big {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.stat-line .label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}
.vault-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vault-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 76px 52px;
  gap: 12px;
  align-items: center;
}
.vault-list-full .vault-row {
  grid-template-columns: 28px 140px minmax(0, 1fr) 110px 96px 60px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
}
.vault-list-full .vault-row:last-child {
  border-bottom: none;
}
.vault-row .track {
  width: 100%;
}
.vault-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.vault-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  text-align: right;
}
.vault-share,
.vault-blocks {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}

/* Copyable address button */
.val-pubkey {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  max-width: 100%;
}
.val-pubkey.is-addr {
  font-size: 12px;
  color: var(--text);
}
.val-pubkey:hover {
  color: var(--accent);
}
.val-pubkey.is-copied {
  color: var(--good);
}

/* ==========================================================================
   Leaderboard
   ========================================================================== */
.lb-head,
.lb-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 76px 56px 56px;
  gap: 12px;
  align-items: center;
}
.lb-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.lb-num,
.lb-luck-col {
  text-align: right;
}
.lb-list {
  display: flex;
  flex-direction: column;
}
.lb-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
}
.lb-row:last-child {
  border-bottom: none;
}
.lb-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.lb-name-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.lb-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-wbera {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  text-align: right;
}
.lb-share {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}
.lb-luck {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   Validators table
   ========================================================================== */
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  max-width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-faint);
}
.search:focus-within {
  border-color: var(--accent);
  color: var(--text-dim);
}
.search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
.search input::placeholder {
  color: var(--text-faint);
}
.panel-table {
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.table-scroll {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table thead th.is-sortable {
  cursor: pointer;
  user-select: none;
}
.table thead th.is-sortable:hover {
  color: var(--text-dim);
}
.table thead th.is-active {
  color: var(--accent);
}
.table thead th.is-sortable::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  vertical-align: middle;
}
.table thead th.is-active[aria-sort="ascending"]::after {
  border-bottom: 4.5px solid var(--accent);
}
.table thead th.is-active[aria-sort="descending"]::after {
  border-top: 4.5px solid var(--accent);
}
.table tbody td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.table tbody tr:hover td {
  background: var(--bg-hover);
}
.table tbody tr.group-row td {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface);
}
.table tbody tr.group-row:hover td {
  background: var(--surface);
}
.table tbody tr.group-row .dot {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: middle;
}
.table tbody tr.group-row .group-note {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-faint);
  margin-left: 8px;
}
.val-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 260px;
  min-width: 0;
}
.val-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.val-name:hover {
  color: var(--accent);
  text-decoration: none;
}
.val-name.is-unnamed {
  color: var(--text-dim);
}
.distance {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.distance .track {
  width: 80px;
  height: 4px;
}
.distance-val {
  font-family: var(--font-mono);
  font-size: 12px;
  min-width: 64px;
  text-align: right;
}
.distance-val.floor {
  color: var(--accent);
}
.table-foot {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-soft);
}

/* ==========================================================================
   Pools
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  gap: 18px;
}
.card.is-benchmark {
  background: var(--bg);
  border-style: dashed;
}
.card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.card-apy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.card-apy-value {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
}
.card-apy-value.info {
  color: var(--info);
}
.card-apy-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}
.card-apy-alt {
  font-size: 12px;
  color: var(--text-faint);
}
.card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.metric-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.card-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--surface-2);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.callout svg {
  color: var(--accent);
  flex: 0 0 auto;
  margin-top: 2px;
}
.callout p {
  margin: 0;
}

/* ==========================================================================
   API page
   ========================================================================== */
.api-list {
  display: flex;
  flex-direction: column;
}
.api-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  font-size: 13px;
  transition: background 0.15s ease;
}
.api-row:last-child {
  border-bottom: none;
}
.api-row:hover {
  background: var(--bg-hover);
  text-decoration: none;
}
.api-row code {
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-row:hover code {
  color: var(--accent);
}
.page-sub code {
  color: var(--text-dim);
  font-size: 12px;
}

/* ==========================================================================
   Validator profile
   ========================================================================== */
.profile-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.kpi-value .mono.luck-good {
  color: var(--good);
}
.kpi-value .mono.luck-bad {
  color: var(--bad);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 32px;
}
.footer-inner p {
  margin: 0;
}
.footer-inner strong {
  color: var(--text-dim);
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-dim);
}
.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Skeleton (before first data)
   ========================================================================== */
.is-loading .hero-value,
.is-loading .kpi-value .mono {
  color: transparent;
  background: var(--surface-2);
  border-radius: 4px;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi:nth-child(3n + 1) {
    border-left: none;
  }
  .kpi:nth-child(n + 4) {
    border-top: 1px solid var(--border-soft);
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .api-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }
  .main {
    padding-top: 24px;
  }
  .view {
    gap: 24px;
  }
  .topbar-inner {
    gap: 12px;
  }
  .brand-sub,
  .status-block,
  .status-sep {
    display: none;
  }
  .hero-side {
    grid-template-columns: 1fr;
  }
  .kpi-strip,
  .kpi-strip-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi:nth-child(3n + 1) {
    border-left: 1px solid var(--border-soft);
  }
  .kpi:nth-child(2n + 1) {
    border-left: none;
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--border-soft);
  }
  .panel {
    padding: 16px;
  }
  .hero-value {
    font-size: 36px;
  }
  .page-head {
    align-items: stretch;
  }
  .page-tools,
  .search {
    width: 100%;
  }
  .vault-row {
    grid-template-columns: 96px minmax(0, 1fr) 68px 48px;
    gap: 8px;
  }
  .lb-head,
  .lb-row {
    grid-template-columns: 20px minmax(0, 1fr) 72px 52px;
    gap: 8px;
  }
  .lb-share-col,
  .lb-share {
    display: none;
  }
  .card-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
