.wallet-ledger { display: grid; gap: 12px; min-width: 0; }
.wallet-ledger h3, .wallet-ledger-notice { margin: 0; }
.wallet-ledger-notice { color: var(--muted); }
.wallet-ledger-notice:empty { display: none; }
.wallet-ledger-summary, .wallet-ledger-amounts { display: grid; gap: 10px; margin: 0; }
.wallet-ledger-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wallet-ledger-summary > div { padding: 10px; background: var(--house-field); border: 1px solid var(--house-line); border-radius: 8px; }
.wallet-ledger :is(dt, small, time, .wallet-ledger-copy span) { color: var(--muted); font-size: 12px; }
.wallet-ledger dd { margin: 4px 0 0; color: var(--cream); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wallet-ledger-summary dd { font-size: 19px; font-weight: 650; }
.wallet-ledger-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wallet-ledger-rows:empty { display: none; }
.wallet-ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, auto); gap: 8px 18px; padding: 12px 0; border-top: 1px solid var(--house-line); }
.wallet-ledger-copy { display: grid; gap: 3px; overflow-wrap: anywhere; }
.wallet-ledger-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: right; }
.wallet-ledger dd.wallet-credit { color: #d4e7b1; }
.wallet-ledger dd.wallet-debit { color: var(--house-error); }
.wallet-ledger button { justify-self: start; }
.wallet-ledger-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.wallet-ledger-controls label { min-width: min(100%, 220px); }
.owner-player-actions { display: grid; gap: 6px; }
@media (max-width: 520px) {
  .wallet-ledger-row { grid-template-columns: 1fr; }
  .wallet-ledger-amounts { text-align: left; }
  .wallet-ledger-summary > div { padding: 7px; }
}
