:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#233a33;background:#f5f7f6;font-size:14px;--green:#166b50;--muted:#7a8983;--border:#e5ebe7;--red:#bd6452;--radius:16px}*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #76b69d}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1.1px;font-weight:650;line-height:1.25}h2{font-size:18px;font-weight:650;letter-spacing:-.3px}h3{font-size:16px;font-weight:600}.muted{color:var(--muted);font-size:13px;line-height:1.65}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.5px;color:#81918a;margin-bottom:12px}.app{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--border);padding:35px 22px 23px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;font-size:23px;font-weight:700;letter-spacing:-.8px}.brand-mark{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:var(--green);color:white;font-size:29px;line-height:1;font-family:Georgia,serif;padding-bottom:4px}.sidebar-label{font-size:9px;letter-spacing:1.7px;color:#95a19b;margin:48px 12px 14px}.nav-item{display:flex;align-items:center;width:100%;gap:12px;border:0;background:none;color:#6c7d75;text-align:left;padding:14px 13px;border-radius:10px;margin-bottom:5px;font-size:13px;font-weight:500}.nav-item:hover{background:#f5f8f6}.nav-item.active{background:#eaf5ee;color:var(--green);font-weight:650}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.svg-definitions{position:absolute;width:0;height:0;overflow:hidden}.nav-new{margin-left:auto;font-size:9px;padding:3px 5px;background:#eaf5ee;color:var(--green);border-radius:4px}.sidebar-note{margin-top:auto;background:#f5f8f6;padding:17px 14px;border-radius:12px;font-size:11px;line-height:1.6}.sidebar-note strong{display:block;font-weight:600;margin:8px 0 6px}.sidebar-note p{color:#8b9891}.note-dot{display:block;width:7px;height:7px;background:#72a88a;border-radius:50%}.profile{display:flex;gap:11px;align-items:center;border-top:1px solid var(--border);margin-top:25px;padding:21px 4px 0}.profile strong{display:block;font-size:12px;max-width:130px;overflow:hidden;text-overflow:ellipsis}.avatar{background:#e9eee9;color:#47725c;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;font-weight:600}.text-button{background:none;border:0;color:var(--green);padding:6px 0;font-size:12px;text-align:left}.profile .text-button{color:#91a097}main{padding:38px 38px 0;min-width:0;max-width:1700px;width:100%;margin:auto}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-header .muted{margin-top:9px}.header-actions{display:flex;gap:10px}.button{border:1px solid transparent;border-radius:9px;min-height:41px;display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:10px 16px;font-size:12px;font-weight:600;transition:background .15s}.primary{background:var(--green);color:white}.primary:hover{background:#105b42}.secondary{background:white;color:#4d6559;border-color:#dfe6e1}.secondary:hover{background:#f0f5f1}.small{min-height:34px;padding:7px 12px;font-size:11px}.button svg{width:16px;height:16px}.filters{display:flex;align-items:flex-end;gap:12px;background:white;border:1px solid var(--border);border-radius:12px;padding:14px 18px;margin-bottom:24px}.filters label{font-size:10px;color:#829188;min-width:110px}.filters input,.filters select{padding:7px 9px;font-size:12px;height:35px;margin-top:5px}.filters .button{min-height:35px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat-card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:23px}.stat-card p{color:#7f8d86;font-size:12px;display:flex;justify-content:space-between;align-items:center}.stat-card p span{font-size:21px;font-weight:400}.stat-card strong{display:block;font-size:28px;font-weight:650;letter-spacing:-.8px;margin:18px 0 13px;font-variant-numeric:tabular-nums}.stat-card small{font-size:10px;color:#8d9a93;line-height:1.5}.balance-card{background:var(--green);color:white;border-color:var(--green)}.balance-card p,.balance-card small{color:#b8d6c8}.income-text{color:var(--green)}.expense-text{color:var(--red)}.card{border:1px solid var(--border);background:white;border-radius:var(--radius);padding:25px;min-width:0}.chart-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:22px;margin-bottom:24px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.card-heading .muted{margin-top:5px;font-size:11px}.chart-key{display:flex;gap:14px;font-size:10px;color:#7f8b85;white-space:nowrap}.chart-key span::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.income-dot::before{background:#228360}.expense-dot::before{background:#d69a7a}.line-chart{min-height:250px}.line-chart svg{display:block;width:100%;height:auto;stroke:none;fill:none}.pie-chart svg{display:block;width:190px;height:190px;margin:0 auto;stroke:none}.chart-legend{display:grid;gap:8px;margin-top:18px}.legend-item{display:flex;gap:9px;align-items:center;border:0;background:none;padding:2px 0;text-align:left;color:#6c7c73;font-size:11px}.legend-item:hover{color:var(--green)}.legend-item svg{width:8px;height:8px;stroke:none;flex-shrink:0}.legend-item strong{margin-left:auto;color:#334d3f;font-size:11px;white-space:nowrap}.chart-empty{min-height:220px;display:grid;place-items:center;text-align:center;color:#95a097;font-size:13px}.table-filters{display:grid;grid-template-columns:2fr 1fr 1.2fr;gap:14px;margin-bottom:19px}.table-filters label{font-size:10px;color:#7f8d85}.table-filters input,.table-filters select{height:37px;font-size:12px;margin-top:6px;background:#f8faf8;border-color:#edf0ed}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{text-align:left;color:#8d9993;font-size:10px;font-weight:500;border-bottom:1px solid #edf1ed;padding:12px 10px;background:#fbfcfb}td{padding:16px 10px;border-bottom:1px solid #edf1ed}.number{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.transaction-name{display:flex;gap:12px;align-items:center}.transaction-icon{display:grid;place-items:center;background:#f2f5f0;border-radius:10px;width:35px;height:35px;color:#7a8c79;font-size:17px}.transaction-icon.income{background:#edf7ef;color:var(--green)}.transaction-description{white-space:normal;min-width:130px;max-width:340px;font-weight:500}.transaction-description small{display:block;font-size:10px;color:#9aa69f;margin-top:4px;font-weight:400}.tag{display:inline-block;background:#f2f5f1;border:1px solid #e6ece5;border-radius:5px;color:#7c8c7c;padding:4px 8px;font-size:10px}.muted-cell{color:#8a988e;font-size:11px}.row-actions{display:flex;gap:4px}.icon-button{border:0;background:none;font-size:21px;color:#92a095;line-height:1;padding:6px}.row-actions button{border:0;background:none;font-size:10px;color:#778c7d;padding:4px}.row-actions button:hover{color:var(--green)}.pagination{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:11px;color:#8d9a92}.page-footer{display:flex;justify-content:space-between;padding:25px 0;color:#a0aaa4;font-size:10px}.page-footer span:first-child{font-weight:600}.notice{background:#f1f7f3;color:#557261;padding:13px 16px;font-size:12px;line-height:1.65;border-radius:9px;margin:16px 0}.notice.error{background:#fbefed;color:#a55645}.error-text{color:#ad5345;font-size:12px;line-height:1.6;min-height:20px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#254b38;color:white;box-shadow:0 7px 25px #0002;padding:14px 24px;border-radius:12px;z-index:20;font-size:13px}label{display:block;font-size:12px;font-weight:500}input,select{display:block;width:100%;border:1px solid #dfe6e0;background:white;color:#324d3c;border-radius:8px;padding:11px;margin-top:8px;min-width:0}input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:var(--green)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}dialog{border:0;border-radius:18px;padding:28px;width:570px;max-width:calc(100vw - 30px);box-shadow:0 25px 90px #173e3133;color:#2a4435}dialog::backdrop{background:#16332666;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog-actions .button{min-width:105px}dialog .error-text{margin-top:16px}.import-card{max-width:1100px}.import-card>.muted{margin-top:10px}.import-steps{display:flex;gap:25px;padding-left:22px;margin:27px 0;color:#91a296;font-size:12px}.upload-zone{border:1px dashed #b4c9ba;background:#f8fbf8;border-radius:12px;padding:30px;display:flex;flex-direction:column;align-items:center;gap:12px;margin:25px 0;font-size:13px}.upload-zone svg{width:27px;height:27px;color:#6a987a}.upload-zone span{font-size:11px;color:#93a296}.upload-zone input{max-width:360px;font-size:12px;border:0;background:transparent}.section-divider{height:1px;background:var(--border);margin:30px 0}#csv-mapping h3,#csv-preview h3{margin-bottom:12px}#csv-mapping .form-grid{margin:20px 0}#csv-mapping>.muted{margin:15px 0}#csv-mapping .table-wrap{margin:20px 0}#csv-mapping>.button{margin-top:12px}.import-confirm{display:flex;align-items:center;justify-content:space-between;margin-top:23px;color:#7c8b7f;font-size:12px}.history-card{margin-top:22px}.history-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);padding:16px 0;font-size:12px;gap:15px}.history-row small{display:block;color:#8a988d;margin-top:5px}.status-text{font-size:10px;max-width:170px;white-space:normal}.status-error{color:var(--red)}.status-duplicate{color:#9c894c}#preview-body td{padding:12px 8px}#preview-body select{font-size:11px;margin:0;max-width:170px;padding:7px}.section-actions{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:15px}.section-actions>div{display:flex;gap:10px}.account-grid,.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.account-tile{padding:25px}.account-tile h3{margin-bottom:20px}.account-balance{display:flex;align-items:center;justify-content:space-between;margin:12px 0}.account-balance span{color:#92a08f;font-size:12px}.account-balance strong{font-size:23px;letter-spacing:-.5px}.category-grid{grid-template-columns:repeat(2,1fr)}.category-group h2{margin-bottom:20px}.category-row{display:flex;align-items:center;gap:10px;border-top:1px solid var(--border);padding:12px 0;font-size:12px}.category-row small{margin-left:auto;color:#94a093}.debt-row{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--border);gap:18px}.debt-row small{display:block;color:#94a093;font-size:11px;margin-top:6px}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr}.auth-intro{padding:65px 12%;background:#eef4ee;display:flex;flex-direction:column}.auth-intro h1{font-size:51px;margin:85px 0 24px;letter-spacing:-2px;line-height:1.2}.auth-intro>p{color:#83927f;font-size:14px;line-height:1.9}.auth-art{background:var(--green);color:#ecf5ee;padding:35px;margin-top:52px;border-radius:20px;max-width:390px}.auth-art span{font-size:10px;letter-spacing:1px;color:#b2d2ba}.auth-art strong{display:block;font-size:21px;font-weight:500;margin-top:15px;line-height:1.5}.art-bars{display:flex;gap:10px;align-items:flex-end;height:96px;margin-top:18px}.art-bars i{height:35%;background:#69a47f;width:33px;border-radius:6px 6px 0 0}.art-bars i:nth-child(2n){height:55%}.art-bars i:nth-child(3n){height:70%}.art-bars i:last-child{height:90%;background:#b4d5a7}.auth-card{margin:auto;padding:40px;width:420px;max-width:100%}.auth-card h2{font-size:28px;margin-bottom:10px}.auth-card>.muted{margin-bottom:28px}.auth-card label{margin:18px 0}.auth-card .primary{width:100%;margin:10px 0 15px;min-height:44px}.auth-card>.text-button{display:block;margin:auto;text-align:center}.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}@media(min-width:1600px){main{padding-left:55px;padding-right:55px}.line-chart{min-height:300px}}@media(max-width:1200px){main{padding:28px 25px 0}.header-actions{flex-direction:column}.stat-card{padding:18px}.stat-card strong{font-size:22px}.chart-grid{grid-template-columns:1.4fr 1fr}.chart-key{gap:8px}.card{padding:20px}.account-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:950px){.app{grid-template-columns:190px 1fr}.sidebar{padding:30px 12px 20px}.brand{font-size:20px}.chart-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.filters{flex-wrap:wrap}.filters label{flex:1}.header-actions .button{font-size:10px}.table-filters{grid-template-columns:1fr 1fr}.search-label{grid-column:1/-1}.auth-intro h1{font-size:40px}.category-grid{grid-template-columns:1fr}}@media(max-width:700px){.app{display:block}.sidebar{height:auto;position:static;display:block;padding:16px;border-right:0;border-bottom:1px solid var(--border)}.sidebar .brand{justify-content:center}.sidebar-label,.sidebar-note,.profile{display:none}.sidebar nav{display:flex;gap:5px;overflow-x:auto;margin-top:16px}.nav-item{white-space:nowrap;width:auto;flex-shrink:0;gap:7px;padding:9px 11px;font-size:11px;margin:0}.nav-item svg{width:15px;height:15px}.nav-new{display:none}main{padding:24px 16px 0}.page-header{display:block;margin-bottom:22px}.page-header h1{font-size:27px}.header-actions{flex-direction:row;margin-top:20px}.header-actions .button{font-size:11px;flex:1;padding:10px}.filters{padding:13px;gap:10px}.filters label{min-width:115px}.filters .button{width:100%}.stat-card{padding:18px 15px}.stat-card strong{font-size:21px}.stat-card p{font-size:11px}.stat-card small{font-size:9px}.stats{gap:12px}.card{padding:19px}.card-heading{align-items:flex-start;gap:10px}.card-heading h2{font-size:16px}.chart-key{display:block;font-size:9px}.chart-key span{display:block;margin:5px 0}.line-chart{min-height:150px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.account-grid{grid-template-columns:1fr}.section-actions{align-items:flex-start;flex-wrap:wrap}.import-steps{gap:20px;font-size:10px}.import-confirm{align-items:flex-start;gap:15px;flex-direction:column}.auth-screen{display:block}.auth-intro{padding:25px}.auth-intro h1{font-size:30px;margin:30px 0 14px}.auth-intro>p{font-size:12px}.auth-art{display:none}.auth-card{padding:32px 25px;width:100%}.auth-card h2{font-size:25px}.history-row{align-items:flex-start}.toast{width:calc(100vw - 40px);text-align:center}.page-footer{font-size:9px}.pagination{gap:10px}}
.table-wrap{position:relative}
.mobile-logout{display:none}
@media(max-width:700px){.mobile-logout{display:block;position:absolute;right:16px;top:20px}}
:root{--radius:11px}
.app{display:block}
.sidebar{position:static;height:auto;display:flex;flex-direction:row;align-items:center;gap:35px;padding:13px 26px;border-right:0;border-bottom:1px solid var(--border)}
.sidebar-label,.sidebar-note{display:none}
.sidebar nav{display:flex;gap:5px;align-items:center}
.nav-item{width:auto;white-space:nowrap;padding:9px 13px;margin:0;font-size:12px;gap:9px}
.nav-new{margin-left:4px}
.brand{font-size:21px;gap:9px}
.brand-mark{width:32px;height:32px;font-size:26px;border-radius:9px}
.profile{margin:0 0 0 auto;padding:0;border:0}
.profile .avatar{width:30px;height:30px}
.profile>div{display:flex;align-items:center;gap:14px}
.profile .text-button{font-size:11px}
main{max-width:1800px;padding:19px 26px 0}
.page-header{margin-bottom:16px;align-items:center}
.page-header h1{font-size:23px;letter-spacing:-.5px}
.page-header .eyebrow,.page-header .muted{display:none}
.header-actions{flex-direction:row}
.header-actions .button{min-height:32px;font-size:11px;padding:7px 12px}
.finance-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:19px;align-items:start}
.finance-sidebar{display:grid;gap:12px}
.finance-content{min-width:0}
.compact-card{padding:15px}
.compact-card h2{font-size:15px;margin-bottom:10px}
.compact-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.compact-heading h2{margin:0}
.compact-heading .text-button{font-size:11px}
.sidebar-account{padding:10px 0;border-bottom:1px solid var(--border);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:start}
.sidebar-account>strong{font-size:12px;line-height:1.6;grid-row:span 5;font-weight:500}
.sidebar-balance{background:none;border:0;text-align:right;padding:0;font-size:13px;color:var(--green);font-weight:600;white-space:nowrap;line-height:1.6}
.sidebar-balance:hover{text-decoration:underline}
.compact-card>.text-button{font-size:10px;margin-top:7px}
.sidebar-debt{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px solid var(--border);font-size:12px;line-height:1.5}
.sidebar-debt>div{display:grid;gap:4px;text-align:right}
.sidebar-debt button{border:0;background:none;padding:0;font-size:12px;text-align:right;font-weight:600;white-space:nowrap}
.sidebar-debts .muted{font-size:11px}
.quick-entry{padding:16px 19px;margin-bottom:12px}
.quick-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px}
.quick-heading h2{font-size:16px}
.entry-kinds{display:flex;gap:3px;flex-wrap:wrap}
.entry-kinds button{border:0;background:none;color:#809081;padding:6px 10px;border-radius:6px;font-size:11px}
.entry-kinds button.selected{color:var(--green);background:#eaf4ed;font-weight:600}
.quick-priority{display:grid;grid-template-columns:150px minmax(160px,1fr) 148px;gap:12px;align-items:end}
.quick-priority label{font-size:11px;color:#78917e}
.quick-priority input{margin-top:5px;padding:9px 11px;height:39px;font-size:14px}
#quick-code-label{font-size:10px;color:#a0aca1;margin-left:5px}
.quick-priority .button{height:39px;min-height:39px;font-size:12px}
.quick-category-row{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.quick-category-row>span{font-size:10px;color:#93a18f}
.frequent-categories{display:flex;gap:5px;flex-wrap:wrap}
.frequent-category{border:1px solid #e3e9df;background:#f8faf6;color:#7e8e74;border-radius:6px;padding:5px 9px;font-size:11px}
.frequent-category.selected{background:#e7f1e6;border-color:#b8d1b3;color:#377744}
#quick-category{width:175px;height:29px;margin:0;padding:5px 8px;font-size:11px}
.frequent-comments{display:flex;gap:7px;flex-wrap:wrap;margin:8px 0 0 0}
.comment-choice{background:none;border:0;padding:2px 0;font-size:11px;color:#8c9789;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quick-options{display:flex;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap}
.quick-options label{display:flex;align-items:center;gap:6px;font-size:10px;color:#93a18f}
.quick-options select,.quick-options input{margin:0;padding:5px 7px;height:29px;font-size:11px}
.quick-options label:first-child select{width:175px}
#quick-currency{width:75px}
#quick-date{width:130px}
.quick-options .text-button{font-size:11px;margin-left:auto}
#quick-error{margin-top:10px}
.capital-card,.forecast-card{padding:12px 16px;margin-bottom:12px}
details>summary{cursor:pointer}
.capital-summary{display:flex;align-items:center;gap:24px;font-size:11px;color:#8a9984;flex-wrap:wrap}
.capital-summary>span:first-child{font-weight:650;color:#496e4d;font-size:12px}
.capital-summary strong{font-size:14px;color:#405b3d;font-weight:600;margin-left:7px;white-space:nowrap}
.capital-card[open]>.muted{margin:14px 0;font-size:11px}
.position-actions{display:flex;gap:10px;margin-top:10px}
.position-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--border);padding:10px 0;font-size:12px}
.position-row>strong{margin-left:auto}
.position-row>.text-button{font-size:10px}
.forecast-card>summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:11px;color:#759071}
.forecast-card>summary>strong{font-size:12px;color:#476f45}
.forecast-card>summary>.muted{margin-left:auto;font-size:10px}
.forecast-options{display:flex;align-items:flex-end;gap:15px;margin:18px 0 10px}
.forecast-options label{font-size:11px}
.forecast-options input,.forecast-options select{padding:7px;font-size:12px}
.forecast-options button{margin-left:auto}
.plan-table{margin-top:12px;white-space:normal}
.plan-table td{padding:8px 7px;font-size:11px}
.plan-table select,.plan-table input{margin:0;font-size:11px;padding:7px;height:31px}
.plan-table input{width:110px}
.plan-table select{min-width:160px}
.plan-totals{font-size:12px;font-weight:600;padding:15px 0;line-height:1.8;color:#486944}
.plan-footer{display:flex;gap:15px;justify-content:space-between;align-items:center}
.plan-footer .muted{font-size:10px}
.filters{padding:10px 13px;gap:10px;margin-bottom:10px;background:#f8faf7;border-radius:8px}
.filters label{display:flex;align-items:center;gap:6px;min-width:0;font-size:10px}
.filters input,.filters select{margin:0;height:28px;font-size:10px;padding:5px 7px}
.filters .button{height:28px;min-height:28px;padding:5px 10px;font-size:10px}

.stats{display:flex;gap:16px;border:1px solid var(--border);padding:10px 16px;background:white;border-radius:8px;margin-bottom:10px}
.stat-card{flex:1;border:0;padding:0;border-radius:0;background:none}
.stat-card.balance-card{display:none}
.stat-card p{font-size:10px;color:#8c9b88}
.stat-card p span{display:none}
.stat-card strong{font-size:19px;margin:4px 0 0;letter-spacing:-.4px}
.stat-card small{display:none}
.analytics{margin:0 0 12px;font-size:11px;color:#859a7f}
.analytics>summary{padding:8px 12px}
.analytics .chart-grid{margin:12px 0 0}
.chart-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:13px}
.chart-grid .card{padding:18px}
.chart-grid h2{font-size:15px}
.line-chart{min-height:200px}
#transactions-view{padding:16px 18px}
#transactions-view .card-heading{margin-bottom:12px}
#transactions-view h2{font-size:15px}
#transactions-view .card-heading .muted{font-size:10px}
.table-filters{gap:10px;margin-bottom:10px}
.table-filters input,.table-filters select{height:29px;padding:6px 8px;font-size:11px;margin-top:4px}
th{padding:8px 7px}
td{padding:9px 7px;font-size:11px}
.transaction-icon{width:25px;height:25px;border-radius:6px;font-size:14px}
.transaction-name{gap:8px}
.transaction-description{min-width:100px;max-width:320px}
.transaction-description small{font-size:9px;margin-top:2px}
.tag{font-size:9px;padding:3px 6px}
.muted-cell{font-size:10px}
.row-actions button{font-size:9px;padding:3px}
.pagination{margin-top:12px;font-size:10px}
.page-footer{padding:18px 0}
@media(min-width:1600px){main{padding:22px 35px 0}.finance-layout{grid-template-columns:280px minmax(0,1fr)}.line-chart{min-height:200px}}
@media(max-width:1200px){.finance-layout{grid-template-columns:235px minmax(0,1fr);gap:14px}.sidebar{gap:20px;padding:12px 20px}main{padding:17px 20px 0}.profile>div{gap:9px}.capital-summary{gap:13px}.quick-heading{align-items:flex-start;flex-direction:column;gap:8px}.quick-priority{grid-template-columns:120px minmax(130px,1fr) 125px}.filters{flex-wrap:wrap}.filters label{flex:0 1 auto}.chart-grid{grid-template-columns:1fr}.table-filters{grid-template-columns:1.4fr 1fr 1fr}}
@media(max-width:950px){.sidebar{gap:13px}.sidebar nav{gap:0}.nav-item{padding:8px 9px;font-size:11px}.profile .avatar{display:none}.profile strong{max-width:100px;font-size:10px}.finance-layout{grid-template-columns:210px minmax(0,1fr)}.sidebar-account{grid-template-columns:1fr}.sidebar-account>strong{grid-row:auto}.sidebar-balance{text-align:left}.quick-priority{grid-template-columns:110px 1fr}.quick-priority .button{grid-column:1/-1;width:100%}.quick-options label:first-child select{width:140px}.capital-summary{gap:12px}.capital-summary strong{font-size:12px}.table-filters{grid-template-columns:1fr 1fr}.search-label{grid-column:1/-1}}
@media(max-width:700px){.sidebar{display:block;padding:12px 14px}.sidebar .brand{justify-content:flex-start}.sidebar nav{margin-top:10px;overflow-x:auto;gap:3px}.profile{display:none}.mobile-logout{top:18px}main{padding:15px 12px 0}.page-header{display:flex;gap:10px;margin-bottom:12px}.page-header h1{font-size:18px}.header-actions{margin:0}.header-actions .button{font-size:10px;padding:6px 8px}.header-actions #add-transaction{display:none}.header-actions .button svg{display:none}.finance-layout{display:flex;flex-direction:column;gap:13px}.finance-sidebar{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:9px}.finance-sidebar .compact-card:first-child{grid-column:1/-1}.compact-card{padding:12px}.compact-card h2{font-size:13px}.sidebar-account{grid-template-columns:1fr auto;padding:7px 0}.sidebar-account>strong{grid-row:span 5;font-size:11px}.sidebar-balance{text-align:right;font-size:12px}.sidebar-debt{font-size:10px;gap:5px}.sidebar-debt button{font-size:10px}.sidebar-debts .muted{font-size:10px}.finance-content{width:100%}.quick-entry{padding:14px}.entry-kinds{gap:2px}.entry-kinds button{font-size:10px;padding:5px 7px}.quick-priority{grid-template-columns:98px minmax(0,1fr);gap:10px}.quick-priority input{font-size:13px}.quick-priority .button{height:35px;min-height:35px}.quick-category-row{gap:5px}.frequent-category{font-size:10px;padding:4px 7px}#quick-category{width:150px}.quick-options{gap:8px}.quick-options label{font-size:9px}.quick-options label:first-child select{width:138px}.quick-options .text-button{margin-left:0}.capital-card,.forecast-card{padding:12px}.capital-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.capital-summary strong{font-size:12px;margin-left:3px}.forecast-card>summary{gap:8px}.forecast-card>summary>.muted{margin-left:0}.forecast-options{flex-wrap:wrap;gap:10px}.forecast-options button{margin-left:0}.forecast-options label{flex:1}.plan-footer{flex-direction:column;align-items:flex-start}.plan-totals{font-size:11px}.position-row{flex-wrap:wrap;gap:8px}.filters{gap:8px;padding:10px}.filters label{flex:1 1 120px}.filters .button{width:auto}.stats{gap:12px;padding:10px 12px}.stat-card strong{font-size:15px}.stat-card p{font-size:9px}.chart-grid{grid-template-columns:1fr}.line-chart{min-height:150px}#transactions-view{padding:14px}.table-filters input,.table-filters select{font-size:10px}.plan-table{white-space:nowrap}.sidebar-balance,.sidebar-debt button{line-height:1.6}}
.operation-group td{padding:7px 9px;background:#f0f6f3;color:#426455;font-weight:600;font-size:12px}.quick-options #show-all-operations{margin-left:auto}.quick-options #show-similar{margin-left:0}.sidebar-account{padding-bottom:8px;margin-bottom:8px}.sidebar-account:last-child{padding-bottom:4px;margin-bottom:4px}

.supported-banks{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}.supported-bank{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #e1e6ec;border-radius:14px;flex:1;min-width:210px}.supported-bank img{flex-shrink:0}.supported-bank strong,.supported-bank span{display:block}.supported-bank span{font-size:12px;color:#627084;margin-top:4px}.upload-zone.drag-over{border-color:#00a650;background:#effbf4;box-shadow:0 0 0 3px #00a65022}
.bank-file-navigation{display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:8;background:#f0f6f3;padding:12px;border:1px solid #d5e4dc;border-radius:8px;margin-bottom:16px}.bank-open-file{overflow-wrap:anywhere;min-width:0}.bank-file-navigation button{flex-shrink:0}.archive-current{background:#edf6f0;border-left:3px solid #147d64;padding-left:12px}.archive-open-label{color:#147d64;font-weight:600}.bank-rule-settings{margin:16px 0}.bank-preview-controls input[type=checkbox],.bank-preview-table input[type=checkbox]{width:20px;height:20px;cursor:pointer}.bank-preview-controls label{display:flex;gap:10px;align-items:center}@media(max-width:600px){.bank-file-navigation{align-items:start;flex-direction:column;gap:8px}}

/* Internal list separators stop at the final row; card frames remain intact. */
.history-row:last-child,.debt-row:last-child,.sidebar-account:last-child,.position-row:last-child{border-bottom:0}
.history-row:nth-last-child(1 of .history-row:not([hidden])),.debt-row:nth-last-child(1 of .debt-row:not([hidden])),.sidebar-account:nth-last-child(1 of .sidebar-account:not([hidden])),.position-row:nth-last-child(1 of .position-row:not([hidden])){border-bottom:0}
