.ledger-page .ledger-row, .bet-history-page .bet-history-card { background: #262220; border-color: #4e4039; color: #f1eded; }
.bet-history-page .bet-history-list { background: #171514; }
.bet-history-page .bet-history-card hr { background: #4e4039; }
.bet-history-page .bet-history-card header i { background: #38302c; color: #ded2ca; }
.bet-history-page .bet-history-card header i.pending { background: #534132; color: #f2c7a0; }
.bet-history-page .bet-history-card header i.win { background: #253a2c; color: #8cdb9f; }
.bet-history-page .bet-history-card header i.lose { background: #492c2b; color: #ff9e9b; }

/* Full-height wallet and history details with no white gap at the bottom. */
.view.detail-open > :is(.wallet-page, .recharge-records-page, .ledger-page, .bet-history-page) { min-height: calc(100dvh - var(--safe-bottom)); }
@media (max-width: 350px) {
  .ledger-page .ledger-row footer { align-items: flex-start; gap: 5px; flex-direction: column; }
  .ledger-page .ledger-row footer time { flex: 0 0 auto; }
}
/* Preserve full balances on narrow screens, including unusually large values. */
.wallet-page .wallet-balance-card strong { max-width: 100%; padding: 0 12px; overflow-wrap: anywhere; line-height: 1.12; text-align: center; }
.profile-page .profile-asset-card { gap: 8px; }
.profile-page .profile-asset-link { flex: 0 0 auto; }
.profile-page .profile-asset-card .profile-asset-balance > strong { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: right; line-height: 1.05; }
.home-page .balance-row strong { min-width: 0; overflow-wrap: anywhere; }
.wallet-page .wallet-balance-card strong { font-size: clamp(20px, 7vw, 36px); }
.profile-page .profile-asset-card .profile-asset-balance > strong { font-size: clamp(12px, 3.6vw, 18px); }