/* Reddit Sans for text, JetBrains Mono for numbers. */
@font-face { font-family: "Reddit Sans"; src: url("assets/RedditSans.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
:root {
  --bg: #050A12; --panel: #0A1220; --raise: #0F1A2C;
  --ink: #F8FAFC; --soft: #C3CEDB; --muted: #8C9CB1;
  --line: rgb(148 187 212 / .14); --line-2: rgb(148 187 212 / .28);
  --green: #10B981; --teal: #06B6D4; --amber: #F59E0B;
  --font: "Reddit Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gutter: clamp(18px, 4vw, 56px);
  --top: 68px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 40; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.1; letter-spacing: -.022em; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
h3 { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }

/* header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; height: var(--top); padding: 0 var(--gutter); background: rgb(5 10 18 / .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo img { height: 26px; width: auto; }
.top nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .18s var(--ease), background-color .18s var(--ease); }
.top nav a:hover { color: var(--ink); background: var(--raise); }
.top nav a[aria-current="true"] { color: var(--ink); background: var(--raise); }
.actions { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 17px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.solid { background: var(--green); color: #04130D; }
.btn.solid:hover { background: #34D399; }
.btn.quiet { background: transparent; border-color: var(--line-2); }
.btn.quiet:hover { background: var(--raise); }
.linkish { background: none; border: 0; padding: 4px 8px; cursor: pointer; color: var(--teal); font-weight: 700; }

/* status marks: colour, shape and words together */
.mk { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; }
.mk.live { background: var(--green); }
.mk.testnet { background: var(--teal); border-radius: 2px; transform: rotate(45deg) scale(.9); }
.mk.testnet.round { background: var(--green); border-radius: 50%; transform: none; box-shadow: 0 0 0 4px rgb(16 185 129 / .2); }
.mk.built { border: 2px solid var(--soft); }
.mk.planned { border: 1.5px dashed var(--muted); }
.sq { display: inline-block; width: 9px; height: 9px; background: var(--teal); }
.ring { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px dashed var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.tag { font: 600 11px/1 var(--mono); letter-spacing: .02em; padding: 6px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--soft); vertical-align: middle; }
.tag.testnet { border-color: rgb(6 182 212 / .55); color: #7DE3F4; }
.tag.planned, .tag.built { border-style: dashed; }
.tag.live { border-color: rgb(16 185 129 / .6); color: #6EE7B7; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* validator map and live strip */
.globe-wrap { position: relative; height: clamp(340px, 34vw, 470px); }
#globe { position: absolute; inset: 0; width: 100%; height: calc(100% - 34px); touch-action: pan-y; cursor: grab; }
.globe-bar { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.globe-bar span { display: inline-flex; align-items: center; gap: 8px; }
.tip { position: absolute; z-index: 3; pointer-events: none; background: var(--raise); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; font: 500 12px/1.6 var(--mono); white-space: nowrap; box-shadow: 0 18px 40px -20px #000; }
.tip b { font: 700 14px/1.4 var(--font); display: block; }
.ticker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.4fr); border-bottom: 1px solid var(--line); background: var(--panel); }
.ticker > div { padding: 9px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ticker > div:first-child { border-left: 0; padding-left: var(--gutter); }
.ticker .k { font-size: 12.5px; color: var(--muted); }
.ticker .v { font: 600 clamp(1rem, 1.5vw, 1.3rem)/1.3 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticker .feed .v { font-size: 14px; display: flex; align-items: center; gap: 9px; height: 100%; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.on .dot { background: var(--green); }
.off .dot { background: var(--amber); }

/* sections */
.chapter { padding: 28px var(--gutter) 44px; border-bottom: 1px solid var(--line); max-width: 1640px; margin: 0 auto; }
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 16px; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 80ch; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 0; min-width: 0; }
.panel > h3, .panel figcaption { margin-bottom: 14px; }
.split { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.n { text-align: right; font-variant-numeric: tabular-nums; }
td.n, .mono { font-family: var(--mono); font-size: 13px; }
.empty { color: var(--muted); padding: 24px 10px; text-align: center; }

/* system map */
.flows { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.flows button, .seg button { height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--soft); transition: background-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease); }
.flows button:hover, .seg button:hover { background: var(--raise); color: var(--ink); }
.flows button:active, .seg button:active { transform: scale(.97); }
.flows button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 16px; align-items: start; }
.map { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(18px, 2.6vw, 40px); padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(circle, rgb(148 187 212 / .13) 1px, transparent 1.4px) 0 0 / 22px 22px, var(--panel); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wires path { fill: none; stroke: rgb(148 187 212 / .4); stroke-width: 1.2; transition: stroke .2s var(--ease), opacity .2s var(--ease); }
.wires path.planned { stroke-dasharray: 4 4; }
.wires path.hot { stroke: var(--green); stroke-width: 2; }
.map.focus .wires path:not(.hot) { opacity: .25; }
.wires .flowdot { fill: var(--ink); }
.col { display: flex; flex-direction: column; gap: 10px; justify-content: center; position: relative; z-index: 1; min-width: 0; }
.col > h3 { font-size: 12.5px; font-weight: 600; color: var(--muted); align-self: stretch; text-align: center; margin-bottom: auto; padding-bottom: 6px; }
.col > .stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: auto; }
.node { display: grid; gap: 3px; width: 100%; text-align: left; cursor: pointer; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 11px; transition: border-color .18s var(--ease), background-color .18s var(--ease), opacity .2s var(--ease), transform .12s var(--ease); }
.node:hover { background: var(--raise); border-color: var(--soft); }
.node:active { transform: scale(.98); }
.node .nm { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.node .kd { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.node.planned, .node.built { border-style: dashed; background: rgb(5 10 18 / .7); }
.node.sel { border-color: var(--ink); background: var(--raise); box-shadow: 0 0 0 1px var(--ink); }
.node.hot { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.map.focus .node:not(.hot):not(.sel) { opacity: .42; }
.node .step { font: 700 11px/18px var(--mono); width: 18px; text-align: center; border-radius: 50%; background: var(--green); color: #04130D; margin-left: auto; flex: none; }
.inspect { position: sticky; top: calc(var(--top) + 12px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100svh - var(--top) - 24px); overflow-y: auto; }
.inspect > * { flex-shrink: 0; }
.inspect h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.inspect .kind { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.inspect .url { font: 500 13px/1.5 var(--mono); color: var(--teal); word-break: break-all; text-decoration: none; }
.inspect span.url { color: var(--soft); }
.inspect a.url:hover { text-decoration: underline; }
.inspect p { color: var(--soft); font-size: 14.5px; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0; }
.specs div { background: var(--bg); padding: 9px 10px; }
.specs dt { font-size: 11px; color: var(--muted); }
.specs dd { margin: 0; font: 600 14px/1.4 var(--mono); }
.rows { margin: 0; display: grid; gap: 10px; }
.rows dt { font-size: 12px; color: var(--muted); }
.rows dd { margin: 0; font-size: 14px; }
.inspect .close { display: none; }

/* chain */
.facts { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); gap: 1px; }
.facts div { background: var(--panel); padding: 12px 14px; }
.facts dt { font-size: 12.5px; color: var(--muted); }
.facts dd { margin: 4px 0 0; font: 600 clamp(.95rem, 1.2vw, 1.15rem)/1.3 var(--mono); }
.below { margin-top: 16px; }
.vals td { white-space: nowrap; }
.vals .pl { font-weight: 700; }
.vals .pl small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 10px; }
.vals .st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.vals tr.wrote td { background: rgb(16 185 129 / .13); }
.vals td { transition: background-color .9s var(--ease); }
.heat { table-layout: fixed; min-width: 460px; }
.heat th, .heat td { padding: 0; border: 2px solid var(--panel); text-align: center; font: 500 11.5px/34px var(--mono); }
.heat th { color: var(--muted); background: none; }
.heat th[scope="row"] { text-align: right; padding-right: 8px; width: 44px; }
.heat td.self { background: var(--raise); }

/* voting */
.gov { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 2.4fr) 28px minmax(0, 1.1fr) 28px minmax(0, .9fr); align-items: stretch; }
.gov-step, .lane { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.gov-step { justify-content: center; }
.gov-step p, .lane p { color: var(--soft); font-size: 14px; }
.gov-step.members { border-color: rgb(16 185 129 / .5); }
.gov-lanes { display: grid; gap: 14px; }
.lane.strong { border-color: rgb(6 182 212 / .5); }
.lane .bar-label { font-size: 13px; color: var(--muted); }
.lane .bar-label small { display: block; margin-top: 4px; font-size: 12px; }
.lane .bar-label b { font: 700 1.7rem/1 var(--mono); color: var(--ink); margin-right: 6px; }
.meter { height: 8px; border-radius: 4px; background: var(--raise); overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--p); background: var(--green); border-radius: 0 4px 4px 0; }
.lane.strong .meter span { background: var(--teal); }
.gov-arrow { position: relative; }
.gov-arrow::before { content: ""; position: absolute; left: 4px; right: 6px; top: 50%; height: 1px; background: var(--line-2); }
.gov-arrow::after { content: ""; position: absolute; right: 5px; top: calc(50% - 4px); width: 8px; height: 8px; border-top: 1px solid var(--soft); border-right: 1px solid var(--soft); transform: rotate(45deg); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--soft); }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.ticks.planned li::before { background: transparent; border: 1.5px dashed var(--muted); border-radius: 50%; }

/* security */
.layers { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.layers > li { display: grid; grid-template-columns: 230px minmax(0, 1fr); background: var(--panel); border-top: 1px solid var(--line); }
.layers > li:first-child { border-top: 0; }
.layers h3 { padding: 20px 22px; border-right: 1px solid var(--line); background: var(--raise); font-size: 1rem; }
.layers ul { list-style: none; margin: 0; padding: 6px 22px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 26px; }
.layers ul li { padding: 12px 0; }
.layers ul b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.layers ul span { color: var(--muted); font-size: 13.5px; line-height: 1.5; display: block; }

/* global */
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gmap-wrap { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 12px; margin-bottom: 16px; }
#gmap { display: block; width: 100%; aspect-ratio: 2.55 / 1; }
.gkey { justify-content: center; padding-top: 6px; }
.plan { min-width: 760px; table-layout: fixed; }
.plan th, .plan td { font-size: 14px; padding: 12px; }
.plan thead th { color: var(--ink); font-size: 14px; }
.plan tbody th { color: var(--muted); width: 130px; font-weight: 600; }
.plan thead th:first-child { width: 130px; }
.plan td { color: var(--muted); transition: color .2s var(--ease), background-color .2s var(--ease); }
.plan .cur { background: var(--raise); color: var(--ink); }

/* capacity */
.cap-split { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); margin: 0 0 16px; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; align-items: center; position: relative; cursor: default; }
.bar .lb { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.bar .lb small { display: block; font-weight: 400; color: var(--muted); }
.bar .tr { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line-2); min-height: 34px; }
.bar .fl { height: 20px; border-radius: 0 4px 4px 0; background: var(--green); width: var(--w); transition: filter .18s var(--ease); }
.bar:hover .fl, .bar:focus-visible .fl { filter: brightness(1.2); }
.bar .vl { font: 600 14px var(--mono); }
.bar .ex { grid-column: 2; font-size: 13px; color: var(--soft); margin-top: -8px; display: none; }
.bar:hover .ex, .bar:focus-visible .ex { display: block; }
.disk { display: grid; gap: 18px; }
.disk b { display: block; font: 700 1.8rem/1.2 var(--mono); }
.disk span { color: var(--muted); font-size: 13.5px; display: block; }
.sizing { min-width: 720px; background: var(--panel); border: 1px solid var(--line); }
.sizing th[scope="row"] { color: var(--ink); font-size: 14px; border-bottom: 1px solid var(--line); }
.asks { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.asks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); width: 100%; }
.asks li { padding: 14px 18px 6px 0; }
.asks li b { display: block; margin-bottom: 4px; }
.asks li span { color: var(--muted); font-size: 13.5px; }

/* status */
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.road > div { border-top: 2px solid var(--line-2); padding-top: 14px; }
.road > div.live { border-color: var(--green); }
.road > div.testnet { border-color: var(--teal); }
.road > div.built { border-top-style: solid; border-color: var(--soft); }
.road > div.planned { border-top-style: dashed; }
.road h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.road ul { list-style: none; margin: 0; padding: 0; color: var(--soft); font-size: 14.5px; display: grid; gap: 7px; }
.addr-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: 28px; }
.ends { list-style: none; margin: 0; padding: 0; }
.ends li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ends li:first-child { border-top: 0; }
.ends .addr { font: 500 13.5px var(--mono); text-decoration: none; word-break: break-all; }
.ends a:hover { color: var(--teal); text-decoration: underline; }
.ends .what { grid-column: 2; color: var(--muted); font-size: 13px; }
.contracts td { vertical-align: middle; padding: 6px 10px; }
.contracts b { display: block; font-size: 14px; }
.contracts small { color: var(--muted); font-size: 12.5px; }
.contracts a { font: 500 12.5px var(--mono); color: var(--soft); text-decoration: none; }
.contracts a:hover { color: var(--teal); text-decoration: underline; }
.copy { border: 1px solid var(--line-2); background: transparent; border-radius: 6px; font-size: 12px; padding: 3px 9px; cursor: pointer; color: var(--muted); min-width: 62px; }
.copy:hover { color: var(--ink); background: var(--raise); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 40px var(--gutter) 56px; color: var(--muted); font-size: 13.5px; }
.foot p:last-child { margin-left: auto; }
.noscript { padding: 24px var(--gutter); }

/* presentation mode */
.pbar { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--raise); border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.pbar button:not(.linkish) { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; }
.pbar #pname { min-width: 108px; text-align: center; }
.present .top nav, .present .actions { visibility: hidden; }
.present .chapter { min-height: calc(100svh - var(--top)); }
.present { scroll-behavior: auto; }

/* narrower screens */
@media (max-width: 1280px) {
  .map-wrap { grid-template-columns: minmax(0, 1fr); }
  .inspect { position: static; max-height: none; }
  .layers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .asks ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .globe-wrap { height: min(88vw, 520px); }
  .ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ticker > div { border-bottom: 1px solid var(--line); }
  .ticker > div:nth-child(3n+1) { border-left: 0; padding-left: var(--gutter); }
  .split, .split.three, .cap-split, .addr-split { grid-template-columns: minmax(0, 1fr); }
  .gov { grid-template-columns: minmax(0, 1fr); }
  .gov-arrow { height: 28px; }
  .gov-arrow::before { left: 50%; right: auto; top: 4px; bottom: 6px; width: 1px; height: auto; }
  .gov-arrow::after { left: calc(50% - 4px); right: auto; top: auto; bottom: 5px; transform: rotate(135deg); }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .top { gap: 10px; }
  .top nav { display: none; }
  .actions { margin-left: auto; }
  #present { display: none; }
  .map { grid-template-columns: minmax(0, 1fr); row-gap: 20px; padding: 14px; }
  .wires { display: none; }
  .col > h3 { text-align: left; }
  .col > .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspect { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; z-index: 25; max-height: 70svh; box-shadow: 0 -20px 60px -10px #000; display: none; }
  .inspect.open { display: flex; }
  .inspect .close { display: block; position: absolute; top: 18px; right: 14px; z-index: 2; }
  .inspect h3 { padding-right: 70px; }
  .layers > li { grid-template-columns: minmax(0, 1fr); }
  .layers h3 { border-right: 0; padding: 14px 18px; }
  .layers ul { padding: 4px 18px 10px; grid-template-columns: minmax(0, 1fr); }
  .asks ul { grid-template-columns: minmax(0, 1fr); }
  #gmap { aspect-ratio: 1.5 / 1; }
  .bar { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bar .ex { grid-column: 1; display: block; margin: 0; }
}
@media (max-width: 520px) {
  .ticker > div { padding: 7px 12px; }
  .ticker .v { font-size: .95rem; }
  .vals .pl small { display: block; margin: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road { grid-template-columns: minmax(0, 1fr); }
  .top .btn.solid { height: 34px; padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .top, .pbar, .flows, .seg, .globe-bar { display: none !important; }
}
