#focus-summary { line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; font-size:.92rem; }
.focus-actions { display:flex; flex-wrap:wrap; gap:.75rem; }
.focus-actions button { white-space:normal; }
#allocation-dining-note { line-height:1.8; font-size:.9rem; }
#allocation-dining-budget { max-width:100%; }
#allocation-dining-open { white-space:normal; }
#outcome-list, [data-outcome-id] { scroll-margin-top:1rem; }
[data-outcome-id]:focus { outline:2px solid var(--green, #205c47); outline-offset:4px; }
@media (max-width:480px) {
 .focus-actions button { width:100%; }
 #allocation-dining-open { width:100%; }
}

.preference-check,.dining-remember {display:flex;align-items:center;gap:.65rem;line-height:1.6}.preference-check input,.dining-remember input {width:1.3rem;height:1.3rem;flex-shrink:0}.home-dining-entry {margin:1.1rem 0}.allocation-dining {margin-top:1.25rem;padding-top:1rem;border-top:1px solid #dce6dc}

.first-cost-saved,.backup-entry{margin:18px 0}.first-cost-saved{border-color:#a8c3a0}.first-cost-saved h2,.backup-entry h2{font-size:1.1rem}.review-progress{padding:0;list-style:none;display:flex;gap:8px;flex-wrap:wrap;font-size:.8rem}.review-progress li{padding:7px 10px;border:1px solid #d6e1ce;border-radius:12px}.review-progress [aria-current="step"]{background:#205c47;color:white}.review-progress[hidden]{display:none}#feedback-form label{display:block;margin:14px 0}#feedback-form select{width:100%;min-height:44px}#feedback-state{overflow-wrap:anywhere}

.review-checklist,#focus-checklist{border-left:3px solid #c1d7a8;padding:8px 16px;margin:14px 0}.review-checklist h3,#focus-checklist h3{font-size:1rem}.review-checklist li,#focus-checklist li{margin:8px 0;line-height:1.7}#transfer-choices{border:1px solid #d6e1ce;border-radius:14px;margin:16px 0;padding:12px}#transfer-choices label,.transfer-confirm{display:flex;align-items:flex-start;gap:8px;margin:12px 0}#transfer-choices input,.transfer-confirm input{width:20px;min-width:20px;height:20px;margin:3px 0}.transfer-step{padding:16px 0;border-top:1px solid #d6e1ce}.income-summary small{display:block;line-height:1.6;color:#627468;margin-top:8px;font-size:.78rem}.income-due-near>small{display:block;margin-top:8px}

.home-quick-summary.single-summary{grid-template-columns:1fr}.home-quick-summary>#registered-budget-note{grid-column:1/-1}.home-quick-summary #active-count{font-size:.8rem;font-weight:400}.cost-section-jumps button[aria-pressed="true"]{background:#205c47;color:white}#ledger-fixed-view[hidden],#ledger-shopping-view[hidden],#ledger-review-view[hidden]{display:none}.settings-more{padding:18px;margin:18px 0}.settings-more>summary,.stock-add-panel>summary,#news-more-filters>summary{font-weight:650;cursor:pointer;min-height:36px;line-height:1.8}.settings-more>article{margin:14px 0}.stock-add-panel{margin:18px 0}#news-more-filters{margin:10px 0 18px}#news-more-filters .news-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}#home-backup-open{display:block;margin:20px 0}

.income-panel>h1{font-size:1.2rem;margin:0 0 18px}#income-payment-details{margin:18px 0}#income-payment-details>summary{font-weight:600;cursor:pointer;min-height:36px}

#cost-list-options{flex-basis:100%;width:100%}#cost-list-options>summary{cursor:pointer;font-size:.9rem;color:#53665b;padding:8px 0}#cost-list-options select{margin:8px 6px 0 0;max-width:100%}

/* Keep each amount intact; explanatory text belongs below the label/amount pair. */
.income-summary{grid-template-columns:minmax(0,1fr);gap:0}
.income-summary>div{display:grid;grid-template-columns:minmax(0,1fr) max-content;column-gap:16px;row-gap:6px;align-items:baseline;padding:15px 0;border-bottom:1px solid #e2e8dc}
.income-summary>div:last-child{border-bottom:0}
.income-summary>div>span{min-width:0;line-height:1.6}
.income-summary>div>strong{justify-self:end;text-align:right;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums;font-size:clamp(1.15rem,5vw,1.55rem);line-height:1.25;margin:0}
.income-summary>div>small{grid-column:1/-1;min-width:0;margin:0;line-height:1.6}

/* Visible entry points: blue for income, green for fixed costs, amber for shopping. */
.income-panel .salary-headline{padding-bottom:12px}.income-panel #income-entry-state{display:inline-block;background:#eaf2fc;color:#205684;padding:4px 10px;margin:8px 0 0;border-radius:7px;font-size:.8rem;font-weight:700}.income-panel #income-entry-state[data-saved=true]{background:#e9f2e6;color:#205c47}
#income-editor{margin:12px 0 18px;border:2px solid #245e8b;border-radius:14px;overflow:hidden;background:#f3f8fe}#income-editor>.income-entry-toggle{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:16px;background:#245e8b;color:#fff;min-height:72px}#income-editor>.income-entry-toggle::-webkit-details-marker{display:none}#income-editor>.income-entry-toggle::marker{content:''}#income-entry-toggle:focus-visible{outline:3px solid #ffdd8a;outline-offset:-5px}#income-entry-toggle:hover{background:#1c4c74}.income-entry-copy{flex:1;min-width:0}.income-entry-copy strong{display:block;font-size:1.15rem}.income-entry-copy small{display:block;font-size:.82rem;color:#f1f6fd;line-height:1.6;margin-top:4px}.income-entry-icon,#income-entry-arrow{font-size:1.55rem;font-weight:700;flex-shrink:0}#income-form{padding:18px;margin:0}.income-entry-explanation{color:#244d70;font-size:.9rem;line-height:1.7}#income-form input{background:white;border:2px solid #8daecb;border-radius:10px;min-height:50px;font-size:16px;padding:12px}#income-form input:focus{outline:3px solid #b7d3eb;outline-offset:2px;border-color:#245e8b}#income-form label{font-weight:650;font-size:1rem}#income-save{background:#245e8b;border:2px solid #245e8b;color:white;font-weight:700;min-height:50px;font-size:1rem}#income-form>details>summary{background:#e0ecfa;color:#244d70;border:1px solid #b9cfe2;border-radius:8px;padding:12px;cursor:pointer;min-height:46px}#income-form>details{margin:18px 0}.income-panel .income-month-tools{margin:12px 0}.income-panel .income-month-tools input{min-height:48px;background:#fff;border:2px solid #9ab8cf;font-size:16px}
#starter-add,#income-add-cost,#add-list{background:#205c47;border:2px solid #205c47;color:white;min-height:48px;font-weight:700;font-size:1rem;border-radius:10px}#income-add-shopping{background:#fff0d6;color:#704014;border:2px solid #d4a36a;min-height:48px;font-size:1rem;font-weight:700;border-radius:10px}#income-add-cost,#income-add-shopping{display:block;width:100%;margin:12px 0}.income-link-button{display:inline-block;padding:13px 16px;border-radius:10px;background:#245e8b;border:2px solid #245e8b;color:white;font-weight:700;min-height:48px;cursor:pointer}.ledger-links .income-link-button{color:white}#cost-list .edit-button,#upcoming .edit-button{width:auto;min-width:78px;min-height:44px;border:1px solid #8eae93;border-radius:9px;background:#edf5e9;color:#205c47;font-size:.9rem;font-weight:700;padding:8px 12px}#cost-form #name,#cost-form #amount,#cost-form #billing{border:2px solid #9ab697;background:#f6faf3;border-radius:10px;min-height:50px;font-size:16px}#cost-form #name:focus,#cost-form #amount:focus,#cost-form #billing:focus{outline:3px solid #c1d7b6;outline-offset:2px;border-color:#205c47}#service-toggle{flex:0 0 auto;font-size:.9rem;width:auto;min-width:112px;min-height:50px;padding:8px 12px;background:#205c47;color:white;border:2px solid #205c47;border-radius:10px;font-weight:700;white-space:nowrap}#cost-form .form-actions .primary{min-height:50px;font-size:1rem;font-weight:700}.income-entry-toggle,.income-link-button,#starter-add,#income-add-cost,#income-add-shopping,#add-list{touch-action:manipulation}
@media(max-width:480px){#income-form{padding:16px 12px}.income-entry-copy strong{font-size:1.15rem}#income-editor>.income-entry-toggle{padding:14px 12px;gap:9px}#income-form .income-actions{display:flex;flex-direction:column;gap:10px}#income-form .income-actions button{width:100%}.income-panel .income-month-tools{align-items:end}.income-panel .income-month-tools label{min-width:0}#cost-form .service-input{gap:8px}#cost-form .service-input input{min-width:0;width:100%}#service-toggle{min-width:104px;font-size:.84rem}}

.income-panel .salary-headline strong{font-size:clamp(1.7rem,7vw,2.8rem);font-variant-numeric:tabular-nums;white-space:nowrap;word-break:normal;overflow-wrap:normal}

/* Separate the fixed-cost, shopping and income touch targets. */
#cost-ledger .ledger-actions{gap:12px;margin:20px 0 0}#cost-ledger .ledger-links{gap:16px;margin:20px 0 24px}#cost-ledger .ledger-actions button,#cost-ledger .ledger-links button{min-height:52px}#cost-ledger .ledger-links .income-link-button{margin:0}
@media(max-width:600px){#cost-ledger .ledger-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#cost-ledger .ledger-actions button{width:100%;margin:0;padding:12px;white-space:normal;line-height:1.5}#cost-ledger .ledger-links{flex-direction:column;align-items:stretch;gap:16px}#cost-ledger .ledger-links button{width:100%;margin:0}#cost-ledger .ledger-links .income-link-button{padding:16px}}
@media(max-width:380px){#cost-ledger .ledger-actions{grid-template-columns:1fr}}
