:root {
  --paper: #e9e5d8;
  --paper-2: #f4f0e4;
  --ink: #0a0a0a;
  --ink-soft: #30302b;
  --muted: #6b6b60;
  --line: #0a0a0a;
  --acid: #c8ff00;
  --orange: #ff5a1f;
  --red: #d92d20;
  --green: #1c7c3c;
  --shadow: 5px 5px 0 var(--ink);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.33'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--acid); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase;
}
.skip:focus { top: 12px; }

.rawl {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.9%, rgba(10,10,10,.035) 50%, transparent 50.1%),
    linear-gradient(0deg, transparent 0 49.9%, rgba(10,10,10,.035) 50%, transparent 50.1%);
  background-size: 110px 110px;
}

.masthead {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "brand state menu"
    "nav nav nav"
    "ticker ticker ticker";
  gap: 0;
  background: var(--paper);
  border-bottom: 3px solid var(--line);
}
.wordmark {
  grid-area: brand;
  display: inline-flex; align-items: center; gap: .1em;
  padding: 14px 18px;
  font-family: var(--sans); font-weight: 900; letter-spacing: -.07em;
  font-size: clamp(22px, 3vw, 34px); line-height: 1; text-decoration: none;
  text-transform: uppercase;
}
.wordmark b { font-family: var(--mono); font-weight: 400; color: var(--orange); padding: 0 .08em; }
.wordmark:hover { background: var(--acid); }
.chain-state {
  grid-area: state; justify-self: end; align-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.chain-state.ok .dot { background: var(--green); }
.chain-state.warn .dot { background: var(--orange); }
.chain-state.bad .dot { background: var(--red); }
.menu-button {
  grid-area: menu; display: none; border: 0; border-left: 3px solid var(--line);
  background: var(--acid); padding: 0 18px; font-family: var(--mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
}
.sitenav {
  grid-area: nav; display: flex; align-items: stretch; overflow-x: auto;
  border-top: 2px solid var(--line); scrollbar-width: none;
}
.sitenav::-webkit-scrollbar { display: none; }
.sitenav a {
  flex: 0 0 auto; padding: 10px 15px; border-right: 2px solid var(--line);
  text-decoration: none; font-family: var(--mono); font-size: 11px;
  letter-spacing: .11em; text-transform: uppercase;
}
.sitenav a:first-child { padding-left: 18px; }
.sitenav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.sitenav a:hover { background: var(--acid); color: var(--ink); }
.ticker {
  grid-area: ticker; display: flex; gap: 26px; overflow: hidden;
  background: var(--ink); color: var(--paper); padding: 6px 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  white-space: nowrap; text-transform: uppercase;
}
.ticker b { color: var(--acid); font-weight: 400; }

main { position: relative; z-index: 1; min-height: 58vh; }
.kicker {
  margin: 0 0 8px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .15em; text-transform: uppercase;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.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;
}

.loading-screen {
  max-width: 1200px; margin: 0 auto; padding: clamp(58px, 10vw, 140px) 22px;
}
.loading-screen h1, .hero h1, .display {
  margin: 0; font-weight: 900; letter-spacing: -.075em;
  line-height: .82; text-transform: uppercase;
}
.loading-screen h1 { font-size: clamp(64px, 14vw, 190px); }
.loading-screen .muted { margin-top: 30px; font-family: var(--mono); font-size: 12px; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  border-bottom: 3px solid var(--line);
}
.hero-copy { padding: clamp(38px, 7vw, 100px) 22px 30px; min-width: 0; }
.hero h1 { font-size: clamp(54px, 10.8vw, 152px); max-width: 11ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lede {
  display: flex; flex-wrap: wrap; gap: 18px 42px; align-items: flex-end;
  margin-top: 26px; max-width: 760px;
}
.hero-lede p { max-width: 48ch; margin: 0; font-size: clamp(15px, 1.5vw, 19px); }
.hero-figure {
  border-left: 3px solid var(--line); background: var(--ink); color: var(--paper);
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 320px;
}
.hero-figure .kicker { color: var(--acid); }
.hero-figure .big-number {
  font-family: var(--mono); font-size: clamp(38px, 5vw, 78px); line-height: .9;
  letter-spacing: -.07em; overflow-wrap: anywhere;
}
.hero-figure p { margin: 18px 0 0; color: #b9b9ae; font-family: var(--mono); font-size: 11px; }
.hero-figure .rule { height: 2px; background: var(--acid); margin: 16px 0; }
.status-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 3px solid var(--line); background: var(--paper-2);
}
.status-strip .cell {
  padding: 13px 16px; border-right: 2px solid var(--line); min-width: 0;
}
.status-strip .cell:last-child { border-right: 0; }
.status-strip .cell span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status-strip .cell b { display: block; margin-top: 4px; font-family: var(--mono); font-size: 14px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.section { padding: clamp(28px, 4.5vw, 64px) 22px; border-bottom: 3px solid var(--line); max-width: 1600px; margin: 0 auto; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0; font-size: clamp(28px, 5vw, 58px); line-height: .9;
  letter-spacing: -.06em; text-transform: uppercase;
}
.section-head p { max-width: 48ch; margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.section-head a, .section-head button { white-space: nowrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--line); }
.stat {
  padding: 18px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
  background: var(--paper); min-width: 0;
}
.stat:nth-child(4n) { border-right: 0; }
.stat:nth-last-child(-n+4) { border-bottom: 0; }
.stat-label { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-value { margin-top: 10px; font-family: var(--mono); font-size: clamp(22px, 3.2vw, 42px); line-height: 1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.stat-note { margin-top: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.stat.acid { background: var(--acid); }
.stat.ink { background: var(--ink); color: var(--paper); }
.stat.ink .stat-label, .stat.ink .stat-note { color: #a9a99f; }

.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .45fr); gap: 0; border: 2px solid var(--line); }
.split > * { min-width: 0; }
.split > :first-child { border-right: 2px solid var(--line); }
.split .panel { border: 0; }
.panel { background: var(--paper); border: 2px solid var(--line); }
.panel + .panel { margin-top: 22px; }
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 15px; border-bottom: 2px solid var(--line); background: var(--paper-2);
}
.panel-head h3 { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.panel-head .meta { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }
.hero-chart { padding: 12px 10px 0; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: rgba(10,10,10,.14); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-family: var(--mono); font-size: 8px; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--acid); opacity: .55; }
.chart .dot { fill: var(--orange); }
.chart .bar { fill: var(--ink); }
.chart .bar.hot { fill: var(--orange); }

.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 11px; }
.data-table th, .data-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(10,10,10,.2); white-space: nowrap; }
.data-table th { position: sticky; top: 0; background: var(--paper-2); font-weight: 400; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); z-index: 2; }
.data-table tbody tr:hover { background: var(--acid); }
.data-table tbody tr[data-click] { cursor: pointer; }
.data-table td.num, .data-table th.num { text-align: right; }
.data-table td.wrap { white-space: normal; min-width: 220px; }
.data-table .hash { max-width: 250px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }
.data-table tr:last-child td { border-bottom: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px;
  border: 1px solid var(--ink); font-family: var(--mono); font-size: 9px;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.pill.ok { background: var(--acid); }
.pill.warn { background: var(--orange); color: var(--ink); }
.pill.bad { background: var(--red); color: #fff; border-color: var(--red); }
.pill.dark { background: var(--ink); color: var(--paper); }
.hash { font-family: var(--mono); word-break: break-all; }
.small { font-size: 10px; }
.muted-sm { color: var(--muted); font-family: var(--mono); font-size: 10px; }

.bar-list { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 92px; align-items: center; gap: 10px; }
.bar-row .b-label { font-family: var(--mono); font-size: 10px; }
.bar-row .b-track { display: block; height: 17px; border: 2px solid var(--line); background: var(--paper-2); overflow: hidden; }
.bar-row .b-fill { display: block; height: 100%; background: var(--ink); min-width: 2px; }
.bar-row:nth-child(3n) .b-fill { background: var(--orange); }
.bar-row .b-value { text-align: right; font-family: var(--mono); font-size: 10px; }

.cohort-row { display: grid; grid-template-columns: 98px minmax(0, 1fr) 128px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(10,10,10,.16); }
.cohort-row:last-child { border-bottom: 0; }
.cohort-row .c-name { font-family: var(--mono); font-size: 11px; }
.cohort-row .c-bar { height: 20px; background: var(--paper-2); border: 2px solid var(--line); }
.cohort-row .c-bar i { display: block; height: 100%; background: var(--orange); }
.cohort-row .c-val { text-align: right; font-family: var(--mono); font-size: 10px; }

.donut-wrap { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 18px; align-items: center; }
.donut { width: 132px; height: 132px; border-radius: 50%; border: 3px solid var(--ink); position: relative; }
.donut::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.donut b { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font-family: var(--mono); font-size: 19px; letter-spacing: -.05em; }
.legend { display: grid; gap: 8px; }
.legend div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 10px; border-bottom: 1px solid rgba(10,10,10,.16); padding-bottom: 6px; }
.legend i { width: 10px; height: 10px; border: 1px solid var(--ink); display: inline-block; margin-right: 7px; }
.legend .k { display: flex; align-items: center; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.field { display: flex; align-items: center; gap: 0; border: 2px solid var(--line); background: var(--paper-2); min-width: 0; }
.field label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; padding: 0 9px; border-right: 2px solid var(--line); white-space: nowrap; }
.field input, .field select { border: 0; background: transparent; padding: 10px 11px; font-family: var(--mono); font-size: 12px; min-width: 0; outline: 0; }
.field input { width: min(340px, 52vw); }
.field select { width: 220px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 2px solid var(--line); background: var(--ink); color: var(--paper);
  padding: 9px 13px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  box-shadow: 3px 3px 0 var(--orange);
}
.button:hover { background: var(--acid); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.button.ghost:hover { background: var(--acid); }
.button:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

.block-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); border: 2px solid var(--line); min-height: 560px; }
.block-list { border-right: 2px solid var(--line); max-height: 720px; overflow: auto; }
.block-row {
  display: grid; grid-template-columns: 1fr auto; width: 100%; text-align: left;
  padding: 11px 13px; border: 0; border-bottom: 1px solid rgba(10,10,10,.2);
  background: transparent; font-family: var(--mono); font-size: 11px;
}
.block-row:hover, .block-row[aria-current="true"] { background: var(--acid); }
.block-row b { font-size: 13px; }
.block-row small { color: var(--muted); font-size: 9px; }
.block-detail { padding: 22px; min-width: 0; }
.block-detail h2 { margin: 4px 0 12px; font-size: clamp(30px, 6vw, 74px); line-height: .85; letter-spacing: -.07em; }
.block-detail .hash { display: block; margin: 4px 0; font-size: 11px; }
.kv { display: grid; grid-template-columns: 132px minmax(0, 1fr); border-top: 2px solid var(--line); margin-top: 20px; }
.kv dt, .kv dd { margin: 0; padding: 9px 10px; border-bottom: 1px solid rgba(10,10,10,.18); font-family: var(--mono); font-size: 11px; }
.kv dt { color: var(--muted); border-right: 1px solid rgba(10,10,10,.18); }
.kv dd { overflow-wrap: anywhere; }

.tabs { display: flex; flex-wrap: wrap; gap: 0; border: 2px solid var(--line); width: fit-content; max-width: 100%; margin-bottom: 18px; }
.tab { border: 0; border-right: 2px solid var(--line); background: transparent; padding: 9px 13px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.tab:last-child { border-right: 0; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab:hover { background: var(--acid); color: var(--ink); }

.token-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--line); border-left: 2px solid var(--line); }
.token-card {
  display: flex; flex-direction: column; min-height: 210px; padding: 15px;
  border-right: 2px solid var(--line); border-bottom: 2px solid var(--line);
  background: var(--paper); color: inherit; text-decoration: none; text-align: left;
}
.token-card:hover { background: var(--acid); }
.token-card .token-media { width: 54px; height: 54px; border: 2px solid var(--line); object-fit: cover; background: var(--ink); margin-bottom: 12px; }
.token-card .token-name { font-size: 19px; line-height: 1; letter-spacing: -.04em; font-weight: 800; overflow-wrap: anywhere; }
.token-card .token-id { margin-top: 8px; font-family: var(--mono); font-size: 9px; color: var(--muted); overflow-wrap: anywhere; }
.token-card .token-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10px; }
.token-card .nft-flag { background: var(--orange); padding: 2px 5px; border: 1px solid var(--ink); }

.search-hero { border-bottom: 3px solid var(--line); padding: clamp(36px, 7vw, 90px) 22px; max-width: 1600px; margin: 0 auto; }
.search-hero h1 { margin: 0 0 22px; font-size: clamp(44px, 10vw, 130px); line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
.search-box { display: flex; border: 3px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow); max-width: 1000px; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 18px; font-family: var(--mono); font-size: clamp(14px, 2vw, 20px); outline: 0; }
.search-box button { border: 0; border-left: 3px solid var(--line); background: var(--ink); color: var(--paper); padding: 0 22px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.search-box button:hover { background: var(--acid); color: var(--ink); }
.search-hints { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.search-hints button { border: 1px solid var(--ink); background: transparent; padding: 4px 7px; font-family: var(--mono); font-size: 9px; }
.search-hints button:hover { background: var(--acid); }
.result { margin-top: 22px; }
.result h2 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 48px); letter-spacing: -.05em; text-transform: uppercase; }

.embed-wrap { border: 2px solid var(--line); background: var(--paper-2); }
.embed-wrap iframe { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #fff; }
.embed-note { padding: 20px; border-bottom: 2px solid var(--line); }
.embed-note h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 44px); letter-spacing: -.05em; text-transform: uppercase; }
.embed-note p { margin: 0; max-width: 70ch; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.embed-note .button { margin-top: 14px; }
.empty {
  border: 2px dashed var(--ink); padding: 28px; text-align: center;
  background: var(--paper-2); font-family: var(--mono); font-size: 12px;
}
.empty p { margin: 0 0 12px; }
.error-box { border: 3px solid var(--red); background: #fff; padding: 16px; font-family: var(--mono); font-size: 12px; }
.error-box b { color: var(--red); }
.loading-inline { padding: 30px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.loading-inline::after { content: "…"; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

dialog {
  width: min(940px, calc(100vw - 28px)); max-height: calc(100vh - 28px);
  margin: auto; padding: 0; border: 3px solid var(--ink);
  background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--orange);
}
dialog::backdrop { background: rgba(10,10,10,.55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-bottom: 2px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.dialog-head .kicker { margin: 0; }
.close { border: 2px solid var(--line); background: var(--ink); color: var(--paper); width: 32px; height: 32px; font-size: 20px; line-height: 1; }
.close:hover { background: var(--acid); color: var(--ink); }
#detail-body { padding: 18px; overflow-wrap: anywhere; }
#detail-body h2 { margin: 0 0 10px; font-size: clamp(25px, 4vw, 42px); letter-spacing: -.05em; }
#detail-body .media-large { width: min(100%, 380px); max-height: 380px; object-fit: contain; border: 2px solid var(--ink); background: var(--ink); }

.footer {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr auto;
  gap: 24px; padding: 28px 22px; border-top: 3px solid var(--line);
  background: var(--ink); color: var(--paper);
}
.footer p { margin: 0; max-width: 56ch; color: #b9b9ae; font-family: var(--mono); font-size: 10px; }
.footer .kicker { color: var(--acid); }
.footer a { color: var(--paper); }
.footer a:hover { background: var(--acid); color: var(--ink); }
.footer-mark { font-size: 48px; font-weight: 900; line-height: .8; letter-spacing: -.08em; align-self: end; }
.footer-mark span { color: var(--orange); font-size: 12px; vertical-align: top; }

.toast {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  max-width: min(440px, calc(100vw - 32px)); padding: 12px 14px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--acid);
  font-family: var(--mono); font-size: 11px; opacity: 0; transform: translateY(10px);
  pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast.bad { border-color: var(--orange); }

@media (max-width: 1100px) {
  .token-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split > :first-child { border-right: 0; border-bottom: 2px solid var(--line); }
}
@media (max-width: 900px) {
  .masthead { grid-template-columns: 1fr auto auto; grid-template-areas: "brand state menu" "nav nav nav" "ticker ticker ticker"; }
  .menu-button { display: block; }
  .sitenav { display: none; }
  .sitenav.open { display: flex; }
  .chain-state { padding: 0 10px; font-size: 9px; }
  .ticker { gap: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-figure { border-left: 0; border-top: 3px solid var(--line); min-height: 230px; }
  .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-strip .cell { border-bottom: 1px solid var(--line); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(4n) { border-right: 0; }
  .stat:nth-last-child(-n+4) { border-bottom: 2px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .block-layout { grid-template-columns: 1fr; }
  .block-list { border-right: 0; border-bottom: 2px solid var(--line); max-height: 260px; }
  .token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: 1fr; }
  .footer-mark { display: none; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .section { padding-left: 14px; padding-right: 14px; }
  .hero-copy, .search-hero { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 560px) {
  .wordmark { padding-left: 12px; }
  .chain-state { min-width: 0; padding: 0 8px; }
  #chain-label { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar-row { grid-template-columns: 58px minmax(0,1fr) 92px; gap: 6px; }
  .bar-row .b-value { font-size: 9px; }
  .cohort-table th:nth-child(3), .cohort-table td:nth-child(3) { display: none; }
  .data-table.cohort-table { min-width: 0; }
  .ticker { font-size: 9px; padding: 5px 12px; }
  .status-strip .cell { padding: 10px 12px; }
  .stat { padding: 13px; }
  .stat-value { font-size: 24px; }
  .hero-lede { gap: 12px; }
  .section-head h2 { font-size: 34px; }
  .token-grid { grid-template-columns: 1fr 1fr; }
  .token-card { min-height: 175px; padding: 11px; }
  .token-card .token-name { font-size: 15px; }
  .bar-row .b-label, .bar-row .b-value { font-size: 9px; }
  .cohort-row { grid-template-columns: 72px minmax(0,1fr) 92px; gap: 6px; }
  .kv { grid-template-columns: 98px minmax(0,1fr); }
  .field input { width: 100%; }
  .field { width: 100%; }
  .field input, .field select { width: 100%; }
  .search-box button { padding: 0 13px; font-size: 9px; }
  .donut-wrap { grid-template-columns: 110px minmax(0,1fr); gap: 10px; }
  .donut { width: 110px; height: 110px; }
  .donut::after { inset: 22px; }
  .data-table { font-size: 10px; }
  .data-table th, .data-table td { padding: 7px 8px; }
}

.family-links { display: flex; flex-wrap: wrap; gap: 9px; margin: -4px 0 22px; }
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.metric-card { min-width: 0; border: 2px solid var(--line); background: var(--paper); padding: 16px; }
.metric-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.metric-card-head .kicker { margin-bottom: 5px; }
.metric-card-head h3 { margin: 0; font-size: clamp(18px, 2vw, 25px); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; overflow-wrap: anywhere; }
.metric-card-head .meta { text-decoration: none; border-bottom: 1px solid var(--line); }
.metric-card-value { margin: 18px 0 4px; font-family: var(--mono); font-size: clamp(25px, 3.5vw, 42px); line-height: 1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.metric-card-value span { display: block; margin-top: 8px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.metric-card-chart { min-height: 150px; }
.metric-card-chart .empty { padding: 24px 10px; }
.metric-card-desc { min-height: 2.7em; margin: 10px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.4; }
.library-groups { display: grid; gap: 26px; }
.library-group { border-top: 3px solid var(--line); }
.library-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0 8px; }
.library-group-head h3 { margin: 0; font-size: 20px; letter-spacing: -.04em; text-transform: uppercase; }
.library-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 12px 10px; border-top: 1px solid rgba(10,10,10,.2); text-decoration: none; }
.library-row:hover { background: var(--acid); }
.library-row b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.library-row small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.35; }
.library-unit { color: var(--muted); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.library-arrow { font-family: var(--mono); }
.metric-title { margin: 0; font-size: clamp(38px, 8vw, 106px); line-height: .84; letter-spacing: -.07em; text-transform: uppercase; overflow-wrap: anywhere; }
.metric-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.metric-readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--line); margin-top: 22px; background: var(--paper-2); }
.metric-readout > div { padding: 15px; border-right: 2px solid var(--line); min-width: 0; }
.metric-readout > div:last-child { border-right: 0; }
.metric-readout span { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.metric-readout b { display: block; margin-top: 7px; font-family: var(--mono); font-size: clamp(16px, 2.5vw, 26px); font-weight: 400; overflow-wrap: anywhere; }
.range-buttons { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); }
.range-button { border: 0; border-right: 1px solid var(--line); background: transparent; padding: 6px 8px; font-family: var(--mono); font-size: 9px; }
.range-button:last-child { border-right: 0; }
.range-button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.range-button:hover { background: var(--acid); color: var(--ink); }
.related-list { display: grid; gap: 8px; }
.related-list a { font-family: var(--mono); font-size: 10px; text-decoration: none; border-bottom: 1px solid rgba(10,10,10,.2); padding-bottom: 7px; }
.related-list a:hover { background: var(--acid); }
@media (max-width: 900px) {
  .family-grid { grid-template-columns: 1fr; }
  .metric-card-desc { min-height: 0; }
  .library-row { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px; }
  .library-unit { display: none; }
}
@media (max-width: 560px) {
  .metric-readout { grid-template-columns: 1fr; }
  .metric-readout > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-readout > div:last-child { border-bottom: 0; }
  .metric-meta { gap: 5px; }
  .metric-title { font-size: 42px; }
  .library-row small { font-size: 9px; }
}
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.feature-panel { min-width: 0; border: 2px solid var(--line); background: var(--paper-2); }
.feature-panel .panel-body { padding: 10px 12px 4px; }
.feature-panel .chart { max-height: 220px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.market-readout { margin-top: 22px; }
.market-readout b.positive { color: var(--green); }
.market-readout b.negative { color: var(--red); }
.valuation-section { margin-top: 28px; }
.valuation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 2px solid var(--line); margin-bottom: 22px; }
.valuation-card { padding: 16px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); background: var(--paper-2); min-width: 0; }
.valuation-card:nth-child(3n) { border-right: 0; }
.valuation-card:nth-last-child(-n+3) { border-bottom: 0; }
.valuation-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.valuation-head h3 { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.valuation-head .pill { background: var(--acid); }
.valuation-card p { margin: 12px 0 0; color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; }
@media (max-width: 900px) {
  .valuation-grid { grid-template-columns: 1fr; }
  .valuation-card { border-right: 0; }
  .valuation-card:nth-last-child(-n+3) { border-bottom: 2px solid var(--line); }
  .valuation-card:last-child { border-bottom: 0; }
}
.chart-shell { position: relative; width: 100%; touch-action: pan-y; }
.chart-shell .chart-canvas { width: 100%; }
.chart-crosshair { display: none; position: absolute; top: 8px; bottom: 28px; width: 1px; background: var(--orange); pointer-events: none; z-index: 2; }
.chart-tip { display: none; position: absolute; top: 8px; z-index: 3; min-width: 150px; padding: 7px 9px; border: 2px solid var(--line); background: var(--paper); box-shadow: 4px 4px 0 var(--orange); font-family: var(--mono); font-size: 10px; pointer-events: none; }
.chart-tip b { display: block; font-weight: 400; color: var(--muted); }
.chart-tip span { display: block; margin-top: 5px; font-size: 13px; color: var(--ink); }
