/* POTATCHI analytics page (analytics.html). Composes the design system in styles.css (tokens, .card, .stat, .pill, .seg,
   .tip, .disclosure, .table, .skeleton, .page-head, .page-mark; docs/design-system.md) and adds only what this page
   needs. Everything is scoped under .an. Nothing moves while the data arrives: every value, note, chart and status line
   keeps the room it will need from the first paint. Under 640 px the data tables become cards. */

.an { max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-6) var(--gutter) var(--space-8); }
.an > * + * { margin-top: var(--space-7); }
.an > .an-head + .an-key { margin-top: var(--space-5); }
.an > .an-key + .an-disclaimer { margin-top: var(--space-4); }
.an [hidden] { display: none !important; }
.an dl, .an dd { margin: 0; }
.an a:not(.btn) { color: var(--gold-ink); text-underline-offset: 3px; }
.an code, .an-mono { font-family: var(--font-mono); font-size: .86em; overflow-wrap: anywhere; }
.an-note { font-size: var(--text-sm); line-height: 1.5; color: var(--ink-3); max-width: 80ch; }

/* touch targets: the shared toggletip and segmented controls are smaller than 44 px; here they get a 44 px hit area
   (the visible circle and pill stay the same size) */
.an .tip__btn { width: 44px; height: 44px; margin: -12px -10px; background: transparent; }
.an .tip__btn::before { content: ''; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: transparent; transition: background-color var(--dur-1) var(--ease-out); }
.an .tip__btn { position: relative; }
.an .tip__btn:hover::before, .an .tip__btn[aria-expanded="true"]::before { background: var(--surface-2); }
.an .tip__btn:hover, .an .tip__btn[aria-expanded="true"] { background: transparent; }
.an .tip__btn .icon { position: relative; }
.an .tip__bubble { text-transform: none; letter-spacing: 0; }
.an .tip__bubble .an-exact { font-family: var(--font-mono); font-size: .92em; overflow-wrap: anywhere; }
.an .tip__bubble code { color: inherit; }
.an-seg > button { min-height: 44px; padding-inline: 16px; }

/* ------------------------------------------------------------- header -- */
/* the chart mark sits beside the title; the line and the status row run full width under both */
.page-head.an-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "mark title" "lede lede" "meta meta"; column-gap: var(--space-4); row-gap: var(--space-2); }
.an-head__mark { grid-area: mark; align-self: center; }
.an-head .page-head__title { align-self: center; }
.an-head .page-head__lede { max-width: 58ch; }
.an-head > noscript { grid-column: 1 / -1; }
.an-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; margin-top: var(--space-1); font-size: var(--text-sm); line-height: 1.45; color: var(--ink-2); }
/* pill, (i), then the time: the pill keeps one width for Loading, Up to date, Delayed and Unavailable, so the (i) and
   the text never slide sideways when the state changes; "Try again" only ever appears after them */
.an-status__pill { order: 1; min-width: 9.4em; justify-content: center; }
.an-status .tip { order: 2; }
.an-status__text { order: 3; min-width: 0; }
.an-status__retry { order: 4; }
.an-status__text time { color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
  /* the title may wrap to two lines on a phone: its room is kept either way, so the web font can't move anything */
  .an-head .page-head__title { display: flex; align-items: center; min-height: calc(2 * 1.04em); }
  .an-head__mark { width: 48px; height: 48px; border-radius: var(--radius-md); }
  .an-head__mark .icon { width: 24px; height: 24px; }
  .an > .an-head + .an-key { margin-top: var(--space-3); }
  /* pill, (i) and "Try again" share the first line; the time gets two lines of its own below */
  .an-status { align-content: flex-start; min-height: calc(44px + 2 * 1.45em + 2px); }
  .an-status__retry { order: 3; }
  .an-status__text { order: 5; flex-basis: 100%; min-height: calc(2 * 1.45em); }
  /* a section's "As of …" line gets its own row from the start, so the time arriving doesn't wrap it below the title */
  .an-section__head > .an-asof { flex-basis: 100%; }
}

/* -------------------------------------------------------- key figures -- */
.an-key { padding: clamp(18px, 3vw, 28px); }
.an-key__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; column-gap: var(--space-5); row-gap: var(--space-5); }
.an-key .an-stat { grid-row: span 4; grid-template-rows: subgrid; row-gap: 2px; }
.an-stat .stat__label { display: block; min-height: 1.45em; line-height: 1.45; }
.an-stat .stat__label .tip { margin-left: 2px; }
.an-nw { white-space: nowrap; }            /* a label's last word stays with its (i) when the label wraps */
.an-key .stat__value { font-size: var(--step-3); line-height: 1.1; white-space: nowrap; overflow-wrap: normal; }
.an-key .stat__value .skeleton { min-width: 4ch; }
.an-unit { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); min-height: 1.4em; line-height: 1.4; }
.an-stat .stat__note { font-size: var(--text-sm); color: var(--ink-3); line-height: 1.4; min-height: calc(2 * 1.4em); }
.an-stat .stat__note > span { display: block; }
.an-key__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink-2); }
.an-key__contract { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.an-key__k { font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); }
.an-key__contract code { color: var(--ink); word-break: break-all; font-size: var(--text-xl); }
.an-key__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (min-width: 861px) {
  .an-key .an-stat + .an-stat { border-left: 1px solid var(--line); padding-left: var(--space-5); }
}
@media (max-width: 860px) {
  .an-key__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
}
.an-disclaimer { max-width: 86ch; font-size: var(--text-sm); line-height: 1.55; color: var(--ink-3); }
.an[data-state="stale"] .stat__value, .an[data-state="stale"] .an-ledger__amt, .an[data-state="stale"] .an-wallet__amount { opacity: .78; }

/* ------------------------------------------------------------ sections -- */
.an-section > * + * { margin-top: var(--space-4); }
.an-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-4); }
.an-section__title { font-size: var(--step-2); }
.an-section__lede { max-width: var(--measure); color: var(--ink-2); font-size: var(--text-md); line-height: 1.55; }
.an-section__meta { font-size: var(--text-sm); color: var(--ink-3); min-height: 1.5em; }
.an-section > .an-section__lede, .an-section > .an-section__meta { margin-top: var(--space-2); }
.an-asof { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 26px; font-size: var(--text-sm); color: var(--ink-3); }
.an-asof time { color: var(--ink-2); }
.an-card-title { font-size: var(--text-lg); line-height: 1.2; }
.an-card-sub { margin-top: 2px; font-size: var(--text-sm); color: var(--ink-3); }

/* secondary figures: activity first, then the measurements made from the price */
.an-figures { display: grid; gap: var(--space-5); padding: clamp(18px, 3vw, 24px); }
.an-figures__group + .an-figures__group { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.an-figures__title { margin-bottom: var(--space-3); font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); }
.an-figures__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; gap: var(--space-4) var(--space-5); }
.an-figures .an-stat { grid-row: span 3; grid-template-rows: subgrid; row-gap: 2px; }
.an-figures .stat__value { font-size: var(--step-2); white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 860px) { .an-figures__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); } }
@supports not (grid-template-rows: subgrid) {
  .an-stat .stat__label { min-height: calc(2 * 1.45em); align-items: flex-start; }
}

/* ------------------------------------------------------------- history -- */
.an-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.an-chart { margin: 0; min-width: 0; padding: var(--space-4) var(--space-4) var(--space-3); }
.an-chart__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-height: 1.6em; }
.an-chart__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.an-chart__unit { font-size: var(--text-sm); color: var(--ink-3); }
.an-legend { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: var(--text-xs); color: var(--ink-3); }
.an-swatch { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-xs); background: var(--gold); }
.an-swatch.is-partial { margin-left: 6px; background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.an-chart__plot { position: relative; height: 220px; margin-top: var(--space-3); touch-action: pan-y; }
.an-chart__plot > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.an-chart__plot > p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: var(--text-sm); color: var(--ink-3); text-align: center; }
.an-chart__readout { min-height: 1.5em; margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.5; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.an-chart__readout b { color: var(--ink); }
.an-ax { font-family: var(--font-body); font-size: var(--text-2xs); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.an-gridline { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.an-baseline { stroke: var(--line-2); stroke-width: 1; shape-rendering: crispEdges; }
.an-line { fill: none; stroke: var(--gold-ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.an-area { fill: var(--gold-soft); opacity: .7; }
.an-col { fill: var(--gold); }
.an-col.is-partial { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 2; }
.an-dot { fill: var(--gold-ink); stroke: var(--surface-1); stroke-width: 2; }
.an-guide { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.an-col.is-active { fill: var(--gold-ink); }
.an-numbers .an-scroll { max-height: 360px; overflow: auto; }
.an-numbers .table thead th { position: sticky; top: 0; z-index: 1; }
.an-table__caption { padding: 10px 12px; text-align: left; font-size: var(--text-sm); color: var(--ink-3); caption-side: top; }
@media (max-width: 760px) {
  .an-charts { grid-template-columns: minmax(0, 1fr); }
  .an-chart__plot { height: 190px; }
  .an-chart__readout { min-height: 3em; }
}

/* -------------------------------------------------------- distribution -- */
.an-dist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.an-buckets__table { width: 100%; margin-top: var(--space-3); border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.an-buckets__table th, .an-buckets__table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.an-buckets__table tr:last-child > * { border-bottom: 0; }
.an-buckets__table thead th { padding-top: 0; font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); }
.an-buckets__table tbody th { font-weight: 400; color: var(--ink-2); white-space: nowrap; padding-right: 12px; }
.an-buckets__table .num { text-align: right; }
.an-buckets__table td + td { padding-left: 12px; white-space: nowrap; }
.an-buckets__table td:nth-child(2) { width: 52%; }
.an-bucket { display: flex; align-items: center; gap: 12px; }
.an-bar { flex: 1; min-width: 40px; height: 10px; border-radius: var(--radius-xs); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.an-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gold); }
.an-bucket__n { min-width: 3.2em; text-align: right; font-weight: 700; color: var(--ink); }
/* the two distribution cards stand side by side at the same height; each table takes the spare height, so their
   titles, subtitles, column heads and last rows line up (owner, 2026-10-10: "make sure the tab aligns") */
.an-dist > .card { display: flex; flex-direction: column; }
.an-dist > .card > table { flex: 1 1 auto; }
/* the top 10 community wallets: the share on the title line, then the same table style as "Wallets by balance" */
.an-top__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.an-top__big { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.2; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-top__t20 { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.an-top__table th.an-top__rank, .an-top__table td.an-top__rank { width: 2.1rem; padding-right: 6px; }
.an-top__table td.an-top__rank > span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.an-top__table tbody tr:nth-child(-n+3) td.an-top__rank > span { background: var(--gold-soft); color: var(--gold-ink); }
.an-top__table td.an-top__addr { font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; padding-right: 12px; }
.an-top__table .an-top__barcell { width: 38%; padding-right: 12px; }
.an-top__table .an-bar { display: block; min-width: 24px; height: 8px; border-radius: var(--radius-xs); }
.an-top__table td.an-top__bal { font-weight: 700; color: var(--ink); padding-left: 8px; white-space: nowrap; }
.an-top__table td.an-top__pct { width: 4.2em; padding-left: 10px; color: var(--ink-3); white-space: nowrap; }
.an-top__table td:nth-child(2) { width: auto; }
@media (max-width: 480px) { .an-top__table .an-top__barcell { width: 22%; } }
@media (max-width: 600px) {
    }
.an-list { display: grid; gap: 0; }
.an-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.an-list > li:last-child { border-bottom: 0; }
.an-list__label { color: var(--ink); }
.an-list__addr { grid-column: 1; font-family: var(--font-mono); font-size: var(--text-xs); }
.an-list__amt { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.an-list__empty { display: block !important; color: var(--ink-3); }
@media (max-width: 860px) { .an-dist { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- supply -- */
.an-ledger-card { padding: clamp(16px, 3vw, 24px); }
.an-ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.an-ledger th, .an-ledger td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; text-align: left; }
.an-ledger th { font-weight: 400; color: var(--ink-2); }
.an-ledger__name { display: flex; align-items: baseline; }
.an-op { flex: none; width: 1.5em; font-weight: 700; color: var(--ink-3); }
.an-ledger__text { display: block; min-width: 0; }
.an-ledger__label { display: block; color: var(--ink); }
.an-ledger__addr { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: var(--text-xs); }
.an-ledger__sub { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--ink-3); }
.an-ledger__amt { padding-left: 16px !important; text-align: right !important; white-space: nowrap; font-weight: 700; color: var(--ink); }
.an-ledger__pct { width: 5.5em; padding-left: 12px !important; text-align: right !important; white-space: nowrap; font-size: var(--text-sm); color: var(--ink-3); }
.an-ledger tr.is-sum > * { border-top: 2px solid var(--line-2); }
.an-ledger tr.is-sum .an-ledger__label { font-weight: 700; }
.an-ledger tr.is-result > * { border-bottom: 0; }
.an-ledger tr.is-result .an-ledger__label, .an-ledger tr.is-result .an-ledger__amt { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.an-ledger[data-digits="exact"] .an-ledger__amt { white-space: normal; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700; }
.an-ledger[data-digits="exact"] tr.is-result .an-ledger__amt { font-family: var(--font-mono); font-size: var(--text-sm); }
.an-check { display: flex; align-items: flex-start; gap: 8px; margin-top: var(--space-4); padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface-2); font-size: var(--text-sm); line-height: 1.5; color: var(--ink-2); min-height: calc(2 * 1.5em + 20px); }
.an-check .icon { margin-top: 2px; }
.an-check[data-tone="ok"] { background: var(--ok-bg); color: var(--ok); }
.an-check[data-tone="bad"] { background: var(--bad-bg); color: var(--bad); }
.an-check[data-tone="warn"] { background: var(--warn-bg); color: var(--warn); }
.an-ledger-card > * + * { margin-top: var(--space-3); }
.an-ledger-card__more { margin-top: var(--space-4); }
@media (max-width: 600px) {
  /* phones: each line's name on top, its amount and share under it (rounded or exact) */
  .an-ledger, .an-ledger tbody { display: block; }
  .an-ledger tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "amt pct"; column-gap: 12px; row-gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .an-ledger tr.is-sum { border-top: 2px solid var(--line-2); }
  .an-ledger tr.is-result { border-bottom: 0; }
  .an-ledger tr > * { display: block; padding: 0 !important; border: 0 !important; }
  .an-ledger th { grid-area: name; }
  .an-ledger .an-ledger__amt { grid-area: amt; text-align: left !important; padding-left: 1.5em !important; }
  .an-ledger .an-ledger__pct { grid-area: pct; width: auto; align-self: baseline; }
}

/* ---------------------------------------------------- disclosed holdings -- */
.an-wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-4); }
.an-wallet { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.an-wallet__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.an-wallet__name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.25; }
.an-wallet__amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.an-wallet__share { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--ink-2); }
.an-wallet__exact { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.an-wallet__addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
.an-wallet__addr code { flex-basis: 100%; color: var(--ink); font-size: clamp(var(--text-2xs), 2.75vw, var(--text-xs)); word-break: break-all; }
.an-wallet__desc { color: var(--ink-2); font-size: var(--text-md); line-height: 1.5; }
.an-wallet.is-placeholder { min-height: 236px; }
.an-wallets__total { min-height: 1.6em; font-weight: 700; color: var(--ink); }

/* ------------------------------------------------------- tables (data) -- */
.an-twrap { -webkit-overflow-scrolling: touch; }
.an-table td, .an-table th { white-space: nowrap; }
.an-table td.num, .an-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.an-table .an-addr, .an-table .an-tx { font-family: var(--font-mono); font-size: var(--text-xs); }
.an-table .an-name { font-family: var(--font-body); font-size: inherit; }
.an-table tbody tr:hover td { background: rgba(245, 226, 191, .28); }
.an-table td.an-empty { white-space: normal; color: var(--ink-3); }
.an-tag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 9px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface-2); font-size: var(--text-xs); font-weight: 700; line-height: 1.45; color: var(--ink-2); white-space: normal; }
.an-tag[data-kind="treasury"] { background: var(--gold-soft); border-color: #E7C98F; color: var(--gold-ink); }
.an-tag[data-kind="infrastructure"] { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.an-tag[data-kind="dead"] { background: var(--surface-2); color: var(--ink-2); }
.an-unknown { font-size: var(--text-xs); color: var(--ink-3); }
.an-dir { font-size: var(--text-sm); font-weight: 700; color: var(--ink); white-space: nowrap; }
.an-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.an-search { flex: 1 1 280px; max-width: 420px; }
.an-search .input { min-height: 48px; border-radius: var(--radius-pill); padding-inline: 20px; }
.an-toolbar__check { align-items: center; min-height: 44px; font-size: var(--text-sm); }
.an-toolbar__check input { margin: 0; }
.an-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2) var(--space-4); }
.an-pager__info { min-width: 16ch; min-height: 1.5em; text-align: center; font-size: var(--text-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.an-more { text-align: center; min-height: 0; }
.an-other-pools { margin-top: var(--space-4); }
.an-skel-row td { color: transparent; }

@media (max-width: 640px) {
  /* the same rows as stacked cards: no sideways scrolling, every value labelled */
  .an-twrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .an-table, .an-table tbody { display: block; }
  .an-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
  .an-table tr { display: grid; gap: 4px 12px; margin-bottom: var(--space-3); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); box-shadow: var(--elev-1); }
  .an-table tbody tr:hover td { background: transparent; }
  .an-table td { display: block; padding: 0; border: 0; white-space: normal; min-width: 0; }
  .an-table td.num { text-align: left; }
  .an-table td[data-label]::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; color: var(--ink-3); }

  .an-table--holders tr { grid-template-columns: 3.4em minmax(0, 1fr) auto; grid-template-areas: "rank addr share" "rank bal bal" "rank label label"; }
  .an-table--holders td:nth-child(1) { grid-area: rank; font-weight: 700; color: var(--ink-3); }
  .an-table--holders td:nth-child(1)::before { content: '#'; display: inline; }
  .an-table--holders td:nth-child(2) { grid-area: addr; }
  .an-table--holders td:nth-child(3) { grid-area: bal; font-weight: 700; }
  .an-table--holders td:nth-child(3)::after { content: ' POTATCHI'; font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; color: var(--ink-3); }
  .an-table--holders td:nth-child(4) { grid-area: share; text-align: right; color: var(--ink-2); }
  .an-table--holders td:nth-child(5) { grid-area: label; }

  .an-table--activity[data-act="swaps"] tr { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "time dir dir" "tok eth usd" "mkt mkt mkt" "who who tx"; }
  .an-table--activity[data-act="swaps"] td:nth-child(1) { grid-area: time; font-weight: 700; }
  .an-table--activity[data-act="swaps"] td:nth-child(2) { grid-area: dir; text-align: right; }
  .an-table--activity[data-act="swaps"] td:nth-child(3) { grid-area: mkt; color: var(--ink-2); font-size: var(--text-sm); }
  .an-table--activity[data-act="swaps"] td:nth-child(4) { grid-area: tok; }
  .an-table--activity[data-act="swaps"] td:nth-child(5) { grid-area: eth; }
  .an-table--activity[data-act="swaps"] td:nth-child(6) { grid-area: usd; }
  .an-table--activity[data-act="swaps"] td:nth-child(7) { grid-area: who; }
  .an-table--activity[data-act="swaps"] td:nth-child(8) { grid-area: tx; text-align: right; }
  .an-table--activity[data-act="transfers"] tr { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "time type" "from to" "tok tx"; }
  .an-table--activity[data-act="transfers"] td:nth-child(1) { grid-area: time; font-weight: 700; }
  .an-table--activity[data-act="transfers"] td:nth-child(2) { grid-area: type; text-align: right; }
  .an-table--activity[data-act="transfers"] td:nth-child(3) { grid-area: from; }
  .an-table--activity[data-act="transfers"] td:nth-child(4) { grid-area: to; }
  .an-table--activity[data-act="transfers"] td:nth-child(5) { grid-area: tok; }
  .an-table--activity[data-act="transfers"] td:nth-child(6) { grid-area: tx; }
  .an-table--activity[data-act="burns"] tr { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "time type" "from tok" "tx tx"; }
  .an-table--activity[data-act="burns"] td:nth-child(1) { grid-area: time; font-weight: 700; }
  .an-table--activity[data-act="burns"] td:nth-child(2) { grid-area: type; text-align: right; }
  .an-table--activity[data-act="burns"] td:nth-child(3) { grid-area: from; }
  .an-table--activity[data-act="burns"] td:nth-child(4) { grid-area: tok; }
  .an-table--activity[data-act="burns"] td:nth-child(5) { grid-area: tx; }
  .an-table--activity td.an-empty, .an-table--holders td.an-empty, .an-table--markets td.an-empty { grid-column: 1 / -1; grid-area: auto; }

  .an-table--markets tr { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "mkt mkt mkt" "pair pair pair" "swaps vol liq"; }
  .an-table--markets td:nth-child(1) { grid-area: mkt; font-weight: 700; }
  .an-table--markets td:nth-child(2) { grid-area: pair; color: var(--ink-2); font-size: var(--text-sm); }
  .an-table--markets td:nth-child(3) { grid-area: swaps; }
  .an-table--markets td:nth-child(4) { grid-area: vol; }
  .an-table--markets td:nth-child(5) { grid-area: liq; }

  .an-search { flex-basis: 100%; max-width: none; }
  .an-pager .btn { flex: 1 1 0; }
  .an-pager__info { order: -1; flex-basis: 100%; }
}

/* --------------------------------------------------------------- method -- */
.an-method__list { display: grid; }
.an-method .disclosure__body p { max-width: var(--measure); color: var(--ink-2); line-height: 1.6; }
.an-method .disclosure__body p + p { margin-top: var(--space-3); }

@media (prefers-reduced-motion: reduce) {
  .an .tip__btn::before { transition: none; }
}
