/* Cashflow is an account ledger; budgets are a planning matrix, not dashboard cards. */
.money-ledger .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
#workspace-content:has(.money-workspace) .page-actions button{font-size:14px;min-height:44px;padding:10px 16px;border-radius:3px;box-shadow:none;background-image:none}
.money-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);border:1px solid var(--stone);background:var(--paper);min-width:0}
.money-account-rail{border-right:1px solid var(--stone);padding:18px 12px;min-width:0}
.money-account-rail>header{display:flex;align-items:center;justify-content:space-between;padding:0 8px 12px;font-size:11px;letter-spacing:.08em}
.money-account-rail>header button{min-height:36px;min-width:36px;background:transparent;border:1px solid var(--stone);border-radius:3px;font-size:22px}
.money-account{display:block;width:100%;padding:14px 10px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--linen);color:var(--espresso);border-radius:0}
.money-account.selected{background:var(--paper-soft);box-shadow:inset 3px 0 var(--espresso)}
.money-account>span,.money-account>strong,.money-account>small{display:block;overflow-wrap:anywhere}
.money-account>span{font-size:13px;font-weight:600}.money-account>strong{font-size:18px;font-variant-numeric:tabular-nums;margin:7px 0}
.money-account>small{font-size:11px;color:var(--bark);line-height:1.5}
.money-provider-note,.money-rail-empty{font-size:12px;line-height:1.6;color:var(--bark);margin:20px 8px 0}
.money-text-button{background:none;border:0;text-decoration:underline;min-height:44px;font-size:12px;text-align:left}
.money-main{min-width:0;padding:0 20px 20px}
.money-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--stone);min-height:76px}
.money-controls nav{display:flex;align-self:stretch;gap:18px;overflow:auto;max-width:100%}
.money-controls nav button{border:0;border-bottom:2px solid transparent;background:transparent;white-space:nowrap;font-size:13px;color:var(--bark);padding:16px 0;min-height:44px}
.money-controls nav button.active{border-color:var(--espresso);color:var(--espresso);font-weight:650}
.money-controls>div{display:flex;gap:10px}
.money-controls label,.money-ledger-tools label{display:grid;gap:5px;font-size:11px;color:var(--bark);min-width:0}
.money-controls input,.money-controls select,.money-ledger-tools input,.money-ledger-tools select{min-height:40px;border:1px solid var(--stone);border-radius:3px;padding:8px;background:var(--paper);font-size:14px;color:var(--espresso);max-width:100%}
.money-save-state{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:11px;color:var(--bark);padding:10px 0;border-bottom:1px solid var(--linen)}
.money-save-state button{min-height:36px;background:transparent;border:0;text-decoration:underline;font-size:12px}
.money-save-state [role=alert],.money-over{color:var(--espresso);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.money-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(190px,1.4fr);border-bottom:1px solid var(--stone);padding:22px 0}
.money-summary>div{padding:0 18px;border-right:1px solid var(--linen);min-width:0}.money-summary>div:first-child{padding-left:0}.money-summary>div:last-child{border:0}
.money-summary span{display:block;font-size:10px;letter-spacing:.06em;line-height:1.5;color:var(--bark)}
.money-summary strong{display:block;font-size:23px;line-height:1.3;margin-top:8px;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.money-summary small{display:block;font-size:10px;line-height:1.5;margin-top:7px;color:var(--bark)}
.money-ledger-tools{display:flex;gap:14px;align-items:end;padding:16px 0}.money-search{flex:1}.money-ledger-tools button{min-height:40px;font-size:12px}
.money-ledger-note{font-size:11px;line-height:1.6;color:var(--bark);margin:0 0 16px}
.money-table-scroll{overflow-x:auto;max-width:100%;border-top:1px solid var(--stone)}
.money-ledger,.money-budget-table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;min-width:850px;color:var(--espresso)}
.money-ledger th,.money-budget-table th{font-size:10px;letter-spacing:.03em;font-weight:600;background:var(--paper-soft);padding:12px 9px;border-bottom:1px solid var(--stone);white-space:nowrap}
.money-ledger td,.money-budget-table td{padding:14px 9px;border-bottom:1px solid var(--linen);vertical-align:top;line-height:1.5}
.money-ledger td strong,.money-budget-table td strong{font-size:13px;font-weight:600;display:block}
.money-ledger td small,.money-budget-table td small{display:block;font-size:10px;line-height:1.5;margin-top:5px;color:var(--bark)}
.money-numeric{font-variant-numeric:tabular-nums;white-space:nowrap}.money-ledger td button,.money-budget-table td button{font-size:11px;border:0;background:none;text-decoration:underline;min-height:32px;margin-right:8px;cursor:pointer}
.money-empty{padding:30px 12px;max-width:540px}.money-empty strong{font-size:16px!important}.money-empty p{font-size:13px;line-height:1.65;color:var(--bark);margin:9px 0}
.money-pending-summary{display:flex;gap:24px;flex-wrap:wrap;padding:16px 0;font-size:12px;color:var(--bark)}.money-pending-summary strong{color:var(--espresso);margin-left:8px;font-variant-numeric:tabular-nums}
.money-view-heading,.money-rules>header{display:flex;align-items:start;justify-content:space-between;gap:18px;margin:22px 0 18px}
.money-view-heading h2,.money-rules h2{font-size:20px;line-height:1.3;font-weight:600;margin:0}
.money-view-heading p,.money-rules p{font-size:12px;line-height:1.7;color:var(--bark);max-width:620px;margin:8px 0 0}
.money-view-heading button{flex-shrink:0;font-size:12px}
.money-budget-table progress{width:90px;height:7px;accent-color:var(--espresso)}
.money-budget-guidance{border-top:1px solid var(--stone);padding:20px 0;font-size:12px;margin-top:20px}.money-budget-guidance p{line-height:1.75;color:var(--bark);max-width:760px}
.money-connections>article{display:flex;justify-content:space-between;gap:20px;padding:20px 0;border-top:1px solid var(--stone)}
.money-connections strong{font-size:14px}.money-connections p,.money-connections small,.money-connections details{font-size:12px;line-height:1.7;color:var(--bark)}
.money-connections>article>div:last-child{display:flex;flex-direction:column;align-items:start;min-width:110px}
.money-connections button,.money-rules>div button{min-height:44px;border:0;background:transparent;text-decoration:underline;font-size:12px}
.money-rules{border-top:1px solid var(--stone);margin-top:25px}.money-rules>div{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--linen);padding:9px 0;font-size:12px;line-height:1.6}
.money-history{border-top:1px solid var(--stone);margin-top:24px;font-size:12px}.money-history summary{min-height:44px;padding:14px 0;cursor:pointer}.money-history li{display:flex;gap:24px;padding:10px 0;border-top:1px solid var(--linen)}
.money-load{padding:32px;border:1px solid var(--stone);font-size:14px}.money-load p{margin:14px 0;line-height:1.7}
.money-dialog{max-width:680px;border-radius:5px!important;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.money-dialog .feature-dialog-head{position:sticky;top:0;background:var(--paper);z-index:2}.money-dialog h2{font-size:20px;line-height:1.3}
.money-form-fields{padding:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.money-form-fields>label{display:grid;align-content:start;gap:8px;font-size:12px;font-weight:550;line-height:1.5;min-width:0}
.money-form-fields input,.money-form-fields select{display:block;min-height:44px;min-width:0;max-width:100%;width:100%;border:1px solid var(--stone);border-radius:3px;padding:10px;background:var(--paper);color:var(--espresso);font-size:16px}
.money-form-fields>.money-form-fields{grid-column:1/-1;padding:0}.money-form-note,.money-link-preview{grid-column:1/-1;font-size:12px;line-height:1.7;color:var(--bark);margin:0}
.money-link-preview{padding:14px 0;border-top:1px solid var(--stone);border-bottom:1px solid var(--stone)}.money-link-preview strong{color:var(--espresso)}
.money-form-fields .money-check{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:44px}.money-check input{width:20px;min-height:20px;flex-shrink:0}
.money-dialog form>footer{position:sticky;bottom:0;background:var(--paper);border-top:1px solid var(--stone);padding:16px 22px;display:flex;justify-content:flex-end;gap:12px;z-index:2}.money-dialog form>footer button{min-height:44px;font-size:14px}
#money-form-error:not([hidden]){margin:0 22px 18px;padding:12px;border-left:3px solid var(--espresso);background:var(--paper-soft);font-size:13px;line-height:1.6}
.money-workspace button:focus-visible,.money-dialog button:focus-visible,.money-workspace input:focus-visible,.money-dialog input:focus-visible,.money-workspace select:focus-visible,.money-dialog select:focus-visible{outline:2px solid var(--espresso);outline-offset:3px}
.money-workspace .primary-action,.money-dialog .primary-action{background:var(--accent,#ffb300);background-image:none;box-shadow:none;border-radius:3px}.money-workspace .secondary-action,.money-dialog .secondary-action{box-shadow:none;border-radius:3px}
.money-sheet-pagination{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid var(--stone);padding:10px 12px;font-size:11px}.money-sheet-pagination button{min-height:40px;font-size:11px;padding:8px}
.sheet-grid td:has(input[data-money-cell]){padding:0}.sheet-grid input[data-money-cell]{width:100%;min-width:125px;min-height:38px;padding:8px;border:0;border-radius:0;background:transparent;color:var(--espresso);font-size:13px;font-family:inherit}
.sheet-grid input[data-money-cell]:focus{outline:2px solid var(--espresso);outline-offset:-2px;background:var(--paper)}
.sheet-grid .money-row-draft>th{border-left:3px solid var(--espresso)}
.sheet-context #money-sheet-context{font-size:12px;line-height:1.7}.money-sheet-errors{padding-left:16px;margin:12px 0}.sheet-context button[data-money-add-row]{width:100%;margin:12px 0;min-height:44px}
@media(max-width:1200px){.money-controls{align-items:start;flex-direction:column;gap:0;padding:10px 0}.money-controls>div{padding-bottom:10px}.money-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.money-summary>div:nth-child(3){padding-left:0}.money-summary>div:nth-child(2){border:0}.money-account-rail{padding-inline:8px}.money-workspace{grid-template-columns:185px minmax(0,1fr)}}
@media(max-width:760px){
 .money-workspace{display:block;border-left:0;border-right:0}.money-main{padding:0 12px 20px}.money-account-rail{display:flex;overflow:auto;gap:0;padding:8px 0;border-right:0;border-bottom:1px solid var(--stone);max-width:100%}.money-account-rail>header{min-width:90px;flex-direction:column;justify-content:center;gap:10px;padding:0 12px}.money-account{flex:0 0 155px;border-bottom:0;border-right:1px solid var(--linen);padding:12px}.money-account.selected{box-shadow:inset 0 -3px var(--espresso)}.money-account>strong{font-size:17px}.money-account-rail>.money-provider-note{display:none}.money-rail-empty{min-width:210px;margin:0;padding:10px}.money-account-rail>.money-text-button{min-width:120px;padding:10px}
 .money-controls nav{width:100%;gap:20px}.money-controls nav button{min-height:48px;font-size:13px}.money-controls>div{width:100%;display:grid;grid-template-columns:1fr 100px}.money-controls input,.money-controls select,.money-ledger-tools input,.money-ledger-tools select{font-size:16px;min-height:44px;width:100%}
 .money-summary{gap:18px;padding:18px 0}.money-summary>div{padding:0 12px}.money-summary strong{font-size:21px}.money-summary span{font-size:9px}.money-summary>div:nth-child(4){padding-right:0}.money-summary small{font-size:10px}
 .money-ledger-tools{display:grid;grid-template-columns:1fr 110px;gap:12px}.money-ledger-tools>button{grid-column:1/-1;justify-self:start}.money-table-scroll{overflow:visible}.money-ledger,.money-ledger tbody,.money-ledger tr,.money-ledger td{display:block;min-width:0;width:auto}.money-ledger thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.money-ledger tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;border-bottom:1px solid var(--stone);padding:16px 0}.money-ledger td{padding:0;border:0;font-size:12px;overflow-wrap:anywhere}.money-ledger td:nth-child(2){grid-column:1/-1;grid-row:1}.money-ledger td:nth-child(2) strong{font-size:15px}.money-ledger td:nth-child(1){grid-column:1;grid-row:2;color:var(--bark)}.money-ledger td:nth-child(7){grid-column:2;grid-row:2;text-align:right}.money-ledger td:nth-child(5)::before{content:'Inflow ';font-size:11px;color:var(--bark)}.money-ledger td:nth-child(6)::before{content:'Outflow ';font-size:11px;color:var(--bark)}.money-ledger td:nth-child(8){grid-column:1/-1}.money-ledger td button{min-height:44px;font-size:13px}.money-ledger tr:has(.money-empty){display:block}.money-pending-summary{display:grid;gap:12px}
 .money-budget-table{min-width:0;width:100%}.money-budget-table thead{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.money-budget-table tbody,.money-budget-table tr{display:block}.money-budget-table tr{padding:18px 0;border-bottom:1px solid var(--stone)}.money-budget-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:6px 0;font-size:13px}.money-budget-table td:first-child{display:block}.money-budget-table td:first-child strong{font-size:16px}.money-budget-table td:nth-child(3)::before{content:'Monthly plan'}.money-budget-table td:nth-child(4)::before{content:'Carried forward'}.money-budget-table td:nth-child(5)::before{content:'Actual'}.money-budget-table td:nth-child(6)::before{content:'Remaining / to target'}.money-budget-table td:last-child{justify-content:start}.money-budget-table td button{min-height:44px;font-size:13px}.money-budget-table td:has(.money-empty){display:block}.money-view-heading{flex-direction:column}.money-view-heading button{min-height:44px}.money-connections>article{display:block}.money-connections>article>div:last-child{flex-direction:row;gap:24px}.money-rules>div{align-items:start;flex-direction:column;gap:4px}.money-history li{display:grid;gap:4px}
 .money-dialog{max-height:calc(100dvh - 20px);margin:10px;max-width:calc(100vw - 20px);width:100%}.money-form-fields{grid-template-columns:1fr;padding:18px;gap:16px}.money-dialog .feature-dialog-head{padding:16px 18px}.money-dialog h2{font-size:19px}.money-dialog form>footer{padding:12px 18px max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:auto 1fr}.money-dialog form>footer button{padding:10px;white-space:normal}.sheet-grid input[data-money-cell]{min-height:44px;font-size:16px}.money-sheet-pagination{font-size:10px;gap:5px}.money-sheet-pagination button{font-size:10px}
}
