/* v91 Paycheck / Spending ONLY. All other approved screens retain their existing CSS. */
body:has(#app:not([hidden]) .budget-screen.active){background:#fefcf5;}
#app:has(.budget-screen.active){min-height:100dvh;background:#fefcf5 url('/settle-auth-bg-v67.png') center center/cover no-repeat;color:#111512;}
#app:has(.budget-screen.active) .app-header{align-items:center;color:#111512;padding:8px 10px 18px;}
#app:has(.budget-screen.active) .app-header h1{color:#111512;font-family:Georgia,serif;font-size:27px;line-height:1;font-weight:600;letter-spacing:-.02em;}
#app:has(.budget-screen.active) .app-header .text-link{width:42px;height:42px;display:grid;place-items:center;padding:0;font-size:0;border:1px solid rgba(35,67,50,.10);border-radius:50%;background:#f8f5ee;color:#202522;box-shadow:0 8px 22px rgba(35,70,51,.10);}
#app:has(.budget-screen.active) .app-header .text-link::before{content:"";width:10px;height:10px;position:relative;left:3px;top:7px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);}
#app:has(.budget-screen.active) .app-header>span{width:42px;height:42px;}
#app .budget-screen.active{padding:0 0 calc(114px + env(safe-area-inset-bottom,0px));color:#111512;max-width:390px;margin:auto;}
.budget-screen .budget-subtitle{color:#657569;font-size:13px;font-weight:500;line-height:1.5;margin:0 3px 16px;}
.budget-screen .budget-card{padding:19px 15px;margin-bottom:15px;border-radius:21px;border:1px solid rgba(35,67,50,.10);background:#fffdf8;box-shadow:0 8px 20px rgba(35,70,51,.07);}
.budget-screen .budget-kicker{color:#718b79;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:7px;}
.budget-screen h2{font-family:Georgia,serif;font-size:22px;line-height:1.17;font-weight:600;color:#18241b;}
.budget-screen h3{font-size:16px;color:#18241b;margin-bottom:12px;}
.budget-screen label:not(.budget-checkbox){display:block;font-size:12px;font-weight:750;color:#40895b;margin:12px 0 7px;}
.budget-screen .budget-input,.budget-screen .budget-select{display:block;width:100%;min-width:0;height:47px;border:1px solid #d4ded3;border-radius:13px;background:#f9fbf6;color:#18221c;font-size:16px;padding:0 11px;outline:0;-webkit-appearance:none;appearance:none;}
.budget-screen .budget-input:focus,.budget-screen .budget-select:focus{border-color:#40895b;box-shadow:0 0 0 3px rgba(13,139,86,.09);}
.budget-screen .budget-select{appearance:auto;padding-right:5px;font-size:13px;}
.budget-screen .budget-large-input{height:58px;font-family:Georgia,serif;font-size:30px;letter-spacing:-.02em;}
.budget-screen .budget-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.budget-screen input[type="date"]{font-size:13px;padding:0 8px;color-scheme:light;}
.budget-screen .budget-checkbox{display:flex;gap:8px;align-items:center;color:#5d6c60;font-size:12px;line-height:1.4;margin:17px 0 12px;}
.budget-screen .budget-checkbox input{width:16px;height:16px;accent-color:#40895b;flex:none;}
.budget-screen .budget-split-bar{display:flex;width:100%;height:12px;overflow:hidden;border-radius:20px;background:#93ad9c;margin:13px 0 16px;}
.budget-screen .budget-split-bar span{display:block;min-width:0;}
.budget-screen .budget-split-bar span:first-child{background:#40895b;}
.budget-screen .budget-split-bar span:nth-child(2){background:#cba34d;}
.budget-screen .budget-split-bar span:last-child{background:#93ad9c;}
.budget-screen .budget-amount-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #e4eae0;font-size:13px;color:#40895b;}
.budget-screen .budget-amount-line strong{color:#17221a;font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap;}
.budget-screen .budget-amount-total{font-weight:750;color:#17221a;border-bottom:0;}
.budget-screen .budget-amount-total strong{font-size:20px;color:#40895b;}
.budget-screen .budget-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px;}
.budget-screen .budget-section-title h2{margin:0;}
.budget-screen .budget-link{border:0;background:transparent;color:#40895b;font-weight:750;font-size:12px;white-space:nowrap;padding:9px 0;cursor:pointer;}
.budget-screen .budget-footnote{color:#738378;font-size:12px;line-height:1.55;margin:0 0 12px;}
.budget-screen .budget-reserve-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #e9eee7;padding:13px 0;}
.budget-screen .budget-reserve-row>div{min-width:0;flex:1;}
.budget-screen .budget-reserve-row strong{display:block;color:#1c2a21;font-size:13px;line-height:1.25;overflow-wrap:anywhere;}
.budget-screen .budget-reserve-row small{display:block;margin-top:4px;color:#738078;font-size:11px;line-height:1.35;}
.budget-screen .budget-reserve-input-wrap{display:flex!important;align-items:center;flex:0 0 101px;margin:0!important;height:43px;border:1px solid #d5dfd5;border-radius:12px;background:#f9fbf6;color:#40895b;font-size:14px;padding:0 8px;}
.budget-screen .budget-reserve-input-wrap input{width:100%;min-width:0;border:0;background:transparent;font-size:15px;color:#18231c;outline:0;padding-left:3px;font-variant-numeric:tabular-nums;}
.budget-screen .budget-available{background:#e8f5ed;border:1px solid #cfe6d7;border-radius:15px;padding:13px 15px;margin:14px 0;display:flex;justify-content:space-between;align-items:center;gap:10px;}
.budget-screen .budget-available small{color:#40895b;font-size:10px;font-weight:800;letter-spacing:.05em;}
.budget-screen .budget-available strong{color:#40895b;font-family:Georgia,serif;font-size:22px;white-space:nowrap;font-variant-numeric:tabular-nums;}
.budget-screen .budget-main-btn,.budget-screen .budget-light-btn{width:100%;min-height:47px;margin-top:13px;border-radius:13px;border:0;background:#40895b;color:white;font-size:14px;font-weight:750;cursor:pointer;}
.budget-screen .budget-light-btn{background:#edf4ee;color:#40895b;}
.budget-screen .budget-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.budget-screen .budget-form-actions button{min-width:0;}
.budget-screen .budget-error,.budget-screen .budget-warning{padding:11px 12px;margin:12px 0 0;border-radius:12px;background:#fff0e9;color:#a13332;font-size:12px;line-height:1.45;}
.budget-screen .budget-error[hidden]{display:none;}
.budget-screen .budget-history-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 1px;border-bottom:1px solid #e7ebe4;}
.budget-screen .budget-history-row:last-child{border-bottom:0;}
.budget-screen .budget-history-row>div{min-width:0;}
.budget-screen .budget-history-row>div:last-child{text-align:right;flex-shrink:0;}
.budget-screen .budget-history-row strong{color:#15241a;font-size:13px;display:block;overflow-wrap:anywhere;}
.budget-screen .budget-history-row small{color:#78867a;font-size:11px;line-height:1.4;display:block;margin-top:5px;}
.budget-screen .budget-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0;}
.budget-screen .budget-overview-grid>div{background:#edf4ed;border-radius:14px;padding:14px 10px;}
.budget-screen .budget-overview-grid small{display:block;color:#697a6b;font-size:11px;margin-bottom:7px;}
.budget-screen .budget-overview-grid strong{display:block;color:#152b1d;font-family:Georgia,serif;font-size:24px;white-space:nowrap;letter-spacing:-.04em;}
.budget-screen .budget-period{width:auto;min-width:100px;max-width:120px;height:39px;}
.budget-screen .budget-progress{height:7px;border-radius:999px;overflow:hidden;background:#e6ede5;margin:10px 0 3px;}
.budget-screen .budget-progress span{height:100%;display:block;background:#40895b;border-radius:999px;}
.budget-screen .budget-category-row{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #e8ede8;}
.budget-screen .budget-category-row:last-child{border-bottom:0;}
.budget-screen .budget-category-icon{flex:none;width:35px;height:35px;border-radius:11px;background:#e7f3e9;color:#40895b;display:grid;place-items:center;font-size:18px;}
.budget-screen .budget-category-main{flex:1;min-width:0;}
.budget-screen .budget-category-head{display:flex;justify-content:space-between;gap:6px;font-size:12px;}
.budget-screen .budget-category-head strong:last-child{white-space:nowrap;}
.budget-screen .budget-category-main small{display:block;color:#78847a;font-size:10.5px;margin-top:5px;line-height:1.4;}
.budget-screen .budget-edit-small{border:1px solid #d6e7d9;border-radius:9px;padding:7px;font-size:10.5px;font-weight:700;color:#40895b;background:#f5faf4;}
.budget-screen .budget-subform{padding:15px;margin-top:16px;border:1px solid #d8e7db;border-radius:15px;background:#f4f8f1;}
.budget-screen .budget-subform[hidden]{display:none;}
.budget-screen .budget-expense-actions>div{display:flex;gap:5px;justify-content:flex-end;margin-top:5px;}
.budget-screen .budget-expense-actions button{background:transparent;border:0;color:#40895b;padding:5px 3px;font-size:11px;font-weight:700;}
.budget-screen .budget-expense-actions button:last-child{color:#b63841;}
@media(max-width:380px){.budget-screen .budget-card{padding:15px 12px;}.budget-screen .budget-available strong{font-size:20px;}.budget-screen .budget-overview-grid strong{font-size:22px;}}

/* v93: compact customizable paycheck reserves; no other budget cards altered. */
.budget-screen .budget-reserve-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:11px;color:#657569;border-bottom:1px solid #e9eee7;padding-bottom:7px}
.budget-screen .budget-reserve-controls span{flex:1;min-width:90px;font-weight:700}
.budget-screen .budget-reserve-row{gap:9px;padding:10px 0}
.budget-screen .budget-reserve-toggle{display:flex!important;align-items:center;gap:9px;flex:1;min-width:0;margin:0!important;cursor:pointer}
.budget-screen .budget-reserve-toggle input{width:19px;height:19px;flex:none;accent-color:#40895b}
.budget-screen .budget-reserve-description{min-width:0;flex:1}
.budget-screen .budget-reserve-excluded{opacity:.55}
.budget-screen .budget-reserve-input-wrap{flex-basis:95px}
/* v93: vertically center native date controls without affecting other form fields. */
.budget-screen input[type="date"].budget-input{display:flex;align-items:center;line-height:normal;padding-block:0;text-align:center;min-height:47px}
.budget-screen input[type="date"].budget-input::-webkit-date-and-time-value{text-align:center;min-height:1em;line-height:normal}
.budget-screen input[type="date"].budget-input::-webkit-datetime-edit{display:inline-flex;align-items:center;justify-content:center;min-height:47px;padding:0}
.budget-screen input[type="date"].budget-input::-webkit-calendar-picker-indicator{margin-left:auto}

/* v94: Category modal and icon grid, isolated from existing page cards. */
body.budget-modal-open{overflow:hidden}
.budget-modal-overlay{position:fixed;inset:0;z-index:30000;background:rgba(10,25,17,.52);display:flex;align-items:center;justify-content:center;padding:18px;overscroll-behavior:contain}
.budget-modal-overlay[hidden]{display:none!important}
.budget-modal-overlay .budget-modal-panel{position:relative;overflow-y:auto;max-height:calc(100dvh - 65px);width:min(100%,420px);margin:0;padding:22px;background:#fffdf8;border-radius:21px;box-shadow:0 22px 70px rgba(0,0,0,.24);-webkit-overflow-scrolling:touch}
.budget-modal-overlay .budget-modal-close{position:absolute;right:12px;top:9px;border:0;background:#edf4ee;border-radius:50%;width:34px;height:34px;font-size:26px;color:#40895b}
.budget-icon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.budget-icon-choice{min-height:65px;border:1px solid #d6e4d8;border-radius:12px;background:#f7faf5;color:#22392b;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}
.budget-icon-choice span{font-size:23px}.budget-icon-choice small{font-size:10px}
.budget-icon-choice.selected{border:2px solid #40895b;background:#e5f5e9}
.debt-tracker{margin:25px 0 110px;padding:15px;background:#fffdf8;border-radius:20px;color:#1b2a21}
.debt-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.debt-head h2{font-family:Georgia,serif;font-size:25px}
.debt-head button,.debt-actions button{border:1px solid #cfe2d3;background:#e9f5eb;color:#40895b;border-radius:10px;padding:9px 11px;font-weight:700}
.debt-tracker>p{color:#6b7c70;font-size:12px;margin:8px 0 14px}
.debt-item{border:1px solid #e1e8df;border-radius:14px;padding:13px;margin:10px 0}
.debt-item-title{display:flex;justify-content:space-between;gap:10px;align-items:center}
.debt-item-title strong{font-size:15px}.debt-item-title span{font-size:11px;color:#66786a;text-align:right}
.debt-metrics{display:flex;gap:8px;flex-wrap:wrap;font-size:11px;margin-top:10px;color:#68776d}
.debt-metrics strong{color:#40895b}.debt-actions{display:flex;gap:8px;margin-top:10px}
.debt-item details{font-size:12px;margin-top:12px}.debt-history{padding:9px 0;border-bottom:1px solid #e7ebe6}
.debt-history button{float:right;border:0;background:transparent;color:#b33d46}
.debt-editor label{display:block;margin-top:13px;font-size:12px;font-weight:700}
.debt-editor .budget-input,.debt-editor .budget-select{width:100%;height:45px;border:1px solid #d4ded3;border-radius:12px;padding:0 11px;background:#f9fbf6}
.debt-editor .budget-main-btn,.debt-editor .budget-light-btn{width:100%;min-height:45px;margin-top:12px;border:0;border-radius:12px;background:#40895b;color:white;font-weight:700}
.debt-editor .budget-light-btn{background:#edf4ee;color:#40895b}
.debt-editor .budget-error{padding:10px;color:#b33d46}

/* v98: Spending editor alone scrolls; keep v96 navigation and page layout unchanged. */
body.budget-modal-open{overflow:hidden!important;touch-action:none}
body.budget-modal-open #sp-custom-form{touch-action:auto;overscroll-behavior:contain}
#sp-custom-form .budget-modal-panel{overflow-y:auto;-webkit-overflow-scrolling:touch;touch-action:pan-y;max-height:calc(100dvh - 40px);overscroll-behavior:contain}
#sp-custom-form .budget-icon-choice{min-width:0}
#sp-custom-form .budget-icon-choice small{overflow-wrap:anywhere;text-align:center;font-size:10px}

/* v99: preserve v97 editor styles after portal placement outside scrollable page */
#sp-custom-form h3{font-size:16px;color:#18241b;margin-bottom:12px;}
#sp-custom-form label:not(.budget-checkbox){display:block;font-size:12px;font-weight:750;color:#40895b;margin:12px 0 7px;}
#sp-custom-form .budget-input,#sp-custom-form .budget-select{display:block;width:100%;min-width:0;height:47px;border:1px solid #d4ded3;border-radius:13px;background:#f9fbf6;color:#18221c;font-size:16px;padding:0 11px;outline:0;-webkit-appearance:none;appearance:none;}
#sp-custom-form .budget-input:focus,#sp-custom-form .budget-select:focus{border-color:#40895b;box-shadow:0 0 0 3px rgba(13,139,86,.09);}
#sp-custom-form .budget-main-btn,#sp-custom-form .budget-light-btn{width:100%;min-height:47px;margin-top:13px;border-radius:13px;border:0;background:#40895b;color:white;font-size:14px;font-weight:750;cursor:pointer;}
#sp-custom-form .budget-light-btn{background:#edf4ee;color:#40895b;}
#sp-custom-form .budget-form-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
#sp-custom-form .budget-form-actions button{min-width:0;}
#sp-custom-form .budget-error,#sp-custom-form .budget-warning{padding:11px 12px;margin:12px 0 0;border-radius:12px;background:#fff0e9;color:#a13332;font-size:12px;line-height:1.45;}
#sp-custom-form .budget-error[hidden]{display:none;}
#sp-custom-form .budget-subform{padding:15px;margin-top:16px;border:1px solid #d8e7db;border-radius:15px;background:#f4f8f1;}
#sp-custom-form .budget-subform[hidden]{display:none;}
#sp-custom-form input[type="date"].budget-input{display:flex;align-items:center;line-height:normal;padding-block:0;text-align:center;min-height:47px}
#sp-custom-form input[type="date"].budget-input::-webkit-date-and-time-value{text-align:center;min-height:1em;line-height:normal}
#sp-custom-form input[type="date"].budget-input::-webkit-datetime-edit{display:inline-flex;align-items:center;justify-content:center;min-height:47px;padding:0}
#sp-custom-form input[type="date"].budget-input::-webkit-calendar-picker-indicator{margin-left:auto}
#sp-custom-form .budget-modal-panel{box-sizing:border-box;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;max-height:min(85dvh,900px);max-width:420px}
#sp-custom-form .budget-input{box-sizing:border-box;width:100%;min-height:46px}
#sp-custom-form .budget-form-actions{display:flex;gap:10px}
#sp-custom-form .budget-form-actions button{flex:1;min-width:0}
#sp-custom-form .budget-icon-choice small{overflow-wrap:break-word;word-break:normal;font-size:9px;line-height:1.15}
#sp-custom-form .budget-icon-choice{overflow:hidden}

/* v101: category deletion action, scoped to the existing Spending editor. */
#sp-custom-form .budget-delete-category{display:block;width:100%;min-height:45px;margin-top:12px;border:1px solid #dfb5b5;border-radius:13px;background:#fff6f5;color:#a52e35;font-size:14px;font-weight:750;cursor:pointer}
#sp-custom-form .budget-delete-category[hidden]{display:none}

/* v124: Paycheck/Spending circular breakdown and Savings Goal only. */
.budget-screen .budget-donut-layout{display:flex;align-items:center;gap:15px;margin:15px 0;min-width:0}
.budget-screen .budget-donut{width:142px;height:142px;flex:none;border-radius:50%;display:grid;place-items:center}
.budget-screen .budget-donut-hole{width:105px;height:105px;border-radius:50%;background:#fffdf8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;text-align:center;padding:5px}
.budget-screen .budget-donut-hole small{font-size:10px;color:#687a6d}
.budget-screen .budget-donut-hole strong{font-size:17px;color:#172a1d;line-height:1.1;overflow-wrap:anywhere}
.budget-screen .budget-donut-legend{flex:1;min-width:0;display:grid;gap:9px}
.budget-screen .budget-donut-item{display:grid;grid-template-columns:9px minmax(0,1fr);align-items:center;gap:3px 7px;font-size:11px;color:#53685b}
.budget-screen .budget-donut-item i{width:9px;height:9px;border-radius:50%;grid-row:span 2}
.budget-screen .budget-donut-item span{overflow-wrap:anywhere}
.budget-screen .budget-donut-item strong{grid-column:2;color:#172a1d;font-size:12px}
.budget-screen .budget-chart-title{font-size:14px;margin:18px 0 0;color:#172a1d}
.budget-screen .budget-goal-trigger{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.budget-goal-panel h3{margin:0 30px 12px 0;color:#172a1d}
.budget-goal-panel .budget-goal-heading{font-size:13px;font-weight:750;color:#172a1d;margin:17px 0 9px}
.budget-goal-panel .budget-goal-cut{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;color:#354b3b;font-size:13px}
.budget-goal-panel .budget-goal-cut input{width:100px;flex:none}
.budget-goal-panel .budget-available{margin-top:15px}
.budget-screen .budget-category-main[role="button"]{cursor:pointer}
.budget-screen .budget-category-detail{margin-top:12px;padding:12px;background:#f5f8f1;border-radius:14px}
.budget-screen .budget-category-detail[hidden]{display:none}
@media(max-width:375px){.budget-screen .budget-donut{width:118px;height:118px}.budget-screen .budget-donut-hole{width:86px;height:86px}.budget-screen .budget-donut-hole strong{font-size:14px}}

/* v124 goal popup controls scoped to new popup only */
#pc-goal-modal .budget-input{display:block;width:100%;min-height:44px;background:#f9fbf6;border:1px solid #d5dfd5;border-radius:12px;padding:10px;color:#172a1d;font-size:15px}
#pc-goal-modal label{color:#354b3b;font-size:13px}
#pc-goal-modal .budget-light-btn{display:block;width:100%;min-height:46px;margin-top:12px;background:#edf4ee;color:#315f4a;border:0;border-radius:12px;font-weight:750}
#pc-goal-modal .budget-amount-line{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e4eae0;color:#526758;font-size:12px}
#pc-goal-modal .budget-amount-line strong{color:#172a1d;font-size:14px}
#pc-goal-modal .budget-available{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#e8f5ed;border-radius:12px;padding:13px;margin:12px 0}
#pc-goal-modal .budget-available small{font-size:10px;color:#315f4a;font-weight:750}
#pc-goal-modal .budget-available strong{color:#315f4a;font-size:20px}
#pc-goal-modal .budget-footnote{font-size:12px;color:#738378;line-height:1.5}

/* v125 — isolated Paycheck review screen and goal form mobile-fit */
.budget-review-screen{position:fixed;inset:0;z-index:30010;background:#fffdf8;color:#172a1d;display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
.budget-review-screen[hidden]{display:none!important}
.budget-review-head{display:flex;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid #e4eae0;flex:none}
.budget-review-head h2{margin:0;font-size:24px;color:#172a1d}
.budget-review-back{border:1px solid #dce5dc;background:#fffdf8;border-radius:50%;width:44px;height:44px;font-size:33px;line-height:1;color:#172a1d;flex:none}
.budget-review-body{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:12px 20px 25px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.budget-review-footer{flex:none;padding:10px 20px 14px;border-top:1px solid #e4eae0;background:#fffdf8}
.budget-review-footer .budget-main-btn{width:100%}
.budget-review-screen .budget-reserve-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;color:#657569;border-bottom:1px solid #e9eee7;padding:12px 0}
.budget-review-screen .budget-reserve-controls span{flex:1 1 100%;font-weight:700}
.budget-review-screen .budget-reserve-row{display:flex;align-items:center;gap:9px;padding:14px 0;border-bottom:1px solid #e9eee7;min-width:0}
.budget-review-screen .budget-reserve-toggle{display:flex;align-items:center;gap:9px;flex:1;min-width:0;margin:0!important}
.budget-review-screen .budget-reserve-toggle input{width:19px;height:19px;flex:none;accent-color:#40895b}
.budget-review-screen .budget-reserve-description{min-width:0;flex:1}
.budget-review-screen .budget-reserve-description strong{display:block;font-size:13px;color:#172a1d;overflow-wrap:anywhere}
.budget-review-screen .budget-reserve-description small{display:block;margin-top:4px;font-size:11px;color:#718078;overflow-wrap:anywhere}
.budget-review-screen .budget-reserve-input-wrap{display:flex;align-items:center;flex:0 0 96px;min-width:0;border:1px solid #d5dfd5;border-radius:12px;background:#f9fbf6;padding:9px;color:#40895b;margin:0!important}
.budget-review-screen .budget-reserve-input-wrap input{width:100%;min-width:0;border:0;background:transparent;font-size:15px;color:#172a1d;outline:0}
.budget-review-screen .budget-reserve-excluded{opacity:.55}
.budget-review-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%}
.budget-review-trigger span:first-child{min-width:0;overflow-wrap:anywhere}
.budget-review-trigger small{display:block;font-size:12px;font-weight:500;margin-top:4px;color:#607869}
.budget-review-trigger span:last-child{flex:none;font-size:24px}
#pc-goal-modal .budget-modal-panel{box-sizing:border-box;max-width:calc(100vw - 32px);overflow-x:hidden!important}
#pc-goal-modal .budget-goal-cut{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:14px 0;min-width:0}
#pc-goal-modal .budget-goal-cut span{display:block;overflow-wrap:anywhere}
#pc-goal-modal .budget-goal-cut input{box-sizing:border-box;display:block;width:100%;max-width:100%;flex:none;min-width:0}
#pc-goal-modal .budget-goal-trigger{min-width:0}
.budget-screen .budget-goal-trigger{gap:12px;padding-left:14px;padding-right:14px;min-width:0;text-align:left;font-size:clamp(13px,3.5vw,16px);line-height:1.25}
.budget-screen .budget-goal-trigger span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.budget-screen .budget-goal-trigger span:last-child{flex:none;font-size:23px}
.budget-empty-help{margin-top:12px;padding:14px;background:#f0f6ef;border-radius:14px;color:#536a5a;font-size:13px;line-height:1.45}
.budget-empty-help[hidden]{display:none!important}
.budget-empty-help .budget-main-btn{width:100%;margin-top:10px}

/* v126: Review Bills trigger alignment only; no other navigation or controls. */
.budget-screen .budget-review-trigger{box-sizing:border-box;padding:14px 18px!important;gap:16px;min-width:0;max-width:100%;}
.budget-screen .budget-review-trigger>span:first-child{display:block;flex:1 1 auto;min-width:0;line-height:1.3;text-align:left;}
.budget-screen .budget-review-trigger>span:last-child{display:flex;align-items:center;justify-content:center;flex:0 0 18px;margin-left:auto;font-size:25px;line-height:1;}

/* v127: Review Bills trigger uses a dedicated, stable two-column layout. */
.budget-screen button.budget-review-trigger{display:grid!important;grid-template-columns:minmax(0,1fr) 20px;align-items:center;column-gap:16px;padding:16px 20px!important;text-align:left;width:100%;box-sizing:border-box;}
.budget-screen button.budget-review-trigger>span:first-child{min-width:0;max-width:100%;font-size:16px;line-height:1.25;overflow-wrap:normal;}
.budget-screen button.budget-review-trigger>span:first-child small{font-size:12px;line-height:1.35;margin-top:5px;white-space:normal;}
.budget-screen button.budget-review-trigger>span:last-child{margin:0!important;width:20px;justify-self:center;text-align:center;line-height:1;font-size:26px;}

/* v150 — Paycheck bill selection only; no shared Bills/Spending selectors changed. */
#tab-paycheck .pc-pay-group-title{font-size:11px;font-weight:800;letter-spacing:.025em;color:#5d7967;margin:17px 0 5px}
#tab-paycheck .pc-pay-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:13px 10px;border:1px solid #e4ebe3;border-radius:13px;margin:7px 0;background:#fffdf8;min-width:0;flex-wrap:wrap}
#tab-paycheck .pc-pay-selected{background:#e6f5e9;border-color:#75b18a;box-shadow:inset 3px 0 #40895b}
#tab-paycheck .pc-pay-disabled{opacity:.65}
#tab-paycheck .pc-pay-choice{display:flex!important;align-items:center;gap:10px;flex:1 1 145px;min-width:0;margin:0!important;color:#1a291e;cursor:pointer}
#tab-paycheck .pc-pay-choice input{width:22px;height:22px;flex:none;accent-color:#40895b}
#tab-paycheck .pc-pay-desc{min-width:0}
#tab-paycheck .pc-pay-desc strong{display:block;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
#tab-paycheck .pc-pay-desc small{display:block;font-size:11px;line-height:1.5;color:#677e6d}
#tab-paycheck .pc-pay-amount{white-space:nowrap;color:#1d3425;font-variant-numeric:tabular-nums;font-size:14px}
#tab-paycheck .pc-pay-variable{display:flex!important;align-items:center;gap:4px;margin:0!important;color:#40895b;font-size:10px;max-width:148px;white-space:nowrap}
#tab-paycheck .pc-pay-variable input{min-width:0;width:92px;max-width:92px;height:38px;border:1px solid #c7d8c9;border-radius:10px;background:#fbfdf9;padding:0 7px;color:#18231c;font-size:14px}
#tab-paycheck .pc-pay-variable input:disabled{color:#657a69;background:#eaf1e7}

/* v152 — Paycheck and Spending: approved two-screen reference, Settle light styling.
   Only the already dedicated budget screens are changed. Financial calculations and
   the fixed bottom navigation remain governed by their existing code. */
#tab-paycheck.settle151,#tab-spend.settle151 {
  max-width:440px;box-sizing:border-box;
  padding:0 5px calc(125px + env(safe-area-inset-bottom,0px));
}
#tab-paycheck.settle151 .budget-card,#tab-spend.settle151 .budget-card {
  background:#fffdf8;border:1px solid #e0e6dc;border-radius:20px;
  box-shadow:0 5px 16px rgba(29,54,39,.05);margin:0 0 10px;padding:13px;
}
#tab-paycheck.settle151 h2,#tab-spend.settle151 h2 {
  font:750 17px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:#152019;margin:0;text-transform:none;letter-spacing:-.025em;
}
#tab-paycheck.settle151 label:not(.budget-checkbox),#tab-spend.settle151 label:not(.budget-checkbox) {
  text-transform:none;letter-spacing:normal;
}
#tab-paycheck.settle151 .budget-footnote,#tab-spend.settle151 .budget-footnote {
  color:#697a6d;font-size:11.5px;line-height:1.42;margin:4px 0 10px;
}
#tab-paycheck.settle151 .v152-icon,#tab-spend.settle151 .v152-icon {
  display:block;width:26px;height:26px;max-width:90%;max-height:90%;stroke:currentColor;flex:none;
}
#tab-paycheck.settle151 .pc151-check-card {padding:13px 14px;}
#tab-paycheck.settle151 .pc151-field-icon{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;align-items:center;}
#tab-paycheck.settle151 .pc151-field-icon>span,
#tab-spend.settle151 .sp151-icon,
#tab-paycheck.settle151 .pc151-symbol {
  display:grid;place-items:center;background:#e8f2e9;color:#236d44;
  border-radius:14px;width:53px;height:57px;
}
#tab-paycheck.settle151 .pc151-field-icon>span .v152-icon {width:29px;height:29px;}
#tab-paycheck.settle151 .pc151-field-icon label {
  display:block;font-size:14px;color:#18241b;margin:0 0 6px;
  font-weight:750;line-height:1.25;
}
#tab-paycheck.settle151 #pc-amount {
  height:50px;background:#fff;border-color:#d6ddd4;color:#131d15;
  font-family:Georgia,serif;font-size:27px;border-radius:12px;
}
#tab-paycheck.settle151 .pc151-alloc-card {padding:10px 15px 11px;}
#tab-paycheck.settle151 .pc151-percent-line {
  display:flex;gap:11px;align-items:center;min-height:54px;border-bottom:1px solid #edf0ea;
}
#tab-paycheck.settle151 .pc151-symbol {
  height:41px;width:41px;border-radius:11px;flex:none;background:#f0f6f0;
}
#tab-paycheck.settle151 .pc151-symbol .v152-icon {width:24px;height:24px;}
#tab-paycheck.settle151 .pc151-percent-line label {
  margin:0!important;color:#19251b!important;font-weight:600;font-size:14px;
  flex:1;min-width:0;display:flex!important;align-items:baseline;gap:3px;
}
#tab-paycheck.settle151 .pc151-percent-line label span{white-space:nowrap;color:#415349;}
#tab-paycheck.settle151 .pc151-percent-line input {
  width:30px;border:0;border-bottom:1px dotted #9dae9c;text-align:center;
  font-size:13px;background:transparent;color:#24342a;padding:0;-moz-appearance:textfield;
}
#tab-paycheck.settle151 .pc151-percent-line input::-webkit-outer-spin-button,
#tab-paycheck.settle151 .pc151-percent-line input::-webkit-inner-spin-button{-webkit-appearance:none;}
#tab-paycheck.settle151 .pc151-percent-line>strong {font-size:15px;white-space:nowrap;color:#17251c;}
#tab-paycheck.settle151 .pc151-available-line {
  display:flex;align-items:center;justify-content:space-between;
  gap:8px;padding-top:11px;font-size:13px;font-weight:750;color:#17231a;
}
#tab-paycheck.settle151 .pc151-available-line strong {font-size:20px;white-space:nowrap;color:#26784a;}
#tab-paycheck.settle151 .pc151-remember {font-size:11px;margin:10px 0;}
#tab-paycheck.settle151 .pc151-visually-hidden {position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden;}
#tab-paycheck.settle151 .pc151-bills-section {padding:10px 0 0;}
#tab-paycheck.settle151 .pc151-bills-section>h2 {padding:0 2px;font-size:17px;}
#tab-paycheck.settle151 .pc151-bills-section>.budget-footnote {padding:0 2px;}
#tab-paycheck.settle151 .pc-pay-row {
  min-width:0;min-height:69px;margin:6px 0;padding:11px 12px;gap:9px;
  border:1px solid #e5ebe4;border-radius:17px;background:#fffdf8;
  box-shadow:0 4px 14px rgba(45,64,48,.035);
}
#tab-paycheck.settle151 .pc-pay-row.pc-pay-selected {
  background:#ecf7ef;border-color:#7db68f;box-shadow:inset 3px 0 #40895b;
}
#tab-paycheck.settle151 .pc-pay-choice {display:flex!important;flex:1 1 155px;gap:11px;min-width:0;}
#tab-paycheck.settle151 .pc-pay-choice input {width:22px;height:22px;accent-color:#33875a;}
#tab-paycheck.settle151 .pc-pay-desc strong {font-size:13.5px;line-height:1.2;color:#111f16;margin-bottom:3px;}
#tab-paycheck.settle151 .pc-pay-desc small {font-size:10.5px;line-height:1.35;color:#728176;}
#tab-paycheck.settle151 .pc152-amount-wrap {display:flex;align-items:center;gap:6px;flex:none;}
#tab-paycheck.settle151 .pc152-chevron {font-size:22px;line-height:1;color:#819487;}
#tab-paycheck.settle151 .pc-pay-amount {font-size:15px;}
#tab-paycheck.settle151 .pc-pay-variable {max-width:125px;flex:0 1 125px;align-items:center!important;font-size:11px;}
#tab-paycheck.settle151 .pc-pay-variable input {width:81px;max-width:81px;height:37px;background:#f6faf4;font-size:13px;}
#tab-paycheck.settle151 .pc151-family-total {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:12px 0 9px;background:linear-gradient(120deg,#e9f5ed,#f3f7ee);
  padding:13px 16px;border-radius:17px;
}
#tab-paycheck.settle151 .pc151-family-total small {display:block;font-size:13px;font-weight:750;color:#1a2c20;margin-bottom:4px;}
#tab-paycheck.settle151 .pc151-family-total strong {color:#267b4d;font:bold 29px/1.12 Georgia,serif;}
#tab-paycheck.settle151 .pc151-family-icon .v152-icon {width:34px;height:34px;}
#tab-paycheck.settle151 .pc151-save {background:#318353;border-radius:17px;height:52px;font-size:15px;margin:8px 0;}
#tab-paycheck.settle151 .pc151-history,#tab-spend.settle151 .sp151-extras {
  margin:10px 0;padding:12px;border:1px solid #e5ebe4;border-radius:15px;
  background:#fffdf8;color:#4a6653;font-size:12px;
}
#tab-paycheck.settle151 .pc151-history summary,#tab-spend.settle151 .sp151-extras summary {cursor:pointer;font-weight:750;}
#tab-spend.settle151 .sp151-income-card {
  display:grid;grid-template-columns:53px minmax(0,1fr);gap:11px;
  align-items:center;background:#f2f8f1;padding:13px 15px;
}
#tab-spend.settle151 .sp151-icon {height:51px;width:51px;border-radius:14px;background:#eaf3e9;}
#tab-spend.settle151 .sp151-icon .v152-icon {height:27px;width:27px;}
#tab-spend.settle151 .sp151-income-card h2 {font-size:13.5px;}
#tab-spend.settle151 .sp151-income-card strong {display:block;color:#277e4e;font-size:29px;margin-top:3px;}
#tab-spend.settle151 .sp151-income-card p,#tab-spend.settle151 .sp151-kept p {font-size:11.5px;color:#748376;margin:3px 0 0;}
#tab-spend.settle151 .sp151-plan-card {padding:13px 15px;}
#tab-spend.settle151 .sp151-budget-line {
  display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:center;
  padding-bottom:12px;border-bottom:1px solid #eef1eb;
}
#tab-spend.settle151 .sp151-budget-line .sp151-icon,#tab-spend.settle151 .sp151-kept .sp151-icon {width:44px;height:44px;}
#tab-spend.settle151 .sp151-budget-line label {
  display:block;margin:0 0 7px;font-size:12.5px;font-weight:750;
  color:#18271c;line-height:1.35;
}
#tab-spend.settle151 #sp151-budget {height:49px;background:#fff;font-size:26px;font-family:Georgia,serif;}
#tab-spend.settle151 .sp151-kept {display:flex;gap:10px;align-items:center;margin-top:13px;}
#tab-spend.settle151 .sp151-kept h3 {margin:0 0 3px;font-size:13.5px;}
#tab-spend.settle151 .sp151-kept strong {color:#277e4e;font-size:22px;}
#tab-spend.settle151 .sp151-breakdown {padding:13px 3px 8px;}
#tab-spend.settle151 .sp151-breakdown-heading {display:flex;align-items:center;justify-content:space-between;gap:7px;}
#tab-spend.settle151 .sp151-breakdown-heading>button {
  border:1px solid #73a888;border-radius:11px;background:#fffdf8;
  color:#267647;font-size:11px;font-weight:750;padding:7px 9px;white-space:nowrap;
}
#tab-spend.settle151 .sp151-small {font-size:11px;color:#778679;margin:5px 0 9px;line-height:1.35;}
#tab-spend.settle151 .sp151-category-row {display:flex;align-items:center;gap:9px;margin:10px 0;min-width:0;}
#tab-spend.settle151 .sp151-category-icon {
  display:grid;place-items:center;flex:none;width:40px;height:40px;
  border-radius:12px;background:#eaf3e9;color:#216743;
}
#tab-spend.settle151 .sp151-category-icon .v152-icon {width:23px;height:23px;}
#tab-spend.settle151 .sp151-category-body {flex:1;min-width:0;}
#tab-spend.settle151 .sp151-category-info {
  display:grid;grid-template-columns:minmax(0,1fr) auto 36px;
  align-items:center;gap:6px;margin-bottom:6px;font-size:12px;
}
#tab-spend.settle151 .sp151-category-info>strong {overflow-wrap:anywhere;}
#tab-spend.settle151 .sp151-category-info b {font-size:12.5px;white-space:nowrap;}
#tab-spend.settle151 .sp151-category-info span {font-size:11px;color:#778579;text-align:right;}
#tab-spend.settle151 .sp151-category-row .budget-progress {height:8px;border-radius:12px;background:#e4e7e1;margin:5px 0;}
#tab-spend.settle151 .sp151-category-row .budget-progress span {background:#4f9670;border-radius:12px;}
#tab-spend.settle151 .sp151-pencil {
  display:grid;place-items:center;border:0;background:none;color:#1f4030;
  flex:none;width:28px;height:35px;padding:0;
}
#tab-spend.settle151 .sp151-pencil .v152-icon {width:19px;height:19px;}
#tab-spend.settle151 .sp151-spent-card {padding:13px 15px;}
#tab-spend.settle151 .sp151-spent-head {display:flex;justify-content:space-between;align-items:center;gap:7px;}
#tab-spend.settle151 .sp151-spent-head h2 {font-size:14px;display:flex;gap:8px;align-items:center;}
#tab-spend.settle151 .sp151-spent-head .v152-icon {color:#235e41;width:21px;height:21px;}
#tab-spend.settle151 .sp151-spent-head strong {font-size:17px;}
#tab-spend.settle151 .sp151-spent-card .budget-progress {height:9px;margin:10px 0 6px;}
#tab-spend.settle151 #sp151-progress-label {font-size:11px;color:#358254;margin:0 0 0 4px;}
#tab-spend.settle151 .sp151-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px;}
#tab-spend.settle151 .sp151-stats>div {
  min-width:0;background:#fffdf8;border:1px solid #e6ebe4;
  box-shadow:0 4px 11px rgba(34,53,39,.04);border-radius:13px;
  padding:11px 4px;text-align:center;
}
#tab-spend.settle151 .sp151-stats small {display:block;font-size:10.5px;color:#68786c;}
#tab-spend.settle151 .sp151-stats strong {display:block;color:#1c2b20;font-size:18px;margin-top:5px;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp151-stats>div:first-child strong {color:#2b8552;}
#tab-spend.settle151 .sp151-insights {background:#f2f5fb;padding:14px 15px;}
#tab-spend.settle151 .sp151-insights-head {display:flex;justify-content:space-between;align-items:center;gap:10px;}
#tab-spend.settle151 .sp151-insights-head h2 {font-size:14px;display:flex;gap:7px;align-items:center;}
#tab-spend.settle151 .sp151-insights-head .v152-icon {height:21px;width:21px;}
#tab-spend.settle151 .sp151-insights-head button {border:0;background:none;color:#287b50;font-size:11px;font-weight:750;}
#tab-spend.settle151 .sp151-insights ul {margin:9px 0 0;padding:0 0 0 16px;color:#4a5f73;font-size:11.5px;line-height:1.45;}
#tab-spend.settle151 .sp151-insights li {margin:4px 0;}
#tab-spend.settle151 .sp151-insights #sp151-insights-info {font-size:11px;color:#738397;}
#tab-spend.settle151 .sp151-purchase-card {margin-top:12px;}
@media (max-width:355px) {
  #tab-paycheck.settle151 .pc-pay-row {gap:6px;padding:9px 8px;}
  #tab-paycheck.settle151 .pc-pay-choice {flex-basis:145px;}
  #tab-paycheck.settle151 .pc-pay-variable {flex-basis:110px;}
  #tab-spend.settle151 .sp151-income-card {grid-template-columns:49px minmax(0,1fr);}
  #tab-spend.settle151 .sp151-icon {width:46px;height:46px;}
  #tab-spend.settle151 .sp151-category-icon {width:35px;height:35px;}
  #tab-spend.settle151 .sp151-category-info {grid-template-columns:minmax(0,1fr) auto 30px;}
}

/* v157 Paycheck history controls and optional Paid Bills list only. */
#tab-paycheck .pc-history-item{flex-wrap:wrap;}
#tab-paycheck .pc-history-actions{display:flex;gap:8px;align-items:center;flex-basis:100%;}
#tab-paycheck .pc-history-actions button{border:1px solid #d8e3d9;border-radius:10px;background:#fffdf8;color:#40895b;font:inherit;font-size:13px;font-weight:700;padding:8px 14px;}
#tab-paycheck .pc-history-actions button:nth-child(2){color:#a13b39;}
#tab-paycheck .pc-history-edit{flex-basis:100%;width:100%;}
#tab-paycheck .pc-history-edit[hidden],#tab-paycheck #pc-paid-bills[hidden]{display:none!important;}
#tab-paycheck .pc-history-edit label{display:block;color:#415349;font-size:12px;font-weight:650;margin:7px 0;}
#tab-paycheck .pc-history-edit input{display:block;width:100%;box-sizing:border-box;border:1px solid #d8e3d9;border-radius:10px;background:#fff;padding:9px;font:inherit;}
#tab-paycheck .pc-history-edit [data-pc-edit-error]{display:block;color:#a13b39;font-size:12px;}
#tab-paycheck #pc-paid-bills{margin:8px 0;padding:10px 12px;}
#tab-paycheck .pc-history-item>.pc-history-edit{flex:1 0 100%;min-width:0;text-align:left;}
#tab-paycheck .pc-history-item>.pc-history-actions{flex:1 0 100%;min-width:0;text-align:left;}
#tab-paycheck .pc-history-item>.pc-history-edit [data-pc-edit-error]:empty{display:none;}

/* v164: additive balance/optional debt room information; existing Spending cards unchanged. */
#tab-spend.settle151 .sp164-debt-room{display:flex;flex-direction:column;gap:7px;padding:15px 17px;}
#tab-spend.settle151 .sp164-line{display:flex;gap:12px;align-items:baseline;justify-content:space-between;color:#263b30;font-weight:700;}
#tab-spend.settle151 .sp164-line strong{font-size:23px;color:#277e4e;font-variant-numeric:tabular-nums;white-space:nowrap;}
#tab-spend.settle151 .sp164-safe{border-top:1px solid #dce5dc;padding-top:10px;}
#tab-spend.settle151 .sp164-debt-room small,#tab-spend.settle151 .sp164-debt-room p{color:#6b7d70;font-size:12px;margin:0;line-height:1.5;}
#tab-spend.settle151 .sp164-debt-room button{align-self:flex-start;border:1px solid #418a60;border-radius:11px;background:transparent;color:#287647;padding:9px 12px;font-weight:700;}

/* v170: Spending page redesign only. Other locked pages remain untouched. */
#tab-spend.settle151{padding:8px 6px calc(126px + env(safe-area-inset-bottom,0px));}
#tab-spend.settle151 .sp170-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:10px;padding:2px 4px 10px;}
#tab-spend.settle151 .sp170-header h1{margin:0;text-align:center;font:700 28px/1.05 Georgia,serif;color:#111512;letter-spacing:-.02em;}
#tab-spend.settle151 .sp170-header-btn{height:48px;width:48px;border-radius:24px;border:1px solid #d6ddd4;background:#fffdf8;color:#142117;display:grid;place-items:center;box-shadow:0 4px 12px rgba(34,53,39,.04);}
#tab-spend.settle151 .sp170-header-btn .v152-icon{width:22px;height:22px;}
#tab-spend.settle151 .sp170-live-pill{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 12px;padding:12px 16px;border-radius:999px;border:1px solid #d6e0d4;background:#f6faf5;color:#315642;font-size:12.5px;font-weight:700;}
#tab-spend.settle151 .sp170-live-pill .settle-live-status{white-space:normal;}
#tab-spend.settle151 .sp170-live-pill button{border:1px solid #8fb49a;background:#fffdf8;color:#2e774b;border-radius:999px;padding:7px 11px;font:inherit;font-size:11px;font-weight:700;}
#tab-spend.settle151 .sp170-summary-card{padding:14px 14px 12px;overflow:hidden;}
#tab-spend.settle151 .sp170-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border-bottom:1px solid #ebefea;padding-bottom:12px;margin-bottom:12px;}
#tab-spend.settle151 .sp170-summary-block{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px;align-items:center;padding:2px 8px 2px 4px;min-width:0;}
#tab-spend.settle151 .sp170-summary-block-right{border-left:1px solid #edf1eb;padding-left:16px;}
#tab-spend.settle151 .sp170-summary-icon,#tab-spend.settle151 .sp170-debt-icon,#tab-spend.settle151 .sp170-title-icon,#tab-spend.settle151 .sp170-row-icon{display:grid;place-items:center;background:#ecf5eb;color:#247648;border-radius:14px;flex:none;}
#tab-spend.settle151 .sp170-summary-icon{width:50px;height:50px;}
#tab-spend.settle151 .sp170-summary-icon .v152-icon,#tab-spend.settle151 .sp170-debt-icon .v152-icon,#tab-spend.settle151 .sp170-title-icon .v152-icon,#tab-spend.settle151 .sp170-row-icon .v152-icon{width:24px;height:24px;}
#tab-spend.settle151 .sp170-summary-block p{margin:0 0 2px;font-size:14px;font-weight:750;color:#111b14;}
#tab-spend.settle151 .sp170-summary-block strong{display:block;font:700 27px/1.02 Georgia,serif;color:#27814f;letter-spacing:-.02em;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp170-summary-block-right strong{color:#111512;}
#tab-spend.settle151 .sp170-summary-block small{display:block;margin-top:4px;font-size:11.5px;line-height:1.35;color:#758478;}
#tab-spend.settle151 .sp170-debt-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:16px;background:#f4f8f2;color:#132017;text-align:left;}
#tab-spend.settle151 .sp170-debt-icon{width:50px;height:50px;}
#tab-spend.settle151 .sp170-debt-copy strong{display:block;font-size:15px;line-height:1.2;}
#tab-spend.settle151 .sp170-debt-copy small{display:block;margin-top:4px;font-size:11.5px;line-height:1.35;color:#758478;}
#tab-spend.settle151 .sp170-debt-value-wrap{display:flex;align-items:center;gap:8px;justify-self:end;}
#tab-spend.settle151 #sp170-debt{font:700 25px/1 Georgia,serif;color:#27814f;white-space:nowrap;}
#tab-spend.settle151 .sp170-chevron{font-size:27px;line-height:1;color:#335d43;flex:none;}
#tab-spend.settle151 .sp170-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;}
#tab-spend.settle151 .sp170-title-wrap{display:flex;align-items:center;gap:12px;min-width:0;}
#tab-spend.settle151 .sp170-title-wrap h2,#tab-spend.settle151 .sp170-suggested-card>.sp170-section-head>h2{margin:0;font:700 24px/1.05 Georgia,serif;color:#111512;letter-spacing:-.02em;}
#tab-spend.settle151 .sp170-title-icon{width:48px;height:48px;border-radius:13px;}
#tab-spend.settle151 .sp170-period-btn,#tab-spend.settle151 .sp170-link-btn{border:0;background:none;color:#5f7a69;font-size:12px;font-weight:700;padding:0;white-space:nowrap;}
#tab-spend.settle151 .sp170-period-btn::after{content:'⌄';font-size:12px;margin-left:5px;}
#tab-spend.settle151 .sp170-history-btn{border:1px solid #2f8a56;border-radius:15px;background:#fffdf8;color:#2a804f;padding:8px 12px;font-size:12px;font-weight:800;white-space:nowrap;}
#tab-spend.settle151 .sp170-help{margin:0 0 10px;font-size:11.5px;line-height:1.38;color:#758478;}
#tab-spend.settle151 .sp170-list,#tab-spend.settle151 .sp170-advice-list,#tab-spend.settle151 .sp170-recent-list{display:flex;flex-direction:column;}
#tab-spend.settle151 .sp170-breakdown-row{display:grid;grid-template-columns:44px minmax(82px,1fr) minmax(100px,1.2fr) auto 34px;align-items:center;gap:10px;padding:7px 0;}
#tab-spend.settle151 .sp170-row-icon{width:40px;height:40px;border-radius:12px;}
#tab-spend.settle151 .sp170-row-name{font-size:12.8px;font-weight:700;color:#152019;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp170-row-bar,#tab-spend.settle151 .sp170-bar{height:11px;border-radius:999px;background:#e3e8e2;overflow:hidden;}
#tab-spend.settle151 .sp170-row-bar span,#tab-spend.settle151 .sp170-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#8fc1a0,#4a946a);}
#tab-spend.settle151 .sp170-row-amount{font-size:12.8px;color:#111512;white-space:nowrap;}
#tab-spend.settle151 .sp170-row-pct{font-size:12px;color:#728176;text-align:right;white-space:nowrap;}
#tab-spend.settle151 .sp170-save-row,#tab-spend.settle151 .sp170-recent-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 0;border-top:1px solid #eef1eb;}
#tab-spend.settle151 .sp170-save-row:first-child,#tab-spend.settle151 .sp170-recent-row:first-child{border-top:0;padding-top:2px;}
#tab-spend.settle151 .sp170-save-copy strong,#tab-spend.settle151 .sp170-recent-copy strong{display:block;font-size:13.2px;line-height:1.3;color:#111512;}
#tab-spend.settle151 .sp170-save-copy small,#tab-spend.settle151 .sp170-recent-copy small{display:block;margin-top:3px;font-size:11.5px;line-height:1.4;color:#728176;}
#tab-spend.settle151 .sp170-recent-row{width:100%;border-left:0;border-right:0;border-bottom:0;background:none;text-align:left;padding-left:0;padding-right:0;}
#tab-spend.settle151 .sp170-recent-value{display:flex;align-items:center;gap:9px;white-space:nowrap;}
#tab-spend.settle151 .sp170-recent-value strong{font-size:13.2px;color:#111512;}
#tab-spend.settle151 .sp170-plan-row{display:grid;grid-template-columns:44px minmax(0,1fr) 32px;align-items:center;gap:10px;padding:8px 0;}
#tab-spend.settle151 .sp170-plan-copy{min-width:0;}
#tab-spend.settle151 .sp170-plan-top{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:8px;margin-bottom:7px;font-size:12px;}
#tab-spend.settle151 .sp170-plan-top strong{font-size:13px;color:#152019;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp170-plan-top b{font-size:12.8px;color:#111512;white-space:nowrap;}
#tab-spend.settle151 .sp170-plan-top span{font-size:11.5px;color:#728176;text-align:right;}
#tab-spend.settle151 .sp170-edit-btn{display:grid;place-items:center;border:0;background:none;color:#24593b;padding:0;width:28px;height:28px;}
#tab-spend.settle151 .sp170-edit-btn .v152-icon{width:18px;height:18px;}
#tab-spend.settle151 #sp170-more-tools{margin-top:12px;}
#tab-spend.settle151 .sp170-tool-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
#tab-spend.settle151 #sp170-expense-editor{margin-top:12px;}
#tab-spend.settle151 .budget-warning{margin:0 0 10px;}
@media (max-width:365px){
  #tab-spend.settle151 .sp170-summary-grid{grid-template-columns:1fr;gap:10px;}
  #tab-spend.settle151 .sp170-summary-block-right{border-left:0;border-top:1px solid #edf1eb;padding-left:4px;padding-top:12px;}
  #tab-spend.settle151 .sp170-breakdown-row{grid-template-columns:38px minmax(72px,1fr) minmax(78px,1fr) auto 28px;gap:8px;}
  #tab-spend.settle151 .sp170-title-wrap h2,#tab-spend.settle151 .sp170-suggested-card>.sp170-section-head>h2{font-size:21px;}
  #tab-spend.settle151 .sp170-summary-block strong,#tab-spend.settle151 #sp170-debt{font-size:23px;}
}

/* v171: Spending-only phone fit, verified transactions, and accessible details. */
#tab-spend.settle151{box-sizing:border-box;width:100%;max-width:440px;min-width:0;padding:8px 6px calc(126px + env(safe-area-inset-bottom,0px));overflow-x:clip;}
#tab-spend.settle151 .budget-card{box-sizing:border-box;min-width:0;max-width:100%;}
#tab-spend.settle151 .sp170-summary-card{overflow:visible;}
#tab-spend.settle151 .sp170-summary-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;min-width:0;}
#tab-spend.settle151 .sp170-summary-block{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:2px 7px 7px;overflow:hidden;}
#tab-spend.settle151 .sp170-summary-block-right{border-top:0;border-left:1px solid #edf1eb;padding:2px 7px 7px 12px;}
#tab-spend.settle151 .sp170-summary-block>div{width:100%;min-width:0;}
#tab-spend.settle151 .sp170-summary-icon{width:32px;height:32px;border-radius:9px;}
#tab-spend.settle151 .sp170-summary-icon .v152-icon{width:20px;height:20px;}
#tab-spend.settle151 .sp170-summary-block p{font-size:12px;line-height:1.2;margin:4px 0;min-height:15px;}
#tab-spend.settle151 .sp170-summary-block strong,#tab-spend.settle151 .sp170-summary-block-right strong{font:700 clamp(17px,5.1vw,25px)/1.18 Georgia,serif;color:#206e43;letter-spacing:-.04em;overflow-wrap:normal;word-break:normal;white-space:nowrap;font-variant-numeric:tabular-nums;}
#tab-spend.settle151 .sp170-summary-block-right strong{color:#141c16;}
#tab-spend.settle151 .sp170-summary-block small{font-size:10.5px;line-height:1.25;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp170-debt-row{grid-template-columns:40px minmax(0,1fr);gap:8px;padding:10px;}
#tab-spend.settle151 .sp170-debt-icon{width:40px;height:40px;}
#tab-spend.settle151 .sp170-debt-copy{min-width:0;}
#tab-spend.settle151 .sp170-debt-copy strong{font-size:13px;}
#tab-spend.settle151 .sp170-debt-copy small{font-size:11px;}
#tab-spend.settle151 .sp170-debt-value-wrap{grid-column:2;justify-self:start;gap:9px;}
#tab-spend.settle151 #sp170-debt{font:700 22px/1 Georgia,serif;}
#tab-spend.settle151 .sp170-title-wrap{min-width:0;gap:8px;}
#tab-spend.settle151 .sp170-title-wrap h2{font-size:clamp(19px,5.0vw,23px);overflow-wrap:normal;}
#tab-spend.settle151 .sp170-title-icon{width:40px;height:40px;flex:none;}
#tab-spend.settle151 .sp170-section-head{min-width:0;gap:8px;}
#tab-spend.settle151 .sp170-period-btn{appearance:auto;max-width:108px;color:#41664e;border:0;background:transparent;font-size:11px;font-weight:700;padding:5px 0;}
#tab-spend.settle151 .sp170-period-btn::after{content:none;}
#tab-spend.settle151 .sp170-breakdown-row{box-sizing:border-box;display:grid;width:100%;max-width:100%;min-width:0;grid-template-columns:40px minmax(0,1fr);gap:9px;align-items:center;margin:0;padding:8px 0;border:0;border-top:1px solid #eef1eb;background:transparent;text-align:left;cursor:pointer;}
#tab-spend.settle151 .sp170-breakdown-row:first-child{border-top:0;}
#tab-spend.settle151 .sp170-breakdown-content{display:flex;flex-direction:column;gap:8px;min-width:0;}
#tab-spend.settle151 .sp170-breakdown-top{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:7px;width:100%;min-width:0;}
#tab-spend.settle151 .sp170-breakdown-top strong{font-size:12.5px;line-height:1.3;color:#142219;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp170-breakdown-top b{font-size:clamp(11px,3.5vw,13.5px);color:#111512;white-space:nowrap;font-variant-numeric:tabular-nums;}
#tab-spend.settle151 .sp170-breakdown-top>span{font-size:11px;line-height:1;color:#6e806f;min-width:29px;text-align:right;white-space:nowrap;}
#tab-spend.settle151 .sp170-row-bar{width:100%;height:8px;}
#tab-spend.settle151 .sp170-save-row{box-sizing:border-box;width:100%;background:none;text-align:left;border-left:0;border-right:0;border-bottom:0;cursor:pointer;}
#tab-spend.settle151 .sp170-save-copy{min-width:0;}
#tab-spend.settle151 .sp170-save-copy strong{overflow-wrap:anywhere;}
#tab-spend.settle151 .sp170-save-copy small{overflow-wrap:anywhere;}
#tab-spend.settle151 .sp170-recent-copy{min-width:0;}
#tab-spend.settle151 .sp170-recent-copy strong{overflow-wrap:anywhere;}
#tab-spend.settle151 .sp170-suggested-card>.sp170-section-head>h2{font:700 clamp(20px,5.2vw,24px)/1.1 Georgia,serif;min-width:0;}
#tab-spend.settle151 .sp170-plan-copy{min-width:0;}
#tab-spend.settle151 .sp171-spendable-card{background:#f8fcf5;}
#tab-spend.settle151 .sp171-spendable-heading{display:flex;gap:10px;align-items:center;}
#tab-spend.settle151 .sp171-spendable-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;background:#e6f2e6;border-radius:12px;color:#287849;}
#tab-spend.settle151 .sp171-spendable-icon .v152-icon{width:25px;height:25px;}
#tab-spend.settle151 .sp171-spendable-heading h2{font:700 19px/1.15 Georgia,serif;margin:0;}
#tab-spend.settle151 .sp171-spendable-heading p{font-size:10.5px;color:#6e8274;margin:4px 0 0;line-height:1.3;}
#tab-spend.settle151 .sp171-spendable-value{font:700 31px/1.15 Georgia,serif;color:#237747;margin:8px 0 4px;}
#tab-spend.settle151 .sp171-spendable-note{font-size:11px;line-height:1.45;color:#627a69;margin:0 0 12px;}
#tab-spend.settle151 .sp171-limit-label{font-size:12px;margin:8px 0 6px!important;color:#234d36!important;}
#tab-spend.settle151 #sp151-budget{max-width:100%;font:600 19px/1.1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#fff;}
#tab-spend.settle151 .sp171-reserve-lines{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;}
#tab-spend.settle151 .sp171-reserve-lines>span{background:#edf5ed;border-radius:10px;padding:9px;color:#677d6e;font-size:10.5px;line-height:1.35;}
#tab-spend.settle151 .sp171-reserve-lines strong{display:block;margin-top:3px;color:#173d27;font-size:14px;white-space:nowrap;}
#tab-spend.settle151 .sp171-history-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;border-bottom:1px solid #e8eee6;padding:10px 0;background:none;text-align:left;}
#tab-spend.settle151 .sp171-history-row>span{flex:1;min-width:0;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp171-history-row small{display:block;color:#6c7e70;font-size:11px;margin-top:3px;}
#tab-spend.settle151 .sp171-history-row strong{font-size:12px;white-space:nowrap;}
#tab-spend.settle151 .sp171-modal{position:fixed;z-index:5000;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(10,30,18,.48);padding:16px;box-sizing:border-box;}
#tab-spend.settle151 .sp171-modal[hidden]{display:none!important;}
#tab-spend.settle151 .sp171-dialog{box-sizing:border-box;width:min(100%,420px);max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain;background:#fffdf8;border:1px solid #d7e1d6;border-radius:22px;box-shadow:0 14px 60px rgba(0,0,0,.19);padding:17px;}
#tab-spend.settle151 .sp171-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;}
#tab-spend.settle151 .sp171-dialog-head h2{font:700 23px/1.1 Georgia,serif;margin:0;}
#tab-spend.settle151 .sp171-dialog-head button{border:0;background:#eaf2e8;border-radius:50%;width:36px;height:36px;font-size:25px;cursor:pointer;}
#tab-spend.settle151 #sp171-details-summary{font-size:12px;color:#657c6a;line-height:1.5;}
#tab-spend.settle151 .sp171-detail-row{border-top:1px solid #e4ece4;padding:11px 0;}
#tab-spend.settle151 .sp171-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;font-size:13px;}
#tab-spend.settle151 .sp171-detail-head>div{min-width:0;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp171-detail-head small{display:block;color:#7b8c7f;margin-top:3px;font-size:11px;}
#tab-spend.settle151 .sp171-detail-head>strong{white-space:nowrap;}
#tab-spend.settle151 .sp171-detail-row label{font-size:11px!important;margin:8px 0 0!important;display:flex!important;align-items:center;justify-content:space-between;gap:8px;}
#tab-spend.settle151 .sp171-detail-row select{max-width:65%;padding:6px;border:1px solid #cbdcce;border-radius:9px;background:#fff;}
#tab-spend.settle151 .sp171-calc-dialog{display:flex;flex-direction:column;gap:12px;}
#tab-spend.settle151 .sp171-calc-dialog .budget-select{width:100%;}
#tab-spend.settle151 #sp171-calc-result{font:700 28px/1.2 Georgia,serif;color:#237747;text-align:center;}
@media(max-width:360px){
  #tab-spend.settle151 .sp170-breakdown-top strong{font-size:11.5px;}
  #tab-spend.settle151 .sp170-breakdown-top b{font-size:11px;}
  #tab-spend.settle151 .sp170-summary-block strong{font-size:17px;}
}

/* v172: the existing Spending estimate belongs INSIDE the approved Suggested Breakdown card. */
#tab-spend.settle151 .sp170-suggested-card .sp171-spendable-card{
  box-sizing:border-box;width:100%;margin:12px 0 15px;padding:12px;
  background:#f5faf3;border:1px solid #dfe8dc;border-radius:16px;
  box-shadow:none;
}
#tab-spend.settle151 .sp172-calc-note{margin:0;color:#617868;font-size:12px;line-height:1.45;}
#tab-spend.settle151 .sp172-calc-label{display:block!important;margin:0 0 -6px!important;color:#264c35!important;font-size:12px!important;font-weight:700;}
#tab-spend.settle151 #sp171-calculator .budget-input,
#tab-spend.settle151 #sp171-calculator .budget-select{width:100%;box-sizing:border-box;}

/* v175: review-row controls within the existing locked Spending detail popup only. */
#tab-spend.settle151 .sp171-detail-row .sp175-original{margin:8px 0;color:#657c6a;font-size:11px;overflow-wrap:anywhere;}
#tab-spend.settle151 .sp171-detail-row .sp175-original small{display:block;margin-top:5px;line-height:1.45;}
#tab-spend.settle151 .sp171-detail-row .sp175-rule-label{justify-content:flex-start!important;align-items:center;gap:8px;color:#325d43;line-height:1.4;}
#tab-spend.settle151 .sp171-detail-row .sp175-remember{width:18px;height:18px;flex-shrink:0;accent-color:#40895b;}

/* v189 Paycheck-only controls. No selectors outside #tab-paycheck are changed. */
#tab-paycheck.settle151 .pc189-deposit-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-top:11px}
#tab-paycheck.settle151 .pc189-deposit-tools label{grid-column:1/-1;font-weight:700;font-size:12px;color:#526757}
#tab-paycheck.settle151 .pc189-deposit-tools select{min-width:0;height:42px;font-size:12px;background:#fff;border-radius:10px}
#tab-paycheck.settle151 .pc189-deposit-tools button{font-size:11px;padding:9px 10px;white-space:nowrap;min-height:42px}
#tab-paycheck.settle151 .pc189-deposit-status{font-size:11px;line-height:1.45;color:#55705d;margin:8px 2px 0}
#tab-paycheck.settle151 .pc189-bill-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 2px}
#tab-paycheck.settle151 .pc189-bill-heading h2{flex:1;min-width:0}
#tab-paycheck.settle151 .pc189-bill-heading label{font-size:11px;font-weight:650;color:#526757}
#tab-paycheck.settle151 .pc189-bill-heading select{font-size:12px;width:124px;max-width:40%;height:39px;background:#fff;border-radius:10px}
#tab-paycheck.settle151 .pc189-confirm-note{font-size:11px;color:#617365;line-height:1.45;text-align:center;margin:5px 5px 10px}
 #tab-paycheck.settle151 .pc189-approval-status{font-size:12px;color:#26784a;text-align:center;font-weight:650;margin:4px 0 10px}
@media(max-width:370px){#tab-paycheck.settle151 .pc189-deposit-tools{grid-template-columns:1fr}#tab-paycheck.settle151 .pc189-deposit-tools button{width:100%}}
