.wealth-account-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.wealth-account-buttons button{min-width:150px;text-align:right;display:grid;gap:3px}
.wealth-account-buttons button small{color:var(--muted);font-size:var(--ops-fs-meta)}
.wealth-account-buttons button.active{background:var(--navy);border-color:var(--navy);color:#fff}
.wealth-account-buttons button.active small{color:#fff;opacity:.8}
.wealth-top-actions{margin:0 0 12px}
.wealth-account-head{display:flex;align-items:center;justify-content:space-between;gap:18px}
.wealth-account-head h2{margin:0 0 4px}
.wealth-balance{text-align:left;white-space:nowrap}
.wealth-balance span{display:block;color:var(--muted);font-size:var(--ops-fs-label);font-weight:700}
.wealth-balance strong{display:block;margin-top:4px;font-size:var(--ops-fs-kpi)}
.wealth-account-actions{margin:0 0 13px}
.wealth-ledger td:nth-child(4),.wealth-ledger td:nth-child(5),.wealth-ledger td:nth-child(6){white-space:nowrap;font-variant-numeric:tabular-nums}
.wealth-dialog{width:min(760px,calc(100% - 24px));max-height:88dvh;overflow:auto;border:1px solid var(--border);border-radius:17px;padding:0;background:var(--card);color:var(--text)}
.wealth-dialog::backdrop{background:#1c2a3499}
.wealth-dialog-shell{padding:18px}
.wealth-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.wealth-form-grid .full{grid-column:1/-1}
.wealth-source{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--border);border-radius:11px;background:var(--bluebg)}
.wealth-source span{color:var(--muted);font-size:var(--ops-fs-label);font-weight:700}
.wealth-source small{margin-inline-start:auto;font-weight:800}
.wealth-link-box{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--amberbg)}
.wealth-link-box>strong{grid-column:1/-1}
.wealth-link-box [data-new-managed]{display:grid;grid-template-columns:1fr 1fr;gap:10px;grid-column:1/-1}
.wealth-hint{margin:0;color:var(--muted);line-height:1.7}
@media(max-width:720px){
 .wealth-account-buttons button{flex:1 1 140px;min-width:0}
 .wealth-account-head{align-items:flex-start;flex-direction:column}
 .wealth-balance{text-align:right}
 .wealth-account-actions button{flex:1 1 140px}
 .wealth-form-grid,.wealth-link-box,.wealth-link-box [data-new-managed]{grid-template-columns:1fr}
 .wealth-form-grid .full,.wealth-link-box>strong,.wealth-link-box [data-new-managed]{grid-column:auto}
 .wealth-dialog-shell{padding:14px}
}


.withdrawal-reason-list{display:grid;gap:8px}
.withdrawal-reason-row{display:grid;grid-template-columns:auto minmax(180px,1fr) auto auto;gap:10px;align-items:center;padding:11px 12px;background:var(--card);border:1px solid var(--border);border-radius:12px}
.withdrawal-reason-row strong,.withdrawal-reason-row small{display:block}
.withdrawal-reason-row small{margin-top:3px;color:var(--muted)}
.withdrawal-reason-order{display:flex;gap:4px}
.withdrawal-reason-order button{min-width:32px;min-height:32px;height:32px;padding:0}
.wealth-action-choices{display:grid;gap:8px;margin:10px 0}
.wealth-action-choices label{display:block;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
.wealth-action-choices input{width:auto;margin-inline-end:7px}
.wealth-action-choices strong{display:inline}
.wealth-action-choices small{display:block;color:var(--muted);margin-top:5px;margin-inline-start:24px}
@media(max-width:720px){
 .withdrawal-reason-row{grid-template-columns:auto 1fr}
 .withdrawal-reason-row>.pill{justify-self:start}
 .withdrawal-reason-row>.actions{grid-column:1/-1}
}
