:root {
  --bg: #0e1116;
  --panel: #161b22;
  --border: #272e38;
  --text: #d7dee8;
  --muted: #8b97a7;
  --accent: #6ea8fe;
  --leios: #c08bff;
  --green: #58d39c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo { font-size: 22px; color: var(--accent); }
.name { font-size: 20px; font-weight: 700; color: var(--accent); letter-spacing: .5px; }
/* network tabs */
.nets { display: flex; gap: 4px; flex-wrap: wrap; }
.nets a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 7px; color: var(--muted); font-weight: 600;
  border: 1px solid transparent;
}
.nets a:hover { color: var(--text); text-decoration: none; border-color: var(--border); }
.nets a.active { background: rgba(110,168,254,.14); color: var(--accent); border-color: rgba(110,168,254,.3); }
.leiosdot { width: 7px; height: 7px; border-radius: 50%; background: var(--leios); display: inline-block; }
.livedot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 5px var(--green); animation: livepulse 2s ease-in-out infinite; }
.stale-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); display: inline-block; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.tip { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* section sub-nav (Blocks | Leios) */
.subnav { display: flex; gap: 18px; padding: 8px 20px; border-bottom: 1px solid var(--border); background: rgba(22,27,34,.5); }
.subnav a { color: var(--muted); font-size: 13px; font-weight: 500; padding: 2px 0; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.active { color: var(--text); border-bottom-color: var(--accent); }
.subnav:empty { display: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 8px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.card-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.card-value { font-size: 24px; font-weight: 600; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.card-value.leios { color: var(--leios); }
.card-sub { color: var(--muted); font-size: 12px; }
.tip b { color: var(--text); }

main { max-width: 1080px; margin: 0 auto; padding: 20px; }
footer { text-align: center; color: var(--muted); padding: 24px; font-size: 12px; }
.muse { color: var(--accent); font-size: 15px; letter-spacing: .5px; }

.barcell { width: 35%; }
.bar { display: inline-block; height: 10px; background: var(--accent); border-radius: 2px; min-width: 1px; vertical-align: middle; }
.bar.muted-bar { background: var(--border); }

h2 { font-size: 15px; margin: 24px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
h2:first-child { margin-top: 0; }
h3.pg { font-size: 12px; margin: 18px 0 6px; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.gtitle { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

.badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; margin-left: 6px; }
.badge.leios { background: rgba(192,139,255,.15); color: var(--leios); border: 1px solid rgba(192,139,255,.35); }
.badge.eb { background: rgba(88,211,156,.13); color: var(--green); border: 1px solid rgba(88,211,156,.3); }
.badge.eb.ok { background: rgba(88,211,156,.15); color: var(--green); border-color: rgba(88,211,156,.45); }
.badge.eb.bad { background: rgba(255,107,107,.13); color: #ff8a8a; border-color: rgba(255,107,107,.5); }
.badge.eb.pending { background: rgba(240,196,120,.13); color: #f0c478; border-color: rgba(240,196,120,.5); }

.kv { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 4px 16px; margin-bottom: 16px; }
.kv .row { display: flex; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.kv .row:last-child { border-bottom: none; }
.kv .k { width: 200px; color: var(--muted); flex-shrink: 0; }
.kv .v { word-break: break-all; }

.btn { display: inline-block; margin-top: 12px; padding: 6px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; color: var(--text); cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.banner { background: rgba(255,180,80,.1); border: 1px solid rgba(255,180,80,.35); color: #f0c478; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.crumb { margin-bottom: 12px; color: var(--muted); }
