*{box-sizing:border-box}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}html,body{margin:0;min-height:100%;background:linear-gradient(180deg,#f7f4ee 0%,var(--bg) 50%,#efebe3 100%);color:var(--text);font-family:var(--sans)}button,input,select,textarea{font:inherit}.shell{max-width:1240px;margin:0 auto;padding:1.25rem 1.5rem 5rem}.top{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.brand{font-family:var(--font-display);font-size:1.75rem;font-weight:700}.subtitle{color:var(--muted);font-size:.85rem}.controls{display:flex;gap:.7rem}.ghost{color:var(--muted);text-decoration:none;padding:.3rem}.ghost[aria-current=page]{color:var(--text);font-weight:650;border-bottom:2px solid var(--accent)}.capital-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;padding:1.75rem 0 1rem}.eyebrow,.section-kicker{margin:0 0 .35rem;color:var(--accent);font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em}.capital-head h1{margin:0;font-family:var(--font-display);font-size:clamp(1.8rem,4vw,2.7rem)}.page-status{margin:.55rem 0 0;color:var(--muted)}.primary-action,.quiet-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.65rem 1rem;border:1px solid var(--accent);border-radius:9px;background:var(--accent);color:#fff;text-decoration:none;font-weight:700}.kpi-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden}.kpi-bar article{padding:1rem 1.1rem}.kpi-bar article+article{border-left:1px solid var(--line)}.kpi-bar span,.kpi-bar small{display:block;color:var(--muted);font-size:.76rem}.kpi-bar strong{display:block;margin:.25rem 0;font-size:1.28rem}.mono{font-family:var(--mono)}.debt,.tx-amount.is-outflow{color:var(--risk)}.tx-amount.is-inflow{color:var(--good)}.type-strip{display:flex;gap:.7rem;padding:1rem 0;overflow-x:auto;scrollbar-width:none}.type-card{flex:1 0 145px;max-width:230px;min-height:78px;padding:.75rem .85rem;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);text-align:left;cursor:pointer}.type-card[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:color-mix(in srgb,var(--accent) 6%,#fff)}.type-card span,.type-card strong{display:block}.type-card span{color:var(--muted);font-size:.75rem}.type-card strong{margin-top:.32rem;font-size:.94rem}.workspace{display:grid;grid-template-columns:minmax(250px,31%) minmax(0,1fr);min-height:640px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden}.roster-panel{border-right:1px solid var(--line);background:color-mix(in srgb,var(--panel) 90%,var(--bg))}.panel-heading,.activity-heading{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem 1.1rem;border-bottom:1px solid var(--line)}.panel-heading h2,.activity-heading h2{margin:0;font-size:1.12rem}.icon-button{width:42px;height:42px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted)}.account-button{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.65rem;width:100%;padding:.9rem 1rem;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;text-align:left;cursor:pointer}.account-button[aria-selected=true]{background:#fff;border-left:3px solid var(--accent);padding-left:calc(1rem - 3px)}.status-dot{width:9px;height:9px;margin-top:.35rem;border-radius:50%;background:var(--good)}.status-dot.is-watch{background:var(--watch)}.account-copy strong,.account-copy small{display:block}.account-copy small,.account-balance small{margin-top:.16rem;color:var(--muted);font-size:.73rem}.account-balance{text-align:right}.activity-panel{min-width:0}.result-count{color:var(--muted);font-size:.78rem}.search-row{display:flex;gap:.6rem;padding:.85rem 1rem .45rem}.search-box{flex:1}.search-box input{width:100%;min-height:44px;padding:.6rem .8rem;border:1px solid var(--line);border-radius:9px;background:#fff}.filter-button,.filter-panel button,.utility-row a,.utility-row button,.load-more button,.drawer-footer button,.reimbursement-section button{min-height:40px;padding:.5rem .75rem;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text);text-decoration:none}.filter-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:.65rem;padding:.75rem 1rem;background:var(--bg-soft)}.filter-panel label{font-size:.73rem;color:var(--muted)}.filter-panel input,.filter-panel select{display:block;width:100%;margin-top:.25rem;min-height:40px;border:1px solid var(--line);border-radius:7px;background:#fff}.filter-chips{display:flex;gap:.45rem;padding:.45rem 1rem;overflow-x:auto}.filter-chips button{white-space:nowrap;padding:.38rem .7rem;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--muted)}.filter-chips button[aria-pressed=true]{background:var(--text);color:#fff;border-color:var(--text)}.utility-row{display:flex;justify-content:flex-end;gap:.45rem;padding:.45rem 1rem .8rem;border-bottom:1px solid var(--line)}.utility-row .quiet-primary{min-height:40px}.toast{margin:.75rem 1rem;padding:.65rem .8rem;border-radius:8px;background:var(--bg-soft)}.date-group h3{position:sticky;top:0;z-index:1;margin:0;padding:.65rem 1rem;background:color-mix(in srgb,var(--panel) 94%,transparent);color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.07em}.tx-row{display:grid;grid-template-columns:9px minmax(0,1fr) minmax(135px,auto) auto;gap:.7rem;align-items:center;width:100%;padding:.8rem 1rem;border:0;border-top:1px solid var(--line);background:transparent;color:inherit;text-align:left;cursor:pointer}.tx-row:hover,.tx-row:focus-visible{background:var(--bg-soft);outline:none}.tx-status{width:8px;height:8px;border-radius:50%;background:var(--good)}.tx-status.needs{background:var(--watch)}.tx-main strong,.tx-main small{display:block}.tx-main small{margin-top:.18rem;color:var(--muted);font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.category-pill{padding:.35rem .55rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:.74rem}.tx-amount{text-align:right;font-weight:700;white-space:nowrap}.empty-feed{padding:2rem;text-align:center;color:var(--muted)}.load-more{text-align:center;padding:1rem}.drawer{position:fixed;inset:0 0 0 auto;width:min(470px,100vw);height:100dvh;max-height:none;margin:0;padding:0;border:0;border-left:1px solid var(--line);background:var(--panel);color:var(--text);box-shadow:-12px 0 40px rgba(28,32,36,.18)}.drawer::backdrop{background:rgba(28,25,21,.32)}.drawer-shell{display:flex;flex-direction:column;height:100%}.drawer-head{display:flex;justify-content:space-between;align-items:flex-start;padding:1.1rem 1.2rem;border-bottom:1px solid var(--line)}.drawer-head h2{margin:0;font-family:var(--font-display);font-size:1.45rem}.drawer-close{width:44px;height:44px;border:0;border-radius:50%;background:var(--bg-soft);font-size:1.5rem}.drawer-body{flex:1;overflow:auto;padding:1.1rem 1.2rem}.transaction-hero{padding-bottom:1rem;border-bottom:1px solid var(--line)}.transaction-hero strong{display:block;font-size:1.7rem}.transaction-hero span{color:var(--muted)}.fact-list{margin:1rem 0}.fact-list div{display:grid;grid-template-columns:7rem 1fr;padding:.5rem 0}.fact-list dt{color:var(--muted)}.fact-list dd{margin:0}.drawer-field{display:block;margin:1rem 0;font-weight:650}.drawer-field select,.drawer-field textarea{display:block;width:100%;margin-top:.35rem;padding:.6rem;border:1px solid var(--line);border-radius:8px;background:#fff}.advanced-section,.reimbursement-section{margin:1.2rem 0;padding:1rem;border-radius:10px;background:var(--bg-soft)}.switch-row{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0}.switch-row+.switch-row{border-top:1px solid var(--line)}.switch-row span strong,.switch-row span small{display:block}.switch-row span small{margin-top:.2rem;color:var(--muted);font-size:.75rem}.switch-row input{width:20px;height:20px}.reimbursement-section>p:not(.section-kicker){color:var(--muted);font-size:.8rem}.reimbursement-line{display:grid;grid-template-columns:1fr 1fr auto;gap:.4rem;margin:.5rem 0}.reimbursement-line input{min-width:0;padding:.5rem;border:1px solid var(--line);border-radius:7px}.drawer-footer{display:flex;justify-content:flex-end;gap:.6rem;padding:1rem 1.2rem;border-top:1px solid var(--line)}.account-detail-balance{font-size:1.7rem}.empty-account{padding:1rem;color:var(--muted)}
@media(max-width:760px){.shell{padding:1rem 1rem 5.75rem}.controls{display:none}.capital-head{align-items:flex-start}.capital-head h1{font-size:1.75rem}.primary-action{padding:.55rem .75rem}.kpi-bar{grid-template-columns:1fr}.kpi-bar article+article{border-left:0;border-top:1px solid var(--line)}.type-strip{margin-right:-1rem}.workspace{display:block}.roster-panel{border-right:0;border-bottom:1px solid var(--line)}.account-roster{display:flex;overflow-x:auto;padding:.5rem}.account-button{flex:0 0 78%;border:1px solid var(--line);border-radius:10px;margin-right:.5rem;padding:.75rem}.activity-heading{padding:.85rem}.search-row,.filter-chips,.utility-row{padding-left:.8rem;padding-right:.8rem}.filter-panel{grid-template-columns:1fr 1fr}.filter-panel button{grid-column:1/-1}.utility-row{justify-content:flex-start;overflow-x:auto}.tx-row{grid-template-columns:8px minmax(0,1fr) auto;padding:.75rem .8rem}.category-pill{grid-column:2;justify-self:start}.tx-amount{grid-column:3;grid-row:1}.drawer{width:100vw;border-left:0}.fact-list div{grid-template-columns:1fr}.fact-list dd{margin-top:.2rem}.reimbursement-line{grid-template-columns:1fr 1fr}.reimbursement-line button{grid-column:1/-1}.drawer-footer button{flex:1}}
.planned-match-section{margin:1.2rem 0;padding:1rem;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--accent) 6%,#fff)}.planned-match-section h3{margin:.15rem 0 .4rem;font-size:1rem}.planned-match-section>p{margin:.35rem 0;color:var(--muted);font-size:.84rem}.planned-match-facts{margin:.75rem 0}.planned-match-facts div{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0}.planned-match-facts dt{color:var(--muted)}.planned-match-facts dd{margin:0;font-weight:650;text-align:right}.planned-match-section input[type=number]{display:block;width:100%;margin-top:.35rem;min-height:42px;padding:.55rem;border:1px solid var(--line);border-radius:8px;background:#fff}.planned-match-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.8rem}.planned-match-actions button{min-height:42px;padding:.55rem .8rem;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text)}.planned-match-actions .quiet-primary{background:var(--accent);border-color:var(--accent);color:#fff}.planned-match-note{font-size:.78rem!important}
.reimbursement-line{grid-template-columns:1fr 1fr 1.3fr auto}.reimbursement-line select{min-width:0;padding:.5rem;border:1px solid var(--line);border-radius:7px;background:#fff}@media(max-width:760px){.reimbursement-line{grid-template-columns:1fr 1fr}.reimbursement-line select{grid-column:1/-1}}
.drawer-field input{display:block;width:100%;margin-top:.35rem;min-height:44px;padding:.6rem;border:1px solid var(--line);border-radius:8px;background:#fff}
.drawer{max-width:none}@media(max-width:760px){.drawer{inset:0;width:100%;max-width:none}.drawer-footer button{min-height:44px}}
.type-card small{display:block;margin-top:.16rem;color:var(--muted);font-size:.7rem}
.account-entry{position:relative;border-bottom:1px solid var(--line)}.account-entry .account-button{border-bottom:0;padding-bottom:2rem}.account-engine-toggle{position:absolute;left:2.65rem;bottom:.45rem;display:flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.68rem}.account-engine-toggle input{width:18px;height:18px;margin:0}
.category-pill{max-width:170px}
@media(max-width:760px){.account-entry{flex:0 0 78%;margin-right:.5rem;border:1px solid var(--line);border-radius:10px}.account-entry .account-button{width:100%;height:100%;margin:0;border:0}.account-engine-toggle{left:2.35rem}}
