:root{--ink:#172d29;--muted:#6b7775;--green:#1b5143;--mint:#c5e8d3;--line:#e5eae6;--bg:#f5f7f5;--white:#fff;--sidebar:#152e29;--amber:#fff5dd}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1{font-size:2.35rem;font-weight:550;line-height:1.18;letter-spacing:-1.3px;margin:9px 0 12px}h2{font-size:1.13rem;font-weight:620;line-height:1.4;letter-spacing:-.3px;margin-bottom:8px}h3{font-size:1rem;font-weight:600;margin-bottom:6px}small,.small{font-size:.875rem}small{display:block;color:var(--muted)}.muted{color:var(--muted)}.eyebrow{font-size:.75rem;letter-spacing:1.55px;font-weight:650;color:var(--muted)}.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:var(--sidebar);color:#d5e0db;display:flex;flex-direction:column;padding:34px 20px 0;z-index:5}.brand{display:flex;align-items:center;color:white;font-size:2rem;letter-spacing:-1.5px;font-weight:650;gap:9px;margin:0 12px 39px}.brand:hover{text-decoration:none}.brand-dot{color:var(--mint);margin-left:-9px}.brand-mark{display:grid;place-items:center;width:32px;height:34px;background:var(--mint);border-radius:10px 10px 10px 2px;color:#1b4437;font-size:1.7rem;font-weight:700;margin-right:2px}.workspace-label,.nav-label{font-size:.65rem;letter-spacing:1.6px;color:#9bafa7;margin:0 12px 10px}.workspace-switch{position:relative;margin:0 7px 30px}.workspace-switch select{background:#203c34;color:#edf4ed;border:1px solid #3d554d;border-radius:7px;padding:10px;width:100%;font-size:.875rem;min-height:43px}.switch-button{margin-top:6px;color:#b7cec1;background:none;border:none;font-size:.75rem;padding:0}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav a{color:#b9ccc3;padding:11px 13px;font-size:.9rem;display:flex;align-items:center;gap:12px;border-radius:6px}.sidebar nav a>span{font-size:1.2rem;width:20px;text-align:center}.sidebar nav a:hover{background:#234137;text-decoration:none}.sidebar nav a.active{background:#d0e9d7;color:#203e32;font-weight:600}.nav-label{margin-top:28px;margin-bottom:7px;font-size:.6rem}.nav-count{margin-left:auto;border-radius:4px;background:#ecddb1;color:#493817;padding:0 6px;font-size:.75rem}.sidebar-bottom{margin-top:auto}.private-note{padding:34px 8px 25px;display:flex;gap:9px;font-size:.8rem;color:#c1d1c8}.private-note small{font-size:.7rem;color:#91a99c}.lock-icon{color:var(--mint);font-size:1.4rem}.user-menu{border-top:1px solid #365047;display:flex;align-items:center;gap:9px;padding:20px 0;font-size:.8rem}.user-menu small{font-size:.7rem;color:#9cb2a7}.avatar{background:#e7e9de;color:#375343;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex-shrink:0}.user-menu form{margin-left:auto}.logout{background:none;color:#a9c2b3;border:0;font-size:.7rem;padding:0}.main-shell{margin-left:248px}.topbar{height:80px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 40px;background:#fafbf9}.topbar .eyebrow{font-size:.66rem;letter-spacing:1.6px}.topbar-right{display:flex;gap:26px;align-items:center}.workspace-pill{font-size:.75rem;color:#6e7d73}.text-link{font-size:.875rem;font-weight:550;white-space:nowrap}main{max-width:1500px;margin:auto;padding:36px 40px 40px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading p{margin-bottom:0;font-size:.94rem}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--green);color:white;border:1px solid var(--green);border-radius:6px;min-height:42px;padding:10px 17px;font-size:.875rem;font-weight:560;white-space:nowrap;text-decoration:none;line-height:1.4}.button:hover{background:#123e32;text-decoration:none}.button.secondary{background:white;color:var(--ink);border-color:#d5ddd5}.button.secondary:hover{background:#edf3ec}.button.danger{background:#fff;color:#a43b32;border-color:#dfbdb8}.button:disabled{opacity:.5;cursor:not-allowed}.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.full{width:100%}.welcome-banner{position:relative;background:#1d493e;color:#eff9f2;display:flex;justify-content:space-between;border-radius:9px;min-height:264px;padding:30px 35px;margin-bottom:26px;overflow:hidden}.welcome-banner h2{font-size:1.75rem;line-height:1.3;font-weight:480;letter-spacing:-.65px;margin:15px 0}.welcome-banner p{color:#c2d6c9;font-size:.875rem}.pill{display:inline-block;padding:4px 9px;background:#e8f2e9;border-radius:4px;font-size:.7rem;letter-spacing:1px;color:var(--green);font-weight:600}.pill.light{background:#355e4e;color:#d3e9d8;font-size:.6rem}.light-button{background:#d0ebd8;color:#244737;border-color:#d0ebd8}.light-button:hover{background:#b8dfc2}.banner-link{color:#dcece0;font-size:.85rem;padding:7px}.connection-art{width:270px;display:grid;place-items:center}.orbit{position:relative;border:1px solid #6581716b;width:210px;height:210px;border-radius:50%}.orbit:before{content:"";position:absolute;inset:24px;border:1px dashed #668b776b;border-radius:50%}.orbit-center{position:absolute;inset:62px;background:#c2e0cc;color:#234d3b;border-radius:20px;display:flex;align-items:center;justify-content:center;font-size:3.2rem;font-weight:600;padding-bottom:10px;box-shadow:0 0 0 10px #bad7c110}.orbit-center span{position:absolute;bottom:8px;font-size:.45rem;letter-spacing:1px}.orbit-phone{position:absolute;display:grid;place-items:center;background:#375c4b;color:#d9eadc;width:40px;height:48px;border:1px solid #75957b;border-radius:8px;font-size:2rem;z-index:2}.p1{top:-7px;left:85px;transform:rotate(9deg)}.p2{bottom:12px;right:-2px;transform:rotate(16deg)}.p3{bottom:12px;left:-2px;transform:rotate(-12deg)}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:25px}.stat-card{border:1px solid var(--line);background:white;border-radius:8px;padding:20px 23px}.stat-label{display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:#627267}.stat-symbol{display:grid;place-items:center;width:26px;height:26px;background:#f0f3ec;border-radius:50%;font-size:1.1rem;color:#61745e}.positive{color:#387252!important}.stat-symbol.positive{background:#e6f2e8}.stat-number{font-size:1.8rem;font-weight:530;letter-spacing:-.8px;margin:12px 0 7px;font-variant-numeric:tabular-nums}.stat-card small{font-size:.75rem}.dashboard-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:22px;margin-bottom:24px}.panel{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:24px}.dashboard-grid .panel{margin-bottom:0}.panel-heading{padding:21px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-heading h2,.panel-heading p{margin-bottom:0}.panel-heading p{margin-top:4px;font-size:.8rem}.tag{background:#f0f3ee;color:#697765;padding:4px 9px;border-radius:4px;font-size:.75rem;display:inline-block}.chart-empty{min-height:188px;display:flex;align-items:center;justify-content:center;gap:28px;padding:20px}.chart-empty p{font-size:.85rem;margin-bottom:0}.empty-donut{height:120px;width:120px;flex-shrink:0;border:18px solid #e9eee7;border-top-color:#c3d7bd;border-right-color:#d4e2c7;border-radius:50%;display:grid;place-items:center;color:#94a391;font-size:1.5rem;transform:rotate(-25deg)}.empty-donut span{transform:rotate(25deg)}.account-row,.source-row{display:flex;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid #eff1ec;font-size:.875rem}.account-row small,.source-row small{font-size:.75rem;margin-top:3px}.account-icon{width:36px;height:36px;border-radius:8px;background:#eff3ed;color:#54734d;display:grid;place-items:center;font-size:1.25rem;flex-shrink:0}.account-balance{margin-left:auto;white-space:nowrap;font-size:.85rem}.empty-state{text-align:center;padding:48px 25px}.empty-state h3,.empty-state h2{margin-top:14px}.empty-state p{color:var(--muted);font-size:.875rem}.empty-state.compact{padding:22px 20px 30px}.empty-state.large{padding:100px 20px}.empty-icon{display:inline-grid;place-items:center;width:45px;height:45px;border-radius:12px;background:#eef3eb;color:#6e8866;font-size:1.5rem}.success-icon{background:#e4f1e6;color:#3a7b52}.transactions-panel .panel-heading{border-bottom:1px solid var(--line)}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:.875rem}th{font-size:.7rem;font-weight:550;color:#7a867b;padding:12px 22px;background:#fafbf8;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 22px;border-bottom:1px solid #eff1ec}tbody tr:last-child td{border-bottom:0}td small{font-size:.7rem;margin-top:3px}.transaction-name{display:flex;align-items:center;gap:12px;color:var(--ink);font-weight:550;min-width:180px}.transaction-name small{font-weight:400}.merchant-icon{width:35px;height:35px;display:grid;place-items:center;background:#f2eee3;color:#8b7953;border-radius:9px;font-size:.9rem;flex-shrink:0}.merchant-icon.credit{background:#e8f1e5;color:#53744b}.numeric{text-align:right;font-variant-numeric:tabular-nums}.amount{white-space:nowrap;font-weight:550}.nowrap{white-space:nowrap}.padded{padding:24px}.padded h2{margin-bottom:12px}.panel>.padded:last-child{margin-bottom:0}.bottom-grid{grid-template-columns:1fr 1fr}.budget-row{padding:0 24px 20px}.category-list{padding:5px 24px 25px;display:grid;gap:18px}.category-label{display:flex;justify-content:space-between;gap:15px;font-size:.85rem;margin-bottom:8px}.category-label strong{font-weight:550}meter{width:100%;height:8px;border:0;border-radius:8px;background:#edf1e9}meter::-webkit-meter-bar{background:#edf1e9;border:0;border-radius:8px}meter::-webkit-meter-optimum-value{background:#9fc296;border-radius:8px}meter::-moz-meter-bar{background:#9fc296;border-radius:8px}.bill-row{display:flex;align-items:center;gap:15px;padding:15px 24px;border-top:1px solid #eff1ec;font-size:.85rem}.bill-row>strong{margin-left:auto}.bill-row small{font-size:.75rem}.date-tile{text-align:center;padding:4px 10px;background:#f3f1e8;border-radius:7px;font-size:1.1rem;color:#766947}.date-tile small{font-size:.65rem;line-height:1.2;text-transform:uppercase}.footer{display:flex;justify-content:space-between;padding:20px 40px 28px;color:#8b9387;font-size:.7rem}.notice{padding:14px 18px;border:1px solid #e2e6d3;background:#f7f8ee;border-radius:6px;font-size:.875rem;line-height:1.65;margin-bottom:20px}.message{padding:12px 18px;border:1px solid #c2d8c4;background:#eaf4e9;border-radius:6px;font-size:.875rem}.message.error{background:#fff2ec;border-color:#ebcfc1;color:#8c4834}.messages{margin-bottom:20px}.filter-bar{padding:20px;display:flex;gap:12px;border-bottom:1px solid var(--line)}.filter-bar input{flex:1;min-width:140px}.filter-bar select{width:auto;max-width:220px}.pagination{padding:18px 24px;display:flex;justify-content:center;gap:25px;font-size:.8rem;color:var(--muted)}input,select,textarea{width:100%;border:1px solid #d8e0d6;border-radius:5px;background:white;color:var(--ink);padding:10px 12px;min-height:42px;font-size:.94rem}input:focus,select:focus,textarea:focus{outline:2px solid #a5c9a5;outline-offset:1px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23717c70' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}label{display:block;font-size:.875rem;color:#53644f;font-weight:500;margin-bottom:7px}label input,label select{margin-top:7px}form p{margin-bottom:18px}.helptext{display:block;font-size:.75rem;font-weight:400;color:var(--muted);margin-top:6px}.helptext ul{padding-left:18px}.errorlist{color:#a63d2d;font-size:.85rem;padding-left:20px}.form-panel{padding:26px}.form-panel h2{margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.form-grid .errorlist,.form-actions{grid-column:1/-1}.form-actions{margin:10px 0 0}.danger-zone{border-top:1px solid var(--line);padding-top:20px;margin-top:30px}.auth-shell{max-width:none;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;background:radial-gradient(ellipse at top left,#e0eddf 0,transparent 55%),#f4f7f3}.auth-brand{color:#233e2e;margin-bottom:32px}.auth-card{max-width:450px;width:100%;padding:35px;background:#fff;border:1px solid #dde5d9;border-radius:12px;box-shadow:0 12px 50px #1b392a08}.auth-card h1{font-size:2rem;margin-bottom:16px}.auth-card .eyebrow{font-size:.65rem}.auth-card form{margin-top:22px}.auth-card>p:last-child{margin-bottom:0;margin-top:20px;font-size:.8rem}.steps{list-style:none;counter-reset:step;padding:0}.steps li{position:relative;padding-left:38px;counter-increment:step;margin:25px 0}.steps li:before{content:counter(step);position:absolute;left:0;top:0;background:#edf3e7;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-size:.8rem;color:#5d7c4d}.steps strong{font-size:.9rem}.steps p{font-size:.85rem;color:var(--muted);margin:5px 0}.recent-imports{margin-top:24px}.import-row{display:flex;align-items:center;justify-content:space-between;padding:15px 24px;border-top:1px solid var(--line);font-size:.875rem;color:var(--ink)}.import-row small{font-size:.75rem}.mapping-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 25px;margin:25px 0}.review-card .panel-heading{background:#fafbf8;border-bottom:1px solid var(--line)}.review-card .eyebrow{font-size:.65rem}.review-card h2{margin-top:5px}.review-body{padding:24px}.review-amount{font-size:1.2rem;white-space:nowrap}.review-form{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:15px 20px}.review-form .checkbox-label,.review-form .button-row{grid-column:1/-1}.match-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px;background:#f4f7f1;border-radius:5px;margin-bottom:9px;font-size:.875rem}.match-row code{font-size:.65rem;overflow-wrap:anywhere}.match-row small{font-size:.75rem}.checkbox-label{display:flex;gap:9px;align-items:center;margin:13px 0;font-size:.875rem}.checkbox-label input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--green)}.text-button{border:none;background:transparent;color:var(--green);font-size:.8rem;padding:7px 0;text-decoration:underline}.source-row form{margin-left:auto}.inline-form{border-top:1px solid var(--line)}.inline-form .button{margin-top:8px}.enrollment code{display:block;word-break:break-all;padding:14px;background:#fff;border-radius:4px}.enrollment h2{margin:0 0 8px}.member-row{display:flex;align-items:center;gap:15px;padding:15px 0;border-top:1px solid var(--line);font-size:.875rem}.member-row form{margin-left:auto}.no-padding{padding:0 0 20px}.simple-row{display:flex;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);font-size:.875rem}.simple-row+form,.bill-row+form{margin-top:22px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}form>label{margin:16px 0}.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}code{font-family:ui-monospace,monospace}input[type=file]{padding:10px;font-size:.8rem}li{margin-bottom:6px}
@media(min-width:1600px){main{padding-top:45px}.stat-number{font-size:2.1rem}.welcome-banner{min-height:290px}.welcome-banner h2{font-size:2rem}}
@media(max-width:1150px){.sidebar{width:220px;padding-inline:14px}.main-shell{margin-left:220px}.topbar{padding:0 25px}.topbar .eyebrow{display:none}main{padding:28px 25px}.stat-grid{gap:12px}.stat-card{padding:17px}.stat-number{font-size:1.4rem}.dashboard-grid{grid-template-columns:1fr}.welcome-banner h2{font-size:1.5rem}.connection-art{width:200px}.orbit{transform:scale(.85)}.form-grid{grid-template-columns:1fr 1fr}.footer{padding-inline:25px}}
@media(max-width:760px){.sidebar{position:relative;width:100%;padding:15px 18px;display:block}.brand{margin:0;font-size:1.6rem}.brand-mark{width:28px;height:30px}.workspace-label,.workspace-switch,.sidebar-bottom,.nav-label{display:none}.sidebar nav{flex-direction:row;overflow:auto;gap:5px;margin-top:14px;padding-bottom:3px}.sidebar nav a{white-space:nowrap;font-size:.8rem;padding:8px 11px}.sidebar nav a>span{display:none}.main-shell{margin:0}.topbar{height:48px;padding:0 20px}.topbar-right{width:100%;justify-content:space-between;gap:10px}.workspace-pill{font-size:.65rem}main{padding:25px 18px}.page-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:24px}.page-heading h1{font-size:1.9rem}.eyebrow{font-size:.65rem}.page-heading p{font-size:.85rem}.welcome-banner{padding:24px;min-height:0}.connection-art{display:none}.welcome-banner h2{font-size:1.6rem}.stat-grid{grid-template-columns:1fr;gap:10px}.stat-card{position:relative;padding:16px 20px}.stat-number{font-size:1.5rem;margin:4px 0}.stat-symbol{position:absolute;right:20px;top:23px}.stat-card small{font-size:.7rem}.dashboard-grid{gap:18px;margin-bottom:18px}.panel{margin-bottom:18px}.panel-heading{padding:18px}.panel-heading .small{font-size:.75rem}.chart-empty{gap:20px;padding:25px 15px}.empty-donut{width:90px;height:90px;border-width:13px}.chart-empty p br{display:none}.chart-empty h3{font-size:.9rem}.chart-empty p{font-size:.75rem}.filter-bar{flex-wrap:wrap;padding:15px}.filter-bar input{flex-basis:100%}.filter-bar select{flex:1}.form-grid,.mapping-grid,.review-form{grid-template-columns:1fr}.form-panel,.padded{padding:20px}.review-form .checkbox-label,.review-form .button-row{grid-column:1}.review-amount{font-size:.9rem}.match-row{flex-direction:column;align-items:flex-start}.footer{padding:15px 20px;gap:20px;font-size:.65rem}.auth-card{padding:25px}.two-fields{gap:12px}.no-padding{align-items:flex-start;flex-direction:column}td,th{padding-inline:16px}.source-row{padding:15px 18px}.account-row{padding:15px 18px}.account-balance{font-size:.75rem}.account-row strong{font-size:.8rem}}

@media(max-width:760px){.transaction-table table,.transaction-table tbody{display:block;width:100%}.transaction-table thead{display:none}.transaction-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;padding:16px 18px;border-bottom:1px solid var(--line)}.transaction-table td{display:block;border:0;padding:3px 0;font-size:.75rem;min-width:0}.transaction-table td:first-child{grid-column:1;grid-row:1}.transaction-table td:nth-child(5){grid-column:2;grid-row:1;align-self:center;font-size:.8rem}.transaction-table td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted)}.transaction-table td:nth-child(3){grid-column:2;grid-row:2;text-align:right;max-width:140px}.transaction-table td:nth-child(4){grid-column:1/-1;grid-row:3}.transaction-table .transaction-name{min-width:0;font-size:.8rem;gap:9px}.transaction-table .merchant-icon{width:28px;height:28px;font-size:.75rem}.transaction-table td small{font-size:.65rem}.transaction-table td:nth-child(2) small{display:inline;margin-left:5px}}
.mapping-grid fieldset{min-width:0;margin:0;border:1px solid var(--line);border-radius:12px;padding:16px}.mapping-grid legend{font-weight:600;overflow-wrap:anywhere;max-width:100%}.mapping-grid details{margin-top:12px}summary{cursor:pointer;padding:8px 0;overflow-wrap:anywhere}.account-balance small{display:block;white-space:normal;font-size:.68rem;font-weight:400;color:var(--muted);max-width:200px}

.receipt-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:20px}.receipt-card{min-width:0;padding:16px;border:1px solid var(--line);border-radius:12px}.receipt-card img{display:block;width:auto;height:auto;max-width:100%;max-height:320px;object-fit:contain}.receipt-inline{display:block;max-width:180px;max-height:200px;width:auto;height:auto}

/* First-run recovery uses the same responsive cards as financial management. */
.onboarding-wrap{width:min(860px,100%);margin:24px auto}.onboarding-wrap>.panel,.onboarding-options{margin:22px 0}.onboarding-options{display:grid;grid-template-columns:1fr 1fr;gap:20px}.onboarding-choice{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line,#e1e8e3);padding:16px 0}.onboarding-choice p{margin:4px 0}.restore-pulse{width:100%;height:8px;border-radius:12px;background:linear-gradient(90deg,#1b5143,#cde0b7,#1b5143);background-size:200% 100%;animation:restore-progress 2s linear infinite;margin:28px 0}@keyframes restore-progress{to{background-position:200% 0}}@media(prefers-reduced-motion:reduce){.restore-pulse{animation:none}}@media(max-width:600px){.onboarding-options{grid-template-columns:1fr}.onboarding-choice{align-items:flex-start;flex-direction:column}}
[data-restore-form] .checkbox-label{display:flex;align-items:flex-start;gap:10px;margin:20px 0}[data-restore-form] input[type=checkbox]{width:20px;height:20px;min-height:20px;flex-shrink:0;margin:3px 0 0}
