*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:#f4f7fb;color:#172f46;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #d8e1ea;border-radius:9px;background:white;padding:10px 15px;color:#18344e;font-weight:600}button:hover{background:#eaf1f6}button:disabled{opacity:.5;cursor:wait}input,select{width:100%;border:1px solid #d1dce6;border-radius:8px;padding:12px;background:#fff;color:#18344e}input:focus,select:focus,button:focus-visible{outline:3px solid #74c9bb;outline-offset:2px}label{display:block;font-size:.9rem;font-weight:600;margin:16px 0}label input,label select{margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-.04em;margin-bottom:0}h2{font-size:1.1rem;margin:0}small,.muted{color:#65788b}small{display:block;font-size:.85rem;line-height:1.6}.brand{display:flex;align-items:center;gap:12px;font-size:1.5rem;font-weight:750;letter-spacing:-.04em}.brand img{width:38px;height:38px}.eyebrow{font-size:.75rem;letter-spacing:.12em;font-weight:700;color:#667b90}.primary{background:#173b58;border-color:#173b58;color:white}.primary:hover{background:#235573}.shell{display:grid;grid-template-columns:245px 1fr;min-height:100vh}aside{background:#122d48;color:white;padding:34px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.side-label{font-size:.75rem;color:#92a9bf;letter-spacing:.1em;margin:58px 12px 16px}nav{display:grid;gap:8px}nav button{border:0;background:transparent;color:#b5c8d9;text-align:left;padding:15px 13px;font-weight:500}nav button.active{background:#24445f;color:#fff;box-shadow:inset 3px 0 #42d6b5}nav button:hover{background:#24445f}.side-bottom{margin-top:auto;display:grid;gap:20px;font-size:.8rem;color:#9ab3c8}.side-bottom button{background:none;border-color:#486079;color:white}.workspace{width:100%;max-width:1280px;margin:auto;padding:40px 48px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:35px}.header-actions{display:flex;gap:14px;align-items:center}.connection{font-size:.85rem;color:#5d7489}.month-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:25px}.month-controls{display:flex;gap:16px;align-items:center}.month-controls h2{text-transform:capitalize;min-width:170px;text-align:center}.month-controls button{border:0;background:transparent;font-size:1.5rem;padding:4px 10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:20px}.stats article{padding:24px;background:white;border:1px solid #e2e9f0;border-radius:12px}.stats span{font-size:.9rem;color:#667b90}.stats strong{display:block;font-size:1.8rem;letter-spacing:-.05em;margin:12px 0 8px;font-variant-numeric:tabular-nums}.allocation{padding:23px 26px;background:#dcf6ee;border-radius:12px;border:1px solid #bfe9db;margin-bottom:30px;display:flex;justify-content:space-between;align-items:center;gap:24px}.allocation span{display:block;font-size:.9rem;color:#276953}.allocation strong{display:block;font-size:1.9rem;letter-spacing:-.04em;margin-top:5px}.allocation p{font-size:.9rem;max-width:320px;color:#276953;margin:0;line-height:1.6}.allocation.over{background:#ffeded;border-color:#ffd1d1}.allocation.over p,.allocation.over span{color:#af3745}.panel{background:white;border:1px solid #e0e7ef;border-radius:13px;overflow:hidden}.panel-heading{padding:22px 26px;display:flex;align-items:center;justify-content:space-between;gap:12px}.income-row{background:#f7fafe;margin:0 24px 16px;border-radius:10px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.income-row small{margin-top:4px}.amount-input{display:flex;align-items:center;gap:8px;margin:0;max-width:150px}.amount-input input{text-align:right}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th{text-align:left;color:#718297;font-size:.8rem;font-weight:600;padding:13px 25px;border-bottom:1px solid #e6edf3;white-space:nowrap}td{padding:19px 25px;border-bottom:1px solid #edf1f5;font-variant-numeric:tabular-nums;white-space:nowrap}tr:last-child td{border-bottom:0}td strong{font-weight:600}.category{display:flex;gap:13px;align-items:center}.cat-icon{display:grid;place-items:center;min-width:38px;height:38px;border-radius:10px;background:#eaf1f7;font-size:1.3rem;color:#3f627d}.plan{max-width:110px;text-align:right;padding:9px;border-color:#e2e8ee}.meter{margin-top:9px;width:120px;height:4px;border-radius:5px;background:#edf2f7;overflow:hidden}.fill{height:100%;background:#31ad94}.fill.danger{background:#d64a5b}.positive{color:#16816b;font-weight:600}.negative,.error{color:#bd3545}.subtle{border:0;background:none;color:#8798a9;font-size:1.4rem;padding:3px 8px}.empty{text-align:center;padding:45px 24px 60px}.empty>span{font-size:2.5rem;color:#8cabbf}.empty h3{margin:14px 0 10px}.empty p{color:#667b90;font-size:.95rem;line-height:1.7}.backup{padding:32px;max-width:800px}.backup h2{font-size:1.5rem}.backup p{line-height:1.8;margin:20px 0}.backup button{margin-right:10px}footer{font-size:.8rem;text-align:center;color:#8092a3;padding:25px}.login{min-height:100vh;background:#122d48;display:grid;justify-content:center;align-content:center;gap:32px;padding:32px}.login>.brand{color:#fff}.login-card{width:min(450px,100%);background:white;border-radius:18px;padding:38px}.login-card h1{font-size:2.6rem;line-height:1.15;margin:20px 0}.login-card p{color:#667b90;line-height:1.6}.login-card .error{color:#bd3545;font-size:.9rem}.login-card button{width:100%;margin-top:5px}.login-card small{margin-top:20px}dialog{border:1px solid #d8e3ec;border-radius:16px;width:min(470px,calc(100% - 32px));padding:25px;color:#172f46;max-height:90vh}dialog::backdrop{background:#122d48a6;backdrop-filter:blur(3px)}dialog .panel-heading{padding:0 0 10px}dialog .primary{width:100%}dialog p{line-height:1.6}#notice:not(:empty){position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#122d48;color:white;border-radius:10px;padding:16px 22px;box-shadow:0 8px 25px #0002;z-index:10;width:max-content;max-width:90vw}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}@media(max-width:1100px){.workspace{padding:30px 24px}.shell{grid-template-columns:210px 1fr}.stats{gap:10px}.stats article{padding:18px}.stats strong{font-size:1.4rem}td,th{padding:15px}}@media(max-width:760px){.shell{display:block}aside{height:auto;position:static;padding:20px}.brand{font-size:1.3rem}aside .side-label{display:none}nav{display:flex;margin-top:18px;gap:5px}nav button{font-size:.85rem;padding:11px 10px;flex:1;text-align:center}.side-bottom{margin-top:15px;display:flex;align-items:center;justify-content:space-between}.side-bottom button{font-size:.8rem;padding:6px 12px}.workspace{padding:26px 16px}header{margin-bottom:26px}header h1{font-size:1.7rem}.eyebrow{font-size:.65rem}.month-bar{flex-wrap:wrap}.month-bar>button{font-size:.8rem}.stats{grid-template-columns:1fr}.stats article{display:grid;grid-template-columns:1fr auto;padding:18px}.stats strong{margin:0;grid-column:2;grid-row:1/3;font-size:1.5rem;align-self:center}.stats small{margin-top:7px}.allocation{align-items:flex-start;padding:20px;gap:12px}.allocation p{max-width:180px;font-size:.8rem}.allocation strong{font-size:1.6rem}.panel-heading{padding:18px}.panel-heading button{font-size:.85rem}.income-row{margin:0 15px 15px;padding:15px}.income-row strong{font-size:.9rem}.income-row small{font-size:.75rem}.amount-input{max-width:115px}table{font-size:.85rem}td,th{padding:13px 12px}.cat-icon{display:none}.meter{width:85px}.plan{max-width:90px}.backup{padding:24px}.backup button{margin-bottom:12px}.login-card{padding:28px}.login-card h1{font-size:2.2rem}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}.fill{transition:width .2s}}

.copy-help{margin:0;padding:0 26px 20px;color:#65788b;font-size:.9rem;line-height:1.7}.copy-category{width:20px;height:20px;accent-color:#16816b;cursor:pointer}.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;padding:0 26px 26px}.account-card{background:#f7fafe;border:1px solid #dce7ef;border-radius:12px;padding:24px}.account-card>span{color:#65788b;font-size:.85rem}.account-card h3{margin:10px 0}.account-card>strong{display:block;font-size:1.8rem;margin-bottom:14px;font-variant-numeric:tabular-nums}.card-actions{display:flex;gap:10px;align-items:center;margin-top:16px}.card-actions button{font-size:.85rem}.recurring-panel{margin-top:25px}.rule-list{padding:0 26px}.rule-list article{padding:20px 0;display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #edf1f5}.rule-list .card-actions{margin:0}.check-label{display:flex;gap:10px;align-items:center;margin:10px 0;font-size:.9rem}.check-label input{width:20px;height:20px;margin:0;accent-color:#16816b}nav button{font-size:.9rem}@media(max-width:760px){nav{flex-wrap:wrap}nav button{flex:1 1 30%;font-size:.8rem}.rule-list article{flex-direction:column;align-items:flex-start}.copy-help{padding:0 18px 18px}.income-row{flex-wrap:wrap}.account-grid{padding:0 18px 18px}}


.budget-groups{display:grid;gap:20px;margin-top:22px}.group-panel .panel-heading{padding-bottom:12px}.group-actions{display:flex;align-items:center;gap:5px}.expense-table td:first-child{width:34%}.expense-table .meter{width:100%;min-width:100px;height:4px}.group-total{padding:18px 25px;background:#f8fafd;display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #e6edf3}.group-total>div{display:flex;gap:26px}.group-total span{font-size:.8rem;color:#65788b;display:grid;gap:5px}.group-total strong{font-size:1rem;color:#18344e;font-variant-numeric:tabular-nums}.group-total button{color:#137b9a;background:transparent;border:0;padding:8px 0}@media(max-width:760px){.group-total{padding:16px 18px;flex-wrap:wrap}.group-total>div{gap:18px}.expense-table{min-width:570px}.group-panel .panel-heading{padding:14px 18px}.group-total strong{font-size:.95rem}}


.statistics-layout{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(350px,1.3fr);gap:22px;align-items:start}.statistics-right{display:grid;gap:22px}.chart-switch{display:flex;margin:0 20px;border-bottom:2px solid #e3eaf1}.chart-switch button{flex:1;border:0;border-radius:0;background:transparent;padding:13px 8px;font-size:.85rem;color:#65788b}.chart-switch button.selected{color:#176eac;border-bottom:3px solid #176eac;margin-bottom:-2px}.donut{display:block;width:260px;max-width:90%;margin:12px auto}.donut-label{font-family:inherit;font-size:13px;fill:#65788b}.donut-value{font-family:inherit;font-size:18px;font-weight:750;fill:#18344e}.chart-note{font-size:.8rem;line-height:1.7;color:#65788b;margin:0;padding:0 22px 18px}.category-statistics td{padding:15px 18px}.category-statistics td:first-child{white-space:normal;min-width:140px}.category-statistics th{padding:12px 18px}.legend-marker{display:inline-block;width:10px;height:10px;min-width:10px;border-radius:3px;margin-right:8px;background:#176eac}.chart-legend{display:flex;gap:22px;padding:0 25px 18px;font-size:.8rem;color:#65788b}.chart-legend>span{display:flex;align-items:center;gap:8px}.chart-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}.legend-plan{background:#a0b5c9}.legend-spent{background:#176eac}.legend-income{background:#15a887}.comparison-list{padding:0 25px 25px}.comparison-list article{margin:0 0 22px}.comparison-list article:last-child{margin-bottom:0}.comparison-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;font-size:.85rem}.comparison-label span{font-variant-numeric:tabular-nums;font-size:.8rem;white-space:nowrap}.comparison-track{height:8px;margin-top:5px;background:#f1f5f8;border-radius:4px;overflow:hidden}.comparison-track>div{height:100%;border-radius:4px}.bar-plan{background:#a0b5c9}.bar-spent{background:#176eac}.bar-over{background:#d45768}.history-chart{display:block;width:100%;padding:0 14px}.chart-axis{font-size:12px;fill:#65788b;font-family:inherit}.history-details{border-top:1px solid #e3eaf1}.history-details summary{padding:18px 24px;cursor:pointer;font-size:.9rem}.trend-panel .panel-heading h2{line-height:1.5}@media(max-width:1100px){.statistics-layout{grid-template-columns:1fr}.distribution{max-width:100%}.donut{width:245px}}@media(max-width:760px){.comparison-label{flex-wrap:wrap}.chart-switch{margin:0 16px}.chart-switch button{font-size:.8rem}.comparison-list{padding:0 18px 18px}}


.opening-warning:not(:empty){padding:16px;margin:16px 0;background:#fff4d8;border:1px solid #e9ce83;border-radius:9px;color:#775215;font-size:.9rem;line-height:1.6}.opening-warning p{margin-bottom:12px}.opening-warning .check-label{align-items:flex-start}.opening-warning input{flex-shrink:0;margin-top:4px}


.order-controls{display:inline-flex;gap:3px;align-items:center;flex-shrink:0}.order-controls button{width:32px;height:34px;padding:0;border:1px solid #d8e2eb;border-radius:6px;background:#fff;color:#42647d;font-size:1rem;font-weight:600}.order-controls button:disabled{opacity:.3;cursor:default}.item-actions{display:flex;align-items:center;gap:5px}.card-actions{flex-wrap:wrap}.group-budget-progress{padding:0 25px 18px;background:#f8fafd}.budget-progress .meter{width:100%;height:7px;margin-top:9px;background:#dce7ef}.budget-progress .fill{background:#19a78e}.budget-progress .fill.danger{background:#d45768}.progress-caption{display:flex;justify-content:space-between;gap:14px;font-size:.85rem;color:#65788b;line-height:1.5}.progress-caption strong{color:#18344e}.progress-percent{margin-top:6px;font-size:.8rem;color:#65788b}.compact-progress .meter{height:5px}.compact-progress .progress-percent{font-size:.75rem;margin-top:4px}.progress-over .progress-percent{color:#bd3545}.expense-table td:last-child{min-width:150px}@media(max-width:760px){.group-budget-progress{padding:0 18px 18px}.progress-caption{flex-wrap:wrap;gap:6px}.expense-table{min-width:670px}}


.sort-handle{display:inline-grid;place-items:center;width:36px;height:38px;padding:0;border:0;border-radius:7px;background:transparent;color:#7891a5;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;flex-shrink:0;font-size:1.6rem}.sort-handle:hover{background:#e2edf4;color:#214b69}.sort-handle:active{cursor:grabbing}.sort-handle:disabled{opacity:.25;cursor:default}.sorting-active,.sorting-active *{cursor:grabbing!important;user-select:none!important}.sort-source{opacity:.35}.account-card.sort-before{box-shadow:inset 4px 0 #19a78e;outline:2px solid #19a78e}.account-card.sort-after{box-shadow:inset -4px 0 #19a78e;outline:2px solid #19a78e}tr.sort-before td{box-shadow:inset 0 3px #19a78e}tr.sort-after td{box-shadow:inset 0 -3px #19a78e}.sort-ghost{position:fixed;z-index:1000;pointer-events:none!important;opacity:.94;background:#fff;border:1px solid #87cfc0;border-radius:12px;box-shadow:0 14px 40px #122d4833;max-width:calc(100vw - 32px);max-height:50vh;overflow:hidden}.sort-ghost *{pointer-events:none!important}.sort-ghost .account-card{margin:0;opacity:1}.sort-ghost .expense-table{min-width:0}.sort-ghost .sort-source{opacity:1}.expense-table td:last-child{min-width:120px}@media(max-width:760px){.expense-table{min-width:640px}.sort-handle{width:40px;height:40px}}


.group-panel.sort-before{box-shadow:inset 0 4px #19a78e;outline:2px solid #19a78e}.group-panel.sort-after{box-shadow:inset 0 -4px #19a78e;outline:2px solid #19a78e}.sort-ghost .group-panel{border-radius:10px;opacity:1}


.quick-expense{display:inline-grid;place-items:center;width:32px;height:34px;flex-shrink:0;padding:0;border:1px solid #bddfd5;border-radius:7px;background:#e8f7f1;color:#13816b;font-size:1rem}.quick-expense:hover{background:#d1efe3}.quick-expense:disabled{opacity:.3;cursor:default}.settings-panel{max-width:750px}.settings-panel form{padding:0 26px 26px}.settings-panel .muted{line-height:1.8;font-size:.9rem}.expense-table td:last-child{min-width:160px}@media(max-width:760px){.expense-table{min-width:690px}}


.budget-tools{display:flex;gap:10px;flex-wrap:wrap}.group-toggle{display:flex;align-items:center;gap:10px;padding:5px 0;border:0;background:transparent;text-align:left;font-size:1.1rem;font-weight:700}.group-toggle:hover{background:transparent;color:#137b9a}.group-toggle span{font-size:1.2rem;color:#718b9f}.back-to-top{position:fixed;right:24px;bottom:25px;z-index:8;background:#173b58;color:#fff;border:0;box-shadow:0 5px 18px #122d4833;padding:12px 18px}.back-to-top:hover{background:#235573}@media(max-width:760px){.budget-intro>.panel-heading{flex-wrap:wrap}.budget-tools button{font-size:.8rem}.group-toggle{font-size:1rem}.back-to-top{right:16px;bottom:18px;padding:11px 14px}}


.sorting-groups .group-panel [id^="category-body-"]{display:none!important}


.manual-expense{display:inline-grid;place-items:center;width:32px;height:34px;padding:0;flex-shrink:0;border:1px solid #c5dceb;border-radius:7px;background:#edf5fb;color:#176eac;font-size:1.2rem}.manual-expense:hover{background:#dcecf8}.expense-table td:last-child{min-width:190px}@media(max-width:760px){.expense-table{min-width:720px}}


.category-mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:9px}.category-mark svg{width:22px;height:22px}.category-mark.color-blue{color:#176eac;background:#e9f3fb}.category-mark.color-green{color:#16816b;background:#e6f5ef}.category-mark.color-orange{color:#b56a0a;background:#fff3df}.category-mark.color-red{color:#bd3545;background:#fdecef}.category-mark.color-purple{color:#7851ac;background:#f1ebfa}.category-mark.color-pink{color:#b0448d;background:#fbeaf6}.category-mark.color-teal{color:#147f8a;background:#e6f5f6}.category-mark.color-gray{color:#526b80;background:#edf1f5}.appearance-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.category-preview{display:flex;align-items:center;gap:12px;min-height:48px;margin:4px 0 16px;color:#526b80;font-size:.9rem}@media(max-width:400px){.appearance-fields{grid-template-columns:1fr}}

.color-picker{border:0;padding:0;margin:0;min-width:0}.color-picker legend{font-size:.9rem;margin-bottom:8px}.color-swatches{display:flex;flex-wrap:wrap;gap:8px}.color-choice{position:relative;display:inline-flex;margin:0;cursor:pointer}.color-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.color-swatch{display:block;width:30px;height:30px;border-radius:5px;border:3px solid white;box-shadow:0 0 0 1px #d4dfe7}.color-choice input:checked+.color-swatch{box-shadow:0 0 0 2px #173b58}.color-choice input:checked+.color-swatch:after{content:'✓';display:block;text-align:center;color:white;font-size:17px;line-height:24px;font-weight:700}.color-choice input:focus-visible+.color-swatch{outline:3px solid #158bb8;outline-offset:4px}.swatch-blue{background:#176eac}.swatch-green{background:#16816b}.swatch-orange{background:#b56a0a}.swatch-red{background:#bd3545}.swatch-purple{background:#7851ac}.swatch-pink{background:#b0448d}.swatch-teal{background:#147f8a}.swatch-gray{background:#526b80}.category-preview{display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid #dce5ed;border-radius:10px;padding:14px;background:#f7f9fc}.preview-caption{font-size:.8rem;color:#607a90}.category-preview-title{display:flex;align-items:center;gap:10px;color:#173b58}.category-preview-title strong{overflow-wrap:anywhere}

.appearance-fields{grid-template-columns:1fr}.icon-picker{border:0;padding:0;margin:0;min-width:0}.icon-picker legend{font-size:.9rem;margin-bottom:8px}.icon-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:8px}.icon-choice{position:relative;display:flex;margin:0;cursor:pointer}.icon-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.icon-tile{display:flex;align-items:center;justify-content:center;width:100%;height:48px;border:1px solid #d4dfe7;border-radius:8px;background:#fff;color:#526b80}.icon-tile>svg{width:24px;height:24px}.icon-tile .category-mark{background:transparent;width:32px;height:32px}.icon-choice input:checked+.icon-tile{border:2px solid #173b58;background:#edf4fa;box-shadow:0 0 0 1px #173b58}.icon-choice input:checked+.icon-tile:after{content:'✓';position:absolute;right:3px;top:1px;font-size:11px;font-weight:bold;color:#173b58}.icon-choice input:focus-visible+.icon-tile{outline:3px solid #158bb8;outline-offset:3px}

.color-swatches{display:grid;grid-template-columns:repeat(4,30px);gap:10px}
.category-mark.color-iceblue{color:#a8d8f0;background:#f4fafd}.swatch-iceblue{background:#a8d8f0}.color-choice input:checked+.swatch-iceblue:after{color:#173b58}
.category-mark.color-sky{color:#4da9df;background:#e8f4fb}.swatch-sky{background:#4da9df}.color-choice input:checked+.swatch-sky:after{color:#fff}
.category-mark.color-blue{color:#176eac;background:#e1ecf4}.swatch-blue{background:#176eac}.color-choice input:checked+.swatch-blue:after{color:#fff}
.category-mark.color-navy{color:#203d78;background:#e2e6ed}.swatch-navy{background:#203d78}.color-choice input:checked+.swatch-navy:after{color:#fff}
.category-mark.color-mint{color:#a0dfc5;background:#f3fbf7}.swatch-mint{background:#a0dfc5}.color-choice input:checked+.swatch-mint:after{color:#173b58}
.category-mark.color-lime{color:#78ba44;background:#edf6e7}.swatch-lime{background:#78ba44}.color-choice input:checked+.swatch-lime:after{color:#173b58}
.category-mark.color-green{color:#16816b;background:#e1efec}.swatch-green{background:#16816b}.color-choice input:checked+.swatch-green:after{color:#fff}
.category-mark.color-forest{color:#21563d;background:#e2e9e6}.swatch-forest{background:#21563d}.color-choice input:checked+.swatch-forest:after{color:#fff}
.category-mark.color-peach{color:#f6bf91;background:#fef7f1}.swatch-peach{background:#f6bf91}.color-choice input:checked+.swatch-peach:after{color:#173b58}
.category-mark.color-yellow{color:#efc63c;background:#fdf8e6}.swatch-yellow{background:#efc63c}.color-choice input:checked+.swatch-yellow:after{color:#173b58}
.category-mark.color-orange{color:#b56a0a;background:#f5ecdf}.swatch-orange{background:#b56a0a}.color-choice input:checked+.swatch-orange:after{color:#fff}
.category-mark.color-brown{color:#754b32;background:#ede8e4}.swatch-brown{background:#754b32}.color-choice input:checked+.swatch-brown:after{color:#fff}
.category-mark.color-blush{color:#f2b1b7;background:#fdf5f6}.swatch-blush{background:#f2b1b7}.color-choice input:checked+.swatch-blush:after{color:#173b58}
.category-mark.color-coral{color:#ef7969;background:#fdeeec}.swatch-coral{background:#ef7969}.color-choice input:checked+.swatch-coral:after{color:#173b58}
.category-mark.color-red{color:#bd3545;background:#f6e5e7}.swatch-red{background:#bd3545}.color-choice input:checked+.swatch-red:after{color:#fff}
.category-mark.color-burgundy{color:#75283f;background:#ede3e6}.swatch-burgundy{background:#75283f}.color-choice input:checked+.swatch-burgundy:after{color:#fff}
.category-mark.color-lavender{color:#c9b8ed;background:#f8f6fd}.swatch-lavender{background:#c9b8ed}.color-choice input:checked+.swatch-lavender:after{color:#173b58}
.category-mark.color-violet{color:#9a77d2;background:#f2edf9}.swatch-violet{background:#9a77d2}.color-choice input:checked+.swatch-violet:after{color:#fff}
.category-mark.color-purple{color:#7851ac;background:#ede8f4}.swatch-purple{background:#7851ac}.color-choice input:checked+.swatch-purple:after{color:#fff}
.category-mark.color-plum{color:#4e326e;background:#e8e4ec}.swatch-plum{background:#4e326e}.color-choice input:checked+.swatch-plum:after{color:#fff}
.category-mark.color-rose{color:#f1b6d9;background:#fdf6fa}.swatch-rose{background:#f1b6d9}.color-choice input:checked+.swatch-rose:after{color:#173b58}
.category-mark.color-hotpink{color:#dc6aab;background:#faecf4}.swatch-hotpink{background:#dc6aab}.color-choice input:checked+.swatch-hotpink:after{color:#fff}
.category-mark.color-pink{color:#b0448d;background:#f5e7f0}.swatch-pink{background:#b0448d}.color-choice input:checked+.swatch-pink:after{color:#fff}
.category-mark.color-magenta{color:#812260;background:#efe2ea}.swatch-magenta{background:#812260}.color-choice input:checked+.swatch-magenta:after{color:#fff}
.category-mark.color-aqua{color:#a4e2e0;background:#f3fbfb}.swatch-aqua{background:#a4e2e0}.color-choice input:checked+.swatch-aqua:after{color:#173b58}
.category-mark.color-cyan{color:#40b8c0;background:#e6f6f7}.swatch-cyan{background:#40b8c0}.color-choice input:checked+.swatch-cyan:after{color:#fff}
.category-mark.color-teal{color:#147f8a;background:#e0eef0}.swatch-teal{background:#147f8a}.color-choice input:checked+.swatch-teal:after{color:#fff}
.category-mark.color-petrol{color:#18535e;background:#e1e9ea}.swatch-petrol{background:#18535e}.color-choice input:checked+.swatch-petrol:after{color:#fff}
.category-mark.color-silver{color:#c3cdd6;background:#f7f9fa}.swatch-silver{background:#c3cdd6}.color-choice input:checked+.swatch-silver:after{color:#173b58}
.category-mark.color-slate{color:#879bab;background:#eff2f4}.swatch-slate{background:#879bab}.color-choice input:checked+.swatch-slate:after{color:#173b58}
.category-mark.color-gray{color:#526b80;background:#e9ecee}.swatch-gray{background:#526b80}.color-choice input:checked+.swatch-gray:after{color:#fff}
.category-mark.color-charcoal{color:#303b47;background:#e4e6e7}.swatch-charcoal{background:#303b47}.color-choice input:checked+.swatch-charcoal:after{color:#fff}

.report-export{margin-top:24px;padding:32px;max-width:800px}.report-export h2{font-size:1.4rem;margin-bottom:16px}.report-export p{line-height:1.8;margin:16px 0}.report-export p:last-child{margin-bottom:0}.report-export label{max-width:480px}.report-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}@media(max-width:760px){.report-export{padding:22px}.report-export h2{font-size:1.2rem}}

.category-shortcuts{position:sticky;top:12px;z-index:6;display:flex;align-items:center;gap:14px;padding:12px 14px;margin-top:22px;background:#fff;border:1px solid #dce5ee;border-radius:12px;box-shadow:0 4px 16px #122d4812;max-width:100%;min-width:0}.shortcut-label{font-size:.8rem;font-weight:700;color:#65788b;flex-shrink:0}.category-shortcut-list{display:flex;gap:8px;overflow-x:auto;min-width:0;padding:3px;scrollbar-width:thin}.category-shortcut-list button{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;white-space:nowrap;font-size:.85rem;padding:6px 10px;font-weight:600}.category-shortcut-list .category-mark{width:28px;height:28px}.category-shortcut-list .category-mark svg{width:20px;height:20px}.category-shortcuts+.budget-groups{margin-top:16px}.group-panel{scroll-margin-top:100px}@media(max-width:760px){.category-shortcuts{top:8px;padding:9px;gap:8px}.shortcut-label{display:none}.category-shortcut-list button{font-size:.8rem;padding:5px 8px}}

.budget-layout{margin-top:22px;min-width:0}.budget-layout>.category-shortcuts{margin-top:0}.budget-layout>.budget-groups{min-width:0;margin-top:16px}.settings-section-title{margin:28px 0 12px;font-size:1rem}@media(min-width:1850px){.budget-layout-sidebar{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;align-items:start;width:calc(100% + 210px);margin-left:-210px}.budget-layout-sidebar>.category-shortcuts{top:16px;align-self:start;flex-direction:column;align-items:stretch;gap:10px;padding:14px;max-height:calc(100dvh - 32px)}.budget-layout-sidebar .shortcut-label{display:block}.budget-layout-sidebar .category-shortcut-list{flex-direction:column;overflow-x:hidden;overflow-y:auto;min-height:0}.budget-layout-sidebar .category-shortcut-list button{text-align:left;justify-content:flex-start;white-space:normal;padding:8px;font-size:.85rem}.budget-layout-sidebar .category-shortcut-list button>span:last-child{min-width:0;overflow-wrap:anywhere}.budget-layout-sidebar>.budget-groups{margin-top:0}}

.category-shortcut-list button.is-current{background:#e4f3ef;border-color:#16816b;color:#126b59;box-shadow:inset 0 -3px #16816b}.budget-layout-sidebar .category-shortcut-list button.is-current{box-shadow:inset 3px 0 #16816b}@media(max-width:1849px){.budget-layout-sidebar .category-shortcut-list button.is-current{box-shadow:inset 0 -3px #16816b}}
.account-grid{grid-template-columns:minmax(0,1fr)}.account-card{min-width:0}.account-card h3,.account-card small{overflow-wrap:anywhere}@media(min-width:900px){.account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1400px){.account-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.login-card #login>button{margin-top:18px}

.transaction-comment{white-space:pre-wrap;overflow-wrap:anywhere;max-width:320px;margin-top:5px;font-size:.8rem;line-height:1.5;font-weight:400}dialog textarea{display:block;width:100%;margin-top:7px;border:1px solid #d1dce6;border-radius:8px;padding:12px;background:#fff;color:#18344e;font:inherit;resize:vertical}dialog textarea:focus{outline:3px solid #74c9bb;outline-offset:2px}

.installment-intro .panel-heading{align-items:flex-start}.installment-intro .panel-heading p{font-size:.85rem;margin:10px 0 0;line-height:1.6}.installment-tabs{display:flex;gap:8px;overflow-x:auto;padding:0 24px 16px}.installment-tabs button{display:flex;align-items:center;gap:8px;white-space:nowrap}.installment-tabs button[aria-pressed="true"]{background:#edf5fb;border-color:#176eac;color:#176eac}.installment-toolbar{padding:18px 24px;border-top:1px solid #e2e9f0;display:flex;align-items:center;justify-content:space-between;gap:16px}.installment-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.installment-summary{margin-top:22px}.installment-overview summary{padding:20px 24px;cursor:pointer;font-weight:600}.installment-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:.8rem;color:#65788b;margin:22px 0 16px}.installment-legend span:first-child:before,.installment-legend span:last-child:before{content:'';display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:7px;background:#d9f1df}.installment-legend span:last-child:before{background:#fff0af}.installment-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}.installment-purchase .panel-heading{padding:18px 20px;align-items:flex-start}.installment-purchase h2{overflow-wrap:anywhere;line-height:1.5}.installment-amount{padding:14px 20px;background:#fff0f2;border-top:1px solid #f2dce0;border-bottom:1px solid #f2dce0;font-size:.85rem}.installment-amount strong{font-size:1.2rem}.installment-amount small{margin-top:7px}.installment-schedule{max-height:520px;overflow:auto}.installment-schedule th{position:sticky;top:0;background:#fff;z-index:1;padding:12px 14px}.installment-schedule td{padding:10px 14px}.installment-paid td{background:#d9f1df}.installment-next td{background:#fff0af}.installment-check{width:20px;height:20px;accent-color:#16816b;cursor:pointer}.installment-complete{padding:16px 20px;margin:0;color:#16816b;font-size:.85rem}@media(min-width:1100px){.installment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1600px){.installment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.installment-intro .panel-heading{flex-wrap:wrap}.installment-toolbar{flex-wrap:wrap;padding:16px 18px}.installment-tabs{padding:0 18px 16px}.installment-toolbar button{font-size:.8rem}.installment-summary{grid-template-columns:1fr}.installment-schedule{max-height:440px}}

.installment-status-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0 0}.installment-status-tabs button[aria-pressed="true"]{background:#173b58;border-color:#173b58;color:#fff}.installment-schedule{overflow-anchor:none}

.installment-schedule .installment-year-start td{border-top:3px solid #176eac}

.installment-tabs .has-active-plans{border-color:#a5d7c5}.card-plan-badge{display:inline-flex;align-items:center;border-radius:6px;background:#edf1f5;color:#526b80;font-size:.72rem;padding:4px 7px;font-weight:600}.has-active-plans .card-plan-badge{background:#def3e9;color:#126b59}.installment-tabs button[aria-pressed="true"]{box-shadow:inset 0 -3px #176eac}
@media(min-width:1100px){.installment-tabs{flex-wrap:wrap;overflow-x:visible}.installment-tabs button{max-width:100%;white-space:normal;text-align:left}.installment-card-tab>span:not(.card-plan-badge){min-width:0;overflow-wrap:anywhere}.installment-card-tab .card-plan-badge{flex-shrink:0}}

.installment-global{padding:24px;margin-bottom:24px}.installment-global .stats{margin:18px 0 0}.installment-global .stats article{background:#f7fafe}.installment-card-summary-title{margin-top:24px;color:#526b80}.installment-card-summary-title+.installment-summary{margin-top:14px}@media(max-width:760px){.installment-global{padding:18px}.installment-global .stats{grid-template-columns:1fr}}

.database-panel .panel-heading{align-items:flex-start;flex-wrap:wrap}.database-panel .panel-heading p{margin:10px 0 0;line-height:1.6;font-size:.85rem}.database-list,.database-view-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0 24px 18px}.database-list button[aria-pressed="true"],.database-view-tabs button[aria-pressed="true"]{background:#edf5fb;border-color:#176eac;color:#176eac;box-shadow:inset 0 -2px #176eac}.database-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 24px;border-top:1px solid #e2e9f0}.database-toolbar>div,.database-view-info>div{display:flex;gap:8px;flex-wrap:wrap}.database-view-info{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 24px;background:#f7fafe;color:#65788b;font-size:.85rem}.database-view-info button{font-size:.8rem;padding:7px 10px}.database-table{max-height:65vh;overflow:auto}.database-table table{width:max-content;min-width:100%}.database-table th{position:sticky;top:0;background:#edf2f7;z-index:1;padding:0;border:1px solid #dce4ee}.database-column-title{padding:12px;border:0;border-radius:0;background:transparent;font-size:.85rem;font-weight:600;text-align:left;width:100%;min-width:140px}.database-column-title span{color:#7891a5;font-weight:400}.database-table td{padding:0;border:1px solid #e2e9f0;vertical-align:middle;max-width:350px}.database-table td:last-child{padding:4px 8px;white-space:nowrap}.database-cell{display:block;width:100%;min-width:140px;max-width:350px;min-height:42px;text-align:left;padding:9px 12px;border:0;border-radius:0;background:transparent;font-size:.85rem;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}.database-checkbox{width:18px;height:18px;accent-color:#176eac;margin:10px 16px;cursor:pointer}.db-empty{color:#abb9c7}.db-tag{display:inline-block;padding:3px 6px;margin:2px 4px 2px 0;border-radius:4px;font-size:.8rem;line-height:1.4;white-space:normal}.db-color-blue{color:#176eac;background:#dceefa}.db-color-green{color:#126b59;background:#def3e9}.db-color-orange{color:#955806;background:#ffecd0}.db-color-red{color:#a92e3c;background:#fcdfe4}.db-color-purple{color:#67408e;background:#ebe1fa}.db-color-pink{color:#9d347a;background:#f8deef}.db-color-teal{color:#146974;background:#daf1f3}.db-color-gray{color:#526b80;background:#e7edf2}.database-multi{border:1px solid #dce5ed;border-radius:8px;padding:12px;margin:16px 0}.database-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid #dce5ed;border-radius:8px;padding:10px;margin:12px 0}.database-filter-row select,.database-filter-row input{font-size:.8rem;padding:9px}.database-filter-row button{justify-self:end}aside{overflow-y:auto}.side-bottom{padding-top:20px}@media(max-width:760px){.database-toolbar,.database-view-info{flex-wrap:wrap;padding:16px 18px}.database-list,.database-view-tabs{padding:0 18px 16px}.database-toolbar button,.database-view-tabs button{font-size:.8rem}.database-table{max-height:60vh}}

.database-column-heading{display:flex;align-items:center}.database-column-heading .sort-handle{width:26px;height:36px;font-size:1.2rem}.database-column-title{display:flex;align-items:center;gap:7px;min-width:120px;padding-left:4px}.database-type-icon{width:16px;height:16px;flex-shrink:0;color:#61798d}.database-table th.sort-before{box-shadow:inset 4px 0 #19a78e}.database-table th.sort-after{box-shadow:inset -4px 0 #19a78e}.sort-ghost .database-column-heading{white-space:nowrap}

.database-options-button{border:0;background:transparent;padding:5px 8px}.database-option-row{display:flex;align-items:center;gap:8px;margin:8px 0;padding:6px;border:1px solid #dce5ed;border-radius:8px}.database-option-row input{flex:1;min-width:0;margin:0}.database-option-row details{position:relative}.database-option-row summary{cursor:pointer;list-style:none}.database-color-swatch{display:inline-block;width:24px;height:24px;padding:0;border:1px solid #a5b4c4;border-radius:5px}.database-color-palette{position:absolute;right:0;top:30px;z-index:5;background:white;box-shadow:0 6px 20px #1234;border-radius:8px;padding:12px;width:190px;display:flex;gap:8px;flex-wrap:wrap}.database-color-swatch[aria-pressed="true"]{outline:2px solid #176eac;outline-offset:2px}.database-option-row.sort-before{box-shadow:inset 0 3px #19a78e}.database-option-row.sort-after{box-shadow:inset 0 -3px #19a78e}.database-select-values .check-label,.database-multi .check-label{padding:5px;border-radius:6px;cursor:pointer}.database-select-values .check-label:has(input:checked),.database-multi .check-label:has(input:checked){background:#edf5fb}.db-color-yellow{background:#fff6bb;color:#826800}.db-color-cyan{background:#d5f2fc;color:#176b86}.db-color-beige{background:#ede3db;color:#746050}

.database-table tfoot td{position:sticky;bottom:0;z-index:1;background:#f7fafe;border-top:2px solid #dce4ee;padding:8px 10px}.database-calculation{display:flex;flex-direction:column;gap:6px;min-width:120px}.database-calculation select{font-size:.75rem;padding:6px;width:100%;margin:0}.database-calculation output{text-align:right;font-size:.85rem;font-weight:600;font-variant-numeric:tabular-nums}

.shell{grid-template-columns:245px minmax(0,1fr)}.workspace{min-width:0}.workspace-databases{max-width:1560px}@media(min-width:1101px){.workspace-databases{padding-left:28px;padding-right:28px}}@media(min-width:761px) and (max-width:1100px){.shell{grid-template-columns:210px minmax(0,1fr)}}

.database-column-resizer{position:absolute;right:-4px;top:0;bottom:0;width:9px;z-index:3;cursor:col-resize;touch-action:none}.database-column-resizer:hover,.database-column-resizer:focus-visible{background:#19a78e66}.database-table table{table-layout:fixed}.database-table .database-column-title{min-width:0;overflow:hidden;white-space:nowrap}.database-table .database-cell{min-width:0;max-width:none}.database-table th[data-column-width]{overflow:visible}.resizing-columns,.resizing-columns *{cursor:col-resize!important;user-select:none!important}

.database-table td{overflow:hidden}.database-column-heading{min-width:0}.database-column-title{flex:1}.database-column-heading>.sort-handle,.database-options-button{flex-shrink:0}

.database-cell.database-cell-number{text-align:right;font-variant-numeric:tabular-nums}

.database-view-tab{display:flex;align-items:center;gap:2px;border-radius:9px}.database-view-tab .sort-handle{width:24px;height:34px;font-size:1.2rem}.database-view-tab.sort-before{box-shadow:inset 3px 0 #19a78e}.database-view-tab.sort-after{box-shadow:inset -3px 0 #19a78e}

.database-cell.database-cell-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}

.database-panel>.panel-heading>div:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:10px}

.database-sort-title{margin-top:24px}.database-sort-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #e2e9f0}.database-sort-row label{font-size:.8rem}.database-sort-row select{font-size:.8rem;padding:9px}

.nav-section-label{margin:20px 12px 6px;padding-top:16px;border-top:1px solid #486079;color:#92a9bf;font-size:.68rem;font-weight:700;letter-spacing:.08em}@media(max-width:760px){nav{flex-wrap:wrap}.nav-section-label{flex-basis:100%;margin:8px 0 2px;padding-top:10px;text-align:left}nav button{flex:1 1 120px}}

.database-calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px}.database-calendar-toolbar>div{display:flex;gap:8px}.database-calendar-scroll{overflow:auto}.database-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:900px}.calendar-weekday{text-align:center;padding:12px;color:#65788b}.calendar-day{border:1px solid #e2e9f0;min-height:140px;padding:6px;min-width:0}.calendar-outside{background:#f8fafc;color:#9aaabd}.calendar-day-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.calendar-day-header button{padding:2px 8px;border:0;background:transparent;font-weight:400}.calendar-day-header time{padding:3px 6px;font-size:.85rem}.calendar-current-day{background:#176eac;color:white;border-radius:5px}.calendar-entry{display:block;text-align:left;width:100%;border:1px solid #cfdae7;border-radius:6px;padding:9px;margin:5px 0;background:white;font-weight:400;font-size:.8rem}.calendar-entry strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.calendar-entry>span{display:block;margin:7px 0}.calendar-entry .db-tag{font-size:.7rem}.calendar-missing{padding:12px 24px;color:#65788b;font-size:.8rem}

.filter-join{grid-column:1/-1;margin:0;color:#176eac;font-size:.8rem}.filter-join select{width:100px;margin:4px 0}

.board-scroll{overflow:auto;padding:24px;background:#fafcff}.board-canvas{position:relative;width:1200px;background-image:radial-gradient(#bdcddd 1.2px,transparent 1.2px);background-size:24px 24px}.board-tile{position:absolute;border:1px solid #cedbe7;border-radius:12px;box-shadow:0 3px 10px #1231;display:flex;flex-direction:column;overflow:hidden}.board-tile-heading{display:flex;align-items:center;gap:6px;padding:8px;border-bottom:1px solid #1232;background:#ffffff55}.board-tile-heading strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}.board-tile-heading button{padding:3px 6px;border:0;background:transparent}.board-drag{cursor:grab;touch-action:none}.board-tile-text{padding:14px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:.9rem;flex:1}.board-tile-text a{color:#176eac}.board-resize{position:absolute;bottom:0;right:0;border:0;border-radius:0;background:#ffffff88;padding:2px 5px;cursor:nwse-resize;touch-action:none}.board-color-white{background:white}.board-color-blue{background:#e1efff}.board-color-green{background:#def3e9}.board-color-yellow{background:#fff5cf}.board-color-pink{background:#fce1ef}.board-color-purple{background:#ebe1fa}.board-color-orange{background:#ffecd0}

.board-canvas{min-height:720px}.board-scroll{min-height:400px}

.board-tile-heading{cursor:grab;touch-action:none;user-select:none}.board-tile-heading:active{cursor:grabbing}.board-tile-heading [data-edit-tile],.board-tile-heading [data-delete-tile]{cursor:pointer}

.board-embed{width:100%;aspect-ratio:16/9;margin-bottom:8px;min-height:150px}.board-embed iframe{width:100%;height:100%;border:0;border-radius:8px}.board-embed-tiktok{aspect-ratio:9/16;max-height:520px}.board-original-link{display:block;font-size:.75rem;margin-bottom:12px}

.board-canvas{width:100%;min-width:1200px}

.budget-summary{grid-template-columns:repeat(4,minmax(0,1fr))}@media(min-width:761px) and (max-width:1300px){.budget-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.budget-summary{grid-template-columns:1fr}}

.shop-category-list{display:flex;gap:8px;flex-wrap:wrap;padding:12px 24px}.shop-category-list button{font-size:.8rem}.shop-basket-products{max-height:45vh;overflow:auto}.shop-quantity{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e2e9f0;padding:8px 0}.shop-quantity>span{flex:1}.shop-quantity input{width:100px;margin:0}.shop-baskets,.shop-stats{padding:24px}.shop-basket{display:flex;justify-content:space-between;gap:18px;padding:20px;border:1px solid #dce5ed;border-radius:12px;margin-bottom:14px}.shop-basket>div:last-child{display:flex;gap:8px;flex-wrap:wrap;align-content:flex-start;max-width:380px}.shop-basket strong{display:block;margin:12px 0}.shop-basket details p{font-size:.85rem}.shop-chart-row{display:grid;grid-template-columns:minmax(120px,1fr) 2fr 100px;gap:12px;align-items:center;margin:14px 0;font-size:.85rem}.shop-chart-row>div{background:#edf2f7;border-radius:5px;height:12px;overflow:hidden}.shop-chart-bar{height:100%;background:#19a78e}.shop-price-history{max-height:220px;overflow:auto}@media(max-width:760px){.shop-basket{flex-direction:column}.shop-chart-row{grid-template-columns:1fr 1fr 80px}.shop-baskets,.shop-stats{padding:16px}}

.shop-icons{display:flex;gap:7px;flex-wrap:wrap;border:1px solid #dce5ed;border-radius:8px;padding:12px}.shop-icons label{margin:0;display:flex;align-items:center;gap:4px;border:1px solid #dce5ed;padding:7px;border-radius:6px;cursor:pointer}.shop-icons input{width:auto;margin:0}.shop-icons span,.shop-item-icon{font-size:1.2rem}.shop-icons label:has(input:checked){background:#def3e9;border-color:#19a78e}

.shop-category-count{display:inline-block;background:#edf2f7;border-radius:20px;padding:2px 7px;margin-left:5px;font-size:.75rem;font-variant-numeric:tabular-nums}

.shop-archive-toggle{margin:12px 24px}

.shop-month-accordion{border:1px solid #dce5ed;border-radius:10px;margin-bottom:14px;overflow:hidden}.shop-month-accordion>summary{cursor:pointer;padding:18px;background:#f4f8fc}.shop-month-accordion>summary strong{margin-right:16px;text-transform:capitalize}.shop-month-accordion>summary span{color:#65788b;font-size:.85rem}.shop-month-content{padding:16px}.shop-month-content .shop-basket:last-child{margin-bottom:0}

.shop-product-groups{padding:8px 24px 24px}.shop-product-root{margin:0 0 24px}.shop-product-root-heading{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #dce5ed;margin-bottom:12px}.shop-product-root-heading h3{margin:0;flex:1}.shop-product-root-heading button{padding:5px 9px}.shop-product-category{border:1px solid #dce5ed;border-radius:9px;margin:8px 0;overflow:hidden}.shop-product-category>summary{cursor:pointer;padding:14px;background:#f7fafe}.shop-category-actions{display:flex;justify-content:flex-end;padding:8px 14px}.shop-category-actions button{font-size:.8rem;padding:6px 10px}.shop-category-empty{padding:12px 18px;color:#65788b}@media(max-width:760px){.shop-product-groups{padding:8px 16px 16px}}

.shop-category-expand-tools{display:flex;gap:10px;flex-wrap:wrap;padding:4px 24px 8px}@media(max-width:760px){.shop-category-expand-tools{padding-left:16px;padding-right:16px}}

.shopping-panel>.panel-heading>div,.shop-product-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shopping-panel>.panel-heading{flex-wrap:wrap}.shop-product-buttons{min-width:280px}

body{--theme-bg:#f4f7fb;--theme-side:#122d48;--theme-active:#24445f;--theme-accent:#176eac;--theme-soft:#edf5fb;--theme-line:#176eac0c}body[data-theme="forest"]{--theme-bg:#f2f7f3;--theme-side:#173b2c;--theme-active:#2c5641;--theme-accent:#236b4c;--theme-soft:#e7f3eb;--theme-line:#236b4c0d}body[data-theme="lavender"]{--theme-bg:#f6f3fa;--theme-side:#35254b;--theme-active:#53406d;--theme-accent:#7250a1;--theme-soft:#f0e8fa;--theme-line:#7250a10c}body[data-theme="sand"]{--theme-bg:#faf6ef;--theme-side:#47372b;--theme-active:#6b5340;--theme-accent:#936039;--theme-soft:#f6eadb;--theme-line:#9360390c}body[data-theme="ocean"]{--theme-bg:#f0f8f8;--theme-side:#123e47;--theme-active:#225c67;--theme-accent:#167b89;--theme-soft:#dff2f3;--theme-line:#167b890c}body[data-theme]{background-color:var(--theme-bg)}body[data-theme] aside{background:var(--theme-side)}body[data-theme] nav button.active,body[data-theme] nav button:hover{background:var(--theme-active)}body[data-theme] .primary{background:var(--theme-side);border-color:var(--theme-side)}body[data-theme] .primary:hover{background:var(--theme-active)}body[data-theme] .database-view-tabs button[aria-pressed="true"],body[data-theme] .database-list button[aria-pressed="true"]{background:var(--theme-soft);color:var(--theme-accent);border-color:var(--theme-accent);box-shadow:inset 0 -2px var(--theme-accent)}body[data-pattern="dots"]{background-image:radial-gradient(var(--theme-line) 1.6px,transparent 1.6px);background-size:22px 22px}body[data-pattern="grid"]{background-image:linear-gradient(var(--theme-line) 1px,transparent 1px),linear-gradient(90deg,var(--theme-line) 1px,transparent 1px);background-size:40px 40px}body[data-pattern="waves"]{background-image:repeating-radial-gradient(circle at 100% 0,transparent 0,transparent 65px,var(--theme-line) 66px,var(--theme-line) 68px,transparent 69px,transparent 125px);background-attachment:fixed}

.appearance-picker{border:0;padding:0;margin:20px 0;min-width:0}.appearance-picker legend{font-size:.9rem;font-weight:600;margin-bottom:10px}.appearance-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:10px}.appearance-choice{position:relative;border:2px solid #dce5ed;border-radius:10px;padding:8px;margin:0;cursor:pointer;display:flex;flex-direction:column;gap:8px;text-align:center;font-size:.8rem}.appearance-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}.appearance-choice:has(input:checked){border-color:var(--theme-accent,#176eac);background:var(--theme-soft,#edf5fb)}.appearance-choice:has(input:focus-visible){outline:3px solid #74c9bb;outline-offset:2px}.theme-preview{height:68px;display:flex;overflow:hidden;border:1px solid #1232;border-radius:6px;background:var(--preview-bg)}.theme-preview-side{width:23%;background:var(--preview-side)}.theme-preview-content{flex:1;display:flex;align-items:center;gap:4px;padding:8px}.theme-preview-content i{background:white;border:1px solid #1232;width:33%;height:25px;border-radius:3px;border-top:4px solid var(--preview-accent)}.theme-preview-classic{--preview-bg:#f4f7fb;--preview-side:#122d48;--preview-accent:#176eac}.theme-preview-forest{--preview-bg:#f2f7f3;--preview-side:#173b2c;--preview-accent:#236b4c}.theme-preview-lavender{--preview-bg:#f6f3fa;--preview-side:#35254b;--preview-accent:#7250a1}.theme-preview-sand{--preview-bg:#faf6ef;--preview-side:#47372b;--preview-accent:#936039}.theme-preview-ocean{--preview-bg:#f0f8f8;--preview-side:#123e47;--preview-accent:#167b89}.pattern-preview{height:68px;border-radius:6px;border:1px solid #dce5ed;background-color:#f4f7fb}.pattern-preview-dots{background-image:radial-gradient(#91a7bc 1.2px,transparent 1.2px);background-size:12px 12px}.pattern-preview-grid{background-image:linear-gradient(#bccbda77 1px,transparent 1px),linear-gradient(90deg,#bccbda77 1px,transparent 1px);background-size:14px 14px}.pattern-preview-waves{background-image:repeating-radial-gradient(circle at 100% 0,transparent 0,transparent 12px,#91a7bc55 13px,#91a7bc55 14px,transparent 15px,transparent 23px)}

.navigation-preview{height:90px;display:flex;gap:6px;padding:8px;border:1px solid #dce5ed;border-radius:6px;background:#f4f7fb}.navigation-preview-menu{display:flex;flex-direction:column;gap:5px;width:28%;padding:5px;background:#dcebf5;border-radius:4px}.navigation-preview-menu i{display:block;height:7px;background:#5d91b5;border-radius:2px}.navigation-preview-content{flex:1;display:flex;flex-direction:column;gap:6px}.navigation-preview-content i{flex:1;border:1px solid #dce5ed;border-radius:3px;background:white}.navigation-preview-top{flex-direction:column}.navigation-preview-top .navigation-preview-menu{flex-direction:row;width:100%}.navigation-preview-top .navigation-preview-menu i{flex:1}.menu-icons-preview{min-height:90px;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:8px;border-radius:6px;background:#122d48;color:white;text-align:left}.menu-icons-preview>span{display:flex;align-items:center;gap:8px}.menu-icons-preview b{width:24px;font-size:1.1rem;text-align:center;font-weight:400}

.settings-panel #settingsform{padding:0;display:block}.settings-panel #settingsform>.panel{margin-bottom:20px}.settings-group-content{padding:0 26px 26px}.settings-group-content>h3:first-child{margin-top:0}

.month-bar[hidden]{display:none}

.shop-root-actions{display:flex;align-items:center;gap:8px}.shop-product-category>summary .sort-handle{margin-left:auto}.shop-product-root.sort-before,.shop-product-category.sort-before{border-top:3px solid var(--theme-accent,#176eac)}.shop-product-root.sort-after,.shop-product-category.sort-after{border-bottom:3px solid var(--theme-accent,#176eac)}

.shop-category-actions{gap:8px;flex-wrap:wrap}

.shop-purchase-price{padding:4px 0 12px;border-bottom:1px solid #dce5ed}.shop-purchase-price .check-label{font-size:.85rem;margin:8px 0}

.shop-donut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.shop-donut-card{padding:20px;border:1px solid #dce5ed;border-radius:12px;background:white}.shop-donut-card h3{font-size:1rem}.shop-donut{display:block;width:250px;max-width:100%;margin:0 auto 16px}.shop-donut-legend{list-style:none;padding:0;margin:0;display:grid;gap:10px}.shop-donut-legend li{display:flex;align-items:center;gap:8px;font-size:.85rem}.shop-donut-legend li>span{flex:1;min-width:0;overflow-wrap:anywhere}.shop-donut-legend strong,.shop-donut-legend small{white-space:nowrap;font-variant-numeric:tabular-nums}.shop-quantity-filter{max-width:460px}@media(max-width:900px){.shop-donut-grid{grid-template-columns:1fr}}

.shop-quantity-tabs{margin:16px 0 20px}.shop-quantity-tabs .database-view-tabs{padding:0;display:flex;flex-wrap:wrap;gap:8px;margin:0}.shop-quantity-subcategory-group{margin-top:14px}.shop-quantity-group-label{display:block;font-size:.85rem;font-weight:600;margin-bottom:8px;color:#65788b}.shop-quantity-tabs .database-view-tabs button{font-size:.85rem}

.shop-stats .shop-cost-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}

.shop-filtered-total{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 18px;margin:0 0 16px;border:1px solid var(--theme-line,#dce5ed);border-radius:10px;background:var(--theme-soft,#edf5fb)}.shop-filtered-total>span{font-weight:600;flex:1}.shop-filtered-total>strong{font-size:1.25rem;white-space:nowrap;font-variant-numeric:tabular-nums}.shop-filtered-total>small{flex-basis:100%}
