/* Airdrop Intelligence site layer. Layout and page glue for index.html on top of
   tokens.css and bundle.css. Colours come only from the tokens. */
@import url("/tpm/bridge.css");

/* Colour. Logos keep their own, primary actions take the accent, and each EV dot
   keeps its place on the ramp, so the last lit dot shows how far a score climbs. */
.tpm-logo-slot img { filter: none; }
.tpm-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tpm-btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.tpm-tab[aria-selected="true"] { border-bottom-color: var(--accent-line); }
.tpm-range { accent-color: var(--accent); }
.tpm-ev span.on:nth-child(1) { background: var(--ev-1); }
.tpm-ev span.on:nth-child(2) { background: var(--ev-2); }
.tpm-ev span.on:nth-child(3) { background: var(--ev-3); }
.tpm-ev span.on:nth-child(4) { background: var(--ev-4); }
.tpm-ev span.on:nth-child(5) { background: var(--ev-5); }

/* Components set display, which would otherwise beat the hidden attribute */
[hidden] { display: none !important; }
/* Matches .tpm-panel, for sections that keep their own class names */
:root { --panel: color-mix(in srgb, var(--surface-1) 94%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tpm-none { color: var(--ink-3); }
body { font-size: 15px; line-height: 22px; }

.container { max-width: 1320px; margin: 0 auto; padding: var(--space-4) var(--space-5) var(--space-7); display: flex; flex-direction: column; gap: var(--space-4); }

/* Header */
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: var(--space-3) var(--space-4); }
.site-search { flex: 1 1 260px; max-width: 440px; }
.site-nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }

/* Hero. The copy stays left so the light's home position is clear of the text. */
.site-hero { display: flex; flex-direction: column; gap: var(--space-4); }
.site-hero-copy { max-width: 760px; padding: var(--space-6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.site-hero-tag { margin: 0; font: 500 13px/20px var(--font-mono); color: var(--ink-2); }
.site-hero h1 { margin: 0; color: var(--ink); }
.site-hero-sub { margin: 0 0 var(--space-3); font-size: 17px; line-height: 26px; color: var(--ink-2); }
.site-hero .tpm-stats { border-radius: var(--radius-2); }
.site-hero .tpm-stat:first-child { padding-left: var(--space-5); }
.tpm-stat strong.tpm-mono { font-family: var(--font-mono); }

/* Tabs and section headers */
.site-tabs { padding: 0 var(--space-4); }
.site-tabs .tpm-tabs { border-bottom: 0; overflow-anchor: none; }
.tab-content > section { display: flex; flex-direction: column; gap: var(--space-4); }
.section-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); margin: 0; padding: var(--space-4); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-2); }
.section-heading { display: block; margin: 0; }
.section-heading h2 { margin: 0; font: 500 24px/30px var(--font-sans); letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.filter-container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); position: static; margin: 0; }
/* One row, every control the same height */
.sort-field { flex-direction: row; align-items: center; gap: var(--space-2); }
.section-header .tpm-btn, .section-header .tpm-select select, .section-header .tpm-seg { height: 36px; }
.section-header .tpm-seg { padding: 2px; }
.section-header .tpm-seg button { height: 30px; }
/* Segmented controls use the same rounded square as buttons and inputs */
.tpm-seg { border-radius: var(--radius-2); }
.tpm-seg button { border-radius: var(--radius-1); }
.site-toggles { display: flex; gap: var(--space-2); margin-left: auto; }
.farm-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Premium points (class names keep token-watch) */
.token-watch { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.token-watch h2 { margin: 0; }
.token-watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); }
.token-watch-item { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.token-watch-head { display: flex; align-items: center; gap: var(--space-2); }
.token-watch-head b { font: 500 15px/20px var(--font-sans); }
.token-watch-when { font: 400 13px/20px var(--font-sans); color: var(--ink-2); }
.token-watch-when time { font: 500 12px/1 var(--font-mono); color: var(--ink); }
.token-watch-item:hover .token-watch-head b { text-decoration: underline; }
.token-watch-item .tpm-odds { margin-top: 2px; }

/* Ledger */
.ledger-wrap { min-width: 0; }
.tpm-row--head button { border: 0; padding: 0; background: none; text-align: left; white-space: nowrap; cursor: pointer; }
.tpm-row--head .tpm-num { font: 500 11px/16px var(--font-mono); color: var(--ink-3); }
.tpm-row--head button:hover, .tpm-row--head .is-sorted { color: var(--ink); }
.ledger-group { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-4) var(--space-2); border-top: 1px solid var(--line); }
.ledger-group + .tpm-row { border-top: 0; }
.ledger-group-count { font: 400 11px/16px var(--font-mono); color: var(--ink-3); }
.tpm-row .tpm-end { display: inline-flex; align-items: center; gap: 6px; }
.tpm-row .tpm-num { white-space: nowrap; }
.ev-change { font-size: 9px; line-height: 1; color: var(--ink-2); }
.tag-new { display: inline-block; margin-left: 6px; padding: 0 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-1); font: 500 10px/14px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); vertical-align: 1px; }
.search-hidden { display: none !important; }
.search-empty-state, .filter-empty-state { padding: var(--space-7) var(--space-4); text-align: center; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-2); }
.filter-empty-action { margin-left: var(--space-2); }

/* Grid. bundle.css flexes every span in the card head, which would stretch the
   logo slot and stack the status glyph over its word. */
.farm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-5); }
.farm-card { min-width: 0; }
.farm-card[data-farming-stage="concluded"] { order: 1; }
.tpm-card-head .tpm-logo-slot { display: grid; flex: none; }
.tpm-card-head .tpm-status { display: inline-flex; flex-direction: row; flex: none; }
.tpm-card-head b { display: block; }
.tpm-card-ev { align-items: flex-end; }
.tpm-card .tpm-deadline { align-self: flex-start; }
.tpm-card-meters .tpm-card-ev > .tpm-ev, .tpm-card-ev .ev-change { align-self: flex-end; }

/* Deadline chips can run long inside a card or a narrow drawer */
.tpm-deadline { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tpm-date-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Drawer */
.modal { animation: none; position: fixed; inset: 0; z-index: 50; display: none; justify-content: flex-end; padding: 0; background: var(--scrim); backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; visibility: visible; }
.modal.active { display: flex; align-items: stretch; justify-content: flex-end; padding: 0; }
.modal .tpm-drawer { position: relative; width: min(520px, 100%); max-width: none; height: 100%; max-height: 100%; margin: 0; padding: 0; border-radius: 0; animation: tpm-drawer-in .24s ease-out; outline: none; overflow: hidden; transform: none; }
@keyframes tpm-drawer-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .tpm-drawer-body { flex: 1; min-height: 0; overflow-y: auto; }
/* styles.css gives every <footer> a 6rem top margin */
.modal .tpm-drawer-foot { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); margin: 0; padding: var(--space-4) var(--space-5); text-align: left; }
.farm-cta { width: 100%; height: 52px; font-size: 16px; background: var(--cta, var(--accent)); border-color: var(--cta, var(--accent)); color: var(--cta-text, var(--on-accent)); }
.farm-cta:hover { background: var(--cta-hover, var(--accent-hi)); border-color: var(--cta-hover, var(--accent-hi)); }
.modal .tpm-drawer-foot #twitterBtn { order: 1; width: 52px; height: 52px; }
.modal .tpm-drawer-foot #modalPerk { order: 2; grid-column: 1 / -1; }
.modal .tpm-drawer-foot #modalPerk:empty { display: none; }

/* Status, stage and EV are one line in the header */
.tpm-drawer-head { row-gap: var(--space-3); }
.tpm-drawer-head .tpm-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin: 0; border: 0; border-radius: 0; }
.tpm-drawer-head .tpm-facts > div { flex-direction: row; align-items: center; gap: var(--space-2); padding: 0; }
.tpm-drawer-head .tpm-facts > div + div { border: 0; }
.tpm-drawer-head .tpm-facts dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tpm-drawer-head .tpm-facts > div:last-child dt { position: static; width: auto; height: auto; clip: auto; }
.tpm-drawer-head .tpm-facts dd { min-height: 0; }
.tpm-drawer-head .tpm-stage { flex-direction: row; align-items: center; gap: var(--space-2); }
.tpm-drawer-head .modal-description { grid-column: 1 / -1; }

.modal .modal-section { margin: 0; padding: 0; border: 0; background: none; }
.modal-description { margin: 0; font: 400 15px/22px var(--font-sans); color: var(--ink-2); }
.modal-odds { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.modal-odds:empty { display: none; }
.modal-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-6); align-items: start; }
.modal-pair:not(:has(> :not(:empty))) { display: none; }
.odds-list { display: grid; gap: var(--space-3); }
.fdv-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: var(--space-3) var(--space-2); }
.fdv-step { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.fdv-step b { font: 500 12px/16px var(--font-mono); color: var(--ink); }
.fdv-col { display: flex; align-items: flex-end; width: 100%; height: 56px; border-radius: var(--radius-1); background: var(--surface-2); overflow: hidden; }
.fdv-col i { display: block; width: 100%; background: var(--ink-3); }
.fdv-step small { font: 400 11px/16px var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.odds-source { display: block; margin-top: var(--space-3); font: 400 11px/16px var(--font-mono); color: var(--ink-3); }
.tpm-drawer a:not(.tpm-btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.tpm-facts dd .tpm-stage { min-width: 0; }
.tpm-facts dd .tpm-stage-bar span { width: 10px; }
/* Every metric is a label, one line of value and at most one line of note */
.tpm-section .tpm-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.tpm-section .tpm-metrics dd, .tpm-section .tpm-metrics small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpm-section .tpm-metrics small { font: 400 12px/16px var(--font-sans); color: var(--ink-3); }
.ev-alert-banner { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-2); background: none; font: 500 14px/20px var(--font-sans); color: var(--ink); }
.ev-alert-banner p { margin: 0; font: 400 13px/20px var(--font-sans); color: var(--ink-2); }
.ev-alert-banner small { font: 400 11px/16px var(--font-mono); color: var(--ink-3); }

/* Analytics */
.tpm-chart { grid-template-columns: minmax(0, 1fr); }
.tpm-chart h3 { margin: 0; }
.chart-range { justify-self: start; }
.chart-range button, .tpm-chart .tpm-seg button { height: 26px; font: 500 12px/1 var(--font-sans); letter-spacing: 0; text-transform: none; }
.chart-container { position: relative; height: 260px; width: 100%; margin: 0; padding: 0; border: 0; background: none; }
.chart-source { font: 400 11px/16px var(--font-mono); color: var(--ink-3); }

/* Points calculator */
.tpm-calc { padding: var(--space-4); background: var(--surface-2); }
.pc-scenarios { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pc-estimate { display: flex; flex-direction: column; gap: var(--space-1); }
.pc-note { margin: 0; font: 400 12px/18px var(--font-sans); color: var(--ink-3); }

/* Sections inside "About this farm" that still use the older markup */
.modal .modal-info, .info-card-grid { display: flex; flex-direction: column; gap: var(--space-5); padding: 0; border: 0; background: none; }
.info-card ul { margin: 0; padding: 0; list-style: none; }
.info-card li { position: relative; margin: 0; padding: 5px 0 5px 14px; border: 0; font: 400 14px/21px var(--font-sans); color: var(--ink-2); }
.info-card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.info-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.info-card::before, .info-card::after, .corner-bl, .corner-br, .info-section-num, .info-section-sep, .info-section-line { display: none; }
.info-section-head, .token-launch-heading, .dune-analytics-heading { display: block; margin: 0 0 var(--space-2); font: 500 11px/16px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.info-section-head *, .token-launch-heading *, .dune-analytics-heading * { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; }
.token-launch-badge, .dune-badge { display: none; }
.about-text { margin: 0; font: 400 15px/22px var(--font-sans); color: var(--ink-2); }
.info-stat-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 0; border: 0; border-top: 1px solid var(--line); font: 400 13px/20px var(--font-sans); }
.info-stat-label { color: var(--ink-3); }
.info-stat-value { font-family: var(--font-mono); color: var(--ink); text-align: right; }

/* FAQ and footer sit on panels, so the light never passes behind their text */
.faq-section { margin: var(--space-5) 0 0; padding: var(--space-5); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-2); }
.faq-section .section-heading { margin-bottom: var(--space-4); }
.faq-grid { display: grid; gap: 0; }
.faq-item { margin: 0; padding: var(--space-3) 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.faq-item summary { font: 500 15px/22px var(--font-sans); color: var(--ink); cursor: pointer; }
.faq-item p { margin: var(--space-2) 0 0; max-width: 72ch; font: 400 15px/22px var(--font-sans); color: var(--ink-2); }
.faq-item a { color: var(--ink); }
.site-footer { margin: 0; padding: var(--space-5); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.footer-nav a { font: 400 13px/20px var(--font-sans); color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); }
.footer-meta { margin: var(--space-3) 0 0; font: 400 13px/20px var(--font-sans); color: var(--ink-3); }
.footer-meta a { color: var(--ink-2); }

/* From tablet up the modal is a centred popup with the action in its header */
@media (min-width: 761px) {
  .modal.active { align-items: center; justify-content: center; padding: var(--space-5); }
  .modal .tpm-drawer { width: min(960px, 100%); height: auto; max-height: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-2); animation: farm-modal-in .2s ease-out; }
  .modal .tpm-drawer-head { position: relative; padding: var(--space-5) var(--space-6); }
  .modal .tpm-drawer-head > div:not(.tpm-facts, .tpm-logo-slot) { padding-right: 300px; }
  .modal .tpm-drawer-body { padding: var(--space-5) var(--space-6); }
  .modal #closeModal { position: absolute; top: var(--space-5); right: var(--space-5); }
  .modal .tpm-drawer-foot { position: absolute; top: var(--space-5); right: 72px; width: 268px; padding: 0; border: 0; background: none; }
  .modal .farm-cta { height: 48px; }
  .modal .tpm-drawer-foot #twitterBtn { width: 48px; height: 48px; }
  .modal .tpm-drawer-foot #modalPerk { font: 400 12px/16px var(--font-sans); text-align: right; }
  #earnSection .tpm-steps { display: block; columns: 2; column-gap: var(--space-6); }
  #earnSection .tpm-steps li { break-inside: avoid; margin-bottom: var(--space-2); }
}
@keyframes farm-modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .container { padding: var(--space-3) var(--space-4) var(--space-6); gap: var(--space-3); }
  .site-search { order: 3; flex-basis: 100%; max-width: none; }
  .site-search .tpm-kbd { display: none; }
  .site-nav .tpm-btn--ghost { display: none; }
  .site-hero-copy { padding: var(--space-5); max-width: none; }
  .site-hero h1 { font-size: 44px; line-height: 48px; letter-spacing: -0.025em; }
  .site-hero .tpm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-hero .tpm-stat, .site-hero .tpm-stat + .tpm-stat, .site-hero .tpm-stat:first-child { padding: var(--space-3) var(--space-4); border-left: 0; }
  .site-hero .tpm-stat:nth-child(even) { border-left: 1px solid var(--line); }
  .site-hero .tpm-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section-header { align-items: stretch; }
  .site-toggles { margin-left: 0; flex-wrap: wrap; }
  .filter-container { justify-content: space-between; width: 100%; }
  .sort-field { order: 3; flex: 1 1 100%; }
  .sort-field .tpm-select, .sort-field select { flex: 1; width: 100%; }
  .farm-grid { grid-template-columns: minmax(0, 1fr); }
  .tpm-deadline { white-space: normal; height: auto; min-height: 28px; padding-block: 4px; }
  .tpm-card-head { flex-wrap: wrap; }
  .tpm-section .tpm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .tpm-section .tpm-metrics dd { font: 400 13px/20px var(--font-sans); }
  .tpm-section .tpm-metrics .metric-wide { grid-column: 1 / -1; }
}
/* The wordmark's tracking is fixed, so the whole lockup scales down on the narrowest phones */
@media (max-width: 360px) {
  .tpm-logo { gap: 10px; }
  .tpm-logo svg { width: 20px; height: 20px; }
  .tpm-logo b { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .modal .tpm-drawer { animation: none; }
}

/* Reward calculator */
.reward-positions { justify-self: start; }
.reward-positions button { height: 26px; font: 500 12px/1 var(--font-sans); letter-spacing: 0; text-transform: none; }
.reward-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.reward-out div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reward-out strong { font: 400 16px/24px var(--font-mono); color: var(--ink); }
.reward-out small { font: 400 12px/16px var(--font-sans); color: var(--ink-3); }
@media (max-width: 760px) { .reward-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reward-prices { display: grid; gap: var(--space-2); }
.reward-price-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.reward-price-grid button { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-1); background: none; color: var(--ink); text-align: left; cursor: pointer; }
.reward-price-grid button:hover { border-color: var(--line-strong); }
.reward-price-grid small { font: 500 11px/16px var(--font-mono); color: var(--ink-3); }
.reward-price-grid b { font: 400 13px/18px var(--font-mono); white-space: nowrap; }
@media (max-width: 760px) { .reward-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Chart empty state */
.chart-no-data-message { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--surface-1); text-align: center; }
.chart-empty { display: flex; flex-direction: column; gap: var(--space-1); max-width: 40ch; }
.chart-empty b { font: 500 15px/22px var(--font-sans); color: var(--ink); }
.chart-empty span { font: 400 13px/20px var(--font-sans); color: var(--ink-3); }

/* The bundle's card head rule stretches every span, which turned the New tag into a bar */
.tpm-card-head .tag-new { display: inline-block; flex: none; align-self: center; }
/* Header controls share one height */
.site-head .tpm-btn, .site-head .tpm-search { height: 36px; }
.site-head .tpm-btn--icon { width: 36px; }
/* Modal detail panels: hairlines only, data in regular mono */
.info-card-grid > .info-card { padding: 0; border: 0; background: none; }
.info-card-grid > .info-card:hover { background: none; }
.info-card .about-text { padding-left: 0; border: 0; opacity: 1; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.info-stat-row { align-items: baseline; }
.info-stat-label { flex: none; max-width: 40%; }
.info-stat-value { font-weight: 400; }

/* Airdrop status icons carry the Earth colours. The word stays neutral. */
:root, [data-theme="dark"] { --status-confirmed: #aebf8e; --status-speculative: #d6b77c; --status-active: #d6b77c; --status-live: #cf9f88; --status-ended: #8a867d; }
[data-theme="light"] { --status-confirmed: #4a6427; --status-speculative: #735520; --status-active: #735520; --status-live: #804e35; --status-ended: #666259; }

.tpm-points { display: inline-flex; align-items: center; gap: var(--space-2); font: 500 13px/20px var(--font-sans); color: var(--ink); white-space: nowrap; }
.tpm-points i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tpm-points--none, .tpm-points--ended { font-weight: 400; color: var(--ink-3); }
.tpm-points--none i { height: 1px; border-radius: 0; background: var(--ink-4); }
.tpm-points--ended i { width: 7px; height: 7px; border-radius: 1px; background: var(--ink-4); }

/* Ranked list */
.ledger .tpm-row { grid-template-columns: 32px minmax(180px, 2fr) 112px 130px 80px minmax(140px, 1.6fr) 64px; column-gap: var(--space-4); }
.ledger-rank { font: 400 13px/20px var(--font-mono); color: var(--ink-3); }
.ledger .tpm-row .tpm-next.is-empty { color: var(--ink-4); }

/* Status filters */
.status-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.status-filter { display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-2); background: var(--surface-1); color: var(--ink-2); font: 500 13px/1 var(--font-sans); cursor: pointer; }
.status-filter:hover { background: var(--surface-2); }
.status-filter[hidden] { display: none; }
.status-filter span { font: 400 12px/1 var(--font-mono); color: var(--ink-3); }
.status-filter i { width: 8px; height: 8px; border-radius: 50%; }
.status-filter[data-status="confirmed"] i { background: var(--status-confirmed); }
.status-filter[data-status="speculative"] i { background: var(--status-speculative); }
.status-filter[data-status="token-live"] i { background: var(--status-live); }
.status-filter[data-status="ended"] i { background: var(--status-ended); }
.status-filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.status-filter[aria-pressed="true"] span { color: var(--on-accent); }
.status-filter[aria-pressed="true"] i { background: var(--on-accent); }

@media (max-width: 760px) {
  .ledger .tpm-row { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "rank name name vol" "rank air pts pts" "rank next next next"; column-gap: var(--space-2); row-gap: 6px; padding-block: var(--space-3); }
  .ledger .tpm-row > .ledger-rank { grid-area: rank; align-self: start; }
  .ledger .tpm-row > .tpm-name { grid-area: name; }
  .ledger .tpm-row > .tpm-num { grid-area: vol; }
  .ledger .tpm-row > .ledger-airdrop { grid-area: air; }
  .ledger .tpm-row > .ledger-points { grid-area: pts; }
  .ledger .tpm-row > .tpm-next { grid-area: next; padding-left: 0; }
  .ledger .tpm-row > .tpm-next.is-empty, .ledger .tpm-row > .tpm-end { display: none; }
}
