@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('./fonts/InterVariable.woff2') format('woff2');
}
@font-face {
    font-family: Inter;
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('./fonts/InterVariable-Italic.woff2') format('woff2');
}
:root {
    color-scheme: light dark;
    font-family: Inter, Arial, sans-serif;
    font-synthesis: none;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    background: var(--background);
    --background: light-dark(#fff, #10161f);
    --text: light-dark(#08090a, #d9e6f2);
    --heading: light-dark(#10161f, #fff);
    --secondary: light-dark(#536579, #93a5b8);
    --blue: light-dark(#0098ea, #1eaefb);
    --chart-blue: light-dark(#0079ba, #1eaefb);
    --link: light-dark(#0079ba, #1eaefb);
    --pale-blue: light-dark(#237caa, #70caff);
    --green: #5c9980;
    --red: #c27870;
    --muted: light-dark(#64788c, #93a5b8);
    --line: light-dark(#e3ebf2, #364459);
    --plot: light-dark(#f4f8fb, #101b2a);
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
#theme-toggle { min-width: 44px; font-size: 19px; line-height: 1; }

/* Shared surfaces and labels also cover SVG charts and modal views. */
:root {
.date-range input, .date-range button,
.wallet-registry, .wallet-registry-heading, .expanded-chart,
.chart-toggle button[aria-pressed='true'], .skip-link {
    background: var(--background);
}
.chart-tooltip { background: light-dark(#fffffff7, #1d2633f7); }
.source-status, .chart-status, .chart-description, .wallet-hash-label,
.chart-explanation, .chart-average, .tooltip-date {
    color: var(--secondary);
}
h3, .chart-expand, .chart-tooltip, .chart-toggle button[aria-pressed='true'] {
    color: var(--text);
}
h1, h2, .readout-value { color: var(--heading); }
.chart-expand:hover, .legend-item:hover, .skip-link { color: var(--heading); }
.wallet-registry-link, .wallet-registry-table a, .time-picker summary strong, .calendar-weekdays { color: var(--link); }
.chart-legend, .tooltip-note, .section-date, .readout-unit, .readout-detail,
.chart-toggle button, footer, .footer-quote { color: var(--muted); }
.chart-tooltip, .tooltip-total { border-color: var(--line); }
.axis-label, .chart-empty { fill: var(--muted); }
.grid-line { stroke: light-dark(#dde7ef, #93a5b82e); }
.event-marker-label { stroke: var(--plot); }
.calendar-days button.selected { background: light-dark(#e0f3ff, #222c3d); }
.calendar-days button.edge, .calendar-choices button[aria-pressed='true'],
.time-panel #apply {
    color: #08090a;
    background: var(--blue);
}
.range-selection { fill: #0098ea26; stroke: var(--blue); }
.chart-cursor { stroke: var(--muted); }
.chart-toggle { background: var(--plot); }
.warning { background: light-dark(#fff5e8, #382e20); color: light-dark(#775528, #e7c38c); }
.warning button { border-color: light-dark(#dec9ab, #806641); }
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}
body {
    margin: 0;
}
button,
a {
    font: inherit;
}
.date-range {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    font-size: 17px;
}
.date-range input,
.date-range button {
    font: inherit;
    padding: 9px 12px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 3px;
    color: inherit;
}
.time-controls { display: flex; align-items: center; justify-content: flex-end; margin: 24px calc(-1 * var(--gutter)) 0;
    padding: 8px var(--gutter); gap: 12px; position: sticky; top: 0; z-index: 10;
    background: var(--background); border-bottom: 1px solid var(--line);
    --time-glass: color-mix(in srgb, var(--plot) 88%, transparent);
    --time-hover: color-mix(in srgb, var(--blue) 12%, transparent); }
.page-navigation { display: flex; align-items: center; gap: 3px; background: var(--plot); padding: 3px; }
.page-navigation a { display: block; padding: 9px 12px; color: var(--secondary); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.page-navigation a:hover { color: var(--heading); background: var(--time-hover); }
.page-navigation a[aria-current='page'] { color: var(--link); background: var(--background); box-shadow: 0 1px 3px #0002; }
.page-navigation a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.brand-dock { position: relative; flex: none; height: 44px; margin-right: auto; }
.brand-parked { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 12px; height: 44px;
    color: var(--heading); font-size: 28px; font-weight: 900; white-space: nowrap;
    transform: scale(.7); transform-origin: left center; pointer-events: none; opacity: 0; }
.brand-parked img { width: 27px; height: 27px; }
.scroll-brand { position: fixed; top: 0; left: 0; z-index: 11;
    color: var(--heading); font-size: 28px; font-weight: 900; letter-spacing: normal; line-height: normal;
    transform-origin: top left; pointer-events: none; will-change: transform; }
.scroll-brand img { position: absolute; top: 0; left: 0; width: 27px; height: 27px; }
.scroll-brand-part, .scroll-brand-probe { position: absolute; top: 0; left: 0; white-space: pre; }
.scroll-brand-probe { visibility: hidden; }
.masthead.brand-animated > img, .masthead.brand-animated > h1 { opacity: 0; }
.time-controls button, .time-picker summary, .time-panel input {
    font: inherit; color: inherit; background: transparent; border: 0; border-radius: 0; padding: 10px 14px;
}
.time-controls > button { height: 44px; background: var(--time-glass); backdrop-filter: blur(16px); transition: background-color .15s; }
.time-controls > button:hover, .range-navigation > button:hover, .time-picker summary:hover { background: var(--time-hover); }
.time-controls button:focus-visible, .time-picker summary:focus-visible, .time-panel input:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.range-navigation { display: flex; align-items: stretch; min-width: 0; height: 44px; background: var(--time-glass); }
.range-navigation > button, .time-picker summary { border: 0; background: transparent; border-radius: 0; height: 100%; }
.range-navigation > button { width: 40px; flex: none; padding: 0; font-size: 26px; font-weight: 400; line-height: 1; color: var(--secondary); }
.range-navigation > button:first-child { border-right: 1px solid var(--line); }
.range-navigation > button:not(:first-child) { border-left: 1px solid var(--line); }
.time-picker { min-width: 0; }
.time-picker summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 0 12px; list-style: none; font-size: 14px; white-space: nowrap; }
.time-picker summary::-webkit-details-marker { display: none; }
.time-picker summary::after { content: ''; flex: none; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.time-picker[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
#range-label { overflow: hidden; text-overflow: ellipsis; }
#range-complete { font-size: 10px; font-weight: 500; color: var(--secondary); }
.time-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.time-picker summary strong { color: var(--link); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
#range-out { display: grid; place-items: center; }
.time-panel { position: absolute; right: var(--gutter); top: calc(100% + 8px); width: min(1150px, calc(100% - 2 * var(--gutter))); display: grid;
    grid-template-columns: 1fr 1.2fr 1fr; background: var(--time-glass); backdrop-filter: blur(20px); box-shadow: 0 8px 30px #27343b20; }
.range-calendar { padding: 16px; border-right: 1px solid var(--line); min-width: 0; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-title { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 0; }
.calendar-title button { border: 0; background: transparent; padding: 5px 2px; font-weight: 600; cursor: pointer; }
.calendar-title button:hover, .calendar-title button:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.calendar-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.calendar-choices button { border: 0; padding: 10px 3px; background: transparent; cursor: pointer; }
.calendar-choices button:hover:not(:disabled) { background: var(--plot); }
.calendar-choices button[aria-pressed='true'] { background: var(--blue); color: white; }
.calendar-choices button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.range-calendar [hidden] { display: none; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.calendar-weekdays { color: var(--blue); font-size: 12px; margin-bottom: 8px; }
.calendar-days button { padding: 9px 0; border: 0; border-radius: 0; font-size: 14px; }
.calendar-days button.outside { color: var(--secondary); }
.calendar-days button.selected { background: #e1edf3; }
.calendar-days button.edge { background: var(--blue); color: white; }
.range-calendar p { font-size: 13px; color: var(--muted); }
.time-panel form, .quick-ranges { padding: 22px; min-width: 0; }
.time-panel label { display: block; margin: 16px 0; }
.time-panel label input { display: block; width: 100%; margin-top: 8px; min-width: 0; }
.time-panel input[type='datetime-local'] { background: color-mix(in srgb, var(--background) 65%, transparent); }
.time-panel #apply { background: var(--blue); color: white; margin-bottom: 8px; }
.range-info { color: var(--secondary); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; margin-bottom: 24px; }
.range-info p { margin: 6px 0; }
.quick-ranges { border-left: 1px solid var(--line); }
.quick-ranges p { font-size: 13px; color: var(--muted); }
.time-panel .complete-days { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; line-height: 1.5; cursor: pointer; }
.time-panel .complete-days input { appearance: none; flex: none; width: 30px; height: 18px; margin: 0; padding: 3px; background: var(--muted); cursor: pointer; }
.complete-days input::before { content: ''; display: block; width: 12px; height: 12px; background: var(--background); transition: transform .15s; }
.time-panel .complete-days input:checked { background: var(--blue); }
.complete-days input:checked::before { transform: translateX(12px); }
#complete-days-help { margin: 6px 0 20px; font-size: 12px; line-height: 1.5; }
#range-presets { max-height: 380px; overflow-y: auto; }
.quick-ranges button, #recent-ranges button { display: block; border: none; text-align: left; width: 100%; }
.quick-ranges button:hover, #recent-ranges button:hover { background: var(--time-hover); }
.quick-ranges button[aria-pressed='true'] { color: var(--link); background: var(--time-hover); }
#range-error { grid-column: 1 / -1; margin: 0; padding: 12px 22px; color: var(--red); font-size: 13px; }
#range-error:empty { display: none; }
#recent-ranges button { font-size: 13px; }
.range-selection { fill: #5b91b133; stroke: #5b91b1; pointer-events: none; }
.event-marker { pointer-events: none; }
.event-marker-label { font: 12px Inter, Arial, sans-serif; paint-order: stroke; stroke: #f7f9f9; stroke-width: 3px; }
@media (max-width: 900px) {
    .time-picker summary { font-size: 13px; padding: 0 10px; }
    .time-panel { grid-template-columns: minmax(0, 1fr); max-height: 75vh; overflow-y: auto; }
    .quick-ranges { border-left: 0; border-bottom: 1px solid var(--line); grid-row: 1; }
    #range-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
    .range-calendar { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
    .time-controls { flex-wrap: wrap; gap: 8px; }
    html { scroll-padding-top: 150px; }
    .page-navigation a { font-size: 12px; padding: 9px 7px; }
    .scroll-brand { font-size: 26px; }
    .brand-parked { gap: 14px; font-size: 26px; transform: scale(.55); }
    .range-navigation { flex-basis: 100%; height: auto; min-height: 58px; order: 1; }
    .time-picker { flex: 1; }
    .time-picker summary { justify-content: center; font-size: 12px; white-space: normal; }
    #range-label { flex: 1; overflow: visible; text-overflow: clip; text-align: center; line-height: 1.5; }
    .time-picker summary { flex-wrap: wrap; gap: 4px; padding: 4px 8px; }
    .time-picker summary .time-icon { display: none; }
    #range-complete { order: 1; flex-basis: 100%; text-align: center; }
    .time-panel { top: calc(100% + 8px); max-height: min(65dvh, calc(100dvh - 260px)); }
}
@media (max-width: 400px) {
    .time-controls { gap: 4px; }
    .page-navigation a { padding-inline: 3px; }
    #theme-toggle { min-width: 36px; padding-inline: 8px; }
}
@media print {
    .scroll-brand { display: none; }
    .masthead.brand-animated > img, .masthead.brand-animated > h1 { opacity: 1; }
}
.source-status,
.chart-status {
    color: #6a7b84;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.chart-status {
    min-height: 3em;
}
#chart-stake .chart-status, #chart-staking_apr .chart-status, #chart-dex_tvl .chart-status { white-space: pre-line; }
#chart-staking_apr .tooltip-note, #chart-dex_volume .tooltip-note { white-space: pre-line; }
#chart-stake_changes .chart-status, #chart-stake_changes .tooltip-note { white-space: pre-line; }
#chart-stake_locked .chart-status, #chart-stake_locked .tooltip-note { white-space: pre-line; }
#chart-jetton_users .chart-status, #chart-nft_users .chart-status, #chart-swaps_users .chart-status { white-space: pre-line; }
.chart-description { color: #6a7b84; font-size: 15px; line-height: 1.5; margin: 8px 0 0; }
.wallet-registry-link { padding: 0; border: 0; background: none; color: #397799; text-decoration: underline; text-underline-offset: 3px; }
.wallet-registry { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: inherit; }
.wallet-registry::backdrop { background: #17232db3; }
.wallet-registry-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; position: sticky; top: -24px; z-index: 1; background: white; padding: 8px 0; }
.wallet-registry-heading h2 { margin: 0; font-size: 22px; }
.wallet-registry-close { border: 0; background: none; color: inherit; font-size: 30px; padding: 0 8px; }
.wallet-registry-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.wallet-registry-table th, .wallet-registry-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.wallet-registry-table th:first-child { width: 20%; }
.wallet-registry-table th:last-child { width: 16%; }
.wallet-registry-table a { color: #397799; }
.wallet-code-hash code { display: block; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; user-select: all; }
.wallet-hash-label { display: block; font-size: 11px; color: #6a7b84; margin-bottom: 2px; }
.wallet-hash-label:not(:first-child) { margin-top: 6px; }
.stake-registry-table th:last-child { width: 80%; }
.stake-holder-addresses { margin-top: 10px; }
.stake-holder-addresses summary { cursor: pointer; color: var(--link); }
.stake-holder-addresses code { margin-top: 8px; }
@media (max-width: 600px) {
    .wallet-registry { padding: 14px; }
    .wallet-registry-heading { top: -14px; }
    .wallet-registry-table { font-size: 12px; }
    .wallet-registry-table th, .wallet-registry-table td { padding: 10px 4px; }
    .wallet-registry-table th:first-child { width: 23%; }
    .wallet-registry-table th:last-child { width: 22%; }
    .stake-registry-table th:last-child { width: 77%; }
    .wallet-code-hash code { font-size: 11px; }
}
.validator-map { margin-top: 32px; }
#validator-geo-charts { margin-top: 28px; }
#validator-geo-charts .chart-surface { height: 136.5px; }
.geo-readout .readout-value { font-size: 28px; }
.geo-metric { display: inline-flex; align-items: baseline; gap: 7px; }
.geo-readout .readout-separator { margin: 0 8px; color: var(--muted); }
.geo-readout .readout-detail { flex-basis: 100%; margin-left: 0; }
.validator-map .chart-heading { align-items: baseline; flex-wrap: wrap; }
.map-time { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.map-time { font-size: 12px; }
.map-surface { position: relative; background: var(--plot); border: 1px solid var(--line); border-radius: 6px; }
.map-surface svg { display: block; width: 100%; height: auto; max-height: 600px; }
.map-geography { pointer-events: none; }
.map-land { fill: light-dark(#dce6ee, #253548); stroke: light-dark(#b5c6d5, #52647b); stroke-width: 0.5; }
.map-borders { fill: none; stroke: light-dark(#b5c6d5, #52647b); stroke-width: 0.5; }
.map-point { fill: var(--blue); fill-opacity: 0.8; stroke: var(--plot); stroke-width: 1; cursor: pointer; }
.map-point.is-muted { opacity: 0.16; }
.map-point:hover, .map-point:focus-visible, .map-point.is-active { fill-opacity: 1; stroke: var(--text); stroke-width: 1.5; opacity: 1; outline: none; }
.map-message { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; padding: 20px; text-align: center; color: var(--text); background: light-dark(#f4f8fbe6, #101b2ae6); }
.map-message[hidden], .map-tooltip[hidden] { display: none; }
.map-tooltip { position: absolute; bottom: 10px; left: 10px; max-width: calc(100% - 20px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--background); color: var(--text); white-space: pre-line; font-size: 13px; line-height: 1.6; pointer-events: none; }
.map-countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.map-country { padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--plot); color: var(--secondary); font-size: 12px; }
.map-country:hover, .map-country[aria-pressed='true'] { border-color: var(--blue); color: var(--link); }
.map-country:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 600px) {
    .map-tooltip { bottom: 4px; left: 4px; padding: 6px 8px; font-size: 11px; }
    .map-country { padding: 6px 8px; }
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
}
button,
a,
[tabindex] {
    -webkit-tap-highlight-color: transparent;
}
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}
[hidden] {
    display: none !important;
}

.dashboard {
    --gutter: 36px;
    max-width: 1540px;
    margin: auto;
    padding: 28px var(--gutter) 20px;
}
.masthead {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 23px;
}
.masthead-logo { width: 27px; height: 27px; flex: none; }
h1 {
    margin: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: normal;
}
.demo-key {
    color: #849096;
    font-size: 10px;
    white-space: nowrap;
}
.demo-mark {
    display: inline-block;
    margin-left: 3px;
    color: #bb554f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    vertical-align: 0.05em;
}
.demo-key .demo-mark {
    margin-left: 0;
    margin-right: 2px;
}
.warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 0 0;
    padding: 12px 15px;
    background: #fff5e8;
    color: #775528;
    font-size: 15px;
    line-height: 1.6;
}
.warning button {
    flex-shrink: 0;
    padding: 5px 11px;
    border: 1px solid #dec9ab;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font-size: 15px;
}

.analytics-section {
    padding-top: 29px;
    scroll-margin-top: 84px;
}
.analytics-section + .analytics-section {
    margin-top: 31px;
    border-top: 1px solid var(--line);
}
.section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}
h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.section-date {
    color: #909ba1;
    font-size: 14px;
}
#activity > .section-heading { justify-content: flex-start; }
.activity-description { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
#activity > .section-heading .section-date { margin-left: auto; }
.chart-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px 32px;
}
.chart-card {
    grid-column: span 2;
    min-width: 0;
}
.chart-card.chart-linked { outline: 2px solid var(--blue); outline-offset: 8px; border-radius: 4px; }
.chart-anchor { padding: 0 5px; color: var(--muted); font-size: .75em; text-decoration: none; }
.chart-anchor:hover { color: var(--blue); }
.chart-anchor:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chart-card.wide {
    grid-column: span 4;
}
.chart-card.half {
    grid-column: span 3;
}
.chart-card.full {
    grid-column: 1 / -1;
}
.chart-row {
    grid-column: 1 / -1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: inherit;
}
.chart-row > .chart-card { grid-column: auto; }
.chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
}
.activity-tabs { display: flex; flex-shrink: 0; gap: 2px; padding: 3px; border-radius: 7px; background: var(--plot); }
.activity-tabs button { border: 0; border-radius: 5px; padding: 5px 8px; background: transparent; color: inherit; font: inherit; font-size: 12px; cursor: pointer; }
.activity-tabs button[aria-selected='true'] { background: light-dark(#0079ba, #1eaefb); color: light-dark(#fff, #08090a); }
.activity-tabs button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
#chart-active_wallets_daily .chart-heading { flex-wrap: wrap; justify-content: flex-start; }
.chart-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    flex-shrink: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #53626b;
    font-size: 20px;
    line-height: 1;
    min-width: 32px;
    min-height: 30px;
}
.chart-expand:hover { color: #27343b; }
.expanded-chart .chart-heading { position: relative; padding-right: 44px; }
.expanded-chart .chart-expand { position: absolute; top: 0; right: 0; }
body.chart-expanded { overflow: hidden; }
.expanded-chart {
    width: calc(100vw - 48px);
    height: calc(100dvh - 48px);
    max-width: none;
    max-height: none;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    background: white;
}
.expanded-chart::backdrop { background: #17232db3; }
.expanded-chart[open] { display: flex; flex-direction: column; gap: 12px; }
.expanded-period { flex-shrink: 0; }
.expanded-chart .chart-card { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.expanded-chart .chart-surface { flex: 1; height: auto; min-height: 160px; }
.expanded-chart .chart-status { min-height: 0; margin-bottom: 0; }
@media (max-width: 640px) {
    .expanded-chart { width: calc(100vw - 16px); height: calc(100dvh - 16px); padding: 16px; }
}
h3 {
    margin: 0;
    color: #53626b;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}
.readout {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    min-height: 45px;
    margin-top: 4px;
    white-space: nowrap;
}
.readout-value {
    font-size: 35px;
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 1.2;
}
.readout-unit {
    color: #89969c;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}
.readout-detail {
    overflow: hidden;
    margin-left: 4px;
    white-space: normal;
    color: #98a1a7;
    font-size: 13px;
    text-overflow: ellipsis;
    letter-spacing: 0;
}
.wallet-readout .readout-detail { margin-left: 4px; white-space: normal; }
.chart-surface {
    position: relative;
    height: 273px;
    margin-top: 12px;
    border-radius: 3px;
    background: var(--plot);
    touch-action: pan-y;
}
.chart-surface:focus-visible {
    outline-offset: 3px;
}
.chart-surface.has-explanation { touch-action: auto; user-select: text; }
.chart-explanation {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    text-align: center;
    color: #6a7b84;
    font-size: 15px;
    line-height: 1.5;
}
.chart-explanation p { margin: 12px 0 0; }
.chart-average {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    color: #6a7b84;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.average-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.activity-average { flex-wrap: wrap; gap: 5px 12px; }
.activity-average-item { display: inline-flex; align-items: center; gap: 5px; }
.chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.axis-label {
    fill: #96a1a6;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
}
.grid-line {
    stroke: #e5ebed;
    stroke-width: 1;
    stroke-dasharray: 2 4;
}
.chart-empty {
    fill: #8b979d;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
}
.series-line {
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chart-cursor {
    stroke: #84949c;
    stroke-width: 1;
    stroke-dasharray: 3 4;
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 17px;
    min-height: 14px;
    margin-top: 10px;
    color: #829096;
    font-size: 13px;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.legend-item[aria-pressed='false'] { text-decoration: line-through; }
.legend-item[aria-pressed='false'] .swatch { opacity: 0.45; }
.action-category { position: relative; display: inline-flex; align-items: center; gap: 2px; max-width: 100%; }
.action-category-toggle[aria-pressed='false'] { opacity: 0.5; }
.action-category-toggle[aria-pressed='mixed'] .swatch { opacity: 0.6; }
.action-category .legend-item:hover { color: var(--text); }
.action-legend { font-size: 13px; }
.action-legend > summary { cursor: pointer; padding: 4px 6px; color: var(--text); list-style: none; }
.action-legend > summary::-webkit-details-marker { display: none; }
.action-legend[open] > summary { color: var(--blue); }
.action-legend-panel { position: absolute; z-index: 12; top: 100%; left: 0; transform: translateX(var(--action-panel-shift, 0px)); width: max-content; min-width: 220px; max-width: calc(100vw - 32px); max-height: min(420px, 55vh); overflow-y: auto; background: var(--background); color: var(--text); padding: 10px 14px; box-shadow: 0 6px 26px #0003; border: 1px solid var(--line); }
.action-type-choice { display: flex; align-items: center; gap: 8px; padding: 7px 0; cursor: pointer; overflow-wrap: anywhere; min-width: 0; }
.action-type-choice input { flex-shrink: 0; accent-color: var(--blue); }
.action-type-choice .swatch { flex-shrink: 0; }
.action-legend-panel .action-type-choice { font-size: 12px; }
.action-select-all { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 4px 0; font: inherit; }
.action-category-legend :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.expanded-chart .action-legend-panel { top: auto; bottom: 100%; }
.legend-item:hover { color: #27343b; }
.legend-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.swatch {
    display: inline-block;
    flex: 0 0 12px;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--series-color);
}
.chart-legend .demo-mark {
    margin-left: -2px;
    font-size: 11px;
}
.chart-toggle {
    display: flex;
    gap: 1px;
    margin-top: -2px;
    padding: 2px;
    border-radius: 3px;
    background: #f1f4f4;
}
.chart-toggle button {
    min-height: 34px;
    padding: 6px 11px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #8a969c;
    font-size: 13px;
}
.chart-toggle button[aria-pressed='true'] {
    background: white;
    color: #40535e;
    box-shadow: 0 1px 3px #27343b12;
}
.chart-tooltip {
    position: absolute;
    z-index: 3;
    width: max-content;
    max-width: calc(100% - 16px);
    padding: 11px 12px;
    border: 1px solid #dde4e6;
    border-radius: 4px;
    background: #fffffff7;
    color: #40515b;
    box-shadow: 0 4px 16px #27343b0c;
    pointer-events: none;
    font-size: 14px;
    line-height: 1.5;
}
.chart-tooltip.pinned { pointer-events: auto; user-select: text; cursor: text; }
.tooltip-date {
    display: block;
    margin-bottom: 7px;
    color: #75858d;
    font-size: 14px;
    font-weight: 500;
}
.tooltip-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    margin-top: 4px;
}
.tooltip-label {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.tooltip-value {
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
    min-width: 0;
}
.tooltip-total {
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px solid #e8edef;
}
.tooltip-note {
    max-width: 330px;
    margin: 7px 0 0;
    color: #8a959b;
    font-size: 13px;
    line-height: 1.5;
}
footer {
    margin-top: 48px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
    color: #a0a9ae;
    font-size: 13px;
    letter-spacing: 0.07em;
}
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.footer-quote {
    display: grid;
    width: 100%;
    margin: 24px auto 0;
    color: #b2b9bd;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: normal;
    text-align: center;
}
.footer-quote span {
    grid-area: 1 / 1;
}
.quote-original {
    visibility: hidden;
}
.footer-quote:is(:hover, :focus-within) .quote-translation {
    visibility: hidden;
}
.footer-quote:is(:hover, :focus-within) .quote-original {
    visibility: visible;
}
.sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 20;
    padding: 10px 14px;
    background: #fff;
    color: #27343b;
    font-size: 17px;
}
.skip-link:focus {
    top: 12px;
}

@media (min-width: 1550px) {
    .dashboard {
        padding-top: 34px;
    }
    .chart-surface {
        height: 294px;
    }
}
@media (max-width: 1400px) {
    .dashboard {
        --gutter: 24px;
        padding: 24px var(--gutter);
    }
    .chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 22px;
    }
    .chart-card,
    .chart-card.half {
        grid-column: span 1;
    }
    .chart-card.wide {
        grid-column: span 2;
    }
}
@media (max-width: 800px) {
    .chart-row { grid-auto-flow: row; }
    .dashboard {
        --gutter: 18px;
        padding: 20px var(--gutter) 18px;
    }
    .masthead {
        gap: 14px;
        padding-bottom: 20px;
    }
    h1 {
        font-size: 26px;
    }
    .demo-key {
        font-size: 9px;
    }
    .chart-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 27px;
    }
    .chart-card,
    .chart-card.half,
    .chart-card.wide {
        grid-column: span 1;
    }
    .analytics-section { padding-top: 25px; scroll-margin-top: 150px; }
    .analytics-section + .analytics-section {
        margin-top: 28px;
    }
    .section-heading {
        margin-bottom: 24px;
    }
    .chart-surface {
        height: 273px;
    }
    .readout-value {
        font-size: 34px;
    }
    .warning {
        align-items: flex-start;
    }
    .tooltip-row {
        gap: 13px;
    }
    .tooltip-value {
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Latest account types have an independent 2:1 row, including mid-size screens. */
#accounts-charts { grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr); align-items: start; }
#accounts-charts > .chart-card { grid-column: auto; }
.account-types { position: relative; }
.account-type-actions { display: flex; gap: 4px; }
.type-icon { border: 0; background: transparent; color: var(--secondary); font-size: 22px; width: 32px; height: 32px; padding: 0; }
.account-type-time { margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.account-type-warning { width: 100%; margin-bottom: 12px; padding: 12px; background: light-dark(#f0f0f0, #272727); color: light-dark(#555, #bcbcbc); font-size: 12px; line-height: 1.6; }
.account-type-warning strong { display: block; margin-bottom: 4px; font-weight: 600; }
.account-type-warning p { margin: 0; }
.type-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; min-height: 25px; margin-bottom: 3px; font-size: 12px; }
.type-breadcrumbs button { border: 0; padding: 3px 4px; background: transparent; color: var(--link); max-width: 100%; overflow-wrap: anywhere; text-align: left; }
.type-breadcrumbs button + button::before { content: '›'; padding-right: 7px; color: var(--muted); }
.type-breadcrumbs button:last-child { color: var(--text); }
.type-ring-wrap { width: min(100%, 230px); margin: 0 auto; position: relative; }
.type-ring { display: block; width: 100%; overflow: visible; animation: type-appear .18s ease-out; }
.type-ring path { cursor: pointer; transition: opacity .12s; outline: none; }
.type-ring:has(.highlight) path:not(.highlight) { opacity: .72; }
.type-ring path:focus-visible { stroke: var(--text); stroke-width: 2; }
.type-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.type-center strong { color: var(--heading); font-size: 30px; font-weight: 500; letter-spacing: -.05em; }
.type-center span { color: var(--muted); font-size: 12px; }
.type-legend { display: flex; flex-direction: column; gap: 1px; }
.type-legend-row { width: 100%; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 3px; border: 0; background: transparent; text-align: left; color: var(--text); font: inherit; font-size: 12px; }
.type-legend-row.highlight, .type-legend-row:hover { background: var(--plot); }
.type-dot { width: 8px; height: 8px; border-radius: 50%; }
.type-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.type-share { font-variant-numeric: tabular-nums; color: var(--secondary); }
.type-navigation { margin-top: 10px; }
.type-hint { margin: 0 0 2px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.type-browse { padding: 4px 0; background: transparent; border: 0; color: var(--link); font: inherit; font-size: 12px; }
.type-message { color: var(--muted); font-size: 13px; line-height: 1.6; }
.type-message:empty { display: none; }
.type-about { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.type-about summary { cursor: pointer; }
.type-about p { margin: 8px 0; }
.type-tooltip { position: fixed; z-index: 30; width: max-content; max-width: min(420px, calc(100vw - 16px)); margin: 0; padding: 10px 12px; background: var(--background); color: var(--text); border: 1px solid var(--line); box-shadow: 0 3px 16px #0002; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; pointer-events: none; }
.type-tooltip strong { display: block; }
.type-expanded { width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--background); color: var(--text); }
.type-expanded .type-body { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(240px, 1fr); gap: 20px; align-items: center; }
.type-expanded .type-ring-wrap { width: min(100%, 360px); }
.type-expanded .type-legend-row { font-size: 14px; padding: 9px 5px; }
.type-expanded .type-label { white-space: normal; }
.type-expanded .type-navigation { grid-column: 1 / -1; text-align: left; }
.type-panel { position: fixed; margin: 0 0 0 auto; inset: 0; width: min(780px, 100vw); height: 100dvh; max-width: 100vw; max-height: 100dvh; padding: 28px; border: 0; border-left: 1px solid var(--line); background: var(--background); color: var(--text); overflow: auto; }
.type-panel::backdrop, .type-expanded::backdrop { background: #17232d80; }
body:has(.type-panel[open], .type-expanded[open]) { overflow: hidden; }
.type-panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.type-panel-heading h2 { flex: 1; margin: 0; font-size: 22px; }
.type-panel-path { color: var(--secondary); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.type-back { color: var(--link); background: transparent; border: 0; padding: 5px 0; }
.type-search { width: 100%; padding: 10px; font: inherit; background: var(--plot); border: 1px solid var(--line); color: var(--text); }
.type-hash-table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 15px 0; }
.type-hash-table th { color: var(--secondary); font-weight: 500; }
.type-hash-table th, .type-hash-table td { text-align: left; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.type-hash-table th:last-child, .type-hash-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.type-hash-link { background: transparent; border: 0; color: var(--link); text-align: left; padding: 0; font: 11px ui-monospace, monospace; overflow-wrap: anywhere; }
.type-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; }
.type-pagination button { padding: 7px 14px; border: 1px solid var(--line); background: var(--plot); color: var(--text); }
.type-detail { font-size: 13px; line-height: 1.7; }
.type-detail-count { font-size: 17px; font-variant-numeric: tabular-nums; }
.type-detail h3 { color: var(--heading); margin-top: 25px; }
.type-code { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin: 15px 0; padding: 12px; background: var(--plot); }
.type-code > span { grid-column: 1 / -1; }
.type-code code { overflow-wrap: anywhere; font-size: 12px; align-self: center; }
.type-code button { background: transparent; border: 0; color: var(--link); font-size: 12px; }
.type-metadata { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; line-height: 1.6; }
.type-methods { list-style: none; padding: 0; font-family: ui-monospace, monospace; font-size: 12px; overflow-wrap: anywhere; }
.type-methods li { padding: 3px 0; }
.type-abi { margin: 10px 0 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.type-abi summary { cursor: pointer; color: var(--heading); font-weight: 500; }
.type-abi-method { padding: 10px 0; overflow-wrap: anywhere; }
.type-abi-method code, .type-abi-method > span { display: block; }
.type-abi-method p { margin: 4px 0; }
.type-source-links { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; }
@keyframes type-appear { from { opacity: .4; } to { opacity: 1; } }
@media (max-width: 1000px) {
    #accounts-charts { grid-template-columns: minmax(0, 1fr); }
    .account-types .type-body { max-width: 460px; margin: auto; }
}
@media (max-width: 600px) {
    .type-expanded .type-body { display: block; }
    .type-panel { padding: 18px; }
    .type-panel-heading h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
    .type-ring { animation: none; }
    .type-ring path { transition: none; }
}
