/* Cash and investment management share the same airy banking language. */
.funds-tabs { width: fit-content; margin: 4px 0 22px; }
.funds-pane { display: none; }
.funds-pane.active { display: block; animation: ledger-arrive .3s var(--spring) both; }
.overview-plan-balances { display: grid; gap: 3px; margin-top: 10px; max-height: 174px; overflow-y: auto; overscroll-behavior: contain; }
.overview-plan-balances button { display: flex; align-items: center; justify-content: space-between; gap: 9px; width: 100%; min-height: 36px; padding: 5px 0; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: 12px; }
.overview-plan-balances button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-plan-balances b { flex: 0 0 auto; font-weight: 600; color: var(--teal-deep); }
.overview-plan-balances b.amount-expense { color: var(--red); }
.home-avatar-settings { margin-bottom: 20px; }
.insight-panel { min-width: 0; }
.insight-panel strong.amount-placeholder { font-size: 20px; line-height: 1.4; white-space: normal !important; overflow-wrap: anywhere; }
.management-heading { align-items: center; margin-top: 12px; }
.management-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.management-heading-actions button { white-space: nowrap; }
.management-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; margin: 22px 0; padding: 28px; background: #f6f3ef; border-radius: 26px; }
.management-summary-main, .management-summary-side { min-width: 0; }
.management-summary-main > span, .management-summary-side > span { display: block; color: #78746e; font-size: 13px; }
.management-summary-main > strong { display: block; margin-top: 7px; font-size: clamp(26px, 3.5vw, 40px); font-weight: 680; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.management-summary small { display: block; margin-top: 9px; color: #88837c; font-size: 11px; line-height: 1.5; }
.management-summary-side > strong { display: block; margin-top: 9px; font-size: 25px; line-height: 1.3; font-weight: 620; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.management-currency { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.management-currency span { color: #88837c; font-size: 12px; }
.management-currency strong { font-size: 15px; font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.management-grid { margin-top: 20px; }
.management-account { min-width: 0; }
.management-account .account-name { overflow-wrap: anywhere; }
.management-account .account-balance { font-size: 25px; overflow-wrap: anywhere; }
.management-account-symbol { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #f5f2ed; color: #897851; flex: 0 0 auto; }
.management-account-symbol svg { width: 21px; height: 21px; }
.management-last-close { min-height: 19px; margin-top: 11px; color: #918d87; font-size: 11px; }
.management-empty { grid-column: 1 / -1; padding: 32px 20px; color: #95918a; text-align: center; font-size: 13px; line-height: 1.7; background: #f9f8f6; border-radius: 22px; }
.closing-history-list { background: #ffffff; border-radius: 24px; padding: 6px 23px; }
.closing-history-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 21px 0; border-bottom: 1px solid #f1efed; }
.closing-history-row:last-child { border-bottom: 0; }
.closing-history-identity, .closing-history-value, .closing-history-gain { min-width: 0; }
.closing-history-identity > strong, .closing-history-value > strong, .closing-history-gain > strong { display: block; font-weight: 580; overflow-wrap: anywhere; }
.closing-history-identity > strong { font-size: 13px; }
.closing-history-identity > span, .closing-history-identity > small { display: block; margin-top: 5px; color: #908c85; font-size: 11px; overflow-wrap: anywhere; }
.closing-history-value > span, .closing-history-gain > span { display: block; color: #908c85; font-size: 11px; }
.closing-history-value > strong, .closing-history-gain > strong { margin-top: 5px; font-size: 15px; font-variant-numeric: tabular-nums; }
.closing-history-value > small, .closing-history-gain > small { display: block; margin-top: 4px; font-size: 10px; color: #95928c; overflow-wrap: anywhere; }
.closing-history-actions { display: flex; gap: 12px; justify-content: flex-end; }
.closing-history-actions .ghost-button { min-height: 44px; font-size: 11px; }
.closing-form-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 17px; margin-top: 20px; background: #f7f5f1; border-radius: 18px; }
.closing-form-preview > div { min-width: 0; }
.closing-form-preview span, .closing-form-preview strong { display: block; }
.closing-form-preview span { color: #89847d; font-size: 11px; }
.closing-form-preview strong { margin-top: 6px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.closing-form-preview p { grid-column: 1 / -1; font-size: 11px; color: #8f8b84; line-height: 1.6; }
@media (max-width: 1000px) and (min-width: 701px) {
  .closing-history-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closing-history-actions { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .side-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #todayLabel { display: none; }
  body[data-page="overview"] #pageTitle, body[data-page="overview"] .header-heading { display: none; }
  .topbar { padding-top: 0; }
  .funds-tabs { margin-top: 10px; margin-bottom: 24px; }
  .overview-plan-balances { max-height: 130px; }
  .overview-plan-balances button { align-items: flex-start; flex-direction: column; gap: 2px; padding: 6px 0; font-size: 10px; }
  .overview-plan-balances button > span { max-width: 100%; }
  #overviewView > .section-head .section-actions { width: auto; gap: 6px 12px; }
  #overviewView > .section-head { flex-wrap: wrap; }
  #overviewView > .section-head .section-actions button { flex: 0 0 auto; min-height: 32px; }
  .management-heading { margin-top: 22px; flex-wrap: wrap; }
  .management-heading > div:first-child { flex: 1 1 100%; }
  .management-heading-actions { justify-content: flex-start; gap: 8px; }
  .management-heading-actions button { min-height: 43px; font-size: 12px; }
  .management-summary { grid-template-columns: 1fr; gap: 18px; margin: 21px 0; padding: 23px 20px; }
  .management-summary-main > strong { font-size: clamp(27px, 8.4vw, 36px); }
  .management-summary-side { padding-top: 14px; border-top: 1px solid #ebe7e1; }
  .management-summary-side > strong { font-size: 24px; }
  .management-currency strong { font-size: 14px; }
  .management-account .account-balance { font-size: 27px; }
  .management-account .account-actions { gap: 16px; }
  .management-last-close { margin-top: 10px; }
  .investment-history { margin-top: 30px; }
  .closing-history-list { padding: 0; background: transparent; border-radius: 0; }
  .closing-history-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px 12px; padding: 23px 0; align-items: start; }
  .closing-history-identity { grid-column: 1 / -1; }
  .closing-history-value > strong, .closing-history-gain > strong { font-size: 14px; }
  .closing-history-gain { text-align: right; }
  .closing-history-actions { grid-column: 1 / -1; margin-top: -7px; }
  .closing-history-actions button { min-width: 44px; }
  .closing-form-preview { padding: 15px; gap: 13px 10px; }
  .closing-form-preview strong { font-size: 14px; }
}
