:root {
  color-scheme: dark;
  --bg: #071014;
  --header: #091419;
  --panel: #0c191e;
  --panel-strong: #102229;
  --border: #1b343c;
  --border-bright: #2b5661;
  --text: #eaf5f6;
  --muted: #8ca4a9;
  --accent: #2aa9be;
  --accent-pale: #93bdc5;
  --accent-soft: rgba(42, 169, 190, .14);
  --good: #54d4a5;
  --warning: #e5b65e;
  --bad: #ef7d7d;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
code, .hash { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  min-height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  gap: 26px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 20, 25, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
}

.brand-mark { width: 38px; height: 33px; display: block; flex: 0 0 auto; }

.brand-word { font-size: 17px; font-weight: 750; letter-spacing: .3em; line-height: 1; }

.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: var(--text); }

.network-pill, .health-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-pale);
  white-space: nowrap;
}

.menu-button { display: none; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(229, 182, 94, .1); }
.status-dot.good { background: var(--good); box-shadow: 0 0 0 4px rgba(84, 212, 165, .1); }
.status-dot.bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(239, 125, 125, .1); }

main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { position: relative; overflow: hidden; padding: 72px 0 54px; border-bottom: 1px solid var(--border); }
.hero-mark { position: absolute; width: 380px; height: auto; right: -20px; top: -10px; opacity: .1; pointer-events: none; }
.health-line { display: flex; align-items: center; gap: 9px; color: var(--good); margin: 0 0 14px; }
h1 { max-width: 720px; margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: .99; letter-spacing: -.055em; font-weight: 650; }
.hero-copy { max-width: 620px; margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.search {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  min-height: 58px;
  margin-top: 30px;
  padding: 7px 8px 7px 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42, 169, 190, .12), 0 18px 48px rgba(0, 0, 0, .25); }
.search svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 16px; }
.search input::placeholder { color: #6f898f; }
.search button, .quiet-button, .menu-button {
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}
.search button { min-height: 42px; padding: 9px 17px; display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #031013; font-weight: 650; }
.search button:hover { filter: brightness(1.08); }
.search-help { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(239, 125, 125, .4);
  border-radius: var(--radius);
  color: #ffd6d6;
  background: rgba(239, 125, 125, .08);
}
.notice code { overflow-wrap: anywhere; color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); }
.stat-card { min-width: 0; padding: 19px; background: var(--panel); }
.stat-label, .stat-note, .panel-meta, .eyebrow { color: var(--muted); }
.stat-label, .stat-value, .stat-note { margin: 0; }
.stat-label { margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stat-note { margin-top: 4px; font-size: 13px; }

.activity-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 18px; margin-top: 18px; }
.panel, .detail-panel { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.panel-heading { min-height: 62px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.panel-heading h2 { margin: 0; font-size: 17px; font-weight: 650; }
.eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.panel-meta { font-size: 12px; }
.list-row { min-height: 78px; padding: 14px 18px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid rgba(27, 52, 60, .74); }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: rgba(147, 189, 197, .025); }
.row-primary, .row-secondary { min-width: 0; }
.row-link { display: block; color: var(--accent-pale); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link:hover { color: var(--text); }
.row-meta { margin-top: 4px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.age { color: var(--muted); font-size: 12px; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; color: var(--good); background: rgba(84, 212, 165, .1); font-size: 12px; text-transform: capitalize; }
.status-badge.aborted { color: var(--bad); background: rgba(239, 125, 125, .1); }
.empty-state { margin: 0; padding: 24px 18px; color: var(--muted); }

.detail-panel { margin-top: 22px; }
.quiet-button { padding: 8px 11px; color: var(--muted); background: var(--panel-strong); }
.quiet-button:hover { color: var(--text); }
.detail-grid { margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.detail-grid div { min-width: 0; }
.detail-grid dt { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; }
.detail-value { display: flex; align-items: flex-start; gap: 9px; }
.detail-value span { min-width: 0; overflow-wrap: anywhere; }
.copy-button {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  background: var(--panel-strong);
  cursor: pointer;
  font-size: 11px;
}
.copy-button:hover, .copy-button:focus-visible { color: var(--text); border-color: var(--border-bright); }
details { margin: 0 18px 18px; border-top: 1px solid var(--border); }
summary { padding: 14px 0; color: var(--accent-pale); cursor: pointer; }
pre { max-height: 360px; margin: 0; padding: 16px; overflow: auto; border-radius: 10px; background: #061014; color: #bed2d6; font-size: 12px; line-height: 1.55; }

.network-panel { margin-top: 18px; }
.health-badge.good { color: var(--good); border-color: rgba(84, 212, 165, .35); background: rgba(84, 212, 165, .08); }
.health-badge.bad { color: var(--bad); border-color: rgba(239, 125, 125, .35); background: rgba(239, 125, 125, .08); }
.node-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.node-row { padding: 17px 18px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.node-row:nth-child(odd) { border-right: 1px solid var(--border); }
.node-row code { color: var(--accent-pale); font-size: 12px; }
.node-state { color: var(--muted); text-align: right; }
.problems { padding: 16px 18px; color: #ffd6d6; background: rgba(239, 125, 125, .06); }
.problems p { margin: 5px 0; }

footer { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
footer p { display: flex; align-items: center; gap: 8px; }
footer code { color: var(--accent-pale); }

@media (max-width: 880px) {
  .site-header { padding: 0 20px; }
  .main-nav { gap: 16px; }
  main { width: min(100% - 36px, 1180px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { min-height: 64px; flex-wrap: wrap; gap: 10px; padding: 0 16px; }
  .brand { margin-right: auto; }
  .network-pill { display: none; }
  .menu-button { display: block; min-height: 38px; padding: 7px 11px; color: var(--muted); background: var(--panel-strong); }
  .main-nav { display: none; order: 3; width: 100%; margin: 0; padding: 4px 0 14px; justify-content: space-between; }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 14px; }
  main { width: min(100% - 28px, 1180px); }
  .hero { padding: 48px 0 38px; }
  .hero-mark { width: 220px; height: 220px; right: -80px; top: -38px; opacity: .11; }
  h1 { max-width: 88%; font-size: 42px; }
  .hero-copy { font-size: 15px; }
  .search { min-height: 54px; margin-top: 22px; padding-left: 13px; }
  .search button { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .search button span { font-size: 18px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; border: 0; overflow: visible; background: transparent; }
  .stat-card { border: 1px solid var(--border); border-radius: var(--radius); }
  .list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .row-secondary { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .node-list { grid-template-columns: 1fr; }
  .node-row:nth-child(odd) { border-right: 0; }
  footer { padding: 18px 0; align-items: flex-start; flex-direction: column; gap: 6px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
