: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)}.progress-mark{background:var(--tg-theme-text-color,#000);width:2px;position:absolute;top:-2px;bottom:-2px}.sparkline-line{stroke:var(--tg-theme-button-color,#2481cc);stroke-width:2px;vector-effect:non-scaling-stroke}.sparkline-zero{stroke:var(--tg-theme-hint-color,#707579);stroke-dasharray:4 4;vector-effect:non-scaling-stroke}.sparkline-today{fill:var(--tg-theme-button-color,#2481cc)}.category-list{margin:0;padding:0;list-style:none}.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{border-bottom:1px solid var(--tg-theme-section-separator-color,#8080804d);flex-wrap:wrap;gap:0 6px;padding:8px 0;display:flex}.line-amount{margin-left:auto}.refund .line-amount{color:var(--tg-theme-link-color,#2481cc)}.line-button{font:inherit;text-align:left;color:inherit;background:0 0;border:0;flex-wrap:wrap;flex:1;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}.line-list.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,.category-list ul{margin:0;padding:0;list-style:none}.category-item{margin:2px 0}.category-item .category-button{box-sizing:border-box;text-align:left;width:100%;color:var(--tg-theme-text-color,#000);background:var(--tg-theme-secondary-bg-color,#f1f1f1);justify-content:space-between;align-items:baseline;gap:4px 12px;padding:8px 12px;display:flex}.category-meta{text-align:right;margin-left:auto}.category-item.child{padding-left:24px}.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}
