:root{color:#19202a;background:#f5f7fa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.app-shell{display:grid;grid-template-columns:264px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;gap:26px;height:100vh;padding:22px 18px;border-right:1px solid #dde3eb;background:#fff}.brand-lockup,.topbar__title,.nav-item,.button,.category-badge,.color-field,.save-state{display:inline-flex;align-items:center}.brand-lockup{gap:12px;padding:6px 8px}.brand-lockup svg{color:#0f766e}.brand-lockup strong{display:block;font-size:1rem}.brand-lockup span{display:block;color:#6b7280;font-size:.82rem}.sidebar__nav{display:flex;flex-direction:column;gap:6px}.nav-item{gap:10px;width:100%;padding:10px 12px;border:0;border-radius:8px;color:#4b5563;background:transparent;text-align:left}.nav-item:hover{background:#eef6f3;color:#0f766e}.nav-item.is-active{color:#0f766e;background:#dff4ee;font-weight:700}.main-area{min-width:0}.topbar{position:sticky;z-index:5;top:0;display:flex;align-items:center;gap:16px;justify-content:space-between;min-height:68px;padding:14px 28px;border-bottom:1px solid #dde3eb;background:#fffffff0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.topbar__title{gap:9px;min-width:0;color:#253244;font-weight:700}.save-state{gap:7px;margin-left:auto;padding:6px 10px;border:1px solid #c6d7cd;border-radius:999px;color:#166534;background:#ecfdf3;font-size:.82rem;font-weight:700}.save-state--dirty{border-color:#fed7aa;color:#9a3412;background:#fff7ed}.language-switcher{position:relative;flex:0 0 auto}.language-switcher__button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:54px;min-height:38px;padding:7px 9px;border:1px solid #cfd8e3;border-radius:8px;color:#253244;background:#fff}.language-switcher__button:hover,.language-switcher__button[aria-expanded=true]{border-color:#9fb2c7;background:#f4f7fb}.language-switcher__flag{font-size:1.15rem;line-height:1}.language-switcher__menu{position:absolute;z-index:12;top:calc(100% + 8px);right:0;display:grid;min-width:168px;padding:6px;border:1px solid #d8e2ef;border-radius:8px;background:#fff;box-shadow:0 16px 34px #0f172a24}.language-switcher__option{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;border-radius:7px;color:#344054;background:transparent;text-align:left;font-weight:700}.language-switcher__option:hover,.language-switcher__option.is-active{color:#0f766e;background:#eef6f3}.content-frame{width:min(1180px,100%);padding:30px}.view-stack{display:flex;flex-direction:column;gap:22px}.view-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.view-heading__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.view-heading h1{margin:0;color:#111827;font-size:1.8rem;letter-spacing:0;line-height:1.2}.view-heading p{margin:6px 0 0;color:#667085}.button{gap:8px;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid transparent;border-radius:8px;font-weight:700;line-height:1;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.button:hover:not(:disabled){transform:translateY(-1px)}.button--primary{color:#fff;background:#0f766e}.button--primary:hover:not(:disabled){background:#0b5f58}.button--secondary{color:#253244;border-color:#cfd8e3;background:#fff}.button--secondary:hover:not(:disabled),.button--ghost:hover:not(:disabled){border-color:#9fb2c7;background:#f4f7fb}.button--ghost{color:#344054;border-color:transparent;background:transparent}.button--danger{color:#b42318;border-color:#ffd6d1;background:#fff5f3}.button--danger:hover:not(:disabled){border-color:#fda29b;background:#ffeceb}.button:disabled{opacity:.45}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.summary-section{display:grid;gap:10px}.summary-section h2{margin:0;color:#111827;font-size:1rem}.metric-grid--embedded{padding:18px;border-bottom:1px solid #edf1f6;background:#fff}.metric-grid--embedded .metric-card{padding:14px}.metric-card,.panel,.category-card{border:1px solid #dde3eb;border-radius:8px;background:#fff}.metric-card{padding:18px}.metric-card span{display:block;color:#667085;font-size:.9rem;font-weight:700}.metric-card strong{display:block;margin-top:8px;color:#111827;font-size:1.65rem;letter-spacing:0}.metric-card--income{border-top:3px solid #16a34a}.metric-card--expense{border-top:3px solid #e11d48}.metric-card--balance{border-top:3px solid #2563eb}.panel{overflow:hidden}.panel__header{padding:18px 20px;border-bottom:1px solid #e7edf4}.panel__header h2{margin:0;color:#111827;font-size:1rem}.empty-state{display:flex;min-height:190px;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:32px;color:#667085;text-align:center}.empty-state strong{color:#253244;font-size:1.05rem}.compact-list{display:grid}.compact-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,auto) minmax(110px,auto);gap:18px;align-items:center;padding:14px 20px;border-top:1px solid #edf1f6}.compact-row:first-child{border-top:0}.compact-row>div>strong,.compact-row>div>span{display:block}.compact-row div span{color:#667085;font-size:.86rem}.category-badge{gap:8px;width:fit-content;max-width:100%;padding:5px 9px;border:1px solid #d8e2ef;border-radius:999px;color:#344054;background:#fff;font-size:.86rem;font-weight:700}.category-dot{width:9px;height:9px;flex:0 0 9px;border-radius:999px}.amount{font-variant-numeric:tabular-nums;font-weight:800;text-align:right}.amount--income{color:#15803d}.amount--expense{color:#be123c}.data-table{min-width:820px}.data-table__head,.data-table__row{display:grid;grid-template-columns:120px minmax(190px,1.2fr) minmax(160px,.8fr) 110px 120px 96px;gap:16px;align-items:center;padding:14px 18px}.data-table--bulk{min-width:880px}.data-table--bulk .data-table__head,.data-table--bulk .data-table__row{grid-template-columns:42px 120px minmax(190px,1.2fr) minmax(160px,.8fr) 110px 120px 96px}.data-table__head{color:#667085;background:#f8fafc;font-size:.78rem;font-weight:800;text-transform:uppercase}.data-table__head>[role=columnheader]{min-height:28px}.data-table__head>[role=columnheader]+[role=columnheader]{padding-left:12px;border-left:1px solid #d8e2ef}.sort-header{display:inline-flex;align-items:center;gap:6px}.sort-header__title{display:inline-flex;width:fit-content;padding:2px 5px;border-radius:5px}.sort-header__title.is-active{color:#344054;background:#e5e7eb}.sort-header__button{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:6px;color:#667085;background:transparent}.sort-header__button:hover,.sort-header__button.is-active{border-color:#cfd8e3;color:#344054;background:#fff}.data-table__empty{padding:22px 18px;border-top:1px solid #edf1f6;color:#667085;font-weight:700;text-align:center}.data-table__row{border-top:1px solid #edf1f6}.data-table__row--selected{background:#f8fbff}.bulk-selection-cell{display:flex;align-items:center;justify-content:center}.bulk-selection-cell input{width:16px;height:16px;margin:0;accent-color:#0f766e}.transaction-title-cell{display:grid;gap:3px;min-width:0}.transaction-title-cell strong{overflow-wrap:anywhere}.transaction-title-cell span{color:#667085;font-size:.82rem;line-height:1.25;overflow-wrap:anywhere}.row-actions{display:flex;justify-content:flex-end}.type-pill{display:inline-flex;min-width:78px;justify-content:center;padding:5px 9px;border-radius:999px;font-size:.82rem;font-weight:800}.type-pill--income{color:#166534;background:#dcfce7}.type-pill--expense{color:#9f1239;background:#ffe4e6}.category-defaults-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px}.category-defaults-panel strong{display:block;margin-bottom:5px;color:#111827}.category-defaults-panel span{display:block;color:#667085;font-size:.9rem}.category-defaults-panel__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;padding:18px}.category-card{position:relative;display:grid;grid-template-columns:6px minmax(0,1fr);gap:14px;min-height:118px;padding:14px}.category-card__marker{width:6px;border-radius:999px}.category-card__content{min-width:0}.category-card__content strong,.category-card__content span,.settings-panel span{display:block}.category-card__content strong{overflow-wrap:anywhere;color:#111827;font-size:1rem}.category-card__content span,.inline-note{color:#667085;font-size:.86rem}.category-card__actions{grid-column:2;display:flex;flex-wrap:wrap;gap:8px;align-self:end}.inline-note{grid-column:2}.subcategory-list{grid-column:2;display:grid;gap:7px;padding-top:4px}.subcategory-row{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;align-items:start;padding:9px 10px;border:1px solid #e7edf4;border-radius:8px;background:#f8fafc}.subcategory-row>span{min-width:0;overflow-wrap:break-word;color:#253244;font-size:.92rem;font-weight:800;line-height:1.25}.subcategory-row small{color:#667085;font-weight:700;line-height:1.2}.subcategory-row__actions{display:flex;flex-wrap:wrap;gap:6px;padding-top:4px}.subcategory-row__actions .button{min-height:32px;padding:6px 9px;font-size:.84rem}.modal-backdrop{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;padding:20px;background:#0f172a6b}.modal{width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:8px;background:#fff;box-shadow:0 24px 60px #0f172a38}.modal__header,.modal__footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.modal__header{padding:18px 20px;border-bottom:1px solid #e7edf4}.modal__header h2{margin:0;color:#111827;font-size:1.12rem}.modal__footer{padding-top:6px;justify-content:flex-end}.modal__footer--split{justify-content:space-between}.modal__footer-actions{display:flex;gap:8px}.confirm-dialog{display:grid;gap:14px;padding:20px}.confirm-dialog p{margin:0;color:#344054;line-height:1.5}.form-stack{display:flex;flex-direction:column;gap:16px;padding:20px}.field{display:flex;flex-direction:column;gap:7px;color:#344054;font-weight:700}.field input,.field select,.field textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid #cfd8e3;border-radius:8px;color:#111827;background:#fff}.field textarea{resize:vertical}.field small{color:#b42318;font-weight:700}.segmented-control{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #cfd8e3;border-radius:8px}.segmented-control button{min-height:42px;border:0;color:#344054;background:#fff;font-weight:800}.segmented-control button+button{border-left:1px solid #cfd8e3}.segmented-control button.is-active{color:#fff;background:#2563eb}.color-field{gap:10px}.color-field input[type=color]{width:52px;min-width:52px;padding:3px}.category-picker{display:grid;gap:10px}.category-picker input{width:100%}.category-picker__list{display:grid;max-height:260px;overflow:auto;border:1px solid #d8e2ef;border-radius:8px;background:#fff}.category-picker__group{display:grid;border-top:1px solid #edf1f6}.category-picker__group:first-of-type{border-top:0}.category-picker__children{display:grid;gap:3px;padding:0 8px 8px 22px}.category-picker__item{display:flex;width:100%;align-items:center;gap:8px;padding:9px 10px;border:0;color:#344054;background:transparent;text-align:left;font-weight:800}.category-picker__item:hover{background:#f1f5f9}.category-picker__item.is-active{color:#1d4ed8;background:#eff6ff}.category-picker__item--child{min-height:34px;padding:7px 9px;border-radius:7px;font-size:.9rem;font-weight:700}.category-picker__empty{padding:12px;color:#667085}.category-filter-panel{display:grid;gap:12px;padding:14px 18px 16px;border-top:1px solid #edf1f6;background:#fff}.category-filter-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.category-filter-panel__header strong,.category-filter-panel__header span{display:block}.category-filter-panel__header strong{color:#111827}.category-filter-panel__header span{margin-top:3px;color:#667085;font-size:.86rem;font-weight:700}.category-filter-panel>input{width:min(420px,100%);min-height:38px;padding:8px 10px;border:1px solid #cfd8e3;border-radius:8px}.category-filter-panel__list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));align-items:start;gap:10px;max-height:420px;overflow:auto;padding-right:4px}.category-filter-panel__group{display:grid;gap:6px;min-width:0}.category-filter-panel__children{display:grid;gap:6px;padding-left:18px}.category-filter-panel__item{display:flex;min-width:0;align-items:center;gap:8px;padding:8px 9px;border:1px solid #e7edf4;border-radius:8px;color:#344054;background:#f8fafc;font-size:.9rem;font-weight:800;line-height:1.25}.category-filter-panel__item input{width:15px;height:15px;flex:0 0 15px;margin:0}.category-filter-panel__item span:last-child{min-width:0;overflow-wrap:break-word}.category-filter-panel__item--child{font-size:.84rem;font-weight:700}.category-filter-panel__empty{color:#667085;font-weight:700}.transaction-filter-toolbar{display:grid;gap:12px;padding:16px 18px;border-bottom:1px solid #edf1f6;background:#fff}.transaction-filter-group{display:grid;gap:9px}.transaction-filter-label{color:#344054;font-size:.84rem;font-weight:900;text-transform:uppercase}.transaction-date-presets{grid-template-columns:repeat(6,minmax(0,1fr))}.transaction-date-presets button{min-width:0;padding:7px 8px;font-size:.82rem;line-height:1.2}.transaction-type-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.transaction-type-presets button{min-width:0;padding:7px 8px;font-size:.82rem;line-height:1.2}.type-filter-panel{padding:14px 18px 16px;border-top:1px solid #edf1f6;background:#fff}.type-filter-panel .transaction-type-presets{width:min(360px,100%)}.transaction-date-range{display:grid;grid-template-columns:repeat(2,minmax(180px,240px));gap:10px;align-items:end}.transaction-date-range label{display:grid;gap:6px;color:#344054;font-size:.84rem;font-weight:800}.transaction-date-range input{min-height:38px;padding:8px 10px;border:1px solid #cfd8e3;border-radius:8px;color:#111827;background:#fff}.title-filter-panel{display:flex;gap:10px;align-items:center;padding:14px 18px 16px;border-top:1px solid #edf1f6;background:#fff}.title-filter-panel>input{width:min(420px,100%);min-height:38px;padding:8px 10px;border:1px solid #cfd8e3;border-radius:8px}.amount-filter-panel{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:14px 18px 16px;border-top:1px solid #edf1f6;background:#fff}.amount-filter-panel label{display:grid;gap:6px;color:#344054;font-size:.84rem;font-weight:800}.amount-filter-panel input,.amount-filter-panel select{min-height:38px;padding:8px 10px;border:1px solid #cfd8e3;border-radius:8px;color:#111827;background:#fff}.amount-filter-panel input{width:180px}.amount-filter-panel select{width:190px}.bulk-edit-toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #edf1f6;background:#f8fafc}.bulk-edit-toolbar strong{align-self:center;min-width:112px;color:#253244;font-size:.92rem}.bulk-edit-toolbar__field{display:grid;flex:1 1 240px;max-width:360px;gap:6px;color:#344054;font-size:.84rem;font-weight:800}.bulk-edit-toolbar__field select{min-height:38px;padding:8px 10px;border:1px solid #cfd8e3;border-radius:8px;color:#111827;background:#fff}.bulk-edit-toolbar__actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.transaction-pagination{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px;padding:14px 18px;border-top:1px solid #edf1f6;background:#fff}.transaction-pagination__summary{display:grid;gap:5px}.transaction-pagination__page-size{display:grid;gap:6px;color:#344054;font-size:.84rem;font-weight:800}.transaction-pagination__page-size select{width:112px;min-height:36px;padding:7px 9px;border:1px solid #cfd8e3;border-radius:8px;color:#111827;background:#fff}.transaction-pagination__status{color:#667085;font-size:.84rem;font-weight:800}.transaction-pagination__controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.rules-list{display:grid;gap:12px;padding:18px}.rule-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start;padding:15px;border:1px solid #dde3eb;border-radius:8px;background:#fff}.rule-card__body{display:grid;min-width:0;gap:8px}.rule-card__heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.rule-card__body strong{overflow-wrap:break-word;color:#111827;font-size:1rem}.rule-card__mode{padding:3px 7px;border:1px solid #d8e2ef;border-radius:999px;background:#f2f4f7;color:#475467;font-size:.72rem;font-weight:900;line-height:1}.rule-card__body small{color:#0f766e;font-weight:800}.rule-card__conditions{display:flex;flex-wrap:wrap;gap:7px}.rule-card__conditions span{max-width:100%;padding:5px 8px;border:1px solid #d8e2ef;border-radius:999px;color:#344054;background:#f8fafc;font-size:.84rem;font-weight:700;overflow-wrap:break-word}.rule-card__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.rule-form-section{display:grid;gap:12px;padding:14px;border:1px solid #e7edf4;border-radius:8px;background:#f8fafc}.rule-form-section>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.rule-form-section>header strong{display:block;color:#111827}.rule-form-section>header span,.rule-form-section>small{color:#667085;font-size:.84rem;font-weight:700}.condition-mode-toggle{display:inline-flex;margin:3px 0 0;padding:0;border:0;background:transparent;color:#667085;font:inherit;font-size:.84rem;font-weight:800;text-align:left;cursor:pointer}.condition-mode-toggle:hover,.condition-mode-toggle:focus-visible{color:#0f766e;text-decoration:underline;text-underline-offset:3px}.rule-condition-list{display:grid;gap:10px}.rule-condition-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #d8e2ef;border-radius:8px;background:#fff}.checkbox-field{display:flex;align-items:center;gap:8px;color:#344054;font-weight:700}.checkbox-field input{width:16px;height:16px;margin:0}.action-panel{display:flex;min-height:260px;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:32px;color:#465365;text-align:center}.action-panel svg{color:#0f766e}.action-panel p{max-width:540px;margin:0}.import-source-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.import-source-tab{display:flex;position:relative;align-items:flex-start;gap:12px;min-height:104px;padding:14px;border:1px solid #d8e2ef;border-radius:8px;color:#344054;background:#fff;text-align:left}.import-source-tab.is-active{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 2px #2563eb1f}.import-source-tab strong,.import-source-tab small{display:block}.import-source-tab strong{color:#111827;font-size:.98rem}.import-source-tab small{margin-top:4px;color:#667085;font-size:.82rem;line-height:1.35}.import-source-tab em{position:absolute;top:10px;right:10px;padding:3px 7px;border-radius:999px;color:#1d4ed8;background:#dbeafe;font-size:.72rem;font-style:normal;font-weight:800}.import-panel{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:24px}.import-panel>svg{color:#0f766e}.import-panel h2,.import-panel p{margin:0}.import-panel h2{color:#111827;font-size:1.05rem}.import-panel p{max-width:620px;color:#667085}.import-mapping{display:grid;width:100%;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;padding:0}.import-mapping .button{align-self:end}.export-columns{width:100%;padding:0;border:0;margin:0}.export-columns legend{margin-bottom:10px;color:#344054;font-weight:800}.export-columns__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.checkbox-field{display:flex;align-items:center;gap:9px;min-height:42px;padding:9px 10px;border:1px solid #d8e2ef;border-radius:8px;color:#344054;background:#fff;font-weight:700}.checkbox-field input{width:16px;height:16px;flex:0 0 auto}.bank-logo{display:inline-flex;min-width:48px;min-height:34px;align-items:center;justify-content:center;padding:5px 8px;border-radius:7px;color:#fff;background:#0f172a;font-size:.86rem;font-weight:900;letter-spacing:0}.bank-logo--pko{background:#0f5db8}.bank-logo--ing{background:#f97316}.status-message{padding:10px 12px;border-radius:8px;font-weight:700}.status-message--success{color:#166534;background:#dcfce7}.status-message--error{color:#b42318;background:#fee4e2}.reports-filter-panel{display:grid;gap:12px;padding:16px 18px}.reports-period-presets{grid-template-columns:repeat(6,minmax(0,1fr))}.reports-period-presets button{min-width:0;padding:7px 8px;font-size:.82rem;line-height:1.2}.report-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.report-kpi,.report-comparison-card{padding:16px;border:1px solid #dde3eb;border-radius:8px;background:#fff}.report-kpi span,.report-comparison-card span{display:block;color:#667085;font-size:.86rem;font-weight:800}.report-kpi strong,.report-comparison-card strong{display:block;margin-top:7px;color:#111827;font-size:1.45rem;letter-spacing:0}.report-comparison-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}.reports-chart-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:16px;align-items:stretch}.reports-chart-grid--wide{grid-template-columns:minmax(360px,.95fr) minmax(0,1.05fr)}.report-chart-panel{min-width:0}.report-chart-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid #e7edf4}.report-chart-panel__header h2,.report-chart-panel__header p{margin:0}.report-chart-panel__header h2{color:#111827;font-size:1rem}.report-chart-panel__header p{margin-top:4px;color:#667085;font-size:.86rem}.report-chart-panel__actions{display:flex;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end;gap:6px}.report-chart-panel__actions .button{min-height:32px;padding:6px 9px;font-size:.8rem}.report-chart-panel__body{display:grid;min-height:330px;padding:16px}.cash-flow-chart,.category-ranking-chart,.counterparty-graph{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;min-width:0}.cash-flow-chart__svg,.counterparty-graph__svg{width:100%;min-height:250px;overflow:visible}.report-chart-gridline{stroke:#edf1f6;stroke-width:1}.report-chart-axis-label{fill:#667085;font-size:.78rem;font-weight:800}.cash-flow-chart__group{outline:none;cursor:pointer;opacity:.78;transition:opacity .16s ease}.cash-flow-chart__group:hover,.cash-flow-chart__group.is-active{opacity:1}.cash-flow-chart__balance-line{fill:none;stroke:#2563eb;stroke-linecap:round;stroke-linejoin:round;stroke-width:4}.report-chart-detail{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;min-height:48px;padding:10px 12px;border:1px solid #c6d7cd;border-radius:8px;background:#ecfdf3;color:#166534;font-size:.88rem;font-weight:800}.report-chart-detail strong{color:#14532d}.report-chart-detail--compact{align-items:flex-start;flex-direction:column;gap:4px}.expense-breakdown{display:grid;grid-template-columns:1fr;gap:16px;align-items:center;justify-items:center}.expense-breakdown__svg{width:100%;max-width:280px}.expense-breakdown__segment{cursor:pointer;opacity:.86;transition:opacity .16s ease,stroke-width .16s ease}.expense-breakdown__segment:hover,.expense-breakdown__segment.is-active{opacity:1;stroke-width:48}.expense-breakdown__center-label,.expense-breakdown__center-value{fill:#111827;font-weight:800;text-anchor:middle}.expense-breakdown__center-label{fill:#667085;font-size:.72rem;text-transform:uppercase}.expense-breakdown__center-value{font-size:1.4rem}.expense-breakdown__legend,.category-ranking-chart__bars,.report-insight-list,.report-ranked-list{display:grid;gap:8px}.expense-breakdown__legend{width:100%}.expense-breakdown__legend-item,.category-ranking-row{display:grid;width:100%;align-items:center;gap:10px;min-height:40px;padding:9px 10px;border:1px solid #e7edf4;border-radius:8px;color:#344054;background:#fff;font-size:.88rem;font-weight:800;text-align:left}.expense-breakdown__legend-item{grid-template-columns:auto minmax(0,1fr) auto}.expense-breakdown__legend-item:hover,.expense-breakdown__legend-item.is-active,.category-ranking-row:hover,.category-ranking-row.is-active{border-color:#9fb2c7;background:#f4f7fb}.expense-breakdown__legend-item span:nth-child(2),.category-ranking-row__label{min-width:0;overflow-wrap:anywhere}.report-color-dot{display:inline-block;width:10px;height:10px;flex:0 0 10px;border-radius:999px}.category-ranking-row{grid-template-columns:minmax(120px,.8fr) minmax(140px,1fr) auto}.category-ranking-row__label{display:inline-flex;align-items:center;gap:8px}.category-ranking-row__track{height:12px;overflow:hidden;border-radius:999px;background:#edf1f6}.category-ranking-row__track span{display:block;height:100%;min-width:4px;border-radius:inherit}.counterparty-graph__edge{cursor:pointer;opacity:.36;stroke-linecap:round;transition:opacity .16s ease}.counterparty-graph__edge:hover,.counterparty-graph__edge.is-active{opacity:.8}.counterparty-graph__label{fill:#344054;font-size:.76rem;font-weight:800}.reports-lower-grid{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(300px,1.1fr) minmax(260px,.9fr);gap:16px}.reports-list-panel{min-width:0}.reports-list-panel .panel__header{padding:15px 18px}.report-insight-list,.report-ranked-list{padding:14px}.report-insight{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;padding:11px;border:1px solid #e7edf4;border-radius:8px;color:#344054;background:#f8fafc;font-size:.9rem;font-weight:750}.report-insight svg{margin-top:1px}.report-insight--positive{border-color:#bbf7d0;color:#166534;background:#f0fdf4}.report-insight--warning{border-color:#fed7aa;color:#9a3412;background:#fff7ed}.report-ranked-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #e7edf4;border-radius:8px;background:#fff}.report-ranked-row>svg{color:#2563eb}.report-ranked-row div{min-width:0}.report-ranked-row strong,.report-ranked-row span{display:block}.report-ranked-row div strong{overflow-wrap:anywhere;color:#111827;font-size:.92rem}.report-ranked-row div span{color:#667085;font-size:.78rem;font-weight:700}.report-ranked-row>strong{color:#111827;font-size:.9rem;font-variant-numeric:tabular-nums;text-align:right}.settings-panel{display:flex;gap:16px;align-items:flex-start;padding:22px}.settings-panel svg{flex:0 0 auto;color:#0f766e}.settings-panel strong{display:block;margin-bottom:8px;color:#111827}.settings-panel span{color:#667085}.settings-panel--control{display:block}.settings-panel--danger{align-items:center;justify-content:space-between;border-color:#ffd6d1;background:#fff8f7}.settings-panel--danger svg{color:#b42318}.settings-panel--danger>div{min-width:0;flex:1}.settings-control{max-width:420px}.settings-control small{color:#667085;font-weight:600}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}@media(max-width:920px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid #dde3eb}.sidebar__nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.content-frame{padding:22px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.transaction-date-presets,.reports-period-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.report-kpi-grid,.report-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-chart-grid,.reports-chart-grid--wide,.reports-lower-grid{grid-template-columns:1fr}}@media(max-width:680px){.topbar{flex-wrap:wrap;justify-content:flex-start;padding:12px 16px}.save-state{margin-left:0}.sidebar__nav{grid-template-columns:repeat(2,minmax(0,1fr))}.view-heading{flex-direction:column}.category-defaults-panel,.settings-panel--danger{align-items:flex-start;flex-direction:column}.category-defaults-panel__actions{justify-content:flex-start}.rule-card{grid-template-columns:1fr}.rule-card__actions,.view-heading__actions{justify-content:flex-start}.rule-condition-row,.metric-grid,.compact-row,.report-kpi-grid,.report-comparison-grid,.expense-breakdown,.category-ranking-row{grid-template-columns:1fr}.report-chart-panel__header{flex-direction:column}.report-chart-panel__actions{justify-content:flex-start}.panel{overflow-x:auto}}
