body .cash-sheet.ledger-card {
  --ledger-in: #225a73;
  --ledger-out: #97571f;
  --ledger-net: #831c40;
  min-width: 0;
  width: 100%;
  padding: clamp(18px, 2.5vw, 32px);
  border: 1px solid #e6dbe0;
  border-radius: 22px;
  background: linear-gradient(155deg, #fff 22%, #fcf8fa);
  box-shadow: 0 14px 36px #4b233510;
  backdrop-filter: none;
}
.ledger-card .cash-top {align-items: center; gap: 8px;}
.ledger-card .cash-top > b {font-size: clamp(17px, 1.6vw, 21px); color: #32282d;}
.ledger-card .cash-period {border-radius: 12px; background: #f1ebef; padding: 3px;}
.ledger-card .cash-period button {min-height: 36px; border-radius: 9px; padding-inline: 10px;}
.ledger-card .cash-period button[aria-pressed=true] {color: #fff; background: var(--ledger-net);}
.ledger-content {text-align: left;}
.ledger-balance {display: grid; gap: 3px; margin: 22px 0; padding-top: 16px; border-top: 1px solid #eae1e6;}
.ledger-balance > span {color: #67555f; font-size: 13px; font-weight: 600;}
.ledger-balance strong {
  color: var(--ledger-net);
  font: 730 clamp(32px, 3.65vw, 52px)/1.07 DM, system-ui, sans-serif;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.ledger-graph {display: grid; gap: 15px;}
.ledger-income {--ink-series: var(--ledger-in); --bar-end: #418097;}
.ledger-expense {--ink-series: var(--ledger-out); --bar-end: #cb964e;}
.ledger-series-title {display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 550; color: #584c54;}
.ledger-series-title b {font-weight: 700; font-size: clamp(15px, 1.4vw, 18px); font-variant-numeric: tabular-nums; color: var(--ink-series);}
.ledger-track {margin-top: 6px; height: 10px; overflow: hidden; border-radius: 10px; background: #eee9ec;}
.ledger-track span {display: block; height: 100%; transform-origin: left center; border-radius: inherit; background: linear-gradient(90deg,var(--ink-series),var(--bar-end));}
.ledger-steps {display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 3px; margin-top: 15px;}
.ledger-steps button {
  position: relative;
  display: grid;
  align-items: start;
  min-width: 0;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  border-radius: 3px;
  color: #665a61;
  font: 600 12px/1.4 DM, system-ui, sans-serif;
  background: transparent;
  cursor: pointer;
}
.ledger-steps button::after {content: ""; position: absolute; inset: auto 0 10px; height: 3px; border-radius: 4px; background: #e5dce1;}
.ledger-steps .elapsed::after {background: #b691a1;}
.ledger-steps [aria-pressed=true] {color: var(--ledger-net);}
.ledger-steps [aria-pressed=true]::after {background: var(--ledger-net);}
.ledger-steps button:hover::after {background: #94546f;}
.ledger-entry {
  display: flex;
  justify-content: space-between;
  gap: 4px 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f3edf1;
  color: #593f4e;
  font: 550 12px/1.4 DM, system-ui, sans-serif;
}
.ledger-entry span {font-variant-numeric: tabular-nums;}
.ledger-card .cash-foot {margin-top: 12px; border-top: none; padding: 0;}
.ledger-card button:focus-visible {outline: 2px solid #801c3e; outline-offset: 2px;}
@media (max-width:480px) {
  .ledger-card .cash-period button {min-height: 40px;}
  .ledger-balance {margin: 15px 0 20px;}
  .ledger-entry {font-size: 11px; padding: 9px;}
}
