/* Unified finance shell, clear savings controls and narrow-window layout. */
#finance-home{min-width:0}
#finance-home [hidden]{display:none!important}
.finance-section-nav{display:flex;gap:8px;flex-wrap:wrap;padding:9px;margin:18px 0 22px;background:#ede7f6;border-radius:12px}
.finance-section-nav button{flex:1 1 auto;min-height:44px;white-space:normal;line-height:1.4;font-size:13px}
.finance-section-nav button[aria-current=page]{background:#6f35d5;color:#fff;border-color:#6f35d5}
#finance-home .finance-section-heading h2{margin:4px 0 8px}
#finance-home .finance-section-heading{gap:18px;align-items:start}
#finance-home .finance-section-heading>small{max-width:510px;line-height:1.6}
#finance-home .health-grid{gap:14px}
#finance-home .health-savings-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px}
.savings-preview{margin:22px 0;padding:24px}
.savings-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.savings-preview-heading h2{margin:4px 0 12px;font-size:22px}
.savings-preview-heading>strong{font-size:28px;white-space:nowrap}
.savings-preview p{color:#645975;line-height:1.6;font-size:14px;margin:14px 0}
.savings-target-progress{padding:18px 0;margin:0 0 12px}
.savings-progress-label,.savings-progress-caption{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:14px}
.savings-progress-label strong{font-size:18px;color:#642eb7;white-space:nowrap}
.savings-target-progress progress{display:block;width:100%;height:15px;margin:12px 0;border:0;border-radius:20px;background:#e9e2f4;overflow:hidden;accent-color:#7938d9}
.savings-target-progress progress::-webkit-progress-bar{background:#e9e2f4;border-radius:20px}
.savings-target-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#6231c2,#9250e4);border-radius:20px}
.savings-target-progress progress::-moz-progress-bar{background:#753bd4;border-radius:20px}
.savings-progress-caption{color:#655c74;font-size:13px;flex-wrap:wrap}
.savings-quick-actions{display:flex;gap:10px;flex-wrap:wrap}
.savings-quick-actions button{min-height:44px}
#finance-home .savings-entry-form{display:grid;grid-template-columns:1.25fr .85fr 1fr;gap:16px}
#finance-home .savings-entry-form label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px}
#finance-home .savings-entry-form label:nth-child(4){grid-column:1/3}
#finance-home .savings-entry-form>button{align-self:end;min-height:46px}
#finance-home .savings-entry-form input,#finance-home .savings-entry-form select{min-width:0;width:100%;min-height:46px;box-sizing:border-box}
#finance-home .savings-control-heading{align-items:start;gap:15px;flex-wrap:wrap}
#finance-home .savings-control-heading p{line-height:1.6;max-width:740px}
#finance-home .savings-history-settings{padding:24px}
#finance-home .savings-history-settings>h3{font-size:19px;margin:8px 0 15px}
#finance-home .savings-history-settings .savings-transfer-list{margin-bottom:24px}
#finance-home .savings-transfer-row small{overflow-wrap:anywhere;line-height:1.5}
#finance-payments{margin-top:28px;scroll-margin-top:20px}
#finance-payments .card{margin-bottom:18px}
#finance-payments .finance-filters{gap:16px;padding:16px 0}
#finance-payments .finance-filters label{display:flex;flex:1;min-width:145px;flex-direction:column;gap:7px}
#finance-payments .finance-filters input,#finance-payments .finance-filters select{max-width:100%;min-width:0;width:100%}
#finance-payments .table-wrap{width:100%;overflow:auto}
#finance-payments .table-wrap table{min-width:780px}
#finance-payments .finance-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#finance-payments .finance-stats .card{margin:0}
#finance-payments .finance-stats .value{font-size:25px;overflow-wrap:anywhere}
@media(max-width:1100px){#finance-home .health-savings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-section-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.finance-section-nav button{min-width:0}#finance-home .finance-section-heading{flex-wrap:wrap}#finance-payments .finance-stats .value{font-size:22px}}
@media(max-width:600px){.finance-section-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px}.finance-section-nav button{font-size:12px;min-height:48px;padding:8px}#finance-home .health-savings-grid,#finance-payments .finance-stats{grid-template-columns:1fr}.savings-preview,#finance-home .savings-history-settings{padding:18px}.savings-preview-heading{align-items:start;flex-direction:column;gap:0}.savings-preview-heading>strong{font-size:27px}.savings-quick-actions{display:grid;grid-template-columns:1fr 1fr}.savings-quick-actions button:last-child{grid-column:1/-1}.savings-progress-label{gap:8px}.savings-progress-label strong{font-size:16px}#finance-home .savings-entry-form{grid-template-columns:1fr}#finance-home .savings-entry-form label:nth-child(4){grid-column:auto}#finance-home .savings-entry-form>button{width:100%}#finance-home .savings-transfer-row{align-items:start;gap:10px;flex-wrap:wrap}#finance-home .savings-entry-actions{margin-left:auto}#finance-home .savings-settings-form-grid{grid-template-columns:1fr}#finance-home .savings-settings-form label{min-width:0}.savings-progress-caption span{display:block}#finance-payments .finance-filters{flex-direction:column}#finance-payments .finance-filters label{min-width:0}}

@media(max-width:600px){#finance-home .health-savings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#finance-home .health-savings-grid .health-metric{padding:13px}#finance-home .health-savings-grid .health-metric strong{font-size:22px}#finance-home .health-savings-grid .health-metric>span{font-size:13px}#finance-home .health-savings-grid .health-metric small{font-size:12px}}
