/* One visual hierarchy for money across Home and Money. */
.money-flow{margin:24px 0 28px;border:1px solid #52675c66;border-radius:16px;background:var(--panel,#122922);overflow:hidden}
.flow-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;border-bottom:1px solid #68786b33}.flow-heading h2{font-size:26px;margin:6px 0}.flow-heading label{display:grid;gap:5px;font-size:12px}.flow-heading input{max-width:180px;color:inherit;background:transparent;border:1px solid #70817066;padding:9px;border-radius:7px;color-scheme:dark}
.flow-hero{padding:28px}.flow-hero>span{font-size:14px;opacity:.8}.flow-hero>strong{display:block;font-size:clamp(34px,6vw,58px);font-weight:550;letter-spacing:-2px;font-variant-numeric:tabular-nums;margin:10px 0}.flow-hero p{font-size:14px;max-width:560px;line-height:1.65;margin-bottom:14px}
.flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #68786b33}.flow-grid button{padding:22px;text-align:left;border:0;border-right:1px solid #68786b33;background:transparent;color:inherit;cursor:pointer;min-width:0}.flow-grid button:hover{background:#9cbb9b0b}.flow-grid small,.flow-grid span{display:block}.flow-grid strong{display:block;font-size:23px;margin:9px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.flow-grid span{font-size:11px;line-height:1.5;opacity:.7}.flow-basis{margin:0;padding:18px 28px;font-size:11px;line-height:1.7;opacity:.72;border-top:1px solid #68786b33}.flow-negative{color:#f2ab93!important}.flow-records{margin-top:24px}.flow-records summary{cursor:pointer;padding:18px 0;font-size:14px;opacity:.8}
.budget-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:20px 0;border-bottom:1px solid #68786b33}.budget-row small{display:block;font-size:12px;margin-top:7px;opacity:.75}.budget-row>div:nth-child(2){text-align:right}.budget-row progress{grid-column:1/-1;width:100%;height:5px;accent-color:#bca578}.budget-assignment{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #68786b33}.budget-assignment select{width:180px;max-width:100%}.budget-editor-row{display:grid;grid-template-columns:1fr 120px auto;gap:12px;align-items:end;margin:16px 0}.budget-editor-row label{display:grid;gap:7px;font-size:12px}.budget-editor-row input{width:100%;min-width:0}#budgetDialog{max-width:700px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;background:#112820;color:#eee9de;border:1px solid #637361;border-radius:16px;padding:28px}#budgetDialog p{font-size:13px;line-height:1.6}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
#home>.calm-home-note{display:none}#money-budget .panel{margin-top:22px}
@media(max-width:700px){.flow-heading{padding:18px;gap:12px}.flow-heading h2{font-size:21px}.flow-heading input{max-width:150px}.flow-hero{padding:22px 18px}.flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-grid button{padding:18px;border-bottom:1px solid #68786b33}.flow-basis{padding:16px 18px}.budget-assignment{align-items:stretch;flex-direction:column}.budget-assignment select{width:100%}.budget-editor-row{grid-template-columns:1fr 100px}.budget-editor-row button{grid-column:1/-1;justify-self:end}#budgetDialog{padding:20px}.subtabs{overflow-x:auto}}

.flow-period-controls{display:flex;gap:12px}.flow-period-controls select{background:#17372d;color:inherit;border:1px solid #70817066;border-radius:7px;padding:9px;max-width:170px}.flow-hero .flow-hours{padding-top:16px;margin-top:20px;border-top:1px solid #68786b33}.flow-hours strong{font-size:20px;font-variant-numeric:tabular-nums;margin-right:6px}@media(max-width:700px){.flow-heading{align-items:flex-start;flex-direction:column}.flow-period-controls{width:100%}.flow-period-controls label{flex:1}.flow-period-controls select{width:100%;max-width:none}}

.giving-source-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 0;border-bottom:1px solid #70817044}.giving-source-totals strong,.giving-source-totals small{display:block}.giving-source-totals strong{font-size:19px;margin:8px 0;overflow-wrap:anywhere}.giving-source-totals small{font-size:11px;opacity:.8}.giving-income-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid #70817044}.giving-income-row small{display:block;margin-top:6px;font-size:11px;opacity:.8}.giving-income-row>div:last-child{text-align:right}.giving-income-row button{display:block;margin-top:9px;margin-left:auto}@media(max-width:560px){.giving-source-totals{grid-template-columns:1fr}.giving-source-totals>div{display:grid;grid-template-columns:1fr auto;align-items:center}.giving-source-totals strong{font-size:20px}.giving-income-row{align-items:flex-start}}
