@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/space-mono-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0a1121;
  --surface: #111b30;
  --surface-deep: #0e1729;
  --surface-raised: #17243b;
  --border: #2a384e;
  --line: #253247;
  --fg: #f3f6fa;
  --muted: #a4b2c7;
  --accent: #52dcf5;
  --accent-bold: #00b4d8;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  font: 100%/1.5 var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); }
main { flex: 1; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden], html:not(.js) .js-only { display: none !important; }
.skip-link { position: absolute; z-index: 3; left: 1rem; top: -5rem; padding: .7rem 1rem; background: var(--fg); color: var(--bg); }
.skip-link:focus { top: .5rem; }
.icon { flex: none; vertical-align: middle; }
.shell { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #0d1526; }
.header-inner { min-height: 4.25rem; display: flex; align-items: stretch; gap: 3.75rem; }
.brand { display: flex; align-items: center; gap: .38rem; color: var(--fg); }
.brand:hover, .primary-nav a:hover, .operator-link:hover { text-decoration: none; }
.brand-mark { width: 1.8rem; height: 1.8rem; color: var(--accent); }
.brand-name { font-size: 1.32rem; font-weight: 850; letter-spacing: -.06em; }
.network-badge { font: .75rem/1.35 var(--mono); color: var(--accent); border: 1px solid #285064; background: #102c3c; border-radius: 4px; padding: .14rem .4rem; margin-left: .35rem; }
.primary-nav { display: flex; align-items: stretch; gap: 1.65rem; }
.primary-nav a { display: flex; align-items: center; border-bottom: 2px solid transparent; padding: .15rem 0 0; font-size: .9rem; font-weight: 570; color: var(--muted); }
.primary-nav a[aria-current] { border-color: var(--accent); color: var(--fg); }
.primary-nav a:hover, .operator-link:hover { color: var(--accent); }
.operator-link { align-self: center; margin-left: auto; color: #d3deec; font-size: .875rem; font-weight: 560; }
.operator-link span { color: var(--muted); font-weight: 400; }

.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2.45rem 0 1.9rem; }
.heading-copy { min-width: 0; }
.snapshot-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .7rem; font-size: .8125rem; color: var(--muted); }
.archive-tag { display: inline-flex; gap: .34rem; align-items: center; color: #b7c8e5; border: 1px solid #334463; background: #17253d; border-radius: 5px; padding: .16rem .45rem; line-height: 1.4; font-weight: 550; }
.archive-tag .icon { width: .84rem; height: .84rem; }
.timezone { font: .75rem/1.25 var(--mono); background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 4px; padding: .23rem .4rem; }
.timezone:hover { color: var(--accent); border-color: var(--accent-bold); }
h1, h2, h3, p, figure { margin: 0; }
h1 { margin: .7rem 0 .35rem; font-size: clamp(2.35rem, 4vw, 3.55rem); font-weight: 620; line-height: 1.07; letter-spacing: -.06em; overflow-wrap: anywhere; }
h2 { font-size: 1.35rem; font-weight: 620; line-height: 1.25; letter-spacing: -.035em; }
h3 { font-size: 1rem; letter-spacing: -.01em; }
.lede { color: var(--muted); font-size: 1rem; }
.heading-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.05rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .42rem; min-height: 2.2rem; border: 1px solid var(--border); padding: .32rem .75rem; border-radius: 6px; background: #131f32; color: #dce5f1; font-size: .875rem; font-weight: 520; }
.button .icon { width: 1rem; height: 1rem; color: #aab9ce; }
.button:hover { border-color: #52728b; background: #1c2a40; text-decoration: none; }
.finality-chart { width: min(33%, 24.5rem); flex: none; padding: 1rem 1.15rem .65rem; border-radius: .65rem; border: 1px solid #294257; background: linear-gradient(110deg, #102637, #101d31 75%); }
.finality-chart figcaption, .chart-axis { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.finality-chart figcaption { font-size: .875rem; font-weight: 600; color: #dcebf1; }
.finality-chart figcaption span { font: .75rem var(--mono); color: #9dc2d3; }
.chart-bars { display: block; width: 100%; height: 4.4rem; margin: .85rem 0 .3rem; border-bottom: 1px solid #3c6172; background: repeating-linear-gradient(to top, transparent 0, transparent calc(33.333% - 1px), #263b4b 33.333%); }
.chart-bars rect { fill: #42bfd5; }
.chart-bars rect:nth-last-child(-n+14) { fill: #238aa4; }
.chart-axis { font: .75rem var(--mono); color: #9aafbe; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem; }
.metric { min-width: 0; padding: 1rem 1.2rem 1.05rem; border: 1px solid var(--border); border-radius: .7rem; background: linear-gradient(112deg, #142037, #111b2e); }
.metric-label { color: #b6c4d6; display: flex; align-items: center; gap: .55rem; font-size: .875rem; font-weight: 550; }
.metric-icon { display: inline-flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border: 1px solid #264a59; border-radius: .43rem; color: #66d8e6; background: #123143; }
.metric-icon .icon { width: 1rem; height: 1rem; }
.metric:nth-child(2) .metric-icon { color: #b9a2ff; border-color: #403553; background: #2b2546; }
.metric:nth-child(3) .metric-icon { color: #83b3ff; border-color: #304568; background: #1c2d4d; }
.metric:nth-child(4) .metric-icon { color: #7fdab0; border-color: #2b4a42; background: #18362e; }
.metric-value { margin: .47rem 0 .05rem; font: 560 clamp(1.7rem,2.7vw,2.28rem)/1.16 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.metric-value a { color: inherit; text-decoration: underline dotted #678096 1px; text-underline-offset: .15em; }
.metric-value a:hover { color: var(--accent); }
.metric-detail { color: var(--muted); font-size: .8125rem; }
.ranking-panel, .detail-panel, .methodology { border: 1px solid var(--border); background: var(--surface-deep); border-radius: .75rem; }
.ranking-panel { margin-top: 1.65rem; overflow: clip; }
.panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; padding: 1.2rem 1.35rem .85rem; }
#row-count { font: .75rem/1.4 var(--mono); color: #b7c5d4; background: #1a2a3e; border: 1px solid #304155; border-radius: 4px; padding: 1px .4rem; }
.table-controls { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 0 1.35rem 1rem; }
.search-box { display: inline-flex; align-items: center; gap: .6rem; width: min(100%, 22rem); min-width: 0; padding-inline: .75rem .45rem; color: #8f9fb4; border: 1px solid #34415a; border-radius: 6px; background: #0c1525; }
.search-box:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-box input { flex: 1; min-width: 0; height: 2.3rem; border: none; outline: none; background: transparent; color: var(--fg); font-size: .875rem; }
.search-box input::placeholder { color: #a3b0c1; opacity: 1; }
.window-switch { display: inline-flex; align-items: stretch; gap: .18rem; padding: .17rem; border: 1px solid #344156; border-radius: .45rem; background: #0a1425; }
.window-switch button { min-width: 3.62rem; min-height: 1.96rem; border: 1px solid transparent; border-radius: .28rem; background: transparent; color: var(--muted); font-size: .875rem; font-weight: 590; }
.window-switch button:hover { color: var(--fg); }
.window-switch button[aria-pressed=true] { border-color: #286178; background: #153849; color: #81eaff; }
.ranking-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranking-table th, .ranking-table td { border-top: 1px solid var(--line); text-align: right; padding: .72rem .95rem; }
.ranking-table th { background: #162238; color: #b0bed0; padding-block: .2rem; font-weight: 540; }
.ranking-table th button { display: inline-flex; align-items: center; justify-content: flex-end; gap: .3rem; max-width: 100%; min-height: 2.05rem; padding: 0; background: none; border: none; color: inherit; font: 540 .8125rem var(--font); white-space: nowrap; }
.ranking-table th[aria-sort] button { color: #76e3f6; }
.sort-icon { width: .85rem; height: .85rem; opacity: .7; }
.ranking-table th[aria-sort] .sort-icon { display: none; }
.ranking-table th[aria-sort] button::after { content: ""; flex: none; width: .38rem; height: .38rem; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: translateY(2px) rotate(225deg); margin: 0 .16rem; }
.ranking-table th[aria-sort=descending] button::after { transform: translateY(-2px) rotate(45deg); }
.ranking-table tbody tr:nth-child(even) { background: #101a2d; }
.ranking-table tbody tr:hover, .ranking-table tbody tr:focus-within { background: #17253a; }
.ranking-table .col-rank { width: 6.5rem; text-align: left; padding-left: 1.35rem; }
.ranking-table th.col-rank button { justify-content: flex-start; }
.ranking-table .col-name { text-align: left; }
.local-sample-table .col-name { width: 52%; }
.local-sample-table td { overflow-wrap: anywhere; }
.local-sample-table th:last-child, .local-sample-table td:last-child { width: 18%; }
.ranking-table .col-score { width: 14%; }
.ranking-table .col-frnk, .ranking-table .col-recent { width: 17%; }
.ranking-table .col-babe { width: 14%; padding-right: 1.35rem; }
.rank-value { color: #aebdd0; font: .875rem var(--mono); }
.rank-position { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .25rem; }
.rank-change, .profile-rank-change, .participation-change { --period-display: block; }
.rank-change, .participation-change { font: .72rem/1.45 var(--mono); white-space: nowrap; }
.participation-change { color: var(--muted); }
.change-up { color: #88dfb7; }
.change-down { color: #ffadaa; }
.change-steady, .change-unavailable { color: var(--muted); }
.change-key, .observer-context { padding: 0 1.35rem .7rem; font-size: .79rem; color: var(--muted); }
.profile-rank-change { margin-top: .25rem; }
.profile-rank-change .change-value { font-family: var(--mono); }
.change-key .trend-window, .baseline-link { --period-display: inline; }
.change-context { display: none; } /* Older open tabs receive row markup before they receive the table legend. */
.validator-link { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .65rem; color: var(--fg); }
.validator-link:hover { color: var(--accent); text-decoration: none; }
.avatar { flex: none; display: inline-flex; justify-content: center; align-items: center; width: 2.25rem; height: 2.25rem; border-radius: .57rem; font: 580 .82rem var(--font); letter-spacing: -.02em; background: #20394c; color: #9cdeeb; border: 1px solid #325365; }
.avatar[data-tone="1"] { color: #cbb8ff; background: #302847; border-color: #463961; }
.avatar[data-tone="2"] { color: #a1e5d3; background: #183933; border-color: #295449; }
.avatar[data-tone="3"] { color: #f4cba3; background: #382f29; border-color: #534436; }
.avatar[data-tone="4"] { color: #a8c9ff; background: #223253; border-color: #364c73; }
.avatar[data-tone="5"] { color: #ecb5d7; background: #3a293d; border-color: #563a52; }
.operator-image { object-fit: contain; background: var(--surface-deep); border-color: var(--border); }
.validator-identity { min-width: 0; display: flex; flex-direction: column; }
.validator-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 550; font-size: .9375rem; }
.address-short, .fraction { color: #99a9c0; font: .75rem/1.5 var(--mono); }
.score-value { color: #87e9f8; font: .95rem var(--mono); }
.score-track { appearance: none; display: block; width: 3.7rem; height: .2rem; margin: .28rem 0 .2rem auto; border: 0; border-radius: 1rem; background: #233447; overflow: hidden; }
.score-track::-webkit-progress-bar { background: #233447; }
.score-track::-webkit-progress-value { background: #31c5df; border-radius: 1rem; }
.score-track::-moz-progress-bar { background: #31c5df; border-radius: 1rem; }
.freshness { color: #f5cd91; }
.tie-detail, .short-rank-rule { display: none; }
[data-window="3h"] .short-rank-rule { display: block; padding: 0 1.35rem .75rem; margin: 0; color: var(--muted); font-size: .8125rem; }
.rate, td.col-babe { font: .89rem/1.4 var(--mono); color: #e0e8f4; }
.fraction { display: block; }
#empty-state { text-align: center; padding: 2.5rem 1rem; }
#empty-state p { margin: .25rem 0 .9rem; color: var(--muted); }
.methodology { margin: 1.3rem 0 2.4rem; overflow-wrap: anywhere; }
.methodology summary { display: flex; gap: .6rem; align-items: center; cursor: pointer; padding: 1rem 1.35rem; font-size: .95rem; font-weight: 550; }
.methodology summary .icon { color: var(--accent); }
.methodology summary::-webkit-details-marker { display: none; }
.methodology summary::after { content: "+"; color: var(--muted); margin-left: auto; font-size: 1.25rem; }
.methodology[open] summary::after { content: "−"; }
.method-content { padding: .2rem 1.35rem 1.3rem; color: var(--muted); }
.method-content p { max-width: 80ch; margin-bottom: .75rem; }
.method-content h3, .detail-panel h2 { color: var(--fg); }
.method-content h3 { margin: 1.2rem 0 .3rem; }
.formula { font-family: var(--mono); font-size: .87rem; color: #a6e2eb; }
code { font: .85rem/1.7 var(--mono); overflow-wrap: anywhere; color: #d8e5f4; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; font-size: .8125rem; }
.footer-inner span span { padding: 0 .3rem; }
.footer-inner a { color: #c1d6e7; }
#feedback:not(:empty) { position: fixed; z-index: 3; right: 1rem; bottom: 1rem; background: #193744; color: #daf9ff; border: 1px solid #366373; padding: .65rem 1rem; border-radius: 6px; }
.copy-fallback { position: fixed; opacity: 0; }
.back-link { display: inline-block; margin-top: 1.4rem; font-size: .9rem; }
.profile-heading { padding-top: 1rem; padding-bottom: 1.2rem; }
.profile-title { display: flex; gap: 1rem; align-items: center; margin: .7rem 0 .4rem; }
.profile-name { min-width: 0; overflow-wrap: anywhere; }
.profile-title h1 { margin: 0; }
.profile-title .avatar { width: 3rem; height: 3rem; font-size: 1.05rem; }
.profile-heading .heading-copy { width: 100%; }
.profile-toolbar, .profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem 1rem; }
.profile-toolbar { justify-content: space-between; margin-top: 1rem; }
.profile-toolbar .heading-actions { margin: 0; }
.profile-diagnostics-link { font-size: .85rem; }
.movement-summary { grid-column: 1 / -1; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface-deep); }
.participation-comparison { margin-top: .4rem; color: var(--muted); font-size: .79rem; }
.comparison-period { --period-display: flex; align-items: center; gap: 1.5rem 3rem; }
.comparison-period h2 { font-size: .9rem; letter-spacing: 0; color: var(--muted); }
.comparison-period .change-value { font: 1.45rem/1.45 var(--mono); }
.comparison-samples { display: flex; flex-wrap: wrap; gap: .75rem 2rem; padding: 0; margin: 0; }
.comparison-samples dt, .comparison-samples small, .comparison-empty { font-size: .8rem; color: var(--muted); }
.comparison-samples dd { margin: 0; }
.comparison-samples strong { font: 1rem/1.6 var(--mono); }
.comparison-samples small { display: block; }
.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; margin-top: 1.1rem; }
.detail-panel { min-width: 0; padding: 1.2rem 1.35rem; color: var(--muted); }
.detail-panel h2 { margin: 0 0 .8rem; font-size: 1.125rem; }
.detail-panel .metric-value { color: var(--fg); margin-bottom: .4rem; }
.profile-grid .detail-panel:first-child { grid-row: span 2; }
.profile-grid.public-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: .85rem 0 1.5rem; }
.public-facts .detail-panel:first-child { grid-row: auto; }
.profile-reference { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--border); }
.profile-reference > summary { cursor: pointer; padding: .8rem 0; font-size: .9rem; color: var(--muted); }
.reference-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.reference-content .detail-panel { padding: .35rem 0 .65rem; border: 0; background: transparent; }
.stake-balances { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: .35rem .7rem; margin: 0 0 .75rem; }
.stake-balances dt { font-size: .875rem; }
.stake-balances dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; color: var(--fg); }
.session-events { list-style: none; margin: .45rem 0; padding: 0; }
.session-events li + li { margin-top: .35rem; }
.hash-list { margin: .7rem 0 1rem; }
.hash-list dt { margin-top: .75rem; font-size: .875rem; font-weight: 550; color: var(--muted); }
.hash-list dd { margin: .25rem 0 0; }
#copy-address { display: flex; margin: .5rem 0 .3rem; }
.source-links { display: flex; flex-wrap: wrap; column-gap: 1.2rem; row-gap: .35rem; padding: 0; margin: 0; list-style: none; }
.profile-contacts { margin-top: .2rem; font-size: .85rem; }
.profile-contacts a { display: inline-block; line-height: 1.65; }
.identity-credit { margin: .65rem 0 0; color: var(--muted); font-size: .8rem; }
.miner-matches, #miner-empty { font-size: .8125rem; color: var(--muted); }
#miner-empty { padding: 1.5rem; text-align: center; }
.miner-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.miner-table td, .miner-table th { padding: .65rem 1.35rem; border-top: 1px solid var(--line); text-align: right; }
.miner-table td { font: .875rem/1.5 var(--mono); }
.miner-table th { color: #b6c4d6; background: #162238; font-size: .8125rem; font-weight: 550; }
.miner-table th:first-child { width: 8%; }
.miner-table th:nth-child(3) { width: 20%; }
.miner-table th:last-child { width: 13%; }
.miner-table :is(td, th):nth-child(-n+2) { text-align: left; }
.miner-table tbody tr:nth-child(even) { background: #101a2d; }
.miner-table tbody tr:focus-within, .miner-table tbody tr:hover { background: #17253a; }
.miner-table small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.miner-address { display: block; overflow-wrap: anywhere; }
.miner-method { margin: 1.3rem 0 2.4rem; }
.miner-method p { max-width: 80ch; margin-bottom: .75rem; }
@media (max-width: 54rem) {
  .miner-table :is(th, td) { padding-inline: .5rem; }
  .miner-metrics .metric:first-child .metric-value { font-size: clamp(1.25rem, 3.6vw, 1.7rem); }
}
@media (max-width: 34rem) {
  .miner-table :is(th, td) { padding: .6rem .3rem; }
  .miner-table :is(th, td):first-child { padding-left: .55rem; }
  .miner-table :is(th, td):last-child { padding-right: .55rem; }
  .miner-table th:first-child { width: 13%; }
  .miner-table th:nth-child(3) { width: 28%; }
  .miner-table th:last-child { width: 21%; }
  .miner-table td { font-size: .75rem; }
  .miner-table th, .miner-table small { font-size: .7rem; }
  .miner-matches { white-space: nowrap; }
}

@media (max-width: 64rem) {
  .shell { width: calc(100% - 3rem); }
  .header-inner { gap: 2.3rem; }
  .metric { padding: .85rem; }
  .ranking-table td, .ranking-table th { padding-inline: .65rem; }
  .ranking-table .col-babe { width: 16%; }
}
@media (max-width: 54rem) {
  .metrics-grid { gap: .55rem; }
  .finality-chart { width: 31%; }
  .ranking-table .col-frnk, .ranking-table .col-recent { width: 19%; }
  .ranking-table .col-score { width: 12%; }
  .ranking-table .col-babe { width: 14%; }
  .sort-icon { display: none; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.7rem; gap: 1.5rem; align-items: stretch; }
  .brand { gap: .22rem; }
  .brand-mark { width: 1.45rem; height: 1.45rem; }
  .brand-name { font-size: 1.15rem; }
  .network-badge { font-size: .75rem; padding: .1rem .24rem; margin-left: .2rem; }
  .primary-nav { gap: .85rem; }
  .primary-nav a, .operator-link { font-size: .8125rem; }
  .operator-link { margin-left: auto; }
  .operator-link span { display: none; }
  .page-heading { padding: 1.55rem 0 1.15rem; }
  .finality-chart { display: none; }
  h1 { font-size: clamp(2.05rem,8vw,2.75rem); margin-top: .7rem; }
  .lede { font-size: .9375rem; }
  .snapshot-meta { gap: .35rem .45rem; }
  [data-window="3h"] .tie-detail { display: block; color: var(--muted); font-size: .75rem; }
  [data-window="3h"] .short-rank-rule { padding-inline: .8rem; }
  .heading-actions { margin-top: .7rem; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric { padding: .75rem .8rem; }
  .metric-label { gap: .38rem; font-size: .8125rem; }
  .metric-icon { width: 1.45rem; height: 1.45rem; }
  .metric-value { margin-top: .35rem; }
  .metric-detail { font-size: .75rem; }
  .ranking-panel { margin-top: 1.1rem; }
  .panel-head { padding: .95rem .8rem .7rem; }
  h2 { font-size: 1.13rem; }
  .table-controls { padding: 0 .8rem .8rem; gap: .5rem; }
  .window-switch button { min-width: 2.3rem; }
  .search-box { flex: 1; gap: .35rem; padding-inline: .45rem .25rem; }
  .search-box input { font-size: .8125rem; }
  .search-box .icon { width: .88rem; height: .88rem; }
  .ranking-table .col-frnk, .ranking-table .col-recent, .ranking-table .col-babe,
  [data-window="3h"] .ranking-table .col-score { display: none; }
  .ranking-table .col-rank { width: 5rem; padding-inline: .8rem .15rem; }
  .ranking-table .col-name { padding-inline: .4rem; }
  .ranking-table .col-score, [data-window="3h"] .ranking-table .col-recent { display: table-cell; width: 28%; padding-inline: .2rem .8rem; }
  .validator-link { gap: .45rem; }
  .change-key, .observer-context { padding-inline: .8rem; }
  .comparison-period { flex-wrap: wrap; gap: .65rem 1.5rem; }
  .avatar { width: 1.9rem; height: 1.9rem; font-size: .75rem; }
  .validator-name { font-size: .875rem; }
  .ranking-table td { padding-block: .65rem; }
  .fraction, .address-short { font-size: .75rem; }
  .profile-grid, .profile-grid.public-facts, .reference-content { grid-template-columns: minmax(0,1fr); }
  .profile-grid .detail-panel:first-child { grid-row: auto; }
  .back-link { margin-top: 1rem; }
  .profile-heading { padding-top: .7rem; }
}
@media (max-width: 23rem) {
  .shell { width: calc(100% - 1.25rem); }
  .header-inner { gap: .65rem; }
  .primary-nav { gap: .55rem; }
  .network-badge { border: 0; padding-inline: .1rem; background: none; }
  .snapshot-meta { font-size: .75rem; }
  .metric { padding-inline: .6rem; }
  .ranking-table .col-rank { width: 4.5rem; padding-left: .55rem; }
  .ranking-table .col-score, [data-window="3h"] .ranking-table .col-recent { width: 31%; padding-right: .55rem; }
  .validator-link { gap: .3rem; }
  .avatar { width: 1.55rem; height: 1.7rem; }
}
@media (max-width: 23rem) {
  .header-inner { justify-content: space-between; }
  .operator-link { display: none; }
  .ranking-table th.col-rank button { gap: .1rem; font-size: .75rem; }
}
.ranking-table th button:disabled { opacity: 1; cursor: default; }
#mobile-sort-note { display: none; }
@media (max-width: 43rem) {
  #mobile-sort-note:not([hidden]) { display: block; color: var(--accent); background: transparent; padding: 0 .8rem .7rem; border: 0; font-size: .8125rem; }
}

.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.65rem 0 .7rem; }
.trend-section { margin: 1.1rem 0; }
.trend-window { display: none; }
body[data-window="24h"] .trend-window[data-period="24h"], body[data-window="3h"] .trend-window[data-period="3h"] { display: var(--period-display, grid); }
/* The plain HTML card also supports an explicit daily view when it opens on 3h. */
html:not(.js) .observer-profile > #profile-24h:target { display: grid; }
html:not(.js) .observer-profile:has(> #profile-24h:target) > [data-period="3h"] { display: none; }
.trend-section .trend-window { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
#network-history-charts .trend-window:has(> :only-child) { grid-template-columns: minmax(0,1fr); }
.network-history-pair { display: grid; gap: .85rem; margin: 1.1rem 0; }
.network-history-pair > .trend-section { min-width: 0; margin: 0; display: grid; }
@media (min-width: 56rem) {
  .network-history-pair { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .network-history-pair .series-sub { min-block-size: 3lh; }
}
@media (min-width: 75rem) {
  .network-history-pair .series-sub { min-block-size: 2lh; }
}
.series-panel { min-width: 0; padding: 1.1rem 1.2rem .9rem; border: 1px solid var(--border); border-radius: .75rem; background: linear-gradient(125deg,#142139,#101a2d 65%); }
.series-panel figcaption, .preview-head, .preview-foot { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.series-panel figcaption h3 { font: 610 1.1rem/1.3 var(--font); letter-spacing: -.025em; }
.series-value { color: #86e8fa; font: 1.32rem/1.1 var(--mono); letter-spacing: -.075em; white-space: nowrap; }
.series-sub { color: var(--muted); font-size: .8125rem; margin-top: .35rem; }
.series-key { display: flex; flex-wrap: wrap; column-gap: .9rem; row-gap: .18rem; margin: .75rem 0 .6rem; font-size: .75rem; color: #c4d2e1; }
.series-key span { display: inline-flex; gap: .35rem; align-items: center; }
.swatch { display: inline-block; width: .95rem; border-top: 2px solid #52dcf5; }
.swatch-1 { border-top: 2px dashed #c3adff; }
[data-chart="babe"] .swatch { width: .6rem; height: .6rem; border: none; border-radius: .12rem; background: #eab778; }
[data-chart="network"] .swatch-1 { height: .55rem; background: #294d60; border: 1px solid #56859a; }
[data-chart="babe"] .series-value { color: #efc79a; }
.series-frame { display: grid; grid-template-columns: 2.45rem minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: .45rem; height: 7rem; }
.series-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; }
.series-y, .series-x, .sample-time { font: .7rem/1.1 var(--mono); color: #a7b8ce; }
.series-plot { min-width: 0; min-height: 0; border-radius: .15rem; outline-offset: .2rem; }
.series-plot[role="slider"] { cursor: crosshair; touch-action: pan-y pinch-zoom; user-select: none; }
.series-svg, .preview-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.series-grid, .series-line, .sample-marker { fill: none; vector-effect: non-scaling-stroke; }
.series-grid { stroke: #2a4057; stroke-width: 1; }
.series-line { stroke: #52dcf5; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line-1 { stroke: #c3adff; stroke-width: 1.7; stroke-dasharray: 4 4; }
.series-band { fill: #294d60; }
.series-bars { fill: #eab778; }
.sample-marker { stroke: #c8d6e4; stroke-width: 1; stroke-dasharray: 2 4; }
.series-x { margin: .35rem 0 .65rem 2.9rem; display: flex; justify-content: space-between; gap: .35rem; }
.series-readout { padding-top: .6rem; border-top: 1px solid var(--line); display: grid; gap: .18rem; }
.sample-detail { font-size: .775rem; color: #d3deeb; font-variant-numeric: tabular-nums; min-height: 1.2em; }
.rpc-coverage-published { --coverage-color: #52dcf5; }
.rpc-coverage-recovered { --coverage-color: #c3adff; }
.rpc-coverage-missing { --coverage-color: #405773; }
.rpc-coverage-history path[class^="rpc-coverage-"] { fill: var(--coverage-color); }
.rpc-coverage-history .swatch { width: .66rem; height: .66rem; border: 0; border-radius: .1rem; background: var(--coverage-color); }
.rpc-coverage-history .sample-time { grid-area: 1 / 1; }
.rpc-coverage-history :is(.sample-detail, .sample-detail-size) { grid-area: 2 / 1; min-width: 0; overflow-wrap: anywhere; font-size: .775rem; line-height: 1.4; }
.rpc-coverage-history .sample-detail-size { visibility: hidden; pointer-events: none; user-select: none; }
.preview-head { font-size: .8125rem; color: #d8edf2; }
.preview-head strong { font: 1rem/1.1 var(--mono); color: var(--accent); }
.preview-head small { font: .68rem/1.1 var(--mono); color: #b7c8d9; }
.preview-foot { font: .72rem/1.3 var(--mono); color: #a6bdca; }
.preview-foot span:last-child { color: #86def0; }
.network-preview:hover { border-color: #467084; text-decoration: none; }
.preview-svg { height: 3.1rem; margin: .45rem 0; }
[data-signal]::after { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-left: .4rem; border-radius: 50%; background: #74dbae; }
[data-signal="stale"]::after { background: #efbd82; }
@media (max-width: 43rem) {
  .trend-section .trend-window { grid-template-columns: minmax(0,1fr); }
  .series-panel { padding: .85rem .8rem; }
  .series-frame { height: 6.2rem; }
  .history-heading { margin-top: 1.1rem; }
  .page-heading:has(.network-preview) { flex-wrap: wrap; }
  .network-preview { display: block; width: 100%; padding: .6rem .8rem; }
  .network-preview .preview-svg { height: 2.1rem; margin: .25rem 0; }
}
@media (max-width: 32rem) {
  .header-inner { justify-content: space-between; gap: .65rem; }
  .operator-link { display: none; }
}
@media (max-width: 23rem) {
  .network-badge { display: none; }
}
.series-gap { fill: #343351; fill-opacity: .65; }
.swatch.gap-swatch { height: .55rem; background: #343351; border: 1px solid #686587; }

.observer-windows a { display: grid; place-items: center; min-width: 3rem; min-height: 2.25rem; border: 1px solid transparent; border-radius: .28rem; color: var(--muted); font-size: .875rem; font-weight: 590; }
.observer-windows a[aria-current="page"] { color: #81eaff; border-color: #286178; background: #153849; }
.observer-table .col-panel-rate { width: 15%; }
.observer-table .col-panel-range { width: 19%; }
.observer-table .col-babe { width: 9%; }
.observer-wait, .observer-alternative { padding: .8rem 1.35rem 1.15rem; }
.observer-wait h3 { margin-bottom: .35rem; }
.observer-wait ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .45rem .8rem; list-style: none; padding: 0; }
.observer-wait .validator-link { overflow-wrap: anywhere; min-height: 2rem; }
.observer-wait .avatar { width: 1.65rem; height: 1.65rem; font-size: .65rem; }
.local-observation { margin-top: 1rem; }
.local-observation > summary { cursor: pointer; font-weight: 600; }
#local-observer { scroll-margin-block-start: 1rem; }
#local-observer > p { margin: .7rem 0; color: var(--muted); }
.observer-breakdown > summary { cursor: pointer; color: var(--accent); }
.observer-profile { margin: 0; }
.observer-profile .trend-window { gap: .55rem; }
.observer-profile h2 small { color: var(--muted); font-size: .8rem; }
.observer-sources { list-style: none; margin: .75rem 0; padding: 0; }
.observer-sources li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .12rem .75rem; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.observer-sources li span { color: var(--muted); }
@media (max-width: 43rem) {
  .observer-table .wide-label { display: none; }
  .observer-table .col-panel-range, .observer-table .col-panel-rate { display: none; }
  [data-window="3h"] .observer-table .col-panel-rate { display: table-cell; width: 29%; padding-inline: .2rem .8rem; }
  .observer-table .col-rank { width: 4.4rem; }
  .observer-windows a { min-width: 2.45rem; }
}

.miner-day-change { display: block; margin-top: .2rem; color: var(--fg); font-variant-numeric: tabular-nums; }
.miner-day-note { margin: .5rem 0 1rem; color: var(--muted); font-size: .85rem; }
.miner-days { position: relative; }
.miner-days summary { cursor: pointer; color: var(--accent); padding: .5rem .75rem; border: 1px solid var(--border); border-radius: .4rem; }
.miner-days ul { position: absolute; z-index: 3; min-width: 100%; max-height: 16rem; overflow: auto; margin: .25rem 0 0; padding: .25rem; list-style: none; background: var(--surface-raised); border: 1px solid var(--border); border-radius: .4rem; }
.miner-days li :is(a, span) { display: block; padding: .45rem .65rem; white-space: nowrap; }
.miner-days [aria-current] { color: var(--muted); }

.miner-profile { margin-top: .3rem; font-size: .83rem; }
.miner-profile summary { color: var(--muted); cursor: pointer; }
.miner-profile dl { margin: .5rem 0; }
.miner-profile dt { color: var(--muted); }
.miner-profile dd { margin: 0 0 .45rem; overflow-wrap: anywhere; }

.public-rank-movement { font-size: .8rem; color: var(--muted); }
.rank-field-change { font-size: .85rem; color: var(--muted); }
.rank-tile h2 { line-height: inherit; letter-spacing: normal; }
.rank-tile small { font: 500 .9rem var(--font); color: var(--muted); letter-spacing: normal; white-space: nowrap; }
.public-profile-metrics { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: .85rem; }
.public-history { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: .3rem; }
.public-history .series-frame { margin-top: .85rem; }
.public-history .isolated-points { stroke-width: 4; }
.public-history .gap-bridge { stroke-width: 1.5; stroke-dasharray: 2 1.5; stroke-linecap: butt; opacity: .85; }
.public-history .current-source-point, .public-history .source-change-point {
  fill: none; stroke: #f3bf79; stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.public-history .series-x:has(> :only-child) { justify-content: center; }
.public-history .series-value { min-width: 5ch; text-align: right; }
.public-history [data-chart="public-inclusion"] .series-value { min-width: 7ch; }
.public-history .series-readout { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: .55rem; font-variant-numeric: tabular-nums; }
.public-history .sample-time { grid-area: 1 / 1; }
.public-history :is(.sample-detail, .sample-detail-size) { grid-area: 1 / 2; min-width: 0; min-height: 0; overflow-wrap: anywhere; text-align: right; font-size: .775rem; line-height: 1.4; }
.public-history .sample-detail-size { visibility: hidden; pointer-events: none; user-select: none; }
.public-history [data-observer-groups] .series-readout { grid-template-columns: minmax(0, 1fr); }
.public-history [data-observer-groups] :is(.sample-detail, .sample-detail-size) { grid-area: 2 / 1; text-align: left; }
.public-history .sample-detail:empty { display: none; }
.public-history .series-panel:last-child .series-line { stroke: #b7adfa; }
.public-history .series-panel:last-child .series-value { color: #cbc3ff; }
.history-note { color: var(--muted); font-size: .85rem; padding-block: .35rem; }
@media (max-width: 64rem) {
  .public-profile-metrics .metric-label { min-height: 2lh; }
}
@media (max-width: 43rem) {
  .profile-actions { display: contents; }
  .profile-toolbar .heading-actions { flex-basis: 100%; }
  .public-history { grid-template-columns: minmax(0, 1fr); }
  .public-profile-metrics { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  [data-period="3h"] .rank-tile { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .65rem; }
  [data-period="3h"] .rank-tile .metric-label { min-height: 0; }
  [data-period="3h"] .rank-tile .metric-value { margin: 0 0 0 auto; }
  [data-period="3h"] .rank-tile .public-rank-movement { flex-basis: 100%; }
}

.participation-map {
  --heat-zero: #bd6a55;
  --heat-low: #a58365;
  --heat-middle: #356773;
  --heat-high: #378b94;
  --heat-higher: #52b7b4;
  --heat-full: #98e3cf;
  margin: 1.1rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
}
.participation-map h2 { font-size: 1.12rem; }
.heat-key { display: flex; flex-wrap: wrap; gap: .28rem .85rem; margin: .7rem 0 .85rem; padding: 0; list-style: none; }
.heat-key li { display: inline-flex; gap: .32rem; align-items: center; color: var(--muted); font: .73rem var(--mono); }
.heat-key i { display: inline-block; width: .72rem; height: .72rem; border-radius: 2px; background: var(--band); }
.heat-band-0 { --band: var(--heat-zero); }
.heat-band-1 { --band: var(--heat-low); }
.heat-band-2 { --band: var(--heat-middle); }
.heat-band-3 { --band: var(--heat-high); }
.heat-band-4 { --band: var(--heat-higher); }
.heat-band-5 { --band: var(--heat-full); }
.heat-strip, .heat-key .heat-missing { background: repeating-linear-gradient(130deg,#283448 0 3px,#566377 3px 4px); }
.heat-data { --heat-label: minmax(0, 10.5rem); }
.heat-axis, .heat-row { display: grid; grid-template-columns: var(--heat-label) minmax(0,1fr); align-items: center; gap: .65rem; }
.heat-axis { color: var(--muted); padding: 0 .35rem .3rem; font: .69rem var(--mono); }
.heat-axis div { display: flex; justify-content: space-between; gap: .3rem; }
.heat-row { padding: .18rem .35rem; min-height: 1.65rem; border-radius: .18rem; }
.heat-row[role="slider"] { cursor: crosshair; user-select: none; touch-action: pan-y pinch-zoom; }
.heat-row.heat-active { background: #24374a; }
.heat-row:focus-visible { outline-offset: -2px; }
.heat-name { font: .76rem var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat-strip { display: block; width: 100%; height: 1.05rem; overflow: hidden; border-radius: 2px; }
.heat-strip path { fill: none; stroke: var(--band); stroke-width: 1; }
.heat-cursor { display: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.heat-active .heat-cursor { display: block; }
.heat-scroll { overflow: auto; max-height: min(52vh, 26rem); border-block: 1px solid var(--border); }
.heat-inspector { display: flex; flex-direction: row-reverse; gap: .65rem; justify-content: space-between; align-items: flex-start; margin: .7rem 0 .45rem; }
.heat-reading { flex: 1; min-width: 0; color: var(--fg); font-size: .83rem; }
.heat-time, .heat-address { display: block; font: .72rem/1.5 var(--mono); color: var(--muted); }
.heat-address { overflow-wrap: anywhere; }
.heat-median { margin-left: .35rem; color: var(--muted); }
.heat-step { display: flex; }
.heat-step button { width: 2.45rem; min-height: 2.45rem; padding: 0; font-size: 1.3rem; line-height: 1; background: var(--surface-raised); border: 1px solid var(--border); border-radius: .3rem; }
.heat-step button:disabled { opacity: .4; cursor: default; }
@media (max-width: 43rem) {
  .participation-map { padding: .9rem .75rem; }
  .heat-data { --heat-label: minmax(0, 30%); }
  .heat-row { min-height: 1.85rem; }
  .heat-axis, .heat-row { gap: .32rem; }
  .heat-median { display: block; margin-left: 0; }
}
.heat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin-bottom: .75rem; font-size: .82rem; }
.heat-tools input { border: 1px solid var(--border); border-radius: .35rem; padding: .38rem .55rem; background: var(--surface-deep); color: var(--fg); min-width: 0; max-width: 100%; }
.heat-matches, .heat-empty { color: var(--muted); font-size: .8rem; }
.heat-selected-name { font-weight: 650; }
.heat-axis time:last-child { text-align: right; }

.profile-grid .validator-compare { grid-column: 1 / -1; grid-row: auto; }
.profile-grid .validator-compare:first-child { grid-row: auto; }
.validator-compare + .detail-panel { grid-row: span 2; }
.compare-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.compare-controls label { display: grid; gap: .3rem; font-size: .8125rem; }
.compare-controls input, .compare-controls select {
  min-width: 0; width: 100%; min-height: 2.6rem; padding: .4rem .6rem; font: inherit;
  color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: .4rem;
}
.compare-status:empty { display: none; }
.compare-status { margin-top: .55rem; font-size: .85rem; }
.compare-plot { min-width: 0; cursor: crosshair; touch-action: pan-y pinch-zoom; user-select: none; }
.compare-result { margin-top: .9rem; }
.compare-result .series-key b { font-weight: 500; overflow-wrap: anywhere; }
.compare-result .sample-detail, .compare-delta { overflow-wrap: anywhere; }
.compare-delta { color: var(--fg); font-size: .85rem; }
@media (max-width: 600px) {
  .compare-controls { grid-template-columns: minmax(0,1fr); }
  .validator-compare + .detail-panel { grid-row: auto; }
}
