/* The Root Network's look, matched to its docs (dark mode): #0A0C0F ground,
   #DFE3E4 headings, #9FA3A4 body, #2E9ACD only for active items and section
   labels. Headings want Objektiv Mk1 (licensed — used when present), Sora
   stands in; Inter for text; Paper Mono (OFL, self-hosted) for code. */
@font-face { font-family: "Paper Mono"; src: url("fonts/PaperMono-Variable.v1.ttf") format("truetype"); font-weight: 100 800; font-display: swap; }
:root {
  color-scheme: dark;
  --c-900: #DFE3E4; --c-800: #DFE3E4; --c-700: #C2C6C7; --c-500: #9FA3A4;
  --c-300: #6E7375; --c-200: #2A3036; --c-100: #1D2228; --c-50: #14181D;
  --c-off: #0F1216; --c-near: #0A0C0F;
  --surface: #101418; --surface-2: #14191E; --text-strong: #FFFFFF;
  --c-accent: #2E9ACD; --c-accent-light: #4FB0DD; --c-accent-bg: rgba(46, 154, 205, .10);
  --c-success: #4ADE80; --c-warn: #FBBF24; --c-error: #F87171;
  --c-success-bg: rgba(74, 222, 128, .12); --c-warn-bg: rgba(251, 191, 36, .12); --c-error-bg: rgba(248, 113, 113, .12);
  --c-success-text: #4ADE80; --c-warn-text: #FBBF24; --c-error-text: #F87171;
  --f-sans: "Inter", system-ui, -apple-system, sans-serif;
  --f-display: "Objektiv Mk1", "Sora", "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "Paper Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --space-xs: .5rem; --space-sm: 1rem; --space-md: 2rem; --space-lg: 4rem; --space-xl: 6rem;
  --radius: 8px; --radius-lg: 12px; --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100% }
body { background: var(--c-near); color: var(--c-900); font-family: var(--f-sans); line-height: 1.55; font-size: .9375rem; min-height: 100vh; display: flex; flex-direction: column }
a { color: inherit; text-decoration: none; transition: color .15s }
a:hover { color: var(--c-accent) }
button, input { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px }
.mono { font-family: var(--f-mono); font-size: .92em; font-variant-numeric: tabular-nums }
.muted { color: var(--c-500) }
.small { font-size: .8125rem }
.breakable { word-break: break-all; overflow-wrap: anywhere }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.skip { position: absolute; left: 1rem; top: -3rem; z-index: 100; background: var(--c-accent); color: #fff; padding: .5rem .9rem; border-radius: var(--radius) }
.skip:focus { top: .75rem; color: #fff }

.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--c-100) 1px, transparent 1px), linear-gradient(90deg, var(--c-100) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 30%, transparent 80%); opacity: .5 }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; min-height: var(--nav-h); border-bottom: 1px solid var(--c-100); background: rgba(10, 12, 15, .86); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px) }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: .75rem var(--space-md); min-height: var(--nav-h); display: flex; align-items: center; gap: var(--space-sm) var(--space-md); flex-wrap: wrap }
.brand { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; display: inline-flex; align-items: center; white-space: nowrap }
.brand .dot { display: inline-block; width: .5rem; height: .5rem; background: var(--c-accent); border-radius: 50%; margin-right: .55rem }
.brand-sub { margin-left: .5rem; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-success-text); background: var(--c-success-bg); padding: 2px 7px; border-radius: 999px }
.search { flex: 1 1 280px; max-width: 520px; position: relative }
.search input { width: 100%; height: 38px; padding: 0 .85rem; border: 1px solid var(--c-100); border-radius: var(--radius); background: var(--surface); font-size: .875rem }
.search input::placeholder { color: var(--c-300) }
.search input:focus { border-color: var(--c-accent); outline: none; box-shadow: 0 0 0 3px rgba(46, 154, 205, .25) }
.search-msg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); font-size: .78rem; color: var(--c-warn-text); background: var(--c-near); line-height: 1.4 }
.search-msg:empty { display: none }
.net { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--c-500); white-space: nowrap }
.net-name { font-weight: 600; color: var(--c-900) }
.net-block { color: var(--c-900) }
.net-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-300); flex: none }
.net-dot[data-state="live"] { background: var(--c-success); animation: pulse 2s infinite }
.net-dot[data-state="connecting"], .net-dot[data-state="reconnecting"], .net-dot[data-state="stalled"] { background: var(--c-warn) }
.net-dot[data-state="offline"], .net-dot[data-state="error"] { background: var(--c-error) }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* ── layout ──────────────────────────────────────────────────────── */
main { flex: 1; outline: none }
.container { max-width: 1200px; margin: 0 auto; padding: var(--space-md) var(--space-md) var(--space-lg); width: 100% }
.noscript { padding: var(--space-md); background: var(--surface); border: 1px solid var(--c-100); border-radius: var(--radius-lg) }

.session { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-md) }
.session-line { font-size: .9375rem }
.session-line:first-child { font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em }
.session-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; max-width: 360px; text-align: right }

.feeds { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-md); align-items: start }
.panel { min-width: 0 }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; min-height: 38px }

.sec-head { display: flex; align-items: baseline; gap: .75rem; margin: var(--space-md) 0 .75rem }
.panel-head .sec-head { margin: 0 }
.sec-head .num { font-family: var(--f-mono); font-size: .78rem; color: var(--c-300); letter-spacing: .06em }
.sec-head h2 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em }
.sec-head .count { font-size: .8rem; color: var(--c-500) }

.filters { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap }
.segmented { display: inline-flex; border: 1px solid var(--c-100); border-radius: var(--radius); background: var(--surface); padding: 2px }
.seg { border: 0; background: transparent; padding: .3rem .7rem; border-radius: 6px; font-size: .8125rem; color: var(--c-500); cursor: pointer }
.seg[aria-pressed="true"] { background: var(--c-accent); color: #fff }
.seg:not([aria-pressed="true"]):hover { color: var(--c-900) }
.check { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--c-500); cursor: pointer }
.check input { accent-color: var(--c-accent) }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: border-color .15s, background .15s, color .15s; background: none }
.btn-outline { border-color: var(--c-100); background: var(--surface); color: var(--c-900) }
.btn-outline:hover:not(:disabled) { border-color: var(--c-900) }
.btn:disabled { cursor: default; color: var(--c-300) }
.btn-sm { padding: .4rem .8rem; font-size: .8125rem }

/* ── lists ───────────────────────────────────────────────────────── */
.list { background: var(--surface); border: 1px solid var(--c-100); border-radius: var(--radius-lg); overflow: hidden }
.list:empty { display: none }
.card.flush .list { border: 0; border-radius: 0 }
.row { display: grid; align-items: center; gap: .3rem .75rem; padding: .7rem 1rem; border-top: 1px solid var(--c-100); min-width: 0 }
.row:first-child { border-top: 0 }
a.row:hover { background: var(--c-near); color: inherit }
.tx-row { grid-template-columns: auto minmax(0, 1fr) auto auto 5.5rem }
.block-row { grid-template-columns: auto minmax(0, 1fr) 4.5rem }
.list.compact .row { grid-template-columns: auto minmax(0, 1fr) auto }
.row-main { display: flex; flex-direction: column; min-width: 0 }
.row-title, .row-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.row-title { font-weight: 500 }
.row-sub { font-size: .78rem; color: var(--c-500) }
.row-value { font-size: .8125rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums }
.via { font-size: .78rem; color: var(--c-500); font-weight: 400 }
.ago { font-size: .78rem; color: var(--c-500); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums }
.block-num { font-weight: 600 }
.block-row.busy .block-num::after { content: ""; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: var(--c-accent); margin-left: .45rem; vertical-align: middle }
.row.backfilled { background: linear-gradient(90deg, var(--c-50), var(--surface) 40%) }
.gap-row { grid-template-columns: auto minmax(0, 1fr); background: repeating-linear-gradient(-45deg, var(--c-near), var(--c-near) 6px, var(--c-50) 6px, var(--c-50) 12px); color: var(--c-500); font-size: .8125rem }
.gap-row .row-sub { white-space: normal }
.fresh { animation: fresh 1.6s ease-out }
@keyframes fresh { from { background: rgba(46, 154, 205, .16) } to { background: transparent } }
.more { margin-top: .75rem; width: 100% }
.more[hidden] { display: none }

.kind { font-family: var(--f-mono); font-size: .64rem; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--c-100); color: var(--c-500); background: var(--c-50) }
.k-evm { color: #A5B4FC; background: rgba(99, 102, 241, .14); border-color: rgba(99, 102, 241, .3) }
.k-native { color: var(--c-accent); background: var(--c-accent-bg); border-color: rgba(46, 154, 205, .3) }
.status-dot { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: .7rem; font-weight: 700 }
.status-pill { display: inline-flex; align-items: center; gap: .3rem; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600 }
.s-success { color: var(--c-success-text); background: var(--c-success-bg) }
.s-failed { color: var(--c-error-text); background: var(--c-error-bg) }
.s-partial { color: var(--c-warn-text); background: var(--c-warn-bg) }
.s-unknown { color: var(--c-500); background: var(--c-50) }
.tag { display: inline-block; font-size: .66rem; font-weight: 600; letter-spacing: .04em; color: var(--c-500); background: var(--c-50); border: 1px solid var(--c-100); border-radius: 4px; padding: 1px 6px; text-transform: uppercase; white-space: nowrap; vertical-align: middle }

.empty { background: var(--surface); border: 1px dashed var(--c-200); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; color: var(--c-700) }
.empty[hidden] { display: none }
.empty p + p { margin-top: .4rem }
.card.flush .empty { border: 0; border-radius: 0 }

.skel-rows { display: grid; gap: .6rem; padding: 1rem }
.skel { height: 1.1rem; border-radius: 6px; background: linear-gradient(90deg, var(--c-50) 0%, var(--c-100) 50%, var(--c-50) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite }
.skel:nth-child(2) { width: 85% } .skel:nth-child(3) { width: 70% } .skel:nth-child(4) { width: 55% }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* ── detail pages ────────────────────────────────────────────────── */
.detail { max-width: 980px }
.page-head { margin-bottom: var(--space-sm) }
.back-link { display: inline-block; font-size: .8125rem; color: var(--c-500); margin-bottom: .75rem }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c-300) }
.page-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.2; overflow-wrap: anywhere }
.page-badges { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; flex-wrap: wrap }
.pager { display: inline-flex; gap: 1rem; font-size: .8125rem }
.pager a { color: var(--c-500) }
.card { background: var(--surface); border: 1px solid var(--c-100); border-radius: var(--radius-lg); padding: 1rem 1.25rem }
.card.flush { padding: 0; overflow: hidden }
.card.message p + p, .card.message p + ul, .card.message ul { margin-top: .6rem }
.card.message ul { padding-left: 1.2rem }
.card + .card { margin-top: var(--space-sm) }
.raw { margin-top: var(--space-md) }
.raw summary { cursor: pointer; font-weight: 500 }
.raw .mono { margin: .75rem 0; font-size: .78rem; color: var(--c-700) }
.note { color: var(--c-warn-text); background: var(--c-warn-bg); border-radius: var(--radius); padding: .6rem .8rem; font-size: .875rem }
.notes { padding-left: 1.1rem; color: var(--c-warn-text) }

.kv { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 0 }
.kv > dt, .kv > dd { padding: .55rem 0; border-top: 1px solid var(--c-50) }
.kv > dt:first-of-type, .kv > dt:first-of-type + dd { border-top: 0 }
.kv > dt { color: var(--c-500); font-size: .875rem; padding-right: 1rem }
.kv > dd { min-width: 0; overflow-wrap: anywhere }
.hint { font-size: .78rem; color: var(--c-500); margin-top: .15rem }

.addr-wrap, .hash-wrap { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; max-width: 100% }
.addr, .hash { color: var(--c-accent); text-decoration: underline; text-decoration-color: var(--c-200); text-underline-offset: 3px }
span.addr, span.hash { text-decoration: none; color: inherit }
.copy { border: 1px solid var(--c-100); background: var(--surface); border-radius: 6px; font-size: .7rem; padding: 1px 7px; color: var(--c-500); cursor: pointer }
.copy:hover { color: var(--c-900); border-color: var(--c-300) }

.call { border-left: 2px solid var(--c-100); padding-left: .85rem }
.call.depth-0 { border-left: 0; padding-left: 0 }
.call-name { font-weight: 600; margin-bottom: .35rem }
.args { display: grid; grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr); gap: .35rem 1rem }
.args > dt { display: flex; flex-direction: column; font-size: .875rem }
.arg-name { font-weight: 500 }
.arg-type { font-size: .72rem; color: var(--c-300) }
.args > dd { min-width: 0; overflow-wrap: anywhere }
.calls { list-style: none; display: grid; gap: .6rem }
.tree { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .2rem .75rem; padding-left: .6rem; border-left: 1px dashed var(--c-100) }
.tree > dt { color: var(--c-500); font-size: .8125rem }
.tree > dd { min-width: 0 }
.tree-list { padding-left: 1.3rem; display: grid; gap: .25rem }
.inline-list { display: inline-flex; flex-wrap: wrap; gap: .35rem .6rem }
.text-val { color: var(--c-700) }
.long summary { cursor: pointer; list-style: none }
.long summary::-webkit-details-marker { display: none }
.long[open] summary { margin-bottom: .4rem }
.long .mono { font-size: .78rem; color: var(--c-700); margin-bottom: .4rem }

.events { list-style: none; display: grid; gap: 0 }
.events > li { border-top: 1px solid var(--c-50); padding: .5rem 0 }
.events > li:first-child { border-top: 0 }
.events summary { cursor: pointer; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap }
.events details[open] summary { margin-bottom: .5rem }
.ev-name { font-weight: 600 }
.ev-preview { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100% }
.phase { font-size: .7rem; color: var(--c-300); min-width: 3.4rem }
.topics { padding-left: 1.3rem }

.transfers { list-style: none; display: grid; gap: .55rem }
.transfers li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap }
.arrow { color: var(--c-300) }
.amount { font-weight: 600; font-variant-numeric: tabular-nums }

/* ── footer ──────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--c-100); padding: var(--space-md) 0; color: var(--c-500); font-size: .8125rem }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); display: grid; gap: .35rem }
.footer-inner p { max-width: 80ch }
.footer-inner a { text-decoration: underline; text-decoration-color: var(--c-200); text-underline-offset: 3px }


/* ── suite menu + site nav ───────────────────────────────────────── */
.brand-wrap { position: relative; flex: none; }
.brand-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: 4px 8px; border-radius: 6px; border: 0; background: none; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1rem; letter-spacing: -.015em; color: var(--c-900); white-space: nowrap; }
.brand-toggle:hover { background: var(--c-50); }
.bt-muted { color: var(--c-300); font-weight: 400; }
.bt-page { color: var(--c-900); font-weight: 600; }
.brand-toggle .caret { font-size: .68rem; color: var(--c-300); transition: transform .2s; }
.brand-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.brand-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 70; background: var(--surface); border: 1px solid var(--c-100); border-radius: 8px; padding: 6px; min-width: 280px; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 2px; }
.brand-menu[hidden] { display: none; }
.bm-item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name current" "host host" "desc desc"; gap: 2px 8px; padding: 8px 10px; border-radius: 6px; color: var(--c-900); }
a.bm-item:hover { background: var(--c-50); color: var(--c-900); }
.bm-item.current { background: var(--c-50); }
.bm-name { grid-area: name; font-family: var(--f-display); font-weight: 700; font-size: .9rem; }
.bm-host { grid-area: host; font-family: var(--f-mono); font-size: .72rem; color: var(--c-300); }
.bm-desc { grid-area: desc; font-size: .8rem; color: var(--c-700); }
.bm-current { grid-area: current; font-size: .62rem; color: var(--c-300); text-transform: uppercase; letter-spacing: .04em; align-self: center; }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a { padding: .4rem .7rem; border-radius: 6px; font-size: .875rem; font-weight: 500; color: var(--c-500); white-space: nowrap; }
.site-nav a:hover { color: var(--c-900); background: var(--c-50); }
.site-nav a[aria-current="page"] { color: var(--c-900); background: var(--surface); box-shadow: inset 0 0 0 1px var(--c-100); }
.nav .search { flex: 1 1 200px; max-width: 280px; }
@media (max-width: 1360px) { .net-name { display: none } }

/* ── explorer home ───────────────────────────────────────────────── */
.home { display: flex; flex-direction: column; gap: var(--space-md); }
.strip { display: flex; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; font-size: .8125rem; color: var(--c-500); }
.strip:not(:has(> :not([hidden]))) { display: none; }
.strip strong { color: var(--c-900); font-weight: 600; }
.strip-item { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.chg.up { color: var(--c-success-text); }
.chg.down { color: var(--c-error-text); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: var(--space-md); align-items: end; }
.hero-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.hero-title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; }
.hero-search { position: relative; display: flex; gap: .5rem; max-width: 680px; }
.hero-search input { flex: 1; min-width: 0; height: 50px; padding: 0 1rem; border: 1px solid var(--c-100); border-radius: var(--radius-lg); background: var(--surface); font-size: .95rem; }
.hero-search input:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(46, 154, 205, .25); }
.search-btn { width: 50px; height: 50px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: var(--radius-lg); background: var(--c-accent); color: #fff; cursor: pointer; }
.search-btn:hover { background: var(--c-accent-light); }
.hero-search .search-msg { top: calc(100% + 6px); }
.session-card { background: var(--surface); border: 1px solid var(--c-100); border-radius: var(--radius-lg); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.session-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.session-title { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.session-card .btn { margin-top: .35rem; align-self: flex-start; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--c-100); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 1rem 1.25rem; border-left: 1px solid var(--c-100); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat-label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-500); }
.stat-value { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .75rem; color: var(--c-500); min-height: 1.1em; }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); align-items: start; }
.panel-card { background: var(--surface); border: 1px solid var(--c-100); border-radius: var(--radius-lg); overflow: hidden; min-width: 0; }
.panel-card .panel-head { margin: 0; padding: .9rem 1.25rem; border-bottom: 1px solid var(--c-100); min-height: 0; }
.panel-card .panel-head h2 { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; }
.panel-card .count { font-family: var(--f-mono); font-size: .78rem; color: var(--c-500); font-weight: 400; margin-left: .45rem; }
.panel-card .empty { border: 0; border-radius: 0; }
.panel-card .more { width: calc(100% - 2rem); margin: .75rem 1rem 1rem; }
.rows:empty { display: none; }
.row-x { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 15rem); gap: .9rem; align-items: center; padding: .85rem 1.25rem; border-top: 1px solid var(--c-100); }
.row-x:first-child { border-top: 0; }
.row-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--c-50); border: 1px solid var(--c-100); display: grid; place-items: center; color: var(--c-700); flex: none; }
.row-x .row-main { gap: .1rem; }
.row-x .row-title { font-weight: 600; font-size: 1.02rem; color: var(--c-900); }
.row-x .row-title:hover { color: var(--c-accent); }
.row-x .row-sub { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; white-space: normal; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .9rem; font-size: .8rem; padding: .45rem .7rem; border: 1px solid var(--c-100); border-radius: 8px; background: var(--c-near); min-width: 0; }
.facts dt { color: var(--c-500); }
.facts dd { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts .addr-wrap { justify-content: flex-end; flex-wrap: nowrap; }
.fin { color: var(--c-500); font-size: .78rem; }
.unfin { color: var(--c-warn-text); font-size: .78rem; font-weight: 600; }
.val { color: var(--c-900); font-weight: 600; }
.detail.wide { max-width: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.list-foot { display: flex; flex-direction: column; gap: var(--space-sm); }
.gaps-h { font-size: 1rem; margin-bottom: .5rem; }
.gaps { list-style: none; display: grid; gap: .35rem; font-size: .875rem; color: var(--c-700); }

/* ── responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid2 { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 980px) {
  .feeds { grid-template-columns: minmax(0, 1fr) }
  .hero { grid-template-columns: minmax(0, 1fr) }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .stat:nth-child(3) { border-left: 0 }
  .stat:nth-child(n+3) { border-top: 1px solid var(--c-100) }
}
@media (max-width: 720px) {
  .nav-inner { padding: .6rem 1rem; gap: .6rem }
  .search, .nav .search { order: 4; flex-basis: 100%; max-width: none }
  .site-nav { order: 3; flex-basis: 100%; }
  .bt-muted { display: none }
  .row-x { grid-template-columns: auto minmax(0, 1fr); padding: .8rem 1rem }
  .facts { grid-column: 1 / -1 }
  .net { margin-left: auto }
  .net-name { display: none }
  .container { padding: 1.25rem 1rem var(--space-md) }
  .footer-inner { padding: 0 1rem }
  .session-actions { align-items: stretch; text-align: left; max-width: none; width: 100% }
  .tx-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "kind main status" "kind value ago" }
  .tx-row .kind { grid-area: kind; align-self: start; margin-top: 2px }
  .tx-row .row-main { grid-area: main }
  .tx-row .row-value { grid-area: value; text-align: left }
  .tx-row .status-dot { grid-area: status }
  .tx-row .ago { grid-area: ago }
  .kv, .args { grid-template-columns: minmax(0, 1fr) }
  .kv > dt { padding-bottom: 0; border-top: 1px solid var(--c-50) }
  .kv > dd { padding-top: .15rem; border-top: 0 }
  .card { padding: .9rem 1rem }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}

/* ── TRN type scale + accents (after the layout rules, so these win) ── */
body { color: var(--c-500); font-size: .9375rem; line-height: 1.6 }
h1, h2, h3, .page-title, .hero-title, .sec-head h2, .panel-card .panel-head h2, .session-title, .stat-value, .row-x .row-title, .bm-name { font-family: var(--f-display); color: var(--c-900); font-weight: 600 }
.hero-title, .page-title { font-size: 36px; line-height: 40px; letter-spacing: -.9px }
.sec-head h2 { font-size: 24px; line-height: 32px; letter-spacing: -.6px }
.panel-card .panel-head h2 { font-size: 18px; line-height: 24px; letter-spacing: -.3px }
.eyebrow, .stat-label, .sec-head .num, .bm-current, .gaps-h { color: var(--c-accent); font-family: var(--f-sans); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; text-transform: none }
.stat-value { font-size: 24px; line-height: 32px; letter-spacing: -.6px }
.btn-outline { border-color: var(--c-200); background: transparent; color: var(--c-900) }
.btn-outline:hover:not(:disabled) { border-color: var(--c-500) }
.btn:disabled { color: var(--c-300) }
.search-btn, .skip { background: var(--c-900); color: var(--c-near) }
.search-btn:hover { background: var(--text-strong) }
.skip:focus { color: var(--c-near) }
.seg[aria-pressed="true"], .site-nav a[aria-current="page"], .bm-item.current { background: var(--c-accent-bg); color: var(--c-accent); box-shadow: none }
.bm-item.current .bm-name { color: var(--c-accent) }
.site-nav a { color: var(--c-500); font-weight: 500 }
.site-nav a:hover, a.bm-item:hover { background: var(--c-50); color: var(--c-900) }
.addr, .hash { color: var(--c-900); text-decoration-color: var(--c-300) }
a:hover, .row-x .row-title:hover, .addr:hover, .hash:hover { color: var(--text-strong) }
.brand-toggle, .brand-toggle .bt-page { color: var(--c-900) }
.brand-toggle:hover { background: var(--c-50) }
.search input, .hero-search input { background: var(--surface); border-color: var(--c-200); color: var(--c-900) }
.search input::placeholder, .hero-search input::placeholder { color: var(--c-300) }
.search input:focus, .hero-search input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(46, 154, 205, .2) }
.copy { background: transparent; border-color: var(--c-200); color: var(--c-500) }
.copy:hover { color: var(--c-900); border-color: var(--c-500) }
.facts { background: var(--surface-2); border-color: var(--c-100) }
.row-icon { background: var(--surface-2); border-color: var(--c-100); color: var(--c-500) }
.kind { background: var(--surface-2); border-color: var(--c-200); color: var(--c-500) }
.tag { background: var(--surface-2); border-color: var(--c-200); color: var(--c-500) }
.brand-sub { color: var(--c-success-text); background: var(--c-success-bg) }
.note { color: var(--c-warn-text); background: var(--c-warn-bg) }
.grid-bg { opacity: .35 }
.mono, code, pre { font-family: var(--f-mono) }
@keyframes fresh { from { background: rgba(46, 154, 205, .08) } to { background: transparent } }
.row-x .row-sub .addr-wrap { flex-wrap: nowrap }
.row-x .row-sub .addr-wrap .tag { display: none }
.brand-mark { width: 22px; height: 22px; display: block; border-radius: 50% }
