:root {
  --ink: #111312;
  --paper: #ece9df;
  --paper-2: #f5f2e9;
  --line: #c9c5b9;
  --muted: #686b67;
  --coral: #ef553f;
  --coral-deep: #ca3e2d;
  --mint: #a9d9bd;
  --yellow: #ecd96f;
  --blue: #5577e6;
  --white: #fffdf7;
  --mono: "DM Mono", ui-monospace, monospace;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", sans-serif;
  --rail: 224px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
::selection { color: var(--white); background: var(--coral); }

.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1200;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
}
.skip-link:focus { top: 12px; }

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  color: var(--paper-2);
  background: var(--ink);
  border-right: 1px solid #333633;
}
.brand {
  height: 108px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 24px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid #333633;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  border: 1px solid #666b66;
  border-radius: 50%;
  font: 500 17px/1 var(--mono);
  letter-spacing: -.12em;
  transform: rotate(-9deg);
}
.brand-mark span { color: var(--coral); }
.brand-type { font: 700 14px/1.05 var(--sans); letter-spacing: -.03em; }

.rail-nav { padding: 24px 0; }
.rail-nav [data-view-link] {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 14px 24px;
  color: #9da19d;
  text-decoration: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease, padding-left .2s ease;
}
.rail-nav [data-view-link]::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--coral);
  transition: width .25s ease;
}
.rail-nav [data-view-link] span { color: #555a56; font: 10px/1 var(--mono); }
.rail-nav [data-view-link]:hover, .rail-nav [data-view-link].active { color: var(--white); padding-left: 30px; }
.rail-nav [data-view-link].active::after { width: 28px; }
.rail-nav [data-view-link].active span { color: var(--coral); }

.rail-foot { margin-top: auto; padding: 22px 24px 28px; border-top: 1px solid #333633; }
.chain-seal { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.chain-seal svg { width: 28px; fill: var(--coral); }
.chain-seal b, .chain-seal small { display: block; }
.chain-seal b { font-size: 11px; }
.chain-seal small { margin-top: 3px; color: #7c817d; font: 9px/1 var(--mono); }
.credit { color: #747975; font: 9px/1.5 var(--mono); text-decoration: none; transition: color .2s; }
.credit:hover { color: var(--white); }

.shell { margin-left: var(--rail); }
.mobile-head { display: none; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: rgba(236,233,223,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar p { margin: 0; color: var(--muted); font: 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.terminal-prompt { color: var(--coral); font-weight: 500; }
.freshness {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 10px/1 var(--mono);
}
.freshness i { width: 7px; height: 7px; border-radius: 50%; background: #cb9c38; box-shadow: 0 0 0 4px rgba(203,156,56,.13); }
.freshness.ok i { background: #3a9b68; box-shadow: 0 0 0 4px rgba(58,155,104,.13); }
.freshness.bad i { background: var(--coral); box-shadow: 0 0 0 4px rgba(239,85,63,.13); }
.freshness b { font-size: 13px; }

main { overflow: clip; }
.view { display: none; min-height: calc(100vh - 52px); }
.view.active { display: block; animation: viewIn .35s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.reveal { animation: rise .7s cubic-bezier(.2,.72,.2,1) both; }
.reveal:nth-child(2) { animation-delay: .06s; }
.reveal:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(480px, 1.12fr) minmax(430px, .88fr);
  border-bottom: 1px solid var(--ink);
}
.hero-copy {
  position: relative;
  padding: 66px clamp(42px, 5vw, 78px) 54px;
  border-right: 1px solid var(--ink);
  overflow: hidden;
}
.hero-copy::after {
  content: "AVAX / 43114";
  position: absolute;
  right: -32px;
  top: 126px;
  color: color-mix(in srgb, var(--ink) 25%, transparent);
  font: 800 clamp(76px, 8vw, 142px)/.7 var(--sans);
  letter-spacing: -.08em;
  writing-mode: vertical-rl;
}
.kicker { margin: 0 0 17px; color: var(--muted); font: 500 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.hero-copy h1, .page-intro h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font: 400 clamp(76px, 7.4vw, 128px)/.72 var(--display);
  letter-spacing: -.055em;
}
.hero-copy h1 em, .page-intro h1 em { color: var(--coral); font-weight: 400; }
.hero-copy h1 span { display: inline-block; transform: translateX(18%); }
.hero-dek { max-width: 570px; margin: 52px 0 28px; font-size: 16px; line-height: 1.65; letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 600 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--coral); border-color: var(--coral); }
.button-line { color: var(--ink); background: transparent; }
.button-line:hover { color: var(--white); background: var(--ink); }
.button-coral { color: var(--ink); background: var(--coral); border-color: var(--coral); }
.button-coral:hover { color: var(--white); background: var(--coral-deep); }

.hero-ledger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 54px clamp(34px, 4vw, 64px);
  background: var(--paper-2);
}
.hero-ledger::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}
.ledger-head { position: absolute; top: 30px; left: 34px; right: 34px; display: flex; justify-content: space-between; color: var(--muted); font: 9px/1 var(--mono); }
.hero-number { position: relative; display: flex; align-items: flex-end; gap: 17px; }
.hero-number > span { font: 400 clamp(120px, 13vw, 220px)/.68 var(--display); letter-spacing: -.08em; }
.hero-number small { max-width: 126px; padding-bottom: 9px; color: var(--muted); font: 10px/1.5 var(--mono); text-transform: uppercase; }
.hero-number small b { color: var(--ink); }
.supply-rule { position: relative; height: 10px; margin: 40px 0 28px; background: var(--ink); overflow: hidden; }
.supply-rule span { display: block; height: 100%; min-width: 2px; background: var(--coral); }
.hero-facts { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.hero-facts div { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.hero-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.hero-facts div:nth-child(even) { padding-left: 20px; }
.hero-facts dt { font: 500 22px/1 var(--mono); letter-spacing: -.06em; }
.hero-facts dd { margin: 7px 0 0; color: var(--muted); font: 9px/1.35 var(--mono); text-transform: uppercase; }
.ledger-note { position: relative; margin: 18px 0 0; color: var(--muted); font: 9px/1.55 var(--mono); }

.tape { height: 42px; overflow: hidden; color: var(--white); background: var(--coral); border-bottom: 1px solid var(--ink); }
.tape-track { width: max-content; height: 100%; display: flex; align-items: center; gap: 28px; animation: ticker 24s linear infinite; font: 500 9px/1 var(--mono); letter-spacing: .08em; }
.tape-track span b { font-size: 14px; margin-right: 6px; }
.tape-track i { color: var(--ink); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 90px clamp(34px, 5.8vw, 92px); border-bottom: 1px solid var(--ink); }
.section-title { display: grid; grid-template-columns: 210px 1fr 1fr; gap: 26px; align-items: start; }
.section-title h2, .section-head h2, .panel-head h2, .control-copy h2 {
  margin: 0;
  font: 400 clamp(42px, 4.5vw, 74px)/.86 var(--display);
  letter-spacing: -.045em;
}
.section-title h2 em, .section-head h2 em, .control-copy h2 em { color: var(--coral); font-weight: 400; }
.section-title > p:last-child { max-width: 410px; margin: 4px 0 0; font-size: 14px; line-height: 1.7; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 38px; }
.section-head > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
.text-button { padding: 8px 0; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; font: 500 10px/1 var(--mono); text-transform: uppercase; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 1px solid var(--ink); }
.metric-card { min-height: 196px; padding: 23px; border-right: 1px solid var(--ink); background: rgba(255,253,247,.25); }
.metric-card:last-child { border-right: 0; }
.metric-card .metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 9px/1 var(--mono); text-transform: uppercase; }
.metric-card .metric-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); border: 1px solid var(--ink); }
.metric-card strong { display: block; margin: 38px 0 8px; font: 400 clamp(39px, 4vw, 66px)/.8 var(--display); letter-spacing: -.05em; }
.metric-card p { margin: 0; color: var(--muted); font: 9px/1.5 var(--mono); }
.metric-card.alert { color: var(--white); background: var(--ink); }
.metric-card.alert .metric-top, .metric-card.alert p { color: #9da19d; }
.metric-card.alert strong { color: var(--coral); }

.active-desk { background: var(--paper-2); }
.active-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 40px; }
.cap-chart { min-height: 460px; padding: 30px; color: var(--white); background: var(--ink); }
.cap-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; color: #919691; font: 9px/1 var(--mono); }
.cap-row { display: grid; grid-template-columns: 52px minmax(0,1fr) 110px; gap: 13px; align-items: center; margin: 19px 0; }
.cap-row b { font: 500 12px/1 var(--mono); }
.cap-bar { height: 42px; background: #292c2a; overflow: hidden; }
.cap-bar span { height: 100%; display: flex; align-items: center; padding-left: 10px; background: var(--coral); min-width: 2px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.cap-row:nth-child(3) .cap-bar span { background: var(--mint); }
.cap-row:nth-child(4) .cap-bar span { background: var(--yellow); }
.cap-row:nth-child(5) .cap-bar span { background: var(--blue); }
.cap-row:nth-child(6) .cap-bar span { background: #c48fc3; }
.cap-row > span { color: #c4c8c4; font: 10px/1 var(--mono); text-align: right; }
.chart-foot { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 16px; border-top: 1px solid #343735; color: #7f847f; font: 9px/1.5 var(--mono); }
.active-list { border-top: 1px solid var(--ink); }
.active-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 20px 7px; border-bottom: 1px solid var(--ink); cursor: pointer; transition: background .2s, padding .2s; }
.active-item:hover { padding-left: 14px; background: var(--mint); }
.ticker-badge { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 500 9px/1 var(--mono); }
.active-item h3 { margin: 0 0 4px; font-size: 13px; }
.active-item p { margin: 0; color: var(--muted); font: 9px/1.4 var(--mono); }
.active-item > strong { font: 500 13px/1 var(--mono); }

.control-preview { display: grid; grid-template-columns: .78fr 1.22fr; padding: 0; }
.control-copy { padding: 86px clamp(34px, 5vw, 82px); color: var(--white); background: var(--ink); }
.control-copy p:not(.kicker) { max-width: 430px; margin: 28px 0; color: #b1b5b1; font-size: 14px; line-height: 1.7; }
.control-copy .kicker { color: var(--coral); }
.mini-topology { min-height: 540px; position: relative; display: grid; place-items: center; padding: 50px; background: var(--coral); overflow: hidden; }
.mini-topology::before, .topology::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(var(--ink) .8px, transparent .8px); background-size: 13px 13px; }
.topology-orbit { position: relative; width: min(480px, 90%); aspect-ratio: 1; border: 1px solid rgba(17,19,18,.5); border-radius: 50%; display: grid; place-items: center; }
.topology-orbit::before { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(17,19,18,.45); border-radius: 50%; }
.hub-node { position: relative; z-index: 2; width: 148px; height: 148px; display: grid; place-items: center; text-align: center; color: var(--white); background: var(--ink); border-radius: 50%; font: 500 10px/1.4 var(--mono); }
.orbit-node { position: absolute; z-index: 2; width: 112px; min-height: 66px; display: grid; place-items: center; padding: 10px; text-align: center; background: var(--paper-2); border: 1px solid var(--ink); font: 500 9px/1.4 var(--mono); }
.orbit-node.a { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit-node.b { right: -18px; bottom: 20%; }
.orbit-node.c { left: -18px; bottom: 20%; }
.orbit-node.d { bottom: -5px; left: 50%; transform: translateX(-50%); color: var(--white); background: var(--coral-deep); }

.decision-strip { text-align: center; background: var(--mint); }
.decision-strip blockquote { max-width: 1050px; margin: 25px auto; font: 400 clamp(42px, 5vw, 78px)/.96 var(--display); letter-spacing: -.04em; }
.decision-strip blockquote em { color: var(--coral-deep); }
.decision-strip > p:last-child { max-width: 700px; margin: 0 auto; font-size: 13px; line-height: 1.7; }

/* Shared page surfaces */
.page-intro { min-height: 420px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: end; padding: 70px clamp(34px, 5.8vw, 92px) 60px; border-bottom: 1px solid var(--ink); }
.page-intro h1 { font-size: clamp(72px, 8vw, 132px); }
.page-dek { max-width: 470px; margin: 0 0 12px; font-size: 16px; line-height: 1.75; }

/* Registry */
.registry-toolbar { position: sticky; top: 52px; z-index: 30; display: grid; grid-template-columns: minmax(250px,1fr) auto auto; gap: 20px; align-items: center; padding: 18px clamp(24px, 4vw, 58px); background: rgba(245,242,233,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink); }
.search-box { height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; background: var(--white); border: 1px solid var(--ink); }
.search-box span { font: 20px/1 var(--display); }
.search-box input { width: 100%; background: none; border: 0; outline: 0; font: 11px/1 var(--mono); }
.filter-row { display: flex; align-items: center; gap: 6px; }
.filter { padding: 8px 10px; color: var(--muted); background: transparent; border: 1px solid transparent; cursor: pointer; font: 500 9px/1 var(--mono); text-transform: uppercase; }
.filter b { margin-left: 5px; color: var(--ink); }
.filter.active { color: var(--white); background: var(--ink); }
.filter.active b { color: var(--coral); }
.sort-select, .event-ledger label { color: var(--muted); font: 9px/1 var(--mono); text-transform: uppercase; }
.sort-select select, .event-ledger select { margin-left: 8px; padding: 9px 26px 9px 9px; color: var(--ink); background: transparent; border: 1px solid var(--line); font: 9px/1 var(--mono); }
.table-meta { display: flex; justify-content: space-between; padding: 16px clamp(24px, 4vw, 58px); color: var(--muted); border-bottom: 1px solid var(--line); font: 9px/1 var(--mono); }
.table-shell { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.asset-table { min-width: 940px; }
th { color: var(--muted); font: 500 8px/1 var(--mono); letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.asset-table th { padding: 13px 15px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.asset-table th:first-child, .asset-table td:first-child { padding-left: clamp(24px, 4vw, 58px); }
.asset-table th:last-child, .asset-table td:last-child { padding-right: clamp(24px, 4vw, 58px); }
.asset-table td { height: 67px; padding: 11px 15px; border-bottom: 1px solid var(--line); font: 10px/1.35 var(--mono); }
.asset-table tbody tr { cursor: pointer; transition: background .15s; }
.asset-table tbody tr:hover { background: var(--mint); }
.asset-id-cell { display: flex; align-items: center; gap: 12px; }
.asset-id-cell .ticker-badge { width: 38px; height: 38px; flex: 0 0 auto; font-size: 8px; }
.asset-id-cell b, .asset-id-cell small { display: block; }
.asset-id-cell b { margin-bottom: 3px; font: 700 12px/1 var(--sans); }
.asset-id-cell small { max-width: 250px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid var(--line); font-size: 8px; text-transform: uppercase; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: #999; }
.status-pill.live { border-color: #5a9971; }
.status-pill.live i { background: #3b9f67; }
.status-pill.dormant i { background: #aaa89d; }
.ratio-split { color: var(--coral-deep); font-weight: 500; }
.row-arrow { font-size: 16px; transition: transform .2s; }
.asset-table tr:hover .row-arrow { transform: translateX(4px); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 28px; }
.pagination button { width: 34px; height: 34px; background: transparent; border: 1px solid var(--line); cursor: pointer; font: 9px/1 var(--mono); }
.pagination button.active, .pagination button:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }

/* Activity */
.usage-toolbar { min-height: 68px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 12px clamp(22px,3.5vw,52px); border-bottom: 1px solid var(--ink); background: var(--paper-2); }
.usage-toolbar > div { display: flex; align-items: center; gap: 12px; }
.usage-toolbar > div > span, .usage-toolbar a { color: var(--muted); font: 8px/1 var(--mono); text-decoration: none; }
.range-switch { display: flex; }
.range-switch button { min-width: 48px; height: 34px; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-right: 0; cursor: pointer; font: 500 8px/1 var(--mono); }
.range-switch button:last-child { border-right: 1px solid var(--ink); }
.range-switch button.active { color: var(--white); background: var(--ink); }
.usage-toolbar > p { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 0; color: var(--muted); font: 8px/1.4 var(--mono); text-align: center; }
.usage-toolbar > p i { width: 6px; height: 6px; flex: 0 0 auto; background: #3a9b68; border-radius: 50%; box-shadow: 0 0 0 4px rgba(58,155,104,.12); }
.usage-toolbar a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.activity-stats { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--ink); }
.activity-stat { padding: 28px clamp(22px, 3.5vw, 52px); border-right: 1px solid var(--ink); }
.activity-stat:nth-child(3n) { border-right: 0; }
.activity-stat:nth-child(-n+3) { border-bottom: 1px solid var(--ink); }
.activity-stat span { display: block; color: var(--muted); font: 8px/1 var(--mono); text-transform: uppercase; }
.activity-stat strong { display: block; margin: 13px 0 6px; font: 400 44px/1 var(--display); }
.activity-stat small { color: var(--muted); font: 8px/1.4 var(--mono); }
.usage-chart-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ink); }
.panel { padding: 46px clamp(24px, 4vw, 58px); }
.movement-chart { border-right: 1px solid var(--ink); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.panel-head h2 { font-size: 46px; }
.panel-head > span { color: var(--muted); font: 8px/1 var(--mono); text-transform: uppercase; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.chart-legend span { position: relative; padding-left: 12px; color: var(--muted); font: 8px/1 var(--mono); text-transform: uppercase; }
.chart-legend span::before { content: ""; position: absolute; left: 0; top: 1px; width: 7px; height: 7px; background: var(--coral); }
.chart-legend .primary::before { background: var(--mint); border: 1px solid var(--ink); }
#activity-chart, #participant-chart { width: 100%; height: auto; overflow: visible; }
#activity-chart .grid-line, #participant-chart .grid-line { stroke: var(--line); stroke-width: 1; }
#activity-chart .axis-label, #participant-chart .axis-label { fill: var(--muted); font: 18px var(--mono); }
#activity-chart .event-bar.wallet { fill: var(--coral); }
#activity-chart .event-bar.primary { fill: var(--mint); stroke: var(--ink); stroke-width: 1; }
#activity-chart .event-bar:hover { fill: var(--ink); }
#participant-chart .participant-bar.returning { fill: var(--ink); opacity: .22; }
#participant-chart .participant-bar.new { fill: var(--coral); }
#participant-chart .trend-line { fill: none; stroke: var(--ink); stroke-width: 3; }
.usage-assets { padding: 68px clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--ink); }
.usage-table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.usage-table { min-width: 900px; }
.usage-table th, .usage-table td { padding: 15px 10px; border-bottom: 1px solid var(--line); font: 9px/1.35 var(--mono); text-align: right; }
.usage-table th:first-child, .usage-table td:first-child { text-align: left; }
.usage-table td:first-child { display: flex; align-items: center; gap: 10px; }
.usage-table tbody tr { cursor: pointer; }
.usage-table tbody tr:hover { background: var(--paper-2); }
.holder-usage-grid { display: grid; grid-template-columns: .8fr 1.2fr; border-bottom: 1px solid var(--ink); }
.holder-usage-grid > :first-child { border-right: 1px solid var(--ink); }
.holder-row { margin: 22px 0; }
.holder-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font: 9px/1 var(--mono); }
.holder-row-head b { font-size: 11px; }
.holder-row-head span { color: var(--muted); }
.holder-bar { height: 8px; background: var(--line); }
.holder-bar span { display: block; height: 100%; background: var(--ink); }
.holder-sub { margin: 7px 0 0; color: var(--muted); font: 8px/1 var(--mono); }
.metric-boundary article { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.metric-boundary article > span { color: var(--coral-deep); font: 400 25px/1 var(--display); }
.metric-boundary article b { font: 600 10px/1.2 var(--mono); text-transform: uppercase; }
.metric-boundary article p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.event-ledger { padding: 68px clamp(24px, 4vw, 58px); }
.event-table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.event-table { min-width: 920px; }
.event-table th, .event-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); font: 9px/1.35 var(--mono); }
.event-type { display: inline-block; min-width: 58px; padding: 5px 6px; text-align: center; border: 1px solid var(--line); text-transform: uppercase; }
.event-type.mint { background: var(--mint); border-color: var(--ink); }
.event-type.burn { color: var(--white); background: var(--coral); border-color: var(--coral); }
.address-link, .tx-link { text-decoration: none; border-bottom: 1px dotted var(--muted); }
.address-link:hover, .tx-link:hover { color: var(--coral-deep); }

/* Control */
.control-intro { color: var(--white); background: var(--ink); }
.control-intro .page-dek, .control-intro .kicker { color: #9ea39e; }
.panel-dark { color: var(--white); background: #191c1a; }
.topology { position: relative; min-height: 640px; padding: 62px clamp(28px, 5vw, 80px); overflow: hidden; border-bottom: 1px solid #424642; }
.topology::before { opacity: .13; background-image: radial-gradient(var(--paper) .7px, transparent .7px); }
.topology-map { position: relative; z-index: 1; min-height: 500px; display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; align-items: center; gap: 34px; }
.topology-stack { display: grid; gap: 14px; }
.topology-node { position: relative; padding: 20px; background: #222623; border: 1px solid #4d524d; }
.topology-node::after { content: ""; position: absolute; left: 100%; top: 50%; width: 35px; height: 1px; background: #626762; }
.topology-node h3 { margin: 0 0 7px; font: 500 12px/1.2 var(--mono); }
.topology-node p { margin: 0; color: #979d98; font: 8px/1.5 var(--mono); }
.topology-node.admin { color: var(--ink); background: var(--coral); border-color: var(--coral); }
.topology-node.admin p { color: #5c231c; }
.topology-hub { position: relative; width: min(310px, 100%); aspect-ratio: 1; display: grid; place-items: center; margin: auto; border: 1px solid #626762; border-radius: 50%; text-align: center; }
.topology-hub::before { content: ""; position: absolute; inset: 13%; border: 1px dashed #4b504c; border-radius: 50%; animation: spin 28s linear infinite; }
.topology-hub h2 { position: relative; margin: 0; font: 400 48px/.82 var(--display); }
.topology-hub h2 em { display: block; color: var(--coral); font-weight: 400; }
.topology-hub p { position: absolute; bottom: 54px; color: #898f8a; font: 8px/1 var(--mono); }
@keyframes spin { to { transform: rotate(360deg); } }
.topology-fan { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.topology-fan::before { content: ""; position: absolute; right: 100%; top: 50%; width: 35px; height: 1px; background: #626762; }
.fan-card { min-height: 132px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #4d524d; background: #222623; }
.fan-card strong { font: 400 38px/1 var(--display); }
.fan-card span { color: #9ba09c; font: 8px/1.5 var(--mono); text-transform: uppercase; }
.fan-card.signal { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.fan-card.signal span { color: #3c5e4b; }
.control-metrics { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--ink); }
.control-metric { padding: 25px clamp(18px,3vw,42px); border-right: 1px solid var(--ink); }
.control-metric:last-child { border-right: 0; }
.control-metric span { display: block; color: var(--muted); font: 8px/1 var(--mono); text-transform: uppercase; }
.control-metric strong { display: block; margin: 13px 0 5px; font: 400 34px/1 var(--display); }
.control-metric small { color: var(--muted); font: 8px/1.4 var(--mono); }
.evidence-label { padding: 7px 9px; border: 1px solid var(--line); font: 8px/1 var(--mono); text-transform: uppercase; }
.risk-list { border-top: 1px solid var(--ink); }
.risk-item { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 30px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.risk-level { padding: 7px 8px; border: 1px solid var(--ink); font: 8px/1 var(--mono); text-align: center; text-transform: uppercase; }
.risk-level.critical { color: var(--white); background: var(--coral-deep); border-color: var(--coral-deep); }
.risk-level.high { background: var(--yellow); }
.risk-level.medium { background: var(--mint); }
.risk-item h3 { margin: 2px 0 0; font-size: 14px; }
.risk-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.facet-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.facet { min-height: 138px; padding: 16px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.facet span { color: var(--coral-deep); font: 500 24px/1 var(--display); }
.facet b { display: block; margin: 23px 0 7px; font: 500 9px/1 var(--mono); }
.facet code { color: var(--muted); font: 8px/1.4 var(--mono); word-break: break-all; }
.principal-list { border-top: 1px solid var(--ink); }
.principal { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principal code { font: 9px/1 var(--mono); }
.principal > span { color: var(--muted); font-size: 11px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.role-tags b { padding: 5px 6px; color: var(--white); background: var(--ink); font: 7px/1 var(--mono); font-weight: 400; }

/* Method */
.evidence-lanes { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--ink); }
.evidence-lanes article { position: relative; min-height: 380px; padding: 42px clamp(25px,3.7vw,54px); border-right: 1px solid var(--ink); }
.evidence-lanes article:last-child { border-right: 0; }
.evidence-lanes article > span { position: absolute; right: 26px; top: 22px; color: rgba(17,19,18,.16); font: 400 72px/1 var(--display); }
.evidence-lanes article h2 { margin: 26px 0 18px; font: 400 47px/.9 var(--display); }
.evidence-lanes article p:not(.kicker) { font-size: 13px; line-height: 1.7; }
.evidence-lanes article b { position: absolute; left: clamp(25px,3.7vw,54px); bottom: 34px; padding: 7px 9px; color: var(--ink); background: var(--mint); font: 8px/1 var(--mono); }
.evidence-lanes article:nth-child(2) b { background: var(--yellow); }
.evidence-lanes article:nth-child(3) { color: var(--white); background: var(--ink); }
.evidence-lanes article:nth-child(3) .kicker, .evidence-lanes article:nth-child(3) p { color: #aeb3af; }
.evidence-lanes article:nth-child(3) b { color: var(--white); background: var(--coral); }
.system-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.system-flow div { min-height: 148px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--ink); }
.system-flow div.signal { color: var(--white); background: var(--coral-deep); }
.system-flow div span { color: var(--muted); font: 8px/1 var(--mono); }
.system-flow div.signal span { color: #f8b5aa; }
.system-flow div b { font-size: 12px; }
.system-flow div small { color: var(--muted); font: 8px/1.4 var(--mono); }
.system-flow div.signal small { color: #ffd1c9; }
.system-flow i { font-style: normal; }
.invariant-grid { display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.invariant { min-height: 135px; padding: 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.invariant i { width: 20px; height: 20px; display: grid; place-items: center; color: var(--white); background: #3a9b68; border-radius: 50%; font: 10px/1 var(--mono); font-style: normal; }
.invariant b { display: block; margin: 22px 0 6px; font: 500 10px/1 var(--mono); }
.invariant small { color: var(--muted); font: 8px/1.4 var(--mono); }
.source-list { border-top: 1px solid var(--ink); }
.source-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-item span { color: var(--muted); font: 8px/1 var(--mono); text-transform: uppercase; }
.source-item b { font-size: 12px; }
.source-item i { font-style: normal; }
.source-item:hover b { color: var(--coral-deep); }
.disclaimer { margin-top: 42px; padding: 17px; color: var(--muted); border: 1px solid var(--line); font: 9px/1.6 var(--mono); text-align: center; text-transform: uppercase; }

/* Dialogs */
dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(17,19,18,.58); backdrop-filter: blur(4px); }
.asset-drawer { width: min(680px, 100vw); max-width: none; height: 100vh; max-height: none; margin: 0 0 0 auto; color: var(--ink); background: var(--paper-2); }
.drawer-inner { min-height: 100%; padding: 36px clamp(24px,5vw,56px); overflow-y: auto; }
.drawer-close { position: sticky; z-index: 2; top: 0; float: right; width: 40px; height: 40px; color: var(--white); background: var(--ink); border: 0; cursor: pointer; font: 24px/1 var(--display); }
.drawer-kicker { color: var(--coral-deep); font: 500 9px/1 var(--mono); text-transform: uppercase; }
.drawer-title { margin: 42px 0 8px; font: 400 76px/.8 var(--display); letter-spacing: -.05em; }
.drawer-name { max-width: 500px; margin: 0 0 30px; color: var(--muted); font-size: 13px; }
.drawer-hero-stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--ink); }
.drawer-hero-stats div { padding: 15px; border-right: 1px solid var(--ink); }
.drawer-hero-stats div:last-child { border-right: 0; }
.drawer-hero-stats b, .drawer-hero-stats small { display: block; }
.drawer-hero-stats b { font: 500 16px/1 var(--mono); }
.drawer-hero-stats small { margin-top: 7px; color: var(--muted); font: 7px/1.3 var(--mono); text-transform: uppercase; }
.drawer-section { margin-top: 38px; }
.drawer-section h3 { margin: 0 0 13px; font: 400 28px/1 var(--display); }
.contract-row { display: grid; grid-template-columns: 86px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font: 8px/1.4 var(--mono); }
.contract-row span { color: var(--muted); text-transform: uppercase; }
.contract-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contract-row a { text-decoration: none; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.check { display: flex; align-items: center; gap: 8px; padding: 11px; background: var(--paper-2); font: 8px/1.35 var(--mono); }
.check i { width: 16px; height: 16px; display: grid; place-items: center; flex: 0 0 auto; color: var(--white); background: #3a9b68; border-radius: 50%; font-style: normal; }
.holder-mini { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 8px/1 var(--mono); }
.drawer-actions { display: flex; gap: 8px; margin-top: 34px; }
.data-dialog { width: min(650px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 32px; color: var(--ink); background: var(--paper-2); }
.data-dialog-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.data-dialog-head h2 { margin: 0; font: 400 46px/1 var(--display); }
.data-dialog-head button { width: 34px; height: 34px; color: var(--white); background: var(--ink); border: 0; cursor: pointer; font-size: 20px; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0; border: 1px solid var(--ink); }
.health-grid div { padding: 14px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.health-grid div:nth-child(even) { border-right: 0; }
.health-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.health-grid b, .health-grid small { display: block; }
.health-grid b { font: 500 12px/1 var(--mono); }
.health-grid small { margin-top: 6px; color: var(--muted); font: 7px/1.4 var(--mono); text-transform: uppercase; }
.rpc-list { border-top: 1px solid var(--line); }
.rpc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 8px/1 var(--mono); }
.rpc-row span:last-child { color: #3a9b68; }
.empty-state { padding: 50px 20px; color: var(--muted); text-align: center; font: 10px/1.6 var(--mono); }

@media (max-width: 1120px) {
  :root { --rail: 188px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-left: 38px; }
  .hero-copy h1 { font-size: clamp(66px,8vw,90px); }
  .section-title { grid-template-columns: 140px 1fr; }
  .section-title > p:last-child { grid-column: 2; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .registry-toolbar { grid-template-columns: 1fr auto; }
  .filter-row { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; }
  .facet-grid, .invariant-grid { grid-template-columns: repeat(3,1fr); }
  .system-flow { grid-template-columns: 1fr; }
  .system-flow i { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 820px) {
  :root { --rail: 0px; }
  .rail { width: min(320px, 86vw); transform: translateX(-105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 14px 0 40px rgba(0,0,0,.28); }
  .rail.open { transform: none; }
  .rail .brand { display: none; }
  .rail-nav { padding-top: 112px; }
  .shell { margin-left: 0; }
  .mobile-head { position: sticky; top: 0; z-index: 54; height: 66px; display: flex; justify-content: space-between; color: var(--white); background: var(--ink); }
  .mobile-head .brand { height: 66px; padding: 0 18px; border: 0; }
  .mobile-head .brand-mark { width: 36px; height: 36px; }
  .mobile-head .brand-type { white-space: nowrap; }
  .menu-button { width: 64px; background: var(--coral); border: 0; }
  .menu-button span { width: 22px; height: 1px; display: block; margin: 6px auto; background: var(--ink); }
  .topbar { top: 66px; height: 44px; padding: 0 18px; }
  .topbar p { display: none; }
  .topbar .freshness { margin-left: auto; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { min-height: 610px; padding: 52px 24px 42px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .hero-copy h1 { font-size: clamp(67px,22vw,100px); }
  .hero-dek { margin-top: 42px; }
  .hero-ledger { min-height: 520px; padding: 80px 24px 38px; }
  .hero-number > span { font-size: clamp(124px,45vw,190px); }
  .section { padding: 66px 24px; }
  .section-title { display: block; }
  .section-title h2, .section-head h2, .control-copy h2 { font-size: 48px; }
  .section-title > p:last-child { margin-top: 24px; }
  .metric-grid { margin-top: 38px; }
  .active-layout, .control-preview, .usage-chart-grid, .holder-usage-grid { grid-template-columns: 1fr; }
  .cap-chart { padding: 20px; }
  .cap-row { grid-template-columns: 44px minmax(0,1fr) 88px; }
  .control-copy { padding: 64px 24px; }
  .mini-topology { min-height: 460px; padding: 30px 16px; }
  .page-intro { min-height: 460px; grid-template-columns: 1fr; align-items: end; padding: 54px 24px 42px; }
  .page-intro h1 { font-size: clamp(66px,21vw,102px); }
  .page-dek { font-size: 14px; }
  .registry-toolbar { top: 110px; padding: 12px 16px; }
  .sort-select { grid-row: 2; }
  .filter-row { grid-row: 3; }
  .table-meta { padding: 13px 16px; }
  .table-meta span:last-child { display: none; }
  .activity-stats, .control-metrics { grid-template-columns: 1fr 1fr; }
  .activity-stat { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .activity-stat:nth-child(even), .control-metric:nth-child(2) { border-right: 0; }
  .activity-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .control-metric:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .movement-chart { border-right: 0; border-bottom: 1px solid var(--ink); }
  .holder-usage-grid > :first-child { border-right: 0; border-bottom: 1px solid var(--ink); }
  .usage-toolbar { top: 110px; grid-template-columns: 1fr auto; gap: 12px; }
  .usage-toolbar > p { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
  .panel { padding: 40px 24px; }
  .event-ledger { padding: 54px 24px; }
  .topology { min-height: 0; padding: 45px 24px; }
  .topology-map { grid-template-columns: 1fr; gap: 28px; }
  .topology-node::after, .topology-fan::before { display: none; }
  .topology-hub { width: 270px; }
  .risk-item { grid-template-columns: 80px 1fr; gap: 16px; }
  .risk-item p { grid-column: 2; }
  .facet-grid, .invariant-grid { grid-template-columns: 1fr 1fr; }
  .principal { grid-template-columns: 1fr; gap: 8px; }
  .evidence-lanes { grid-template-columns: 1fr; }
  .evidence-lanes article { min-height: 320px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .drawer-inner { padding: 22px; }
}

@media (max-width: 520px) {
  .mobile-head .brand { min-width: 0; max-width: calc(100vw - 64px); }
  .mobile-head .brand-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hero-copy h1 { font-size: 69px; }
  .hero-copy h1 span { transform: translateX(6%); }
  .hero-actions { display: grid; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div:nth-child(odd) { border-right: 0; }
  .hero-facts div:nth-child(even) { padding-left: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { border-right: 0; border-bottom: 1px solid var(--ink); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:last-child { border-bottom: 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head > p { text-align: left; }
  .cap-row { grid-template-columns: 38px minmax(0,1fr); }
  .cap-row > span { grid-column: 2; text-align: left; }
  .topology-orbit { width: min(290px, calc(100vw - 72px)); max-width: 100%; }
  .orbit-node { width: 92px; }
  .orbit-node.b { right: -8px; }
  .orbit-node.c { left: -8px; }
  .page-intro h1 { font-size: 66px; }
  .registry-toolbar { grid-template-columns: 1fr; }
  .registry-toolbar .search-box { grid-column: 1; }
  .sort-select { grid-row: 2; }
  .filter-row { grid-row: 3; grid-column: 1; }
  .activity-stats, .control-metrics { grid-template-columns: 1fr; }
  .activity-stat, .control-metric { border-right: 0; border-bottom: 1px solid var(--ink); }
  .activity-stat:nth-child(even), .control-metric:nth-child(2) { border-right: 0; }
  .activity-stat:nth-last-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .activity-stat:last-child { border-bottom: 0; }
  .usage-toolbar { grid-template-columns: 1fr; }
  .usage-toolbar > p { grid-row: auto; grid-column: 1; }
  .usage-toolbar > a { justify-self: start; }
  .facet-grid, .invariant-grid { grid-template-columns: 1fr; }
  .topology-fan { grid-template-columns: 1fr; }
  .risk-item { grid-template-columns: 1fr; }
  .risk-item p { grid-column: 1; }
  .drawer-title { font-size: 60px; }
  .drawer-hero-stats { grid-template-columns: 1fr; }
  .drawer-hero-stats div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .drawer-hero-stats div:last-child { border-bottom: 0; }
  .check-list { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: 1fr; }
  .health-grid div { border-right: 0; }
  .health-grid div:nth-last-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .health-grid div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
