/* Cash surfaces only. receipt.css remains the sole owner of printed receipts. */
@media screen {
  .nova-ledger { min-width: 0; color: #F3F2EE; }
  .nova-ledger .lg-heading { border: 0; }
  .nova-ledger .lg-heading .t-stats { display: block; }
  .nova-ledger .lg-heading .b-btn { white-space: nowrap; }
  .nova-ledger .lg-period { display: flex; align-items: center; gap: 16px; min-width: 0; margin-bottom: 18px; }
  .nova-ledger .lg-period-label { color: #9C9CAA; font-size: 12px; }
  .nova-ledger .lg-months { flex: 1; min-width: 0; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
  .nova-ledger .lg-months button { flex: 0 0 auto; min-height: 38px; padding: 10px 14px; border: 1px solid #262631; border-radius: 11px; background: #14141B; color: #9C9CAA; font: 500 12px/1.4 Inter, sans-serif; text-transform: capitalize; }
  .nova-ledger .lg-months button[aria-pressed=true] { border-color: #F3F2EE; background: #F2EFE7; color: #14141B; }
  .nova-ledger .lg-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
  .nova-ledger .lg-totals > div { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; min-width: 0; min-height: 174px; padding: 24px; border: 0; border-radius: 22px; background: #14141B; }
  .nova-ledger .lg-totals dt { display: flex; align-items: center; gap: 10px; color: #C3C3CD; font: 500 13px/1.4 Inter, sans-serif; }
  .nova-ledger .lg-summary-symbol { font: 400 22px/1 Geologica, Inter, sans-serif; }
  .nova-ledger .lg-totals dd { min-width: 0; margin: 0; color: #F3F2EE; font: 700 clamp(24px, 2.4vw, 36px)/1.25 Geologica, Inter, sans-serif; letter-spacing: -.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .nova-ledger .lg-totals .lg-summary-note { margin-top: auto; color: #9C9CAA; font: 400 12px/1.5 Inter, sans-serif; letter-spacing: 0; }
  .nova-ledger .lg-totals .lg-summary-income { background: #F2EFE7; color: #14141B; }
  .nova-ledger .lg-summary-income dt, .nova-ledger .lg-summary-income .lg-summary-note { color: #64646E; }
  .nova-ledger .lg-summary-income dd { color: #14141B; }
  .nova-ledger .lg-summary-expense .lg-summary-symbol { color: #FFB86B; }
  .nova-ledger .lg-totals .lg-balance { background: linear-gradient(to bottom left, #8C6BFF 0%, #3B287D 52%, #14141B 100%); }
  .nova-ledger .lg-balance dt { color: #C8F56A; }
  .nova-ledger .lg-balance .lg-summary-note { color: #DBD4EE; }
  .nova-ledger .lg-grid { grid-template-columns: minmax(250px, .8fr) minmax(0, 2fr); gap: 24px; align-items: start; }
  .nova-ledger .lg-side { position: static; display: grid; gap: 16px; min-width: 0; padding: 0; border: 0; background: transparent; }
  .nova-ledger .lg-insight { min-width: 0; padding: 22px; border-radius: 20px; background: #14141B; }
  .nova-ledger .lg-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .nova-ledger .lg-section-heading h2 { min-width: 0; margin: 0; color: #F3F2EE; font: 600 16px/1.4 Inter, sans-serif; }
  .nova-ledger .lg-section-heading > span { flex-shrink: 0; color: #9C9CAA; font: 400 11px/1.5 'JetBrains Mono', monospace; }
  .nova-ledger .lg-section-caption { margin: 6px 0 22px; color: #9C9CAA; font-size: 12px; }
  .nova-ledger .lg-chart { height: 90px; gap: 3px; padding-bottom: 0; border-bottom: 1px solid #333340; }
  .nova-ledger .lg-bar { flex-direction: row; align-items: flex-end; gap: 1px; }
  .nova-ledger .lg-bar i { flex: 1; min-width: 0; border-radius: 2px 2px 0 0; }
  .nova-ledger .lg-bar .is-in, .nova-ledger .lg-chart-legend .is-in { background: #C8F56A; }
  .nova-ledger .lg-bar .is-out, .nova-ledger .lg-chart-legend .is-out { background: #B7A4FF; }
  .nova-ledger .lg-chart-axis { display: flex; justify-content: space-between; margin-top: 8px; color: #9C9CAA; font: 400 10px/1.4 'JetBrains Mono', monospace; }
  .nova-ledger .lg-chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; color: #9C9CAA; font-size: 11px; }
  .nova-ledger .lg-chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
  .nova-ledger .lg-chart-legend i { width: 6px; height: 6px; border-radius: 50%; }
  .nova-ledger .lg-insight-empty { margin: 18px 0 0; color: #9C9CAA; font-size: 12px; line-height: 1.7; }
  .nova-ledger .lg-catsum { gap: 20px; }
  .nova-ledger .lg-catsum .lg-insight-empty { margin-top: 0; }
  .nova-ledger .lg-cat { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .nova-ledger .lg-cat-name { color: #D8D8E0; font-size: 12px; white-space: normal; }
  .nova-ledger .lg-cat-name i { width: 7px; height: 7px; }
  .nova-ledger .lg-cat b { padding-left: 15px; color: #F3F2EE; font: 500 13px/1.5 Geologica, Inter, sans-serif; overflow-wrap: anywhere; }
  .nova-ledger .lg-track { height: 4px; margin-top: 4px; overflow: hidden; border-radius: 4px; background: #262631; }
  .nova-ledger .lg-track i { border-radius: inherit; }
  .nova-ledger .lg-tape { display: grid; gap: 24px; min-width: 0; padding: 24px; border: 0; border-radius: 22px; background: #14141B; }
  .nova-ledger .lg-list-head { display: grid; gap: 18px; min-width: 0; }
  .nova-ledger .lg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
  .nova-ledger .lg-filter-kinds { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #0B0B10; }
  .nova-ledger .lg-filter-kinds button { min-height: 34px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: #9C9CAA; font: 500 12px/1.4 Inter, sans-serif; }
  .nova-ledger .lg-filter-kinds button[aria-pressed=true] { background: #2E283F; color: #D3C7FF; }
  .nova-ledger .lg-search { position: relative; flex: 1 1 180px; min-width: 0; }
  .nova-ledger .lg-search > svg { position: absolute; top: 13px; left: 12px; width: 16px; height: 16px; color: #9C9CAA; pointer-events: none; }
  .nova-ledger .lg-search input { width: 100%; min-width: 0; padding-left: 36px; font-size: 13px; }
  .nova-ledger .lg-filter-category { flex: 1 1 150px; min-width: 0; }
  .nova-ledger .lg-filter-category select { width: 100%; min-width: 0; font-size: 13px; }
  .nova-ledger .lg-filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: #9C9CAA; font-size: 11px; line-height: 1.6; }
  .nova-ledger .lg-filter-note button { min-height: 32px; padding: 4px 0; border: 0; background: transparent; color: #B7A4FF; font-size: 12px; text-align: left; }
  .nova-ledger .lg-day { min-width: 0; }
  .nova-ledger .lg-day-head { align-items: center; padding: 0 0 12px; border-bottom: 1px solid #262631; }
  .nova-ledger .lg-day-head h3 { color: #C3C3CD; font: 500 12px/1.5 Inter, sans-serif; text-transform: capitalize; }
  .nova-ledger .lg-day-head span { color: #9C9CAA; font: 400 10px/1.5 'JetBrains Mono', monospace; }
  .nova-ledger .lg-line { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #242430; }
  .nova-ledger .lg-title { min-width: 0; color: #F3F2EE; font: 500 14px/1.5 Inter, sans-serif; overflow-wrap: anywhere; }
  .nova-ledger .lg-title small { margin: 4px 0 0; color: #9C9CAA; font: 400 11px/1.5 Inter, sans-serif; }
  .nova-ledger .lg-amt { min-width: 0; padding: 0; margin: 0; color: #F3F2EE; font: 600 16px/1.4 Geologica, Inter, sans-serif; font-variant-numeric: tabular-nums; }
  .nova-ledger .lg-line.is-income .lg-amt { color: #C8F56A; }
  .nova-ledger .lg-line.is-expense .lg-amt { color: #F3F2EE; }
  .nova-ledger .lg-view-receipt { min-height: 36px; padding: 7px 11px; border: 1px solid #393345; border-radius: 10px; background: #24202F; color: #C8B9F7; font: 500 12px/1.4 Inter, sans-serif; }
  .nova-ledger .lg-del { display: grid; place-items: center; width: 32px; min-width: 32px; height: 36px; padding: 6px; border: 0; border-radius: 9px; background: transparent; color: #9C9CAA; opacity: 1; }
  .nova-ledger .lg-del svg { width: 16px; height: 16px; }
  .nova-ledger .lg-day-sum { flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; color: #9C9CAA; font: 400 11px/1.6 Inter, sans-serif; }
  .nova-ledger .lg-empty { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 320px; padding: 26px 8px; background: transparent; text-align: left; }
  .nova-ledger .lg-empty h3 { margin: 0 0 12px; font: 600 24px/1.3 Inter, sans-serif; letter-spacing: -.5px; }
  .nova-ledger .lg-empty p { margin: 0 0 24px; max-width: 420px; font-size: 14px; line-height: 1.7; }
  .nova-ledger .lg-empty .b-btn { margin: 0; }

  .nova-ledger-form.b-form { min-width: 0; padding: 0; gap: 20px; }
  .nova-ledger-form .lg-form-intro { margin: 0; color: #9C9CAA; font-size: 13px; line-height: 1.65; }
  .nova-ledger-form .lg-kind { gap: 6px; padding: 5px; border-radius: 14px; background: #0B0B10; }
  .nova-ledger-form .lg-kind button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: #9C9CAA; font: 600 13px/1.4 Inter, sans-serif; }
  .nova-ledger-form .lg-kind button[aria-pressed=true] { background: #8C6BFF; color: #F3F2EE; }
  .nova-ledger-form .lg-kind button[data-kind=income][aria-pressed=true] { background: #C8F56A; color: #101014; }
  .nova-ledger-form .lg-kind button > span { font-size: 20px; }
  .nova-ledger-form .lg-form-amount input { min-height: 68px; padding: 12px 16px; font: 600 30px/1.4 Geologica, Inter, sans-serif; font-variant-numeric: tabular-nums; }
  .nova-ledger-form .lg-form-amount p { margin: 8px 0 0; color: #9C9CAA; font-size: 11px; line-height: 1.5; }
  .nova-ledger-form .b-dialog-actions { margin: 0; }

  .nova-ledger-receipt.lg-receipt-preview { min-width: 0; padding: 0; }
  .nova-ledger-receipt .lg-receipt { padding: 26px; border: 0; border-radius: 20px; background: #F2EFE7; color: #14141B; color-scheme: light; }
  .nova-ledger-receipt .lg-receipt-head { padding-bottom: 20px; border-color: #CCCAC4; }
  .nova-ledger-receipt .lg-receipt-brand { color: #14141B; font: 700 28px/1 Geologica, Inter, sans-serif; }
  .nova-ledger-receipt .lg-receipt-head p, .nova-ledger-receipt .lg-receipt-kind { color: #64646E; font-size: 12px; }
  .nova-ledger-receipt .lg-receipt-kind { margin-top: 24px; }
  .nova-ledger-receipt .lg-receipt-amount { margin: 8px 0 20px; color: #14141B; font: 700 clamp(26px, 5vw, 38px)/1.25 Geologica, Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
  .nova-ledger-receipt .lg-receipt-title { color: #14141B; font: 600 18px/1.5 Inter, sans-serif; }
  .nova-ledger-receipt .lg-receipt-details { gap: 14px; }
  .nova-ledger-receipt .lg-receipt-details > div { font-size: 12px; }
  .nova-ledger-receipt .lg-receipt-details dt { color: #64646E; }
  .nova-ledger-receipt .lg-receipt-details dd { color: #14141B; }
  .nova-ledger-receipt .lg-receipt-record { border-color: #CCCAC4; }
  .nova-ledger-receipt .lg-receipt-record dd { font: 400 11px/1.6 'JetBrains Mono', monospace; }
  .nova-ledger-receipt .lg-receipt-note { border-color: #CCCAC4; color: #64646E; font-size: 11px; }
  .nova-ledger-receipt .lg-receipt-actions { gap: 10px; margin-top: 20px; }
  .nova-ledger-receipt .lg-receipt-actions .b-btn { min-height: 44px; border-radius: 12px; }
  .nova-ledger :is(button, input, select):focus-visible,
  .nova-ledger-form :is(button, input, select):focus-visible,
  .nova-ledger-receipt button:focus-visible { outline: 2px solid #C8F56A; outline-offset: 3px; }

  @media (hover: hover) {
    .nova-ledger .lg-months button:not([aria-pressed=true]):hover { background: #272333; color: #F3F2EE; }
    .nova-ledger .lg-filter-kinds button:not([aria-pressed=true]):hover { color: #F3F2EE; background: #1B1B24; }
    .nova-ledger .lg-view-receipt:hover { background: #352C49; }
    .nova-ledger .lg-del:hover { background: #262631; color: #F3F2EE; }
  }
  @media (max-width: 1100px) {
    .nova-ledger .lg-grid { grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr); gap: 16px; }
    .nova-ledger .lg-totals > div { padding: 20px; }
    .nova-ledger .lg-tape { padding: 20px; }
    .nova-ledger .lg-line { grid-template-columns: 8px minmax(0, 1fr) auto 32px; gap: 10px; }
    .nova-ledger .lg-title { grid-column: 2 / -1; }
    .nova-ledger .lg-amt { grid-column: 2; white-space: normal; overflow-wrap: anywhere; }
    .nova-ledger .lg-view-receipt { grid-column: 3; }
    .nova-ledger .lg-del { grid-column: 4; }
  }
  @media (max-width: 800px) {
    .nova-ledger .lg-totals { gap: 12px; }
    .nova-ledger .lg-totals > div { min-height: 150px; padding: 18px; }
    .nova-ledger .lg-totals dt { font-size: 12px; }
    .nova-ledger .lg-grid { grid-template-columns: minmax(0, 1fr); }
    .nova-ledger .lg-side { grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nova-ledger .lg-tape { grid-row: 1; }
  }
  @media (max-width: 540px) {
    .nova-ledger .lg-heading { align-items: flex-start; flex-wrap: wrap; gap: 18px; }
    .nova-ledger .lg-heading .t-heading-actions { width: 100%; }
    .nova-ledger .lg-heading .b-btn { width: 100%; }
    .nova-ledger .lg-period { gap: 8px; }
    .nova-ledger .lg-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nova-ledger .lg-totals > div { min-height: 138px; padding: 18px 16px; gap: 12px; }
    .nova-ledger .lg-totals dd { font-size: 24px; }
    .nova-ledger .lg-totals .lg-balance { grid-column: 1 / -1; min-height: 150px; }
    .nova-ledger .lg-balance dd { font-size: 32px; }
    .nova-ledger .lg-side { grid-template-columns: minmax(0, 1fr); }
    .nova-ledger .lg-tape { padding: 20px 16px; }
    .nova-ledger .lg-filters { gap: 10px; }
    .nova-ledger .lg-filter-kinds { width: 100%; }
    .nova-ledger .lg-filter-kinds button { flex: 1; min-height: 38px; }
    .nova-ledger .lg-search, .nova-ledger .lg-filter-category { flex-basis: 100%; }
    .nova-ledger .lg-section-heading { flex-wrap: wrap; gap: 6px 12px; }
    .nova-ledger .lg-empty { min-height: 300px; padding: 18px 0; }
    .nova-ledger .lg-empty h3 { font-size: 22px; }
    .nova-ledger .lg-empty .b-btn { width: 100%; }
    .nova-ledger .lg-day-sum { justify-content: flex-start; }
    .nova-ledger-receipt .lg-receipt { padding: 22px 18px; }
    .nova-ledger-receipt .lg-receipt-details > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
    .nova-ledger-receipt .lg-receipt-details dd { text-align: left; }
    .nova-ledger-receipt .lg-receipt-actions .b-btn { flex: 1; }
    .nova-ledger-form :is(input, select) { font-size: 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .nova-ledger *, .nova-ledger-form *, .nova-ledger-receipt * { transition: none; animation: none; }
  }
}
