.v96-page { width:100%; min-width:0; color:var(--text, #252b36); }
.v96-page h1 { font-size:24px; line-height:1.3; }
.v96-page h3 { font-size:17px; margin:0 0 16px; }
.v96-band { padding:24px 0; border-top:1px solid #dfe5eb; min-width:0; }
.v96-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.v96-section-head h3 { margin:0; }
.v96-table-scroll { width:100%; overflow:auto; border:1px solid #e1e6ec; border-radius:6px; background:#fff; }
.v96-table { width:100%; border-collapse:collapse; font-size:14px; }
.v96-table th { padding:12px 16px; background:#f3f6f8; color:#5e6877; text-align:left; white-space:nowrap; font-weight:600; }
.v96-table td { padding:13px 16px; border-top:1px solid #e9edf1; vertical-align:middle; }
.v96-table tr:hover td { background:#f7fafb; }
.v96-table .v96-amount { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.v96-table .v96-empty { text-align:center; padding:40px 20px; color:#7d8795; }
.v96-cell-note { display:block; margin-top:5px; color:#7c8795; font-size:12px; font-weight:400; }
.v96-purpose { max-width:440px; min-width:160px; overflow-wrap:anywhere; }
.v96-purpose .v96-cell-note { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.v96-link { border:0; background:none; color:#087d67; padding:3px 0; cursor:pointer; font:inherit; white-space:nowrap; }
.v96-link:hover { text-decoration:underline; }
.v96-chart { width:100%; overflow:auto; margin-bottom:20px; }
.v96-chart svg { display:block; width:100%; min-width:600px; height:auto; max-height:360px; }
.v96-chart text { font-family:inherit; font-size:12px; fill:#748092; }
.v96-chart .axis-label { font-size:12px; fill:#536172; }
.v96-chart .gridline { stroke:#e5ebf0; stroke-width:1; }
.v96-chart .zero-line { stroke:#a2afbc; stroke-width:1; }
.v96-chart-legend { display:flex; justify-content:flex-end; gap:24px; flex-wrap:wrap; margin:0 0 10px; font-size:13px; color:#566577; }
.v96-chart-legend span { display:flex; align-items:center; gap:7px; }
.v96-chart-legend b { width:16px; height:3px; }
.v96-caption { color:#737f8e; font-size:13px; line-height:1.7; margin:0 0 14px; }
.v96-estimate { display:inline-block; background:#fff0cd; color:#876022; padding:3px 7px; border-radius:4px; margin-right:5px; font-size:12px; }
.v96-year-input { width:100px !important; }
.v96-money-hero strong { font-size:32px !important; white-space:normal; overflow-wrap:anywhere; }
.v96-pagination { display:flex; justify-content:flex-end; align-items:center; gap:10px; padding:16px 0 0; font-size:13px; color:#768191; }
.v96-ledger-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:18px 0 24px; }
.v96-spending-form { display:grid; grid-template-columns:150px 180px minmax(220px,2fr) minmax(130px,1fr) minmax(130px,1fr); gap:18px 16px; }
.v96-spending-form > label:nth-of-type(6) { grid-column:1 / -1; }
.v96-spending-form .field { min-width:0; display:flex; flex-direction:column; gap:8px; margin:0; }
.v96-spending-form .field > span { font-size:13px; font-weight:600; color:#5b6675; }
.v96-spending-form .input { width:100%; min-width:0; height:40px; padding:9px 12px; border-radius:6px; }
.v96-form-actions { grid-column:1 / -1; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.v96-form-actions [role=status] { color:#0e8169; font-size:14px; overflow-wrap:anywhere; }
.v96-spending-form .error { grid-column:1 / -1; }
.v96-favorites { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:0 0 20px; }
.v96-favorites > span { color:#707e8d; font-size:13px; margin-right:2px; }
.v96-favorite { border:1px solid #d0e3dc; background:#edf7f2; color:#247b64; padding:8px 12px; border-radius:5px; max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:inherit; font-size:13px; cursor:pointer; }
.v96-favorite:hover { background:#dfeee8; border-color:#9ac5b4; }
.v96-ledger-filters { gap:16px; align-items:flex-end; }
.v96-page .toolbar-left, .v96-page .toolbar-right { display:flex; flex-direction:row; align-items:center; gap:10px; min-width:0; }
.v96-page .v96-ledger-filters .toolbar-left { flex:1 1 auto; width:auto; flex-wrap:wrap; }
.v96-page .v96-ledger-filters .toolbar-left input { width:160px; }
.v96-page .v96-ledger-filters .toolbar-right { flex:0 1 auto; width:auto; }
.v96-ledger-filters .toolbar-right { display:flex; gap:10px; flex-wrap:wrap; }
.v96-ledger-filters .toolbar-right .input { width:160px; }
.v96-ledger-filters .toolbar-right input { width:220px; }
.v96-page .btn svg, .v96-dialog .btn svg { width:16px; height:16px; flex-shrink:0; }
.v96-dialog { width:min(620px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; border:1px solid #dce3e9; border-radius:8px; padding:0; background:#fff; color:#293442; box-shadow:0 18px 55px #24354330; }
.v96-dialog::backdrop { background:#1b293d55; }
.v96-dialog header, .v96-dialog footer { display:flex; align-items:center; gap:12px; padding:18px 24px; }
.v96-dialog header { justify-content:space-between; border-bottom:1px solid #e5eaef; }
.v96-dialog header h2 { font-size:18px; margin:0; }
.v96-dialog footer { justify-content:flex-end; border-top:1px solid #e5eaef; }
.v96-dialog-fields { padding:20px 24px; display:grid; gap:16px; }
.v96-dialog .field { display:flex; flex-direction:column; gap:8px; margin:0; min-width:0; }
.v96-dialog .field .input { width:100%; padding:9px 12px; }
.v96-dialog [role=alert] { margin:0 24px 16px; }

/* Keep the dashboard layout separate from the independent spending ledger. */
.v96-dashboard .dashboard-titlebar { margin-bottom:14px; }
.v96-dashboard .dashboard-titlebar h1 { font-size:23px; }
.v96-dashboard .dashboard-titlebar > div > span { font-size:13px; }
.v96-dashboard .dashboard-toolbar { margin-bottom:18px; }
.v96-period-stepper { display:flex; align-items:center; gap:6px; }
.v96-period-stepper .input { text-align:center; }
.v96-kpis, .v96-secondary-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.v96-kpis { background:#fff; border-top:1px solid #dfe5eb; border-bottom:1px solid #dfe5eb; padding:16px 0; }
.v96-dashboard-metric { min-width:0; padding:0 16px; text-align:center; }
.v96-dashboard-metric + .v96-dashboard-metric { border-left:1px solid #e5e9ed; }
.v96-metric-label { display:flex; align-items:center; justify-content:center; gap:7px; min-height:22px; color:#5d6570; font-size:14px; }
.v96-metric-label svg { width:15px; height:15px; flex-shrink:0; color:#8a929b; }
.v96-dashboard-metric strong { display:block; margin-top:7px; font-size:29px; line-height:1.4; font-weight:700; color:#23282f; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.v96-dashboard-metric.is-positive strong { color:#16836a; }
.v96-dashboard-metric.is-negative strong { color:#c54e59; }
.v96-dashboard-metric.is-attention strong { color:#ab681c; }
.v96-metric-note { display:block; margin-top:5px; color:#77808a; font-size:12px; line-height:1.5; }
.v96-secondary-stats { padding:17px 0; }
.v96-secondary-stats .v96-metric-label { font-size:13px; }
.v96-secondary-stats strong { font-size:20px; margin-top:4px; font-weight:600; }
.v96-dashboard .v96-band { padding:19px 0; }
.v96-dashboard .v96-band h3 { font-size:16px; margin-bottom:12px; }
.v96-dashboard .v96-section-head { margin-bottom:8px; }
.v96-dashboard .v96-section-head h3 { margin:0; }
.v96-section-unit { font-size:12px; color:#7a838d; }
.v96-dashboard .v96-chart-legend { justify-content:flex-start; gap:20px; margin:0 0 4px 88px; font-size:12px; }
.v96-dashboard .v96-chart { margin-bottom:16px; }
.v96-dashboard .v96-chart svg { width:auto; min-width:700px; height:210px; max-height:none; }
.v96-dashboard .v96-chart text { font-size:12px; }
.v96-dashboard .v96-table { table-layout:fixed; min-width:820px; font-size:13px; }
.v96-dashboard .v96-table th { text-align:center; padding:11px 10px; background:#edf2f5; font-size:13px; color:#515d6b; }
.v96-dashboard .v96-table td { text-align:center; padding:9px 10px; line-height:1.6; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.v96-dashboard .v96-table .v96-amount { text-align:center; }
.v96-dashboard .v96-table tbody tr:nth-child(even) td { background:#fafcfd; }
.v96-dashboard .v96-table tbody tr:hover td { background:#eef5f6; }
.v96-dashboard .v96-table .v96-zero { color:#929ba5; }
.v96-dashboard .v96-table .v96-empty { padding:28px 16px; }
.v96-dashboard .v96-link { color:#475c6c; font-weight:500; }
.v96-dashboard .v96-link:hover { color:#087d67; }
.v96-dashboard .v96-cell-note { font-size:12px; line-height:1.5; margin-top:3px; }
.v96-dashboard .v96-sources td:nth-child(2) { text-align:left; }
.v96-dashboard .v96-caption { font-size:12px; }
@media (max-width:1100px) {
  .v96-dashboard-metric { padding:0 10px; }
  .v96-dashboard-metric strong { font-size:24px; }
  .v96-secondary-stats strong { font-size:19px; }
}
@media (max-width:700px) {
  .v96-kpis, .v96-secondary-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .v96-kpis { padding:0; }
  .v96-kpis .v96-dashboard-metric { padding:15px 10px; }
  .v96-kpis .v96-dashboard-metric:nth-child(n+3) { border-top:1px solid #e5e9ed; }
  .v96-dashboard-metric:nth-child(odd) { border-left:0; }
  .v96-dashboard-metric strong { font-size:22px; }
  .v96-metric-label { font-size:13px; flex-wrap:wrap; }
  .v96-secondary-stats { padding:0; }
  .v96-secondary-stats .v96-dashboard-metric { padding:13px 10px; }
  .v96-secondary-stats .v96-dashboard-metric:nth-child(n+3) { border-top:1px solid #e5e9ed; }
  .v96-secondary-stats strong { font-size:18px; }
  .v96-dashboard .v96-chart-legend { margin-left:0; gap:10px 16px; }
  .v96-dashboard .v96-band { padding:16px 0; }
  .v96-dashboard .dashboard-titlebar h1 { font-size:21px; }
  .v96-dashboard .v96-section-head { gap:6px; }
  .v96-dashboard .v96-section-head h3 { font-size:15px; }
  .v96-period-stepper .v96-year-input { flex:none; }
}
@media (max-width:1250px) {
  .v96-spending-form { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .v96-spending-form > label:nth-of-type(6) { grid-column:auto; }
}
@media (max-width:700px) {
  .v96-page h1 { font-size:21px; }
  .v96-band { padding:20px 0; }
  .v96-ledger-metrics { grid-template-columns:1fr; gap:10px; }
  .v96-spending-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 12px; }
  .v96-spending-form > label:nth-of-type(3), .v96-spending-form > label:nth-of-type(6) { grid-column:1 / -1; }
  .v96-page .toolbar-left, .v96-page .toolbar-right { width:100%; flex-wrap:wrap; }
  .v96-page .toolbar-left .input { max-width:100%; width:150px; }
  .v96-pagination { justify-content:flex-start; flex-wrap:wrap; }
  .v96-dialog header, .v96-dialog footer { padding:16px; }
  .v96-dialog-fields { padding:16px; }
}
