/* Explorer chrome — zinc neutrals, Namecoin blue only as accent. */

:root, html[data-theme="light"], html[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-2: #fafafa;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --accent: #3a6ea5;
  --accent-2: #2b5786;
  --accent-soft: #e8eef5;
  --glow: transparent;
  --ok: #3f7d5a;
  --warn: #a16207;
  --bad: #b42318;
  --rail: #fafafa;
  --shadow: none;
  --shadow-lg: none;
  --radius: 8px;
  --radius-sm: 6px;
  --green: #3f7d5a;
  --red: #b42318;
  --yellow: #a16207;
  --dim: #71717a;
}

html[data-theme="dark"], html[data-theme="dark"] {
  --bg: #09090b;
  --bg-2: #111113;
  --panel: #18181b;
  --panel-solid: #18181b;
  --ink: #fafafa;
  --ink-2: #d4d4d8;
  --muted: #a1a1aa;
  --line: #27272a;
  --line-strong: #3f3f46;
  --accent: #8aa8c8;
  --accent-2: #b4c7db;
  --accent-soft: #1c2430;
  --glow: transparent;
  --ok: #6bb58a;
  --warn: #d4a017;
  --bad: #e07070;
  --rail: #111113;
  --shadow: none;
  --shadow-lg: none;
  --green: #6bb58a;
  --red: #e07070;
  --yellow: #d4a017;
  --dim: #a1a1aa;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"], html[data-theme="dark"] { color-scheme: dark; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 400;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); border: 1px solid var(--line);
  font-weight: 650;
}
.skip-link:focus { top: 12px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3 { margin: 0; font-weight: 650; letter-spacing: -.03em; }
h2 { font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
.mono, .hash { font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace; font-size: 12.5px; letter-spacing: 0; }
.muted, .dim { color: var(--muted); }

/* ----- chrome ----- */
.shell { display: flex; min-height: 100vh; gap: 0; }
.sidebar {
  width: 248px; flex-shrink: 0;
  position: sticky; top: 0; height: 100vh;
  padding: 18px 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--rail);
  border-right: 1px solid var(--line);
}
.brand {
  display: block; padding: 6px 8px 14px; margin-bottom: 4px;
}
.brand .logo svg, .mh-title .logo svg { width: 168px; height: auto; display: block; }
.nav { display: flex; flex-direction: column; gap: 0; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 10px;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: 13.5px; font-weight: 550;
  text-decoration: none;
}
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.nav a.active {
  background: var(--accent-soft); color: var(--ink); font-weight: 650;
}
.nav-ico, .nav svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.nav a.active svg, .nav a.active .nav-ico { color: var(--accent); }

.sidebar-dock {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 8px;
  width: 100%;
}
.status-box {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 0; width: 100%; padding: 0; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.status-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; min-width: 0; min-height: 52px; padding: 10px 8px;
}
.status-cell:nth-child(odd) { border-right: 1px solid var(--line); }
.status-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.status-box .k {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10px;
}
.status-box .k .nav-ico { width: 12px; height: 12px; color: var(--accent); flex-shrink: 0; }
.status-box .v {
  color: var(--ink); font-weight: 700; font-size: 13px; line-height: 1.15;
  font-family: ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.status-box .v.ok { color: var(--ok); }
.status-box .v.warn { color: var(--warn); }

.theme-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 0; width: 100%;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line); cursor: pointer; font: inherit; font-size: 12.5px;
  position: relative; z-index: 1;
}
.theme-toggle svg { width: 16px; height: 16px; }
.nav a .nav-ico { flex-shrink: 0; }
.theme-toggle .nav-ico { width: 16px; height: 16px; }
.theme-toggle:hover { background: var(--accent-soft); color: var(--ink); }
[data-theme-toggle] .ico-moon { display: none; }
[data-theme-toggle] .ico-sun { display: block; }
html[data-theme="dark"] [data-theme-toggle] .ico-sun { display: none; }
html[data-theme="dark"] [data-theme-toggle] .ico-moon { display: block; }

.main { flex: 1; min-width: 0; width: 100%; padding: 24px 28px 40px; max-width: none; container-type: inline-size; }

/* command search */
.search {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
  position: relative; max-width: none; width: 100%; margin: 0 0 22px;
}
.search-field { position: relative; flex: 1; min-width: 0; }
.search input {
  width: 100%;
  background: var(--panel-solid);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 14px 10px 40px;
  font: inherit; font-size: 14px;
  outline: none;
}
.search-field::before {
  content: "";
  position: absolute; left: 12px; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%);
  background: var(--muted);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='M21 21l-4.3-4.3'/></svg>") center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}
.search input:focus {
  border-color: var(--accent);
}
.search-results, .search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  max-height: 360px; overflow: auto;
}
.search-results a {
  display: block; padding: 10px 16px; color: var(--ink); border-bottom: 1px solid var(--line);
  font-family: ui-monospace, Consolas, monospace; font-size: 13px;
}
.search-results a:hover { background: var(--accent-soft); text-decoration: none; }
.search-results .empty { color: var(--muted); padding: 14px 16px; }

/* hero / page headers */
.hero { margin: 0 0 28px; }
.hero h1, .topbar h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2;
}
.topbar .crumb { color: var(--muted); font-size: 15px; margin-top: 8px; display: block; }
.topbar {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero h1 .nav-ico, .hero h1 svg, .topbar h1 .nav-ico, .topbar h1 svg { width: 22px; height: 22px; color: var(--accent); margin-right: 8px; vertical-align: -4px; }

/* metrics + panels */
.grid { display: grid; gap: 14px; margin-bottom: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat { padding: 16px 16px 14px; }
.stat > .nav-ico, .stat > svg, .stat > .ico {
  width: 18px; height: 18px; color: var(--accent); margin-bottom: 10px;
}
.stat .n { font-size: 28px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

.panel { padding: 18px 18px 8px; margin-bottom: 18px; min-width: 0; overflow: visible; }
.grid > * { min-width: 0; }
.grid > .panel {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.panel h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h2 svg { width: 15px; height: 15px; color: var(--accent); }

.og-panel { padding-bottom: 18px; }
.og-stage {
  margin: 0 0 16px;
  background: #e6ebf1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.og-stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
}
.og-note { margin: 0 0 8px; color: var(--ink-2); }
.og-credit { margin: 0; font-size: 13px; }

.record-card h2 { width: 100%; }
.record-status { margin-left: auto; }
.record-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px; padding-bottom: 14px;
}
.record-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.record-field .l {
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  font-size: 10.5px; font-weight: 650;
}
.record-field .v {
  color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.record-field .v a { color: var(--accent); text-decoration: none; }
.record-field .v a:hover { text-decoration: underline; }
.record-field .s { color: var(--dim); font-size: 12px; line-height: 1.4; }

.dl {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 13.5px;
  padding-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}
.dl dt {
  color: var(--muted); text-transform: uppercase; font-size: 10.5px;
  letter-spacing: .08em; align-self: start; padding-top: 4px;
  min-width: 0; overflow-wrap: anywhere;
}
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; word-break: break-all; }

.latest-block {
  overflow: hidden;
  padding-bottom: 0;
}
.latest-block h2 { width: 100%; flex-shrink: 0; }
.latest-block-link { margin-left: auto; height: 28px; padding: 0 10px; font-size: 12px; }
.lb-clip {
  overflow: hidden;
  min-width: 0;
  margin: 0 -6px 0 0;
}
.latest-block .timeline {
  margin: 0 0 0 8px;
  padding: 0 0 0 14px;
}
.latest-block .lb-item {
  margin: 0;
  padding: 10px 8px 10px 0;
  border-top: 0;
  gap: 8px;
}
.latest-block .lb-item:first-of-type { padding-top: 2px; }
.latest-block .lb-item:last-of-type { padding-bottom: 0; }
.latest-block .lb-item:hover { background: var(--accent-soft); }
.latest-block .tl-content { min-width: 0; }
.lb-main { display: block; color: inherit; text-decoration: none; min-width: 0; }
.lb-main:hover .lb-height { color: var(--accent); }
.lb-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.lb-height {
  font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: -.03em; color: var(--ink); line-height: 1.15;
}
.lb-ago { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.lb-hash {
  margin-top: 3px;
  font-size: 12px; color: var(--accent); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 8px;
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lb-meta strong { color: var(--ink); font-weight: 650; }
.lb-meta a { color: var(--accent); text-decoration: none; }
.lb-meta a:hover { text-decoration: underline; }
.latest-block .lb-peek {
  max-height: 46px;
  overflow: hidden;
  opacity: 0.42;
  pointer-events: none;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 32%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 32%, transparent 100%);
}
.latest-block .lb-peek:hover { background: transparent; }
@media (max-width: 900px) {
  .latest-block .timeline {
    margin-left: 4px;
    padding-left: 12px;
  }
  .latest-block .tl-dot { margin-left: -18px; }
  .latest-block .lb-item { gap: 6px; }
}

table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
thead th {
  text-align: left; text-transform: uppercase; letter-spacing: .08em;
  font-size: 10.5px; font-weight: 650; color: var(--muted);
  padding: 8px 10px 10px; border-bottom: 1px solid var(--line-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
td, th { min-width: 0; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td a {
  display: block; min-width: 0; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--accent-soft); }
tr.row-link { cursor: pointer; }
.table-wrap {
  width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.blocks-table .blocks-rail-h,
.blocks-table .blocks-rail-c {
  width: 20px; min-width: 20px; max-width: 20px;
  padding-left: 0; padding-right: 0;
  overflow: visible;
}
.blocks-table th.blocks-h,
.blocks-table td.blocks-h { padding-left: 4px; width: 12%; }
.blocks-table tbody td.blocks-rail-c { position: relative; }
.blocks-table tbody td.blocks-rail-c::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--line-strong);
  pointer-events: none;
}
.blocks-table tbody tr:first-child td.blocks-rail-c::before { top: 50%; }
.blocks-table tbody tr:last-child td.blocks-rail-c::before { bottom: 50%; }
.blocks-table tbody tr:first-child:last-child td.blocks-rail-c::before { display: none; }
.blocks-table .blocks-rail {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
.blocks-table .tl-dot { margin: 0; }
.names-table th:nth-child(1), .names-table td:nth-child(1) { width: 28%; }
.names-table th:nth-child(2), .names-table td:nth-child(2) { width: 18%; }
.names-table th:nth-child(3), .names-table td:nth-child(3) { width: 16%; }
.names-table th:nth-child(4), .names-table td:nth-child(4),
.names-table th:nth-child(5), .names-table td:nth-child(5) { width: 12%; }
.names-table th:nth-child(6), .names-table td:nth-child(6) { width: 14%; }
.names-table.cols-5 th:nth-child(1), .names-table.cols-5 td:nth-child(1) { width: 36%; }
.names-table.cols-5 th:nth-child(2), .names-table.cols-5 td:nth-child(2) { width: 22%; }
.names-table.cols-5 th:nth-child(3), .names-table.cols-5 td:nth-child(3),
.names-table.cols-5 th:nth-child(4), .names-table.cols-5 td:nth-child(4) { width: 14%; }
.names-table.cols-5 th:nth-child(5), .names-table.cols-5 td:nth-child(5) { width: 14%; }
.ops-table th:nth-child(1), .ops-table td:nth-child(1) { width: 12%; }
.ops-table th:nth-child(2), .ops-table td:nth-child(2) { width: 18%; }
.ops-table th:nth-child(3), .ops-table td:nth-child(3) { width: 26%; }
.ops-table th:nth-child(4), .ops-table td:nth-child(4) { width: 12%; }
.ops-table th:nth-child(5), .ops-table td:nth-child(5) { width: 14%; }
.ops-table th:nth-child(6), .ops-table td:nth-child(6) { width: 18%; }

.pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent;
}
.pill.green { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill.red { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.pill.yellow { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.pill.blue, .pill.purple { color: var(--accent); background: var(--accent-soft); }
.pill.pink { color: #d34f86; background: color-mix(in srgb, #d34f86 14%, transparent); }
.pill.cyan { color: #0a7a73; background: color-mix(in srgb, #0a7a73 14%, transparent); }
.pill.gray, .pill.grey { color: var(--muted); background: color-mix(in srgb, var(--muted) 14%, transparent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent); color: #fff; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 0 14px; height: 34px;
  font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-2); color: #fff; }
a.btn { color: #fff; text-decoration: none; }
.btn-ghost,
a.btn.btn-ghost {
  background: var(--panel-solid); color: var(--ink-2);
  border-color: var(--line-strong); box-shadow: none;
}
.btn-ghost:hover,
a.btn.btn-ghost:hover {
  background: var(--accent-soft); color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.filterbar {
  display: flex; gap: 12px 16px; flex-wrap: wrap; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px; padding: 10px 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.filterbar form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  min-width: 0;
}
.filterbar input[type="text"],
.filterbar select {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  height: 36px; padding: 0 14px; font: inherit; font-size: 13px;
}
.filterbar .blocks-q { width: 220px; max-width: 100%; }
.filterbar .btn { box-shadow: none; }
.filterbar-check {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink-2);
  font-size: 12.5px; cursor: pointer; user-select: none; white-space: nowrap;
}
.filterbar-check input {
  width: 14px; height: 14px; margin: 0;
  accent-color: var(--accent); flex-shrink: 0;
}
.filterbar-check:has(input:checked) {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--ink);
}
.filterbar-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; margin-left: auto;
  color: var(--muted); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.filterbar-meta > span {
  display: inline-flex; align-items: center;
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line);
}
.pager {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 12px 0 4px; font-size: 13px;
}
.pager-meta {
  min-width: 7.5em; text-align: center;
  font-variant-numeric: tabular-nums;
}
.pager .btn.is-disabled,
.pager [aria-disabled="true"] {
  opacity: .4; pointer-events: none; cursor: default;
}

.value-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
pre.value {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.value, .api-json {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--ink);
  max-height: min(60vh, 28rem);
  overflow: auto;
}
.dl dd .value { margin-top: 4px; max-height: 200px; }
.value-wrap.compact .value { max-height: 160px; font-size: 12px; padding: 10px 12px; }
.api-json { max-height: none; }

.error {
  background: color-mix(in srgb, var(--bad) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent);
  color: var(--bad); padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600;
}
.empty { color: var(--muted); padding: 28px; text-align: center; }
.info-note {
  display: flex; gap: 10px; margin-bottom: 16px; padding: 12px 14px;
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px;
}

.timeline { border-left: 2px solid var(--line-strong); margin: 8px 0 16px 10px; padding-left: 14px; }
.tl-item { display: flex; gap: 10px; padding: 10px 0; }
.tl-rail { flex: 0 0 10px; }
.tl-dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg); margin-left: -20px; margin-top: 4px;
}
.tl-dot.dot-register { background: var(--accent); }
.tl-dot.dot-update { border-color: var(--warn); }
.tl-dot.dot-renew { border-color: #0a7a73; }
.tl-dot.dot-transfer { border-color: #d34f86; background: #d34f86; }
.tl-content { min-width: 0; flex: 1; }
.tl-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.tl-date { color: var(--ink-2); }
.tl-height { color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.tl-body { font-size: 12.5px; margin-top: 6px; color: var(--ink-2); }
.tl-value-block {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.tl-value-block > .l {
  display: block; margin-bottom: 8px;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  font-size: 10.5px; font-weight: 650;
}
.tl-content .value { max-height: 160px; font-size: 12px; }
.dl.compact {
  grid-template-columns: minmax(0, 100px) minmax(0, 1fr);
  gap: 6px 12px; padding-bottom: 0; font-size: 13px;
}

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px;
  margin-top: 48px; padding: 18px 2px 6px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.site-footer p, .site-footer nav { margin: 0; }
.site-footer-brand {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  color: var(--muted);
}
.site-footer-brand a {
  color: var(--ink); font-weight: 700; letter-spacing: -.02em;
}
.site-footer-brand a:hover { color: var(--accent); }
.site-footer-links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
}
.footer-ver {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px; font-weight: 650;
}
.site-footer-links a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-weight: 550;
}
.site-footer-links a:hover { color: var(--accent); }
.site-footer-links .nav-ico { width: 14px; height: 14px; }
.site-footer-links span[aria-hidden] { color: var(--line-strong); }

.mobile-header { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .shell { display: block; }
  .mobile-header {
    display: flex; position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 200;
    align-items: center; padding: 0 8px;
    background: var(--rail); border-bottom: 1px solid var(--line);
  }
  .mh-btn {
    width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink);
    display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: var(--radius-sm);
  }
  .mh-title { flex: 1; display: flex; justify-content: center; }
  .mh-title .logo svg { width: 132px; }
  .search {
    flex-direction: column; align-items: stretch;
  }
  .search .tickers { display: flex; width: 100%; }
  .search .ticker { flex: 1; min-width: 0; max-width: none; }
  .theme-toggle { display: none; }
  .main { padding: 72px 16px 40px; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 300;
    width: min(82vw, 320px); height: 100dvh;
    transform: translateX(-110%); transition: transform .22s ease;
    border-right: 1px solid var(--line);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(7,11,18,.45); z-index: 250;
  }
  .sidebar-backdrop.show { display: block; }
  .grid.cols-2, .record-grid { grid-template-columns: 1fr; }
  .grid.cols-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dt { margin-top: 8px; }
  .hero h1, .topbar h1 { font-size: 26px; }
  .filterbar { padding: 10px; }
  .filterbar-meta { margin-left: 0; width: 100%; }
  .site-footer { gap: 8px; padding-top: 16px; }

  /* Mobile tables: keep one-line cells and scroll horizontally.
     white-space:normal + word-break + table max-width:100% crushed
     columns (names wrapped character-by-character). Min-widths let
     the table exceed the viewport inside .table-wrap. */
  .table-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table:not(.kv) {
    table-layout: auto;
    width: max-content;
    min-width: 100%;
    max-width: none;
  }
  .table-wrap table:not(.kv) thead th,
  .table-wrap table:not(.kv) tbody td,
  .table-wrap table:not(.kv) td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 7rem;
    max-width: 16rem;
    width: auto;
  }
  .table-wrap table:not(.kv) td a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
  }
  .table-wrap table:not(.kv) td,
  .table-wrap table:not(.kv) th {
    padding: 10px 12px;
  }

  .table-wrap .blocks-table th:nth-child(1),
  .table-wrap .blocks-table td:nth-child(1),
  .table-wrap .blocks-table .blocks-rail-h,
  .table-wrap .blocks-table .blocks-rail-c {
    min-width: 20px; max-width: 20px; width: 20px;
    padding-left: 0; padding-right: 0; overflow: visible;
  }
  .table-wrap .blocks-table th:nth-child(2),
  .table-wrap .blocks-table td:nth-child(2) { min-width: 7rem; padding-left: 4px; }

  .table-wrap .ops-table th:nth-child(1),
  .table-wrap .ops-table td:nth-child(1) { min-width: 8rem; }
  .table-wrap .ops-table th:nth-child(2),
  .table-wrap .ops-table td:nth-child(2) { min-width: 10rem; max-width: 16rem; }
  .table-wrap .ops-table th:nth-child(3),
  .table-wrap .ops-table td:nth-child(3) { min-width: 10rem; max-width: 16rem; }
  .table-wrap .ops-table th:nth-child(4),
  .table-wrap .ops-table td:nth-child(4) { min-width: 7rem; }
  .table-wrap .ops-table th:nth-child(5),
  .table-wrap .ops-table td:nth-child(5) { min-width: 7rem; }
  .table-wrap .ops-table th:nth-child(6),
  .table-wrap .ops-table td:nth-child(6) { min-width: 9rem; }

  .table-wrap .names-table th:nth-child(1),
  .table-wrap .names-table td:nth-child(1) { min-width: 12rem; max-width: 18rem; }
  .table-wrap .names-table th:nth-child(2),
  .table-wrap .names-table td:nth-child(2) { min-width: 10rem; max-width: 16rem; }
  .table-wrap .names-table th:nth-child(3),
  .table-wrap .names-table td:nth-child(3) { min-width: 8.5rem; }
  .table-wrap .names-table th:nth-child(4),
  .table-wrap .names-table td:nth-child(4),
  .table-wrap .names-table th:nth-child(5),
  .table-wrap .names-table td:nth-child(5),
  .table-wrap .names-table th:nth-child(6),
  .table-wrap .names-table td:nth-child(6) { min-width: 7rem; }

  .table-wrap .holders-table th:nth-child(1),
  .table-wrap .holders-table td:nth-child(1) { min-width: 2.5rem; width: 36px; }
  .table-wrap .holders-table th:nth-child(2),
  .table-wrap .holders-table td:nth-child(2),
  .table-wrap .holders-table td.holders-addr { min-width: 14rem; max-width: 18rem; }
}

@media (max-width: 480px) {
  .stat .n { font-size: 22px; }
}

@container (max-width: 960px) {
  .grid.cols-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stat .delta {
  margin-top: 8px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums;
}
.stat .delta.up { color: var(--green); }
.stat .delta.down { color: var(--red); }
.stat-note {
  margin-top: 8px; font-size: 11px; color: var(--muted); line-height: 1.35;
}
.chart-spark {
  margin: 10px -4px -2px;
  color: var(--accent);
}
.chart-spark .chart-svg { display: block; width: 100%; height: 44px; }
.chart-panel { padding-bottom: 16px; }
.chart-range {
  margin-left: auto;
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.chart-range a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 10px;
  font-size: 12px; font-weight: 650; letter-spacing: .02em;
  color: var(--ink-2); text-decoration: none;
  border-right: 1px solid var(--line);
}
.chart-range a:last-child { border-right: 0; }
.chart-range a:hover { background: var(--accent-soft); color: var(--ink); }
.chart-range a.on { background: var(--accent-soft); color: var(--ink); }
.chart-lead, .chart-empty {
  margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.45;
}
.chart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 12px 0;
  text-align: center;
}
.chart-meta {
  display: flex; flex-wrap: wrap; gap: 12px 18px;
  margin: -4px 0 12px; font-size: 12px; color: var(--muted);
}
.chart-meta strong { color: var(--ink); font-weight: 650; }
.chart-wrap {
  margin: 0 -6px 4px;
  color: var(--accent);
}
.chart-axis {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 4px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.chart-svg { display: block; overflow: visible; color: var(--accent); }
.chart-area { stroke: none; }
.chart-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-tick {
  fill: var(--muted); font-size: 10px;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}
.chart-dot { fill: var(--panel); stroke: currentColor; stroke-width: 2; }
table.kv {
  width: 100%;
  table-layout: auto;
}
table.kv th {
  width: 1%;
  white-space: nowrap;
  text-align: left;
  font-weight: 550;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 11px 18px 11px 0;
}
table.kv td { text-align: left; }
.ns-share { min-width: 88px; }
.ns-bar {
  display: block; height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
}
.ns-bar > span { display: block; height: 100%; background: var(--accent); }
.holders-table { table-layout: auto; }
.holders-table th:nth-child(1), .holders-table td:nth-child(1) { width: 36px; }
.holders-addr { font-size: 12px; }

.tickers { display: flex; gap: 8px; flex-shrink: 0; }
.ticker {
  display: flex; align-items: center; gap: 8px;
  min-width: 158px; max-width: 200px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  overflow: visible;
}
.ticker:hover { background: var(--accent-soft); color: var(--ink); }
.ticker-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ticker-k {
  font-size: 9px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.ticker-v { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.ticker-d { font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ticker-d.up { color: var(--green); }
.ticker-d.down { color: var(--red); }
.ticker-spark { width: 72px; height: 28px; color: var(--accent); flex-shrink: 0; overflow: visible; }
.ticker-spark .chart-svg { display: block; width: 100%; height: 28px; overflow: visible; }
.ticker-spark .chart-line { stroke-width: 1.4; }
.ticker-spark .chart-dot { stroke-width: 1.5; }
.ticker .nav-ico { display: none; }
