:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}body{background:var(--tg-theme-bg-color,#fff);color:var(--tg-theme-text-color,#000);margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif}a{color:var(--tg-theme-link-color,#2481cc)}button{font:inherit;color:var(--tg-theme-button-text-color,#fff);background:var(--tg-theme-button-color,#2481cc);border:0;border-radius:8px;padding:6px 12px}button:disabled{opacity:.5}.home-nav{margin:0}.flash{z-index:20;text-align:center;color:var(--tg-theme-text-color,#000);background:var(--tg-theme-secondary-bg-color,#f1f1f1);pointer-events:none;opacity:1;border-radius:8px;margin:0;padding:8px 16px;transition:opacity .2s;position:fixed;bottom:16px;left:50%;transform:translate(-50%);box-shadow:0 2px 8px #00000040}.flash:empty{opacity:0;box-shadow:none;padding:0}:root{--page-padding:16px;--page-gap:12px}.app{gap:var(--page-gap);padding:var(--page-gap) var(--page-padding);flex-direction:column;display:flex}.screen{gap:var(--page-gap);flex-direction:column;display:flex}.screen>h1{margin:0}.screen>button{align-self:flex-start}.hint{color:var(--tg-theme-hint-color,#707579)}.error{color:var(--tg-theme-destructive-text-color,#d32f2f)}.month-bar{background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:8px;justify-content:space-between;align-items:center;padding:2px 4px;display:flex}.section{flex-direction:column;gap:8px;display:flex}.section>h2{margin:0}.section>button{align-self:flex-start}.progress{background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:4px;height:8px;display:block;position:relative}.progress-fill{background:var(--tg-theme-button-color,#2481cc);border-radius:4px;height:100%;display:block}.progress.over .progress-fill{background:var(--tg-theme-destructive-text-color,#d32f2f)}.category-row{box-sizing:border-box;width:100%;color:var(--tg-theme-text-color,#000);background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 12px;margin:2px 0;padding:8px 12px;text-decoration:none;display:flex}.category-name{min-width:0}.category-amount{text-align:right;margin-left:auto}.category-was{font-size:.85em;display:block}.category-row .progress{flex:0 0 100%}.category-row.over .category-amount{color:var(--tg-theme-destructive-text-color,#d32f2f)}.line-list{margin:0;padding:0;list-style:none}.line-row{background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:8px;flex-wrap:wrap;gap:0 6px;margin:2px 0;padding:8px 12px;display:flex}.receipt-items{flex:0 0 100%;margin-top:6px}.receipt-items .line-row{background:0 0;padding:4px 0 4px 16px}.day-header{justify-content:space-between;margin:12px 0 4px;font-size:1rem;display:flex}.tag-filter{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.tag{border:1px solid var(--tg-theme-hint-color,#707579);min-height:40px;color:var(--tg-theme-text-color,#000);background:0 0;border-radius:12px;padding:2px 12px}.tag[aria-pressed=true]{background:var(--tg-theme-secondary-bg-color,#f1f1f1);font-weight:600}.line-amount{margin-left:auto}.refund .line-amount{color:var(--tg-theme-link-color,#2481cc)}.line-button{min-height:40px;font:inherit;text-align:left;color:inherit;background:0 0;border:0;flex-wrap:wrap;flex:1;align-items:center;gap:0 6px;padding:0;display:flex}.sheet-backdrop{z-index:10;background:#0006;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet form{flex-direction:column;gap:12px;display:flex}.reloading{opacity:.6}.sheet{box-sizing:border-box;width:100%;max-height:90vh;color:var(--tg-theme-text-color,#000);background:var(--tg-theme-bg-color,#fff);border-radius:12px 12px 0 0;padding:16px;overflow-y:auto}.sheet label{flex-direction:column;gap:4px;display:flex}.sheet-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.sheet-actions button.secondary{color:var(--tg-theme-text-color,#000);background:var(--tg-theme-secondary-bg-color,#f1f1f1)}.sheet-actions button.danger{color:var(--tg-theme-destructive-text-color,#d32f2f);background:0 0;border:1px solid}.menu,.category-list{margin:0;padding:0;list-style:none}.category-item{background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:8px;margin:2px 0;padding:0 0 6px}.category-item .category-button{box-sizing:border-box;text-align:left;width:100%;color:var(--tg-theme-text-color,#000);background:0 0;justify-content:space-between;align-items:baseline;gap:4px 12px;padding:8px 12px;display:flex}.category-meta{text-align:right;margin-left:auto}.category-labels{flex-wrap:wrap;align-items:center;gap:4px 8px;padding:0 12px;display:flex}.label-list{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.label-chip{min-height:40px;color:var(--tg-theme-text-color,#000);border:1px solid var(--tg-theme-hint-color,#707579);background:0 0;padding:4px 12px}.category-item.archived .category-button{color:var(--tg-theme-hint-color,#707579)}.segmented{gap:8px;margin-bottom:8px;display:flex}.segmented button{background:var(--tg-theme-secondary-bg-color,#f0f0f0);color:var(--tg-theme-text-color,#000);border:2px solid #0000}.segmented button[aria-pressed=true]{background:var(--tg-theme-button-color,#2481cc);color:var(--tg-theme-button-text-color,#fff);border-color:var(--tg-theme-text-color,#000);font-weight:700}.compare-scroll{overflow-x:auto}.compare-table{border-collapse:collapse;white-space:nowrap}.compare-table th,.compare-table td{text-align:right;padding:4px 8px}.compare-table th[scope=col]:first-child,.compare-table th[scope=row]{text-align:left;background:var(--tg-theme-bg-color,#fff);position:sticky;left:0}.compare-table tfoot{font-weight:600}.compare-table td.up,.compare-table tr.up th a{color:var(--tg-theme-destructive-text-color,#d32f2f)}.back-nav{margin:0}.back-link{min-height:40px;color:var(--tg-theme-link-color,#2481cc);background:0 0;padding:4px 12px 4px 0}.month-step{min-width:0;color:var(--tg-theme-hint-color,#707579);white-space:nowrap;text-overflow:ellipsis;background:0 0;flex:1;padding:6px 4px;font-size:.9em;overflow:hidden}.month-step:first-child{text-align:left}.month-step:last-child{text-align:right}.month-current{flex:none;padding:0 8px}.line-row.unallocated,.line-row.unallocated .line-button{color:var(--tg-theme-hint-color,#707579)}.sheet-fact{justify-content:space-between;margin:0;display:flex}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.day-card{border-top:1px solid var(--tg-theme-secondary-bg-color,#f1f1f1)}.day-card .day-header{margin:0;display:block}.day-toggle{width:100%;min-height:48px;font:inherit;text-align:left;color:inherit;background:0 0;border:0;flex-direction:column;justify-content:center;padding:8px 0;display:flex}.day-row{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.day-date{white-space:nowrap;gap:6px;min-width:0;font-size:15px;font-weight:600;display:flex}.day-chevron{width:1ch;color:var(--tg-theme-hint-color,#707579)}.day-sum{white-space:nowrap;font-variant-numeric:tabular-nums;flex:none;font-weight:600}.day-toggle .over{color:var(--tg-theme-destructive-text-color,#d32f2f)}.meter{background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:3px;height:5px;margin:7px 0 4px;display:block;position:relative;overflow:hidden}.meter i{background:var(--tg-theme-hint-color,#707579);border-radius:3px;position:absolute;inset:0 auto 0 0}.meter i.over{background:var(--tg-theme-destructive-text-color,#d32f2f)}.day-caption{white-space:nowrap;font-variant-numeric:tabular-nums;justify-content:space-between;gap:8px;font-size:12px;font-weight:400;display:flex}.day-caption-end{gap:8px;display:flex}.day-caption .over{font-weight:600}.day-rows .line-row.compact{border-top:1px dashed var(--tg-theme-secondary-bg-color,#f1f1f1);background:0 0;border-radius:0;margin:0;padding:0 0 0 10px;font-size:14px;display:block}.day-rows .line-row.compact:first-child{border-top:0}.day-rows .compact .line-button,.receipt-head{flex-wrap:nowrap;align-items:center;gap:8px;width:100%;min-height:40px;display:flex}.day-rows .compact .line-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.day-rows .compact .line-amount,.day-rows .compact .line-flags{white-space:nowrap;font-variant-numeric:tabular-nums;flex:none;margin-left:0}.day-rows .receipt-row.compact .receipt-items{color:var(--tg-theme-hint-color,#707579);margin:0 0 0 18px;font-size:13px}.day-rows .receipt-items .line-row.compact{border-top:0;padding:0;font-size:13px}.receipt-more{min-height:40px;font:inherit;text-align:left;color:var(--tg-theme-hint-color,#707579);background:0 0;border:0;margin-left:18px;padding:0;font-size:13px;text-decoration:underline}.limit-chart{margin:0}.limit-chart svg{width:100%;display:block}.chart-axis{stroke:var(--tg-theme-hint-color,#707579);stroke-width:1px}.chart-bar{fill:var(--tg-theme-button-color,#2481cc)}.chart-bar.over{fill:var(--tg-theme-destructive-text-color,#d32f2f);stroke:var(--tg-theme-text-color,#000);stroke-width:1.5px}.chart-limit{fill:none;stroke:var(--tg-theme-text-color,#000);stroke-width:2px}.chart-future{stroke-width:1.5px;stroke-dasharray:4 3;opacity:.6}.chart-today{stroke:var(--tg-theme-hint-color,#707579);stroke-dasharray:2 2}.chart-text{fill:var(--tg-theme-hint-color,#707579);font-size:10px}.chart-legend{flex-wrap:wrap;gap:4px 12px;margin-top:4px;font-size:12px;display:flex}.chart-key{background:var(--tg-theme-text-color,#000);border-radius:2px;width:10px;height:10px;margin-right:4px;display:inline-block}.chart-key-bar{background:var(--tg-theme-button-color,#2481cc)}.chart-key-over{background:var(--tg-theme-destructive-text-color,#d32f2f);outline:1.5px solid var(--tg-theme-text-color,#000);outline-offset:-1px}.today-head{margin:0;font-size:24px;font-weight:700;line-height:1.2}.tomorrow-block{background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:12px;flex-direction:column;gap:2px;padding:10px 12px;display:flex}.plan-list{margin:0;padding:0;list-style:none}.plan-row{border-top:1px solid var(--tg-theme-section-separator-color,#ececec);padding:8px 0}.plan-row:first-child{border-top:0}.plan-line{align-items:center;gap:8px;display:flex}.plan-name{flex-direction:column;flex:1;min-width:0;display:flex}.plan-title,.plan-caption,.plan-diff{overflow-wrap:anywhere;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.plan-caption,.plan-diff{color:var(--tg-theme-hint-color,#707579);font-size:12px}.plan-name-input.invalid{border-color:var(--tg-theme-destructive-text-color,#d32f2f)}.plan-name-input{box-sizing:border-box;border:1px solid var(--tg-theme-section-separator-color,#ccc);width:100%;min-height:40px;font:inherit;color:inherit;background:0 0;border-radius:8px;padding:0 8px}.plan-amount{font-variant-numeric:tabular-nums}.plan-controls{align-items:center;gap:4px;display:flex}.stepper{background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:10px;align-items:center;display:flex}.stepper.invalid{outline:1px solid var(--tg-theme-destructive-text-color,#d32f2f)}.stepper button{width:40px;min-height:40px;color:var(--tg-theme-link-color,#2481cc);background:0 0;padding:0;font-size:18px}.stepper input{text-align:center;width:52px;min-width:0;min-height:40px;font:inherit;font-variant-numeric:tabular-nums;color:inherit;background:0 0;border:0;padding:0;font-weight:600}.switch{background:0 0;flex:none;width:44px;min-height:40px;padding:0}.switch-track{background:var(--tg-theme-hint-color,#707579);opacity:.45;border-radius:12px;width:40px;height:24px;margin:0 auto;display:block;position:relative}.switch[aria-checked=true] .switch-track{background:var(--tg-theme-button-color,#2481cc);opacity:1}.switch-track:after{content:"";background:#fff;border-radius:50%;width:20px;height:20px;position:absolute;top:2px;left:2px}.switch[aria-checked=true] .switch-track:after{left:18px}.plan-menu-button,.menu-slot{flex:none;width:40px;min-height:40px;padding:0}.plan-menu-button{color:var(--tg-theme-hint-color,#707579);background:0 0;font-size:20px}.plan-menu,.plan-leave{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px 8px;padding:4px 0;font-size:14px;display:flex}.plan-menu-title{text-align:right;flex:1 0 100%}.plan-menu button,.plan-leave button,.segmented button{min-height:40px;color:var(--tg-theme-link-color,#2481cc);background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:10px;padding:0 12px}.plan-menu button.danger,.plan-leave button.danger{color:var(--tg-theme-destructive-text-color,#d32f2f)}.plan-chips{padding:8px 0 0}.chips{flex-wrap:wrap;gap:8px;margin-top:4px;display:flex}.chip{text-align:left;overflow-wrap:anywhere;max-width:100%;min-height:40px;color:var(--tg-theme-text-color,#000);background:var(--tg-theme-secondary-bg-color,#f1f1f1);border-radius:20px;padding:0 14px;font-size:14px}.chip.more{color:var(--tg-theme-link-color,#2481cc)}.plan-extra{justify-content:space-between;align-items:center;gap:8px;margin:0;font-size:14px;display:flex}.plan-scope{flex-direction:column;gap:4px;padding:4px 0;display:flex}.segmented{gap:4px;display:flex}.segmented button{flex:1;padding:0 8px}.segmented button[aria-checked=true]{color:var(--tg-theme-button-text-color,#fff);background:var(--tg-theme-button-color,#2481cc)}.plan-note{color:var(--tg-theme-hint-color,#707579);font-size:13px}button.link,.plan-add{min-height:40px;color:var(--tg-theme-link-color,#2481cc);background:0 0;padding:0 8px}button.link.danger{color:var(--tg-theme-destructive-text-color,#d32f2f)}.plan-error{margin:0;font-size:13px}.plan-bar{margin:0 calc(-1 * var(--page-padding)) calc(-1 * var(--page-gap));padding:12px var(--page-padding);border-top:1px solid var(--tg-theme-section-separator-color,#ececec);background:var(--tg-theme-bg-color,#fff);flex-direction:column;gap:8px;display:flex;position:sticky;bottom:0}.plan-bar p{margin:0}.plan-bar .plan-free{white-space:nowrap;font-size:14px}.plan-bar>button{min-height:44px}
