/* v135 — additive Savings Goals screens only. Existing Dashboard components unchanged. */
#tab-home .sg-dashboard-shortcut {
  grid-column: 1 / -1;
  min-height: 64px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 13px;
  padding: 9px 15px;
  text-align: left;
}
#tab-home .sg-dashboard-shortcut .dashboard-action-icon {width:42px;height:42px;border-radius:12px;flex-shrink:0}
#tab-home .sg-dashboard-shortcut .dashboard-action-icon svg {width:25px;height:25px}
#tab-home .sg-dashboard-shortcut .dashboard-action-label {margin:0;font-size:15px}
#tab-home .sg-dashboard-shortcut-arrow {margin-left:auto;color:#40895b;font-size:30px;line-height:1}
#tab-home .sg-dashboard-panel {margin-top:13px;border-radius:22px;background:#f8f5ee;padding:14px;box-shadow:0 7px 19px rgba(0,0,0,.11)}
#tab-home .sg-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:12px}
#tab-home .sg-dashboard-head h2 {margin:0;color:#121a15;font-size:18px;font-weight:800}
#tab-home .sg-dashboard-head button {border:0;background:none;color:#40895b;font-weight:750;font-size:14px;padding:5px 0;white-space:nowrap}
#tab-home .sg-dashboard-head button span {font-size:23px;vertical-align:-1px}
#tab-home .sg-dashboard-hero{width:100%;min-height:103px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #dfe7de;border-radius:17px;padding:15px;text-align:left;color:#17291d}
#tab-home .sg-dashboard-content{display:flex;flex-direction:column;flex:1;min-width:0;gap:7px}
#tab-home .sg-dashboard-empty-title{font-weight:780;font-size:17px}
#tab-home .sg-dashboard-empty-sub{color:#66766b;font-size:12px;line-height:1.35}
#tab-home .sg-dashboard-cta{color:#40895b;font-size:13px;font-weight:700}
#tab-home .sg-dashboard-arrow{color:#40895b;font-size:31px;flex-shrink:0}
#tab-home .sg-dashboard-active{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
#tab-home .sg-dashboard-active strong{font-size:16px}
#tab-home .sg-dashboard-active small{font-size:11px;color:#69776d}
#tab-home .sg-dashboard-progress{display:block;width:100%;height:9px;border-radius:15px;background:#e0ebe3;overflow:hidden}
#tab-home .sg-dashboard-progress span{display:block;height:100%;border-radius:15px;background:#40895b}
#tab-home .sg-dashboard-money{display:flex;justify-content:space-between;gap:10px;align-items:center}
#tab-home .sg-dashboard-money strong{font-size:13px}
#tab-home .sg-dashboard-money small{color:#68776c;font-size:11px}
#tab-home .sg-dashboard-estimate{color:#3e8057;font-size:12px;font-weight:650}
/* Newly added content exceeds the former carousel's fixed height on some iPhones.
   Allow scrolling only within the Home content; keep existing cards and fixed nav intact. */
#tab-home.active {height:calc(100dvh - 12px - env(safe-area-inset-top));overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;}
#tab-home.active::-webkit-scrollbar{display:none}
/* New page uses Settle's existing inner-page shell and locked bottom navigation. */
body:has(#app:not([hidden]) #tab-goals.active){background:#fefcf5}
#app:has(#tab-goals.active){background:#fefcf5 url('/settle-auth-bg-v67.png') center / cover no-repeat;color:#17251d}
#app:has(#tab-goals.active) .app-header{align-items:center;color:#111512}
#app:has(#tab-goals.active) .app-header .text-link{width:42px;height:42px;display:grid;place-items:center;padding:0;font-size:0;background:#f8f5ee;border:1px solid #dce4dc;border-radius:50%;color:#202522}
#app:has(#tab-goals.active) .app-header .text-link::before{content:'';width:10px;height:10px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);position:relative;left:2px;top:6px}
#app:has(#tab-goals.active) .app-header h1{font-size:27px;line-height:1;letter-spacing:-.02em;color:#111512}
#app:has(#tab-goals.active) .app-header > span{width:42px;height:42px}
#app:has(#tab-goals.active) .bills-v129-header-add{display:none!important}
#tab-goals.active{padding:0 0 calc(85px + var(--safe));color:#17251d;font-family:var(--sans)}
#tab-goals .sg-intro{padding:0 3px 16px}
#tab-goals .sg-eyebrow{font-size:10px;font-weight:750;letter-spacing:.13em;color:#49805d}
#tab-goals .sg-intro h2{font-size:27px;line-height:1.15;margin:8px 0 9px;font-weight:800;color:#17291d}
#tab-goals .sg-intro p,#tab-goals .sg-muted{margin:5px 0 13px;line-height:1.45;font-size:13px;color:#65766b}
#tab-goals .sg-section{margin-bottom:15px;padding:17px;border-radius:21px;background:#fffefa;border:1px solid #e0e7df;box-shadow:0 5px 18px rgba(22,50,32,.06)}
#tab-goals .sg-section h3{margin:0 0 11px;font-size:18px;color:#182c20;font-weight:800}
#tab-goals .sg-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
#tab-goals .sg-section-title h3{margin:0 0 12px}
#tab-goals .sg-subtle-btn{border:1px solid #a8d0b5;background:#edf7ef;color:#368450;border-radius:12px;padding:9px 10px;font-weight:750;font-size:12px;margin-bottom:10px}
#tab-goals .sg-goal-list{display:grid;gap:9px}
#tab-goals .sg-goal-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;text-align:left;width:100%;padding:13px 12px;background:#f8faf6;border:1px solid #e1e8e2;border-radius:14px;color:#192b20}
#tab-goals .sg-goal-item.sg-selected{background:#eaf5ed;border-color:#40895b}
#tab-goals .sg-goal-item>span:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
#tab-goals .sg-goal-item>span:nth-child(2){display:flex;align-items:flex-end;flex-direction:column;gap:5px}
#tab-goals .sg-goal-item strong{font-size:14px;overflow-wrap:anywhere}
#tab-goals .sg-goal-item b{font-size:12px;white-space:nowrap}
#tab-goals .sg-goal-item small{font-size:11px;color:#65766b}
#tab-goals .sg-mini-bar{grid-column:1/-1;height:7px;border-radius:8px;background:#dae6dc;overflow:hidden}
#tab-goals .sg-mini-bar i{display:block;height:100%;background:#40895b;border-radius:8px}
#tab-goals .sg-empty{font-size:13px;color:#607165;margin:5px 0 1px}
#tab-goals .sg-label{display:block;margin:12px 0 6px;color:#425448;font-size:12px;font-weight:750}
#tab-goals .sg-field{box-sizing:border-box;width:100%;min-width:0;min-height:45px;padding:10px 11px;background:#fff;border:1px solid #cddbd0;border-radius:12px;color:#17281d;font-size:15px;line-height:1.3;font-family:var(--sans);-webkit-appearance:none;appearance:none}
#tab-goals .sg-field:focus{outline:2px solid #40895b;outline-offset:1px}
#tab-goals .sg-two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
#tab-goals .sg-two-fields>div{min-width:0}
#tab-goals .sg-form-actions{display:flex;gap:10px;align-items:center;margin-top:15px}
#tab-goals .sg-primary-btn{min-height:45px;border:0;border-radius:12px;padding:10px 18px;background:#40895b;color:#fff;font-weight:800;font-size:14px}
#tab-goals .sg-secondary-btn{min-height:45px;padding:10px 14px;background:#f1f5f1;border:1px solid #d4ded5;color:#3a5a45;border-radius:12px;font-weight:700}
#tab-goals .sg-error{margin:8px 0;font-size:12px;color:#ad222c}
#tab-goals .sg-forecast-empty{padding:17px;border-radius:14px;background:#edf5ee;color:#4b6854;font-size:13px;line-height:1.45;margin-top:12px}
#tab-goals .sg-forecast-result{margin-top:15px;border-top:1px solid #e5eae5;padding-top:16px}
#tab-goals .sg-status{display:inline-block;border-radius:999px;font-size:12px;font-weight:750;padding:6px 10px;margin-bottom:12px}
#tab-goals .sg-status-good{color:#2e7745;background:#e3f1e5}
#tab-goals .sg-status-warn{color:#8a611d;background:#fff0cd}
#tab-goals .sg-result-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#tab-goals .sg-result-grid>div{padding:13px 10px;border-radius:13px;background:#eef5ef;display:flex;flex-direction:column;gap:8px;min-width:0}
#tab-goals .sg-result-grid small{font-size:9px;font-weight:750;color:#50705a;line-height:1.2}
#tab-goals .sg-result-grid strong{font-size:20px;color:#1a4029;overflow-wrap:anywhere}
#tab-goals .sg-payday-chart-label{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:18px 0 10px}
#tab-goals .sg-payday-chart-label strong{font-size:14px}
#tab-goals .sg-payday-chart-label small{font-size:10px;color:#6a7c70;text-align:right}
#tab-goals .sg-payday-chart{display:flex;align-items:flex-end;gap:12px;overflow-x:auto;min-height:168px;padding:10px 2px 14px;overscroll-behavior-x:contain}
#tab-goals .sg-payday-bar{flex:0 0 60px;display:flex;flex-direction:column;align-items:center;gap:4px}
#tab-goals .sg-bar-area{height:107px;width:33px;background:#e3ebe3;border-radius:7px;overflow:hidden;display:flex;align-items:flex-end}
#tab-goals .sg-bar-area span{display:block;width:100%;background:#40895b;min-height:2px;border-radius:7px 7px 0 0}
#tab-goals .sg-payday-bar small{font-size:10px;color:#63766a}
#tab-goals .sg-payday-bar b{font-size:10px;color:#315841}
#tab-goals .sg-suggested-list{margin-top:5px;border-top:1px solid #e4eae3;padding-top:14px}
#tab-goals .sg-suggested-list>strong{font-size:14px;color:#283c2e}
#tab-goals .sg-suggested-list>div{display:grid;grid-template-columns:1fr auto auto;gap:8px;margin-top:10px;align-items:center;font-size:12px}
#tab-goals .sg-suggested-list>div strong{color:#236b3c}
#tab-goals .sg-suggested-list>div small{color:#78867a;font-size:10px;text-align:right}
#tab-goals .sg-disclaimer{font-size:11px;color:#718174;line-height:1.45;margin:17px 0 0}
#tab-goals .sg-percent-note{font-size:12px;margin-top:13px}
#tab-goals .sg-record-actions{display:flex;justify-content:space-between;margin-top:14px}
#tab-goals .sg-text-btn{font-size:12px;font-weight:700;border:0;background:none;color:#368450;padding:8px}
#tab-goals .sg-danger-link{color:#a43b3b}
@media(max-width:365px){#tab-goals .sg-section{padding:12px}#tab-goals .sg-two-fields{gap:7px}#tab-goals .sg-field{font-size:13px;padding:9px 7px}}

/* v149 — Prevent the Record Savings button from touching the input row. */
#tab-goals #sg-contribute-section > .sg-primary-btn {margin-top: 16px;}
