/* Shared ledger treatment for the parent vault and its published receipts. */
.reserve-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.reserve-links .ca-wait .ca-long { display: inline; }
.reserve-links .ca-wait .ca-short { display: none; }
.reserve-links [aria-disabled=true] { cursor: default; opacity: .65; }
.reserve-vault, .reserve-price, .reserve-rewards {
  display: grid; align-items: start; gap: clamp(20px,3.5vw,56px);
  grid-template-columns: minmax(0,.85fr) minmax(0,1.35fr); margin-bottom: 16px;
}
.reserve-vault { padding: clamp(18px,2.4vw,36px); }
.reserve-vault h2, .reserve-price h2, .reserve-rewards h2, .reserve-history h2 {
  font: 500 24px/1.2 var(--display); letter-spacing: -.03em;
}
.reserve-vault-overview { align-self: center; }
.reserve-value { margin: 22px 0 20px; }
.reserve-value dt, .reserve-pair dt, .reserve-pair small, .fee-destinations dt { color: var(--mut); font-size: 13px; }
.reserve-value dd { margin-top: 3px; font: 500 clamp(2rem,3.3vw,3.6rem)/1.15 var(--mono); color: var(--accent); letter-spacing: -.065em; overflow-wrap: anywhere; }
.reserve-redemption { padding-top: 12px; border-top: 1px solid var(--hair); }
.reserve-redemption .mono { color: var(--accent); }
.reserve-vault-overview p, .reserve-rewards p { margin: 8px 0; max-width: 58ch; }
.reserve-price, .reserve-rewards { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; }
.reserve-rewards .link, .an-flow > .link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; }
.reserve-pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 28px; }
.reserve-pair dd { margin: 4px 0; color: var(--ink); font-size: clamp(17px,1.6vw,22px); }
.reserve-pair .reserve-trading-status { font: 550 16px/1.4 var(--sans); }
.reserve-countdown, [data-next-round] { display: inline-block; vertical-align: baseline; width: 22ch; max-width: 100%; font-variant-numeric: tabular-nums; }
.reserve-countdown { font-size: 14px; }
.reserve-history { margin-bottom: 40px; }
.ledger-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.vault-ledger, .receipt-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.vault-ledger th, .vault-ledger td, .receipt-table th, .receipt-table td {
  text-align: right; padding: 10px 5px; border-bottom: 1px solid var(--hair); vertical-align: middle;
}
.vault-ledger thead th, .receipt-table thead th { font: 550 12px/1.35 var(--sans); color: var(--mut); white-space: normal; }
.vault-ledger :is(td,th):first-child, .receipt-table :is(td,th):first-child { padding-left: 0; text-align: left; }
.vault-ledger :is(td,th):last-child, .receipt-table :is(td,th):last-child { padding-right: 0; }
.vault-ledger tbody tr:last-child > *, .receipt-table tbody tr:last-child > * { border-bottom: 0; }
.vault-ledger td, .receipt-table td:not(:first-child) { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reserve-asset { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.reserve-asset small { display: block; color: var(--mut); font-size: 11px; font-weight: 400; }
.reserve-asset .stock-logo { width: 32px; height: 32px; }
.reward-legs { list-style: none; display: flex; flex-flow: row wrap; gap: 4px 14px; margin-top: 10px; }
.reward-legs li { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 400; }
.reward-legs small { color: var(--mut); font-family: var(--sans); }
.reward-legs .stock-logo { width: 20px; height: 20px; }
.reward-legs .stock-monogram { font-size: 8px; }
.receipt-table .reward-legs { display: grid; justify-content: end; margin: 5px 0; }
.receipt-table .reward-legs .stock-logo { width: 16px; height: 16px; }
.reward-ranking .receipt-table .rc-row { display: table-row; }
.reward-ranking .receipt-table td { white-space: nowrap; font: 500 .77rem/1.4 var(--mono); }
.reward-ranking .receipt-table :is(th,td):nth-child(2) { text-align: left; }
.an-receipts { align-items: start; margin-bottom: 24px; }
.fee-destinations { margin-block: 10px 16px; }
.fee-destinations > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid var(--hair); padding: 9px 0; }
.fee-destinations dd { font-size: 15px; }

/* The stats report uses neutral controls and type. Only vault amounts and settled payouts use coral. */
body[data-path="/analytics"] main {
  --accent: var(--ink);
  --accent-hover: var(--fg2);
  --gold: var(--ink);
  --gold-2: var(--fg2);
  --sage: var(--ink);
  --sage-2: var(--fg2);
  --sage-t: var(--s3);
  --up: var(--ink);
}
.an-test, .an-metrics dt, .an-result dt {
  font: 550 13px/1.4 var(--sans); text-transform: none; letter-spacing: normal;
}
.reward-ranking .receipt-table td { color: var(--ink); }
.stats-flow-amount { color: var(--apricot); }
@media (max-width: 999px) {
  .reserve-vault, .reserve-rewards, .reserve-price { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 719px) {
  .an-receipts .panel, .reserve-history .panel, .reserve-price, .reserve-rewards { padding: 16px; }
  .reward-ranking .receipt-table th, .reward-ranking .receipt-table td { padding: 10px 7px; }
  .reserve-vault { gap: 12px; }
}

/* phone leaderboard: Rank, Wallet, Fees, Score and Estimate stay in view (Volume, Days and Boost drop; Holders keep all) */
@media (max-width: 520px) {
  #rank-traders .receipt-table :is(th,td):nth-child(3), #rank-traders .receipt-table :is(th,td):nth-child(5), #rank-traders .receipt-table :is(th,td):nth-child(6) { display: none; }
  .reward-ranking .receipt-table :is(th,td) { padding-inline: 5px; }
  .reward-ranking .receipt-table { font-size: .8rem; }
}

/* $RESERVE page (owner 30 Nov): the summary sits at the top beside the table; figures in the display face (no mono gaps) */
.reserve-vault-overview { align-self: start; }
.reserve-vault .reserve-value { margin-top: 14px; }
.reserve-value dd, .reserve-pair dd { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; font-weight: 560; }
.reserve-rewards { align-items: start; }
.pot-ledger { margin-top: 14px; }
.pot-ledger td { text-align: right; }
.pot-ledger .stock-logo { width: 26px; height: 26px; }
.pot-more { margin: 8px 0 0; text-align: right; }
