/* Finance overview: private-ledger composition */
.overview-screen { max-width: 920px; margin: 0 auto; }
.overview-screen button { font-family: inherit; }
.overview-balance-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.overview-balance-switch::after { content: ""; position: absolute; bottom: -1px; left: 0; width: calc(50% - 18px); height: 2px; background: var(--accent); transform: translateX(0); }
.overview-balance-switch[data-balance="total"]::after { transform: translateX(calc(100% + 36px)); }
.overview-balance-switch button { position: relative; min-height: 44px; padding: 0 4px 11px; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: 11px; font-weight: 600; }
.overview-balance-switch button:last-child { text-align: right; }
.overview-balance-switch button[aria-pressed="true"] { color: var(--ink); }
.overview-balance-carousel { width: 100%; overflow: hidden; touch-action: pan-y; }
.overview-balance-track { --balance-drag-x: 0px; display: flex; transform: translate3d(calc(-100% + var(--balance-drag-x)), 0, 0); will-change: transform; }
.overview-balance-track.is-dragging { transition: none; }
.overview-balance-track.is-settling { transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.overview-balance-main { position: relative; width: 100%; min-width: 100%; flex: 0 0 100%; height: 108px; padding: 17px 48px 16px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; user-select: none; -webkit-tap-highlight-color: transparent; }
.overview-balance-clone { pointer-events: none; }
.overview-balance-main:active { background: transparent; color: inherit; }
.overview-balance-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.overview-caption, .overview-eyebrow { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.overview-eyebrow { color: var(--accent); }
.overview-balance-main strong { display: block; white-space: nowrap; font-size: 30px; font-weight: 600; line-height: 1.12; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.overview-balance-main small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.overview-balance-main svg { position: absolute; top: 29px; right: 12px; width: 18px; color: var(--accent); transform: rotate(90deg); transition: transform .18s ease; }
.overview-balance-main[aria-expanded="true"] svg { transform: rotate(-90deg); }
.overview-accounts { border-bottom: 1px solid var(--line); }
.overview-account-row { min-height: 59px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.overview-account-row:last-child { border-bottom: 0; }
.overview-account-row > svg { width: 21px; color: #60615e; }
.overview-account-row strong, .overview-account-row small { display: block; }
.overview-account-row strong { font-size: 11px; font-weight: 600; }
.overview-account-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.overview-account-row > b { white-space: nowrap; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-account-row.tax small { color: var(--accent); }
.overview-month { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-top: 17px; }
.overview-month button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--accent); }
.overview-month button:first-child svg { transform: rotate(180deg); }
.overview-month button:disabled { color: var(--line); cursor: default; }
.overview-month div { text-align: center; }
.overview-month strong, .overview-month small { display: block; }
.overview-month strong { font-size: 15px; font-weight: 600; }
.overview-month small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.overview-scope { height: 44px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 3px 0 16px; border-bottom: 1px solid var(--line); }
.overview-scope button { position: relative; min-height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; }
.overview-scope button[aria-pressed="true"] { color: var(--ink); }
.overview-scope button[aria-pressed="true"]::after { content: ""; position: absolute; right: 17px; bottom: -1px; left: 17px; height: 2px; background: var(--accent); }
.overview-expense-total { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.overview-expense-total strong { font-size: 30px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.overview-expense-total small { padding-bottom: 3px; color: var(--muted); font-size: 10px; }
.overview-section-head { min-height: 52px; display: flex; align-items: end; justify-content: space-between; margin-top: 0; }
.overview-section-head h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.overview-section-head button { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 600; }
.overview-sort-controls { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.overview-sort-controls button { min-width: 44px; height: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10px; font-weight: 600; }
.overview-sort-controls button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.overview-sort-direction { font-size: 12px; line-height: 1; }
.overview-category-row { width: 100%; min-height: 78px; display: block; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.overview-category-top, .overview-category-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.overview-category-top strong { font-size: 12px; font-weight: 600; }
.overview-category-top b { white-space: nowrap; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-category-meta { margin-top: 6px; color: var(--muted); font-size: 10px; }
.overview-category-meta span:last-child { text-align: right; }
.overview-budget-over { color: var(--danger); }
.overview-progress { display: block; width: 100%; height: 3px; margin-top: 9px; overflow: hidden; background: #dcd7cf; }
.overview-progress i { display: block; height: 100%; background: var(--accent); }
.overview-progress i.over { background: var(--danger); }
.overview-context { margin-bottom: 17px; color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.overview-back { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; margin: -10px 0 5px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; font-weight: 600; }
.overview-back svg { width: 15px; transform: rotate(180deg); }
.overview-all-total, .overview-category-summary { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.overview-all-total strong, .overview-category-summary strong { font-size: 30px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.overview-all-total small, .overview-category-summary small { color: var(--muted); font-size: 10px; }
.overview-category-heading { margin-bottom: 8px; }
.overview-category-heading h1 { margin: 0; overflow-wrap: anywhere; font-size: var(--type-detail-title-size); font-weight: var(--type-detail-title-weight); line-height: var(--type-detail-title-line); letter-spacing: -.03em; }
.overview-category-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.overview-category-summary strong { font-size: var(--type-detail-total-size); line-height: var(--type-detail-total-line); font-weight: var(--type-detail-total-weight); letter-spacing: -.025em; }
.overview-legend { padding: 11px 0 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.45; }
.overview-budget-summary { padding: 13px 0 16px; border-bottom: 1px solid var(--line); }
.overview-budget-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.overview-budget-labels b { color: var(--ink); font-weight: 600; }
.overview-subcategories { border-bottom: 1px solid var(--line); }
.overview-subcategories .overview-section-head { min-height: 48px; align-items: center; }
.overview-subcategories .overview-section-head h2 { margin: 0; font-size: 12px; }
.overview-subcategories .overview-section-head small { color: var(--muted); font-size: 10px; }
.overview-subcategories .overview-category-row:last-child { border-bottom: 0; }
.overview-day { padding: 16px 0 7px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 600; letter-spacing: .05em; }
.overview-operation { width: 100%; min-height: 61px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.overview-operation > svg { width: 21px; color: #61625f; }
.overview-operation-copy { min-width: 0; }
.overview-operation strong, .overview-operation small { display: block; overflow-wrap: anywhere; }
.overview-operation strong { font-size: 12px; line-height: 16px; font-weight: 600; }
.overview-operation small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.overview-operation .overview-operation-comment { display: flex; align-items: center; gap: 4px; min-width: 0; color: #485850; }
.overview-operation-comment svg { width: 12px; height: 12px; flex: 0 0 12px; }
.overview-operation-comment span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-operation b { white-space: nowrap; font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.overview-empty { min-height: 180px; display: grid; place-content: center; padding: 24px 0; border-bottom: 1px solid var(--line); text-align: center; }
.overview-empty h2 { margin: 0 0 6px; font-size: 15px; }
.overview-empty p { margin: 0; color: var(--muted); font-size: 10px; }
@media (min-width: 760px) {
  .overview-screen { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); column-gap: 44px; align-items: start; }
  .overview-balance-column { position: sticky; top: 102px; }
  .overview-month-column { min-width: 0; }
  .overview-list-screen, .overview-category-detail { display: block; max-width: 780px; }
}
