@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');
:root{--navy:#10243d;--navy-2:#18324f;--ink:#142234;--muted:#718096;--line:#e7edf3;--surface:#fff;--page:#f6f8fb;--blue:#2765d5;--blue-light:#e9f0ff;--green:#16865b;--green-light:#e8f6ef;--orange:#c77716;--orange-light:#fff3df;--purple:#7255c7;--purple-light:#f0ecff;--red:#c94f4f;--shadow:0 14px 40px rgba(25,48,74,.08);--radius:14px;--font:Manrope,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-family:var(--font);font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}.hidden{display:none!important}.mobile-only{display:none}.muted{color:var(--muted);margin:0}.eyebrow{color:#6580a1;font-family:'DM Mono',monospace;font-size:10px;font-weight:500;letter-spacing:.12em;margin:0 0 7px}.auth-screen{min-height:100vh;display:grid;grid-template-columns:minmax(350px,1.04fr) minmax(380px,.96fr);background:#fff}.auth-panel{min-height:100vh}.brand-panel{position:relative;overflow:hidden;padding:clamp(50px,9vh,110px) clamp(42px,9vw,155px);color:white;background:var(--navy)}.brand-panel:before{content:'';position:absolute;width:620px;height:620px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-270px;bottom:-230px;box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018)}.brand-panel:after{content:'';position:absolute;width:220px;height:220px;border:1px solid rgba(115,164,224,.23);border-radius:50%;left:-100px;top:-80px}.brand-panel>*{position:relative;z-index:1}.brand-mark{height:36px;width:42px;display:flex;align-items:flex-end;gap:5px;margin-bottom:35px}.brand-mark span{width:9px;border-radius:5px;background:#69c69b}.brand-mark span:nth-child(1){height:17px}.brand-mark span:nth-child(2){height:29px}.brand-mark span:nth-child(3){height:36px;background:#a4bff8}.brand-panel .eyebrow{color:#aac4eb;font-size:11px}.brand-panel h1{font-family:'Playfair Display',Georgia,serif;font-size:clamp(34px,3.3vw,55px);line-height:1.12;letter-spacing:-.03em;max-width:630px;margin:0 0 22px}.brand-copy{color:#b6c5d7;line-height:1.8;max-width:510px;font-size:15px}.feature-list{border-top:1px solid rgba(255,255,255,.14);margin-top:45px;padding-top:25px;display:grid;gap:15px;max-width:500px}.feature-list div{display:flex;align-items:center;gap:12px;color:#e8f0f8}.feature-list b{color:#79d1a7;background:rgba(121,209,167,.13);height:21px;width:21px;display:grid;place-items:center;border-radius:50%;font-size:13px}.security-note{max-width:510px;font-size:11px;line-height:1.7;color:#86a0bd;margin-top:37px}.form-panel{width:min(100%,580px);margin:auto;padding:clamp(35px,9vh,90px) clamp(30px,7vw,86px);display:flex;align-items:center;justify-content:center;flex-direction:column}.auth-tabs{align-self:stretch;display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line);margin-bottom:43px}.tab{color:#8a97a7;background:none;border:0;padding:12px 2px;position:relative;font-weight:700}.tab.active{color:var(--navy)}.tab.active:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--blue)}.auth-form{width:100%}.auth-form h2{font-size:25px;margin:0 0 8px;letter-spacing:-.04em}.auth-form>p{margin:0 0 28px;color:var(--muted)}label{display:grid;gap:8px;font-size:12px;font-weight:700;color:#46576a;margin-bottom:17px}input,select{border:1px solid #dce4ed;background:#fff;border-radius:8px;padding:12px 13px;color:var(--ink);outline:none;transition:border .18s,box-shadow .18s}input:focus,select:focus{border-color:#7ca5ea;box-shadow:0 0 0 3px #e9f1ff}input::placeholder{color:#aab5c2}.primary-btn,.secondary-btn,.text-btn,.icon-btn{border:0;border-radius:8px;font-weight:700;transition:transform .16s,background .16s,box-shadow .16s}.primary-btn{background:var(--blue);color:#fff;padding:12px 17px;box-shadow:0 4px 10px rgba(39,101,213,.19)}.primary-btn:hover{background:#1e58c1;transform:translateY(-1px)}.primary-btn span{margin-left:5px}.primary-btn.full{width:100%;margin-top:4px}.primary-btn.compact{padding:9px 13px;font-size:12px}.secondary-btn{background:#fff;color:#34516f;border:1px solid #d9e2ec;padding:11px 14px}.secondary-btn:hover{background:#f6f9fc}.secondary-btn.small{padding:8px 11px;font-size:12px}.text-btn{padding:6px 0;background:none;color:var(--blue);font-size:12px}.text-btn:hover{text-decoration:underline}.text-btn.center{display:block;margin:15px auto 0}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:257px;background:var(--navy);display:flex;flex-direction:column;color:#d7e1eb;z-index:20}.sidebar-top{height:76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.logo{color:#fff;font-size:20px;font-weight:800;letter-spacing:-.06em;display:flex;gap:9px;align-items:center}.logo>span>span{color:#80d0a5}.logo-icon{width:24px;height:24px;display:flex;align-items:flex-end;gap:3px}.logo-icon i{width:6px;border-radius:4px;background:#79d0a2}.logo-icon i:nth-child(1){height:11px}.logo-icon i:nth-child(2){height:18px}.logo-icon i:nth-child(3){height:24px;background:#9cb7ef}.book-switcher-wrap{padding:10px 14px 19px;position:relative}.book-switcher{width:100%;min-height:58px;border:1px solid rgba(177,206,239,.15);background:rgba(255,255,255,.055);padding:9px;display:flex;align-items:center;gap:9px;text-align:left;color:#edf5fd;border-radius:9px}.book-switcher:hover{background:rgba(255,255,255,.1)}.book-icon{background:#254b73;width:32px;height:32px;display:grid;place-items:center;border-radius:6px;color:#a7c3ff}.book-switcher-text{display:grid;gap:2px;min-width:0;flex:1}.book-switcher-text small{font-size:9px;color:#8fa6bf}.book-switcher-text strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.chevron{font-size:18px;color:#8da4ba}.book-menu{position:absolute;top:72px;left:14px;right:14px;z-index:5;background:#fff;border:1px solid #dfe8f2;border-radius:10px;box-shadow:var(--shadow);overflow:hidden;padding:5px}.book-menu button{width:100%;border:0;background:white;text-align:left;padding:10px;border-radius:6px;color:#344a60;font-size:12px}.book-menu button:hover,.book-menu button.active{background:#edf3fc;color:var(--blue)}.book-menu button small{display:block;color:#7d8da0;margin-top:2px}.book-menu hr{border:0;border-top:1px solid #edf0f4;margin:4px}.book-menu .new-book-menu{font-weight:700;color:var(--blue)}.main-nav{padding:0 11px;display:grid;gap:4px}.nav-item{color:#aec1d4;border:0;background:transparent;text-align:left;padding:11px 13px;border-radius:7px;display:flex;gap:12px;align-items:center;font-size:12px;font-weight:700}.nav-item>span{font-size:18px;width:16px;text-align:center;font-weight:400}.nav-item:hover{color:#fff;background:rgba(255,255,255,.06)}.nav-item.active{color:#fff;background:#254b72}.nav-item.danger{color:#dba0a0}.sidebar-bottom{margin-top:auto;padding:12px 11px 16px;border-top:1px solid rgba(255,255,255,.08)}.user-card{margin:13px 7px 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.1);display:flex;align-items:center;gap:10px}.user-card strong,.user-card small{display:block}.user-card strong{font-size:11px;color:#eff5fb}.user-card small{margin-top:2px;color:#8ea5bb;font-size:10px}.avatar{height:30px;width:30px;display:grid;place-items:center;background:#d8e9ff;color:#24486e;font-weight:800;border-radius:50%;font-size:11px}.main-content{margin-left:257px;min-height:100vh}.topbar{height:76px;background:rgba(255,255,255,.9);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 clamp(25px,4.3vw,68px);justify-content:space-between;position:sticky;top:0;z-index:10;backdrop-filter:blur(10px)}.breadcrumb{display:flex;gap:9px;align-items:center;font-size:12px;color:#8694a4}.breadcrumb strong{color:#293d53}.topbar-actions{display:flex;align-items:center;gap:15px}.connection{font-size:10px;font-weight:700}.connection.local{color:#6b7d90}.connection.live{color:var(--green)}.view{padding:38px clamp(25px,4.3vw,68px) 60px;display:none;max-width:1600px}.view.active-view{display:block}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:29px;gap:20px}.page-heading h1{letter-spacing:-.05em;font-size:28px;margin:0 0 6px;line-height:1.1}.page-heading .muted{font-size:12px}.heading-actions,.report-actions{display:flex;gap:9px;align-items:center}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.stat-card,.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 3px 12px rgba(22,38,61,.025)}.stat-card{padding:18px}.stat-label{display:flex;justify-content:space-between;align-items:center;color:#65768a;font-size:11px;font-weight:700;margin-bottom:15px}.stat-icon{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;font-size:16px}.stat-icon.blue{background:var(--blue-light);color:var(--blue)}.stat-icon.green{background:var(--green-light);color:var(--green)}.stat-icon.orange{background:var(--orange-light);color:var(--orange)}.stat-icon.purple{background:var(--purple-light);color:var(--purple)}.stat-card strong{font-family:'DM Mono',monospace;font-size:18px;letter-spacing:-.06em;display:block;color:#22364d}.stat-card small{color:#8b9aab;font-size:10px;margin-top:7px;display:block}.dashboard-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:18px}.card{padding:21px}.card-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.card h2{font-size:15px;letter-spacing:-.03em;margin:0 0 4px}.card-header .muted{font-size:10px}.cashflow-card{min-height:287px}.legend{display:flex;gap:12px;color:#748497;font-size:10px}.legend span{display:flex;gap:5px;align-items:center}.legend-dot{width:7px;height:7px;border-radius:50%}.income-dot{background:#44b889}.expense-dot{background:#efad5e}.cashflow-chart{height:207px;display:flex;align-items:end;gap:10px;padding:0 7px;border-bottom:1px solid #edf1f5}.chart-col{height:100%;flex:1;display:flex;align-items:flex-end;justify-content:center;gap:5px;position:relative;padding-bottom:20px}.chart-bar{width:min(16px,42%);border-radius:3px 3px 0 0;min-height:2px}.chart-bar.in{background:#4eb98d}.chart-bar.out{background:#f1b568}.chart-label{position:absolute;bottom:2px;font-size:9px;color:#8b9aac}.health-list{display:grid;gap:16px}.health-row{display:grid;gap:7px}.health-head{display:flex;align-items:center;justify-content:space-between;font-size:11px}.health-head span{color:#63758a}.health-head b{font-family:'DM Mono',monospace;font-size:10px;color:#35506d}.progress{height:5px;background:#edf1f5;border-radius:5px;overflow:hidden}.progress i{display:block;height:100%;border-radius:5px;background:var(--blue)}.health-row:nth-child(2) .progress i{background:#47b98c}.health-row:nth-child(3) .progress i{background:#8b75cf}.health-row:nth-child(4) .progress i{background:#e9ae61}.recent-card{min-height:255px}.transaction-mini-list{display:grid}.mini-tx{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f5}.mini-tx:last-child{border:0}.tx-glyph{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;background:#eff4fc;color:#5075b5;font-size:13px}.mini-tx strong,.mini-tx small{display:block}.mini-tx strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.mini-tx small{color:#8292a4;font-size:9px;margin-top:2px}.mini-tx b{font-size:10px;font-family:'DM Mono',monospace;color:#344c66}.insight-card{background:#eaf4ef;border-color:#d5eadf;min-height:187px;position:relative;overflow:hidden}.insight-card:after{content:'✦';position:absolute;right:-12px;bottom:-48px;color:#cae6d6;font-size:130px}.insight-icon{color:#14855a;font-size:17px}.insight-card .eyebrow{margin-top:17px;color:#338565}.insight-card h2{font-size:18px;color:#174a36}.insight-card p:not(.eyebrow){font-size:11px;line-height:1.7;color:#4d7965;max-width:350px}.insight-card .text-btn{color:#16865b}.toolbar{padding:12px;display:flex;gap:10px;margin-bottom:15px}.search-box{display:flex;align-items:center;gap:9px;padding:0 10px;border:1px solid #dce4ed;border-radius:7px;flex:1;color:#8da1b5}.search-box:focus-within{border-color:#7ca5ea;box-shadow:0 0 0 3px #e9f1ff}.search-box input{border:0;box-shadow:none!important;padding:9px 0;width:100%;font-size:12px}.toolbar select{padding:9px;font-size:11px}.table-card{padding:0;overflow:hidden}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px;min-width:720px}th{text-align:left;background:#fafbfd;padding:13px 17px;color:#718297;font-size:9px;letter-spacing:.07em;text-transform:uppercase;border-bottom:1px solid var(--line)}td{padding:14px 17px;border-bottom:1px solid #edf1f5;color:#506276;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fbfcfe}td strong{color:#2c4258;display:block;font-size:11px}td small{display:block;color:#8a9aad;font-size:9px;margin-top:3px}.right{text-align:right}.money{font-family:'DM Mono',monospace;font-size:10px}.status-pill{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:700;padding:4px 6px;border-radius:4px;background:#eaf7f0;color:#27815d}.status-pill:before{content:'●';font-size:7px}.tx-view-btn{background:none;border:0;color:#53739b;font-size:14px}.empty-state{text-align:center;padding:65px 20px;color:#718196}.empty-state>span{display:grid;place-items:center;margin:0 auto 10px;color:#6d96d1;font-size:25px;height:48px;width:48px;background:#edf3fc;border-radius:14px}.empty-state h3{color:#3a4f65;font-size:14px;margin:0 0 6px}.empty-state p{font-size:11px;margin:0 0 17px}.account-summary{display:grid;grid-template-columns:1fr repeat(3,1.2fr);gap:13px;margin-bottom:16px}.account-type-card{border:1px solid var(--line);background:#fff;border-radius:11px;text-align:left;padding:16px;transition:.16s}.account-type-card:hover,.account-type-card.active{border-color:#a1bee9;background:#f7faff}.account-type-card small{font-size:9px;font-family:'DM Mono',monospace;color:#788ca0;display:block;margin-bottom:8px}.account-type-card strong{font-size:14px;color:#314a63;font-family:'DM Mono',monospace}.group-pill{font-size:9px;font-weight:700;padding:4px 7px;border-radius:4px}.group-pill.asset{background:#e9f0ff;color:#3868bb}.group-pill.liability{background:#fff1e4;color:#b36d1e}.group-pill.equity{background:#f0ecff;color:#745ac2}.group-pill.income{background:#e8f6ef;color:#26825d}.group-pill.expense{background:#ffeded;color:#bf5c5c}.budget-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;margin-bottom:17px}.budget-overview>div+div{border-left:1px solid var(--line);padding-left:25px}.budget-overview p{font-size:10px}.budget-overview h2{margin-top:7px;font-family:'DM Mono',monospace;font-size:18px}.budget-list{display:grid;gap:18px}.budget-row{display:grid;grid-template-columns:minmax(150px,1fr) 2fr 100px;gap:20px;align-items:center}.budget-row strong,.budget-row small{display:block}.budget-row strong{font-size:12px}.budget-row small{font-size:10px;color:#8595a8;margin-top:2px}.budget-track{height:8px;background:#eef2f5;border-radius:10px;overflow:hidden}.budget-track i{height:100%;display:block;background:#4a89da;border-radius:10px}.budget-track i.over{background:#d76a5e}.budget-money{text-align:right;font-family:'DM Mono',monospace;font-size:10px}.report-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:18px;gap:17px}.report-tab{padding:9px 1px;border:0;background:none;color:#8090a2;font-size:11px;font-weight:700;position:relative}.report-tab.active{color:var(--blue)}.report-tab.active:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--blue)}.report-paper{max-width:850px;min-height:440px;margin:auto;padding:clamp(25px,5vw,58px);box-shadow:0 3px 15px rgba(15,36,57,.06)}.report-title{text-align:center;margin-bottom:31px}.report-title h2{font-size:17px;margin:0 0 7px}.report-title p{font-size:10px;color:#75869a;margin:3px}.report-section{margin-bottom:25px}.report-section h3{font-size:10px;letter-spacing:.11em;color:#718398;margin:0 0 8px;border-bottom:1px solid #dce5ee;padding-bottom:8px}.report-line{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:11px;color:#3d5369}.report-line.indent{padding-left:16px}.report-line.total{border-top:1px solid #ccd8e4;margin-top:4px;padding-top:8px;font-weight:800;color:#21394f}.report-line.grand-total{border-top:2px double #91a6ba;margin-top:5px;padding-top:9px;font-weight:800;color:#172d43}.report-line .money{font-size:11px}.member-rules{display:flex;align-items:center;gap:17px;margin-bottom:17px;padding:18px 21px;background:#f6f9ff;border-color:#dce9fb}.rule-icon{font-size:27px;color:#5180c5}.member-rules h3{font-size:13px;margin:0 0 5px}.member-rules p{font-size:11px;color:#65778b;margin:0;line-height:1.7}.members-list{display:grid}.member-row{padding:12px 3px;border-bottom:1px solid #edf1f5;display:flex;align-items:center;gap:11px}.member-row:last-child{border:0}.member-row .member-info{flex:1}.member-row strong,.member-row small{display:block}.member-row strong{font-size:12px}.member-row small{font-size:10px;color:#8292a4;margin-top:2px}.role-select{border:0;background:#f2f5f8;border-radius:5px;padding:6px;font-size:10px;color:#466075;font-weight:700}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:1050px}.setting-card{padding:25px}.setting-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:25px}.setting-icon{color:var(--blue);height:36px;width:36px;display:grid;place-items:center;background:var(--blue-light);border-radius:9px;font-size:19px}.setting-heading h2{font-size:15px;margin:1px 0 5px}.setting-heading p{font-size:11px}.setting-card label{margin-bottom:13px}.settings-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.field-hint{font-size:10px;color:#8797a8;line-height:1.6}.schema-list{margin:0;padding:0;list-style:none;display:grid;gap:13px}.schema-list li{display:grid;gap:3px}.schema-list b{font-family:'DM Mono',monospace;font-size:10px;color:#405a76}.schema-list span{font-size:10px;color:#8292a4}.warning-card{grid-column:1/-1;background:#fffbf0;border-color:#f4e6bb;display:flex;gap:15px}.warning-card>span{height:27px;width:27px;display:grid;place-items:center;border-radius:50%;background:#f1c761;color:#fff;font-weight:800}.warning-card h3{font-size:13px;margin:1px 0 6px;color:#73541e}.warning-card p{font-size:11px;color:#887145;line-height:1.65;margin:0}.modal-root{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(12,30,49,.54);backdrop-filter:blur(2px)}.modal-card{background:#fff;border-radius:15px;width:min(100%,670px);max-height:min(90vh,720px);overflow:auto;position:relative;box-shadow:0 25px 80px rgba(7,22,40,.3);animation:modal-in .18s ease-out}.modal-header{display:flex;justify-content:space-between;align-items:start;padding:24px 27px 17px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:18px;margin:0;letter-spacing:-.03em}.icon-btn{height:31px;width:31px;display:grid;place-items:center;background:#f2f5f8;color:#55708a;font-size:20px;line-height:1}.icon-btn:hover{background:#e5ebf1}.modal-form{padding:22px 27px}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid label{min-width:0}.modal-form label input,.modal-form label select{width:100%}.journal-lines-heading{display:flex;justify-content:space-between;align-items:center;margin-top:4px;padding:5px 0 11px}.journal-lines-heading strong{font-size:12px}.journal-line{display:grid;grid-template-columns:1.5fr .75fr .75fr 29px;gap:8px;margin-bottom:9px}.journal-line select,.journal-line input{width:100%;padding:9px;font-size:11px}.delete-line{border:0;background:#fff0f0;color:#c66a6a;border-radius:6px;font-size:16px}.delete-line:hover{background:#ffe2e2}.journal-totals{border-top:1px solid var(--line);margin-top:10px;padding-top:12px;display:flex;gap:17px;align-items:center;justify-content:flex-end;font-size:10px;color:#61758a}.journal-totals b{font-family:'DM Mono',monospace;margin-left:3px;color:#2f4962}.journal-totals strong{padding:5px 7px;border-radius:5px;font-size:9px}.journal-totals .balanced{background:#e8f6ef;color:#248359}.journal-totals .unbalanced{background:#fff1eb;color:#bd6f42}.info-box{background:#f5f8fc;border-left:3px solid #94b6ea;padding:11px 12px;margin:2px 0 19px}.info-box b{font-size:11px;color:#365574}.info-box p{font-size:10px;color:#708297;line-height:1.6;margin:4px 0 0}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.modal-actions button{min-width:92px}#toast-region{position:fixed;z-index:999;top:20px;right:20px;display:grid;gap:8px}.toast{padding:12px 16px;border-radius:9px;background:#203c5b;color:#fff;box-shadow:0 12px 30px rgba(10,29,49,.22);font-size:12px;animation:toast-in .25s ease-out;max-width:340px}.toast.success{background:#187854}.toast.error{background:#b94e52}@keyframes modal-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}@keyframes toast-in{from{opacity:0;transform:translateX(15px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.stat-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.warning-card{grid-column:auto}}
@media(max-width:780px){.auth-screen{grid-template-columns:1fr}.brand-panel{min-height:auto;padding:45px 30px}.brand-panel h1{font-size:35px}.feature-list,.security-note{display:none}.form-panel{min-height:auto;padding:42px 30px}.sidebar{transform:translateX(-100%);transition:transform .22s}.sidebar.open{transform:translateX(0)}.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(8,23,39,.4);z-index:19}.sidebar-backdrop.show{display:block}.main-content{margin-left:0}.mobile-only{display:grid}.topbar{padding:0 18px;height:63px}.breadcrumb span,.connection{display:none}.view{padding:27px 18px 45px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:22px}.page-heading h1{font-size:25px}.heading-actions{width:100%}.heading-actions .secondary-btn,.heading-actions .primary-btn{flex:1}.topbar-actions{gap:8px}.topbar-actions .primary-btn{font-size:0;padding:10px;width:34px;height:34px}.topbar-actions .primary-btn:first-letter{font-size:17px}.stat-grid{gap:10px}.stat-card{padding:14px}.stat-card strong{font-size:14px}.stat-card small{font-size:9px}.stat-icon{display:none}.dashboard-grid{gap:12px}.card{padding:16px}.toolbar{flex-wrap:wrap}.toolbar .search-box{flex:1 1 100%}.account-summary{grid-template-columns:1fr 1fr;gap:8px}.account-type-card{padding:12px}.account-type-card strong{font-size:12px}.budget-overview{gap:10px}.budget-overview>div+div{padding-left:10px}.budget-overview h2{font-size:13px}.budget-row{grid-template-columns:1fr 85px;gap:10px}.budget-track{grid-column:1/-1;grid-row:2}.budget-money{grid-column:2;grid-row:1}.report-tabs{overflow:auto;gap:15px}.report-tab{white-space:nowrap}.member-rules{align-items:flex-start}.modal-root{padding:9px}.modal-header,.modal-form{padding-left:18px;padding-right:18px}.form-grid.two{grid-template-columns:1fr}.journal-line{grid-template-columns:1fr 78px 78px 27px;gap:5px}.journal-totals{gap:8px;flex-wrap:wrap;justify-content:flex-start}.settings-actions{justify-content:stretch}.settings-actions button{flex:1}.cashflow-card{min-height:260px}.mini-tx strong{max-width:125px}}
@media(max-width:410px){.stat-grid{grid-template-columns:1fr 1fr}.stat-card{min-height:108px}.topbar-actions .primary-btn{display:grid;place-items:center}.page-heading .heading-actions{flex-direction:column}.page-heading .heading-actions button{width:100%}.brand-panel{padding:36px 25px}.form-panel{padding:34px 25px}.journal-line{grid-template-columns:1fr 70px 70px 23px}.journal-line select{grid-column:1/-1}.journal-line input{font-size:10px}.delete-line{grid-column:4;grid-row:1}.cashflow-chart{gap:5px}.chart-col{gap:2px}.chart-bar{width:45%}}
@media print{.sidebar,.topbar,.page-heading,.report-tabs,#toast-region{display:none!important}.main-content{margin:0}.view{display:none!important;padding:0}.view.active-view#view-reports{display:block!important}.report-paper{box-shadow:none;border:0;max-width:none;padding:0}}

/* CatatRapi CRp logo integration */
.brand-logo-auth{width:132px;height:92px;margin:0 0 24px;display:flex;align-items:center;justify-content:flex-start}.brand-logo-auth img{display:block;width:132px;height:92px;object-fit:contain;object-position:left center}.logo-image{width:31px;height:31px;object-fit:contain;flex:0 0 auto}.logo{gap:10px}.logo>span{white-space:nowrap}@media(max-width:780px){.brand-logo-auth{width:108px;height:75px;margin-bottom:20px}.brand-logo-auth img{width:108px;height:75px}}

/* Contrast treatment: the navy CRp mark stays legible on dark application surfaces. */
.brand-logo-auth{width:158px;height:111px;padding:8px;margin-bottom:27px;background:linear-gradient(145deg,#ffffff 0%,#eaf5fb 100%);border:1px solid rgba(162,205,230,.72);border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.2)}
.brand-logo-auth img{width:142px;height:95px;object-position:center}
.logo-image{width:37px;height:30px;padding:2px;background:#f5fbff;border:1px solid rgba(153,196,225,.72);border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.18)}
@media(max-width:780px){.brand-logo-auth{width:132px;height:93px;padding:6px;margin-bottom:21px;border-radius:13px}.brand-logo-auth img{width:120px;height:81px}}

/* CatatRapi light-surface brand background: logo stays directly on the surface, without a contrast card. */
.brand-panel{background:#e5f2f4;color:#112b47}.brand-panel:before{border-color:rgba(28,92,125,.13);box-shadow:0 0 0 55px rgba(28,92,125,.045),0 0 0 110px rgba(28,92,125,.025)}.brand-panel:after{border-color:rgba(25,129,130,.2)}.brand-panel .eyebrow{color:#397b87}.brand-panel h1{color:#102b47}.brand-copy{color:#47677d}.feature-list{border-top-color:rgba(33,82,110,.18)}.feature-list div{color:#254b68}.feature-list b{color:#14775e;background:rgba(40,152,118,.12)}.security-note{color:#59758b}
.sidebar{background:#e9f3f7;color:#45647c;border-right:1px solid #d5e3ea}.logo{color:#102b47}.logo>span>span{color:#16865b}.nav-item{color:#58738a}.nav-item:hover{color:#173a58;background:rgba(52,112,153,.08)}.nav-item.active{color:#143754;background:#d6e8f5}.nav-item.danger{color:#b05c5c}.book-switcher{color:#183b58;background:rgba(255,255,255,.72);border-color:#c9dbe7}.book-switcher:hover{background:#fff}.book-icon{background:#dbe9f5;color:#366998}.book-switcher-text small,.chevron{color:#6e8aa1}.sidebar-bottom{border-top-color:#cfdee8}.user-card{border-top-color:#cfdee8}.user-card strong{color:#274963}.user-card small{color:#6e899f}
.brand-logo-auth{width:132px;height:92px;padding:0;margin:0 0 28px;background:transparent;border:0;border-radius:0;box-shadow:none}.brand-logo-auth img{width:132px;height:92px;object-position:left center}.logo-image{width:32px;height:27px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
@media(max-width:780px){.brand-logo-auth{width:108px;height:75px;padding:0;margin-bottom:20px}.brand-logo-auth img{width:108px;height:75px}}
