  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f0; color: #1a1a1a; min-height: 100vh; }

  /* LOGIN */
  #login-screen { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f5f5f0; }
  .login-card { background: #fff; border-radius: 16px; border: 1px solid #e8e8e0; padding: 40px; width: 360px; text-align: center; }
  .login-logo { font-size: 32px; margin-bottom: 8px; }
  .login-title { font-size: 20px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
  .login-sub { font-size: 14px; color: #888; margin-bottom: 28px; }
  .login-field { text-align: left; margin-bottom: 16px; }
  .login-field label { display: block; font-size: 13px; font-weight: 500; color: #555; margin-bottom: 6px; }
  .login-field input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.15s; }
  .login-field input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }
  .btn-login { width: 100%; padding: 11px; background: #16a34a; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.15s; margin-top: 4px; }
  .btn-login:hover { background: #15803d; }
  .login-demo { font-size: 12px; color: #aaa; margin-top: 16px; }

  /* APP SHELL */
  #app { display: none; flex-direction: row; min-height: 100vh; }

  /* SIDEBAR */
  .sidebar { width: 220px; background: #fff; border-right: 1px solid #e8e8e0; display: flex; flex-direction: column; padding: 0; flex-shrink: 0; }
  .sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid #e8e8e0; }
  .sidebar-brand { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #1a1a1a; }
  .sidebar-brand .logo { font-size: 20px; }
  .sidebar-nav { padding: 12px 0; flex: 1; }
  .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 20px; font-size: 14px; color: #666; cursor: pointer; border-radius: 0; transition: all 0.12s; border-left: 3px solid transparent; }
  .nav-item:hover { background: #f5f5f0; color: #1a1a1a; }
  .nav-item.active { background: #f0fdf4; color: #16a34a; border-left-color: #16a34a; font-weight: 500; }
  .nav-icon { font-size: 16px; width: 18px; text-align: center; }
  .sidebar-footer { padding: 16px 20px; border-top: 1px solid #e8e8e0; }
  .user-info { display: flex; align-items: center; gap: 10px; }
  .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: #dcfce7; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #16a34a; }
  .user-name { font-size: 13px; font-weight: 500; color: #333; }
  .user-email { font-size: 11px; color: #999; }
  .btn-signout { background: none; border: none; font-size: 12px; color: #aaa; cursor: pointer; padding: 4px 0 0; display: block; }
  .btn-signout:hover { color: #555; }

  /* MAIN CONTENT */
  .main { flex: 1; overflow-y: auto; }
  .page { display: none; padding: 32px 36px; max-width: 960px; }
  .page.active { display: block; }
  .page-title { font-size: 22px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
  .page-sub { font-size: 14px; color: #888; margin-bottom: 28px; }

  /* METRIC CARDS */
  .metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
  .metric-card { background: #fff; border-radius: 12px; border: 1px solid #e8e8e0; padding: 18px 20px; }
  .metric-label { font-size: 12px; color: #888; font-weight: 500; margin-bottom: 6px; letter-spacing: 0.02em; text-transform: uppercase; }
  .metric-value { font-size: 26px; font-weight: 600; color: #1a1a1a; }
  .metric-value.green { color: #16a34a; }
  .metric-value.red { color: #dc2626; }
  .metric-change { font-size: 12px; color: #888; margin-top: 4px; }
  .metric-change .up { color: #16a34a; }
  .metric-change .down { color: #dc2626; }

  /* CARDS */
  .card { background: #fff; border-radius: 12px; border: 1px solid #e8e8e0; padding: 20px 24px; margin-bottom: 20px; }
  .card-title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 16px; }

  /* CHART ROW */
  .chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

  /* TRANSACTION LIST */
  .tx-list { list-style: none; }
  .tx-item { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f0f0ea; }
  .tx-item:last-child { border-bottom: none; }
  .tx-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .tx-details { flex: 1; min-width: 0; }
  .tx-name { font-size: 14px; font-weight: 500; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tx-meta { font-size: 12px; color: #999; margin-top: 1px; }
  .tx-category { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; }
  .tx-amount { font-size: 14px; font-weight: 600; flex-shrink: 0; }
  .tx-amount.debit { color: #1a1a1a; }
  .tx-amount.credit { color: #16a34a; }

  /* ACCOUNTS */
  .account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .account-card { background: #fff; border-radius: 12px; border: 1px solid #e8e8e0; padding: 20px 22px; }
  .account-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .account-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  .account-bank { font-size: 13px; color: #888; }
  .account-name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
  .account-balance { font-size: 24px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
  .account-type { font-size: 12px; color: #aaa; display: flex; align-items: center; gap: 6px; }
  .account-type .dot { width: 6px; height: 6px; border-radius: 50%; }
  .connect-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px; border: 1.5px dashed #d0d0c8; border-radius: 10px; background: none; color: #888; font-size: 14px; cursor: pointer; transition: all 0.15s; margin-top: 0; }
  .connect-btn:hover { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }

  /* TRANSACTIONS PAGE */
  .tx-filters { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; }
  .tx-search { flex: 1; padding: 9px 14px; border: 1px solid #e0e0d8; border-radius: 8px; font-size: 14px; outline: none; background: #fff; }
  .tx-search:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }
  .tx-filter-select { padding: 9px 12px; border: 1px solid #e0e0d8; border-radius: 8px; font-size: 14px; outline: none; background: #fff; cursor: pointer; color: #333; }
  .tx-table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .tx-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #e8e8e0; }
  .tx-table td { padding: 12px 14px; border-bottom: 1px solid #f0f0ea; vertical-align: middle; }
  .tx-table tr:last-child td { border-bottom: none; }
  .tx-table tr:hover td { background: #fafaf8; }
  .cat-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; }
  .cat-badge:hover { opacity: 0.8; }
  .cat-edit-wrap { position: relative; display: inline-block; }
  .cat-dropdown { position: absolute; top: 100%; left: 0; z-index: 10; background: #fff; border: 1px solid #e0e0d8; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); padding: 4px; min-width: 160px; display: none; }
  .cat-dropdown.open { display: block; }
  .cat-option { padding: 7px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 8px; }
  .cat-option:hover { background: #f5f5f0; }
  .cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

  /* SUMMARY BAR */
  .summary-bar { display: flex; gap: 24px; padding: 14px 20px; background: #f9f9f6; border-radius: 10px; margin-bottom: 20px; }
  .summary-item { text-align: center; }
  .summary-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
  .summary-val { font-size: 16px; font-weight: 600; color: #1a1a1a; }
  .summary-val.green { color: #16a34a; }
  .summary-val.red { color: #dc2626; }

  /* CHART CANVAS */
  canvas { max-height: 200px; }

  /* FORECAST PAGE */
  .year-toggle { display: flex; gap: 3px; background: #f0f0ea; border-radius: 8px; padding: 3px; }
  .year-btn { padding: 6px 14px; border: none; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; background: none; color: #888; transition: all 0.15s; }
  .year-btn.active { background: #fff; color: #1a1a1a; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
  .forecast-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
  .forecast-legend { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
  .legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #888; }
  .legend-line { width: 20px; height: 2px; border-radius: 2px; }
  .event-list { display: flex; flex-direction: column; gap: 10px; }
  .event-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 10px; border: 1px solid #e8e8e0; padding: 14px 16px; transition: border-color 0.15s; }
  .event-item:hover { border-color: #d0d0c8; }
  .event-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
  .event-details { flex: 1; min-width: 0; }
  .event-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
  .event-date { font-size: 12px; color: #aaa; margin-top: 1px; }
  .event-impact { font-size: 12px; font-weight: 500; margin-top: 4px; display: inline-block; padding: 2px 8px; border-radius: 20px; }
  .event-impact.negative { background: #fee2e2; color: #991b1b; }
  .event-impact.positive { background: #dcfce7; color: #14532d; }
  .event-impact.warning { background: #fef3c7; color: #92400e; }
  .event-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .event-edit-btn { background: none; border: 1px solid #e8e8e0; color: #888; font-size: 12px; cursor: pointer; padding: 5px 12px; border-radius: 6px; transition: all 0.15s; font-weight: 500; }
  .event-edit-btn:hover { border-color: #16a34a; color: #16a34a; }
  .event-del-btn { background: none; border: none; color: #ddd; font-size: 15px; cursor: pointer; padding: 5px 8px; border-radius: 6px; transition: all 0.15s; }
  .event-del-btn:hover { background: #fee2e2; color: #dc2626; }
  .forecast-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
  .forecast-stat-card { background: #fff; border-radius: 12px; border: 1px solid #e8e8e0; padding: 16px 18px; }
  .forecast-stat-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
  .forecast-stat-val { font-size: 22px; font-weight: 600; }
  .forecast-stat-delta { font-size: 12px; margin-top: 3px; }
  .icon-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
  .icon-option { font-size: 22px; cursor: pointer; padding: 5px 7px; border-radius: 7px; border: 2px solid transparent; transition: border-color 0.12s; line-height: 1; }
  .icon-option.selected { border-color: #16a34a; background: #f0fdf4; }
  .icon-option:hover { border-color: #d0d0c8; }

  /* INVESTMENT PROJECTOR */
  .scenario-btn { padding: 6px 12px; border: 1px solid #e0e0d8; border-radius: 20px; background: #fff; font-size: 12px; font-weight: 500; color: #555; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
  .scenario-btn:hover { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }
  .scenario-btn.active { border-color: #16a34a; color: #16a34a; background: #f0fdf4; font-weight: 600; }
  .inv-proj-row { display: flex; gap: 0; background: #f9f9f6; border-radius: 9px; overflow: hidden; margin-top: 12px; }
  .inv-proj-cell { flex: 1; padding: 10px 14px; border-right: 1px solid #ebebea; }
  .inv-proj-cell:last-child { border-right: none; }
  .inv-proj-label { font-size: 10px; color: #aaa; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
  .inv-proj-val { font-size: 15px; font-weight: 600; color: #1a1a1a; }
  .inv-acct-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .inv-acct-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .slider-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 14px; }
  .slider-label-row { display: flex; justify-content: space-between; font-size: 12px; color: #888; margin-bottom: 5px; }
  .slider-label-val { font-weight: 600; color: #1a1a1a; }
  .slider-hint { display: flex; justify-content: space-between; font-size: 10px; color: #ccc; margin-top: 2px; }
  input[type=range] { width: 100%; height: 4px; cursor: pointer; }

  /* BUDGETS PAGE */
  .budget-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .btn-add-budget { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid #e0e0d8; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; color: #444; cursor: pointer; transition: all 0.15s; }
  .btn-add-budget:hover { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }
  .budget-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
  .budget-card { background: #fff; border-radius: 12px; border: 1px solid #e8e8e0; padding: 18px 20px; }
  .budget-card.over-budget { border-color: #fca5a5; background: #fff8f8; }
  .budget-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .budget-cat-info { display: flex; align-items: center; gap: 10px; }
  .budget-cat-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
  .budget-cat-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
  .budget-cat-txcount { font-size: 11px; color: #aaa; margin-top: 1px; }
  .budget-amounts { text-align: right; }
  .budget-spent { font-size: 18px; font-weight: 600; color: #1a1a1a; }
  .budget-spent.over { color: #dc2626; }
  .budget-limit { font-size: 12px; color: #aaa; margin-top: 1px; }
  .budget-limit-editable { cursor: pointer; border-bottom: 1px dashed #ccc; padding-bottom: 1px; }
  .budget-limit-editable:hover { color: #16a34a; border-color: #16a34a; }
  .budget-limit-input { width: 72px; padding: 2px 6px; border: 1px solid #16a34a; border-radius: 4px; font-size: 12px; text-align: right; outline: none; }
  .progress-track { height: 6px; background: #f0f0ea; border-radius: 99px; overflow: hidden; margin-top: 10px; }
  .progress-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }
  .budget-footer { display: flex; justify-content: space-between; margin-top: 8px; }
  .budget-remaining { font-size: 12px; }
  .budget-remaining.ok { color: #16a34a; }
  .budget-remaining.warn { color: #d97706; }
  .budget-remaining.over { color: #dc2626; }
  .budget-pct { font-size: 12px; color: #aaa; }
  .budget-summary-card { background: #fff; border-radius: 12px; border: 1px solid #e8e8e0; padding: 20px 24px; margin-bottom: 20px; display: flex; gap: 0; }
  .budget-summary-item { flex: 1; text-align: center; padding: 0 16px; border-right: 1px solid #f0f0ea; }
  .budget-summary-item:last-child { border-right: none; }
  .budget-summary-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
  .budget-summary-val { font-size: 22px; font-weight: 600; }
  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; z-index: 100; }
  .modal-box { background: #fff; border-radius: 14px; padding: 28px; width: 340px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
  .modal-title { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
  .modal-field { margin-bottom: 14px; }
  .modal-field label { display: block; font-size: 13px; font-weight: 500; color: #555; margin-bottom: 6px; }
  .modal-field input, .modal-field select { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; }
  .modal-field input:focus, .modal-field select:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,0.1); }
  .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
  .btn-primary { flex: 1; padding: 10px; background: #16a34a; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
  .btn-primary:hover { background: #15803d; }
  .btn-secondary { flex: 1; padding: 10px; background: #fff; color: #555; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; cursor: pointer; }
  .btn-secondary:hover { background: #f5f5f0; }
  .btn-delete { padding: 10px 14px; background: #fff; color: #dc2626; border: 1px solid #fca5a5; border-radius: 8px; font-size: 14px; cursor: pointer; }
  .btn-delete:hover { background: #fff8f8; }

/* ---- additions for the Supabase version ---- */
.login-field input.code { letter-spacing: 0.4em; text-align: center; font-size: 18px; }
.login-msg { font-size: 13px; margin-top: 14px; min-height: 18px; }
.login-msg.err { color: #dc2626; } .login-msg.ok { color: #16a34a; }
.link-btn { background: none; border: none; color: #16a34a; font-size: 13px; cursor: pointer; margin-top: 10px; }
.main { height: 100vh; }
.page { max-width: 1080px; }
.empty { text-align: center; padding: 36px 20px; color: #888; font-size: 14px; background: #fff; border: 1.5px dashed #d0d0c8; border-radius: 12px; }
.empty .big { font-size: 30px; margin-bottom: 8px; }
.empty button { margin-top: 14px; }
.btn-inline { padding: 8px 16px; background: #16a34a; color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-inline:hover { background: #15803d; }
.btn-ghost { padding: 6px 12px; border: 1px solid #e0e0d8; border-radius: 8px; background: #fff; font-size: 12px; color: #555; cursor: pointer; }
.btn-ghost:hover { border-color: #16a34a; color: #16a34a; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.section-title { font-size: 15px; font-weight: 600; margin: 28px 0 14px; display: flex; justify-content: space-between; align-items: center; }
.account-card { cursor: pointer; transition: border-color 0.15s; }
.account-card:hover { border-color: #16a34a; }
.account-sub { font-size: 12px; color: #888; margin-top: 6px; }
.modal-box { width: 460px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-field textarea { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; min-height: 70px; font-family: inherit; }
.modal-field .help { font-size: 11px; color: #999; margin-top: 4px; }
.modal-field.check label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.modal-field.check input { width: auto; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.modal-section { font-size: 12px; font-weight: 600; color: #16a34a; text-transform: uppercase; letter-spacing: 0.04em; margin: 8px 0 10px; grid-column: 1 / -1; }
.tx-table select.cat-select { border: none; background: #f5f5f0; border-radius: 20px; padding: 4px 8px; font-size: 12px; cursor: pointer; max-width: 180px; }
.tx-table td.actions { white-space: nowrap; text-align: right; }
.tx-pending { font-size: 10px; color: #d97706; margin-left: 6px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13px; z-index: 500; opacity: 0; transition: opacity 0.2s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; } .toast.err { background: #b91c1c; }
.scenario-list { display: flex; flex-direction: column; gap: 8px; }
.scenario-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e8e8e0; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.scenario-row.active { border-color: #16a34a; background: #f0fdf4; }
.scenario-swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.scenario-name { font-size: 14px; font-weight: 600; flex: 1; }
.scenario-meta { font-size: 12px; color: #888; }
.badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; background: #dcfce7; color: #14532d; text-transform: uppercase; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 8px 10px; border-bottom: 1px solid #f0f0ea; text-align: right; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.math { font-size: 12px; color: #555; line-height: 1.6; }
.math code { background: #f5f5f0; padding: 1px 5px; border-radius: 4px; font-size: 11px; }
.math ul { margin: 6px 0 6px 18px; }
.warn-box { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 10px 14px; font-size: 12px; margin-bottom: 14px; }
.event-item.disabled { opacity: 0.5; }
.toggle { position: relative; width: 34px; height: 20px; border-radius: 20px; background: #ddd; border: none; cursor: pointer; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.toggle.on { background: #16a34a; } .toggle.on::after { left: 16px; }
.goal-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f0f0ea; cursor: pointer; }
.goal-row:last-child { border-bottom: none; }
.goal-main { flex: 1; } .goal-name { font-size: 14px; font-weight: 600; } .goal-meta { font-size: 12px; color: #888; margin-top: 2px; }
.cat-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid #f5f5f0; }
.cat-row.child { padding-left: 22px; }
.cat-row .grow { flex: 1; }
.loading { padding: 60px; text-align: center; color: #aaa; }
.chart-box { position: relative; height: 320px; }
.chart-box canvas { max-height: none; }
@media (max-width: 800px) {
  #app { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav { display: flex; flex-wrap: wrap; padding: 4px; }
  .metric-grid, .forecast-summary, .chart-row, .account-grid, .budget-grid { grid-template-columns: 1fr; }
  .page { padding: 20px 16px; }
  .main { height: auto; }
}
