*{box-sizing:border-box}:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;--color-expense: #c62828;--chart-1: #3390ec;--chart-2: #5ac8fa;--chart-3: #8b9aef;--chart-4: #94a3b8;--chart-5: #c084fc;--chart-6: #f472b6;--tg-theme-bg-color: #ffffff;--tg-theme-text-color: #000000;--tg-theme-hint-color: #707579;--tg-theme-link-color: #3390ec;--tg-theme-button-color: #3390ec;--tg-theme-button-text-color: #ffffff;--tg-theme-secondary-bg-color: #f4f4f5;--tg-theme-section-separator-color: #e0e0e0}html,body,#root{height:100%}body{margin:0;background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased}.app-shell{min-height:100%;display:flex;flex-direction:column;padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}.app-header{position:sticky;top:0;z-index:2;padding-top:env(safe-area-inset-top,0px);background:var(--tg-theme-secondary-bg-color);border-bottom:.5px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, .08))}.app-header-inner{padding:12px 16px 10px}.app-title{margin:0;font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:1.2;color:var(--tg-theme-text-color)}.app-subtitle{margin:4px 0 0;font-size:14px;color:var(--tg-theme-hint-color)}.app-main{flex:1;padding:12px 16px 16px;max-width:520px;width:100%;margin:0 auto}.home-page{display:flex;flex-direction:column;gap:20px}.tg-section{display:flex;flex-direction:column;gap:8px}.tg-section-label{margin:0;padding:0 4px;font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--tg-theme-section-header-text-color, var(--tg-theme-hint-color))}.tg-card{background:var(--tg-theme-secondary-bg-color);border-radius:12px;padding:14px 14px 12px;display:flex;flex-direction:column;gap:10px}.field-label{font-size:14px;font-weight:500;color:var(--tg-theme-text-color);margin-bottom:-4px}.hint-text{margin:0 0 4px;font-size:13px;line-height:1.45;color:var(--tg-theme-hint-color)}.tg-input{width:100%;border:none;border-radius:10px;padding:11px 12px;font-size:16px;background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);outline:none;box-shadow:inset 0 0 0 .5px var(--tg-theme-section-separator-color, rgba(0, 0, 0, .12))}.tg-input::placeholder{color:var(--tg-theme-hint-color)}.tg-input:focus{box-shadow:inset 0 0 0 2px var(--tg-theme-link-color, var(--tg-theme-button-color))}.tg-btn{border:none;border-radius:10px;padding:12px 16px;font-size:16px;font-weight:600;cursor:pointer;transition:opacity .15s ease}.tg-btn:disabled{opacity:.45;cursor:not-allowed}.tg-btn-primary{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.tg-btn-secondary{background:color-mix(in srgb,var(--tg-theme-button-color) 18%,var(--tg-theme-secondary-bg-color));color:var(--tg-theme-link-color, var(--tg-theme-button-color))}.tg-btn-danger{background:color-mix(in srgb,#e53935 14%,var(--tg-theme-secondary-bg-color));color:#c62828}.tg-btn-small{padding:8px 12px;font-size:14px;font-weight:600}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.period-range{margin:0 0 8px;font-size:14px;color:var(--tg-theme-hint-color)}.summary-category-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}.summary-category-title{font-size:15px;font-weight:600}.summary-category--expense .summary-category-title{color:var(--color-expense)}.summary-total{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--tg-theme-accent-text-color, var(--tg-theme-text-color))}.summary-category--expense .summary-total{color:var(--color-expense)}.summary-user-list{list-style:none;margin:0;padding:0}.summary-user-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-top:.5px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, .08));font-size:15px}.summary-user-row:first-of-type{border-top:none;padding-top:0}.summary-user-name{color:var(--tg-theme-text-color)}.summary-user-amount{font-variant-numeric:tabular-nums;color:var(--tg-theme-hint-color)}.divider{height:1px;background:var(--tg-theme-section-separator-color, rgba(0, 0, 0, .08));margin:6px 0 10px}.muted{color:var(--tg-theme-hint-color)}.small-pad{padding:4px 0}.banner-error{background:color-mix(in srgb,#e53935 12%,var(--tg-theme-secondary-bg-color));color:#b71c1c;padding:10px 12px;border-radius:10px;font-size:14px;margin-bottom:14px}.tab-bar{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;justify-content:space-around;align-items:stretch;min-height:56px;padding-bottom:env(safe-area-inset-bottom,0px);background:color-mix(in srgb,var(--tg-theme-bg-color) 92%,transparent);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:.5px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, .1))}.tab-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 8px;border:none;background:transparent;color:var(--tg-theme-hint-color);cursor:pointer;font:inherit}.tab-item.active{color:var(--tg-theme-link-color, var(--tg-theme-button-color))}.tab-icon{display:flex;line-height:0}.tab-label{font-size:11px;font-weight:500}.history-page{display:flex;flex-direction:column;gap:12px;padding-bottom:8px}.history-intro{margin:0;padding:0 4px;font-size:13px}.history-filters-bar{width:100%}.history-period-bar{display:flex;flex-direction:column;gap:8px}.history-filters-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left}.history-filters-toggle-label{flex:1;font-weight:500}.history-filters-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border-radius:11px;font-size:12px;font-weight:600;background:var(--tg-theme-button-color, #3390ec);color:var(--tg-theme-button-text-color, #fff)}.history-filters-chevron{flex-shrink:0;transition:transform .2s ease}.history-filters-chevron.open{transform:rotate(180deg)}.history-filters{gap:8px}.history-inline-loading{padding:24px 16px}.history-sentinel{height:1px;margin:0;padding:0;pointer-events:none}.history-loading-more,.history-end{text-align:center;font-size:13px;margin:8px 0 0;padding:0 8px}.history-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.history-row{background:var(--tg-theme-secondary-bg-color);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}.history-row-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.history-row-amount-actions{display:flex;align-items:center;gap:10px}.history-delete-btn{flex-shrink:0;padding:4px 10px;font-size:13px;font-weight:500;border:none;border-radius:8px;background:color-mix(in srgb,var(--color-expense) 14%,var(--tg-theme-secondary-bg-color));color:var(--color-expense);cursor:pointer;font:inherit}.history-delete-btn:disabled{opacity:.6;cursor:not-allowed}.history-badge{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;padding:3px 8px;border-radius:6px}.history-badge.expense{background:color-mix(in srgb,var(--color-expense) 16%,var(--tg-theme-secondary-bg-color));color:var(--color-expense)}.history-amount{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--tg-theme-text-color)}.history-row-main{display:flex;flex-direction:column;gap:2px}.history-user{font-size:15px;font-weight:500}.history-reason{font-size:14px;color:var(--tg-theme-hint-color);line-height:1.35}.history-row-meta{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--tg-theme-hint-color)}.history-period{font-size:11px;opacity:.9}.charts-filters{gap:8px}.charts-filter-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.charts-filter-btn{flex:1 1 auto;min-width:0}.charts-range-hint{margin-top:6px;margin-bottom:0}.charts-page{display:flex;flex-direction:column;gap:20px;padding-bottom:8px}.chart-block{display:flex;flex-direction:column;gap:8px}.section-title{margin:0;padding:0 4px;font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:.04em;color:var(--tg-theme-section-header-text-color, var(--tg-theme-hint-color))}.chart-wrap{height:200px;background:var(--tg-theme-secondary-bg-color);border-radius:12px;padding:8px}.chart-wrap.tall{height:260px}.center-pad{display:flex;align-items:center;justify-content:center;min-height:160px;text-align:center;padding:16px}.page-empty{text-align:center;padding:48px 16px}.empty-title{margin:0 0 8px;font-size:17px;font-weight:600}.chart-tooltip{display:flex;flex-direction:column;gap:2px;padding:4px 0}.chart-tooltip-label{font-size:12px;color:var(--tg-theme-hint-color)}.chart-tooltip-value{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.legend-text{font-size:12px;color:var(--tg-theme-text-color)}.admin-page{display:flex;flex-direction:column;gap:16px;padding-bottom:8px}.admin-request-list,.admin-user-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.admin-request-row{display:flex;flex-direction:column;gap:10px;padding-bottom:12px;border-bottom:.5px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, .08))}.admin-request-row:last-child{padding-bottom:0;border-bottom:none}.admin-request-main{display:flex;flex-direction:column;gap:2px}.admin-request-name{font-size:15px;font-weight:600}.admin-request-meta{font-size:12px}.admin-request-actions{display:flex;gap:8px}.admin-request-actions .tg-btn{flex:1}.admin-user-row{display:flex;flex-direction:column;gap:10px;padding-bottom:12px;border-bottom:.5px solid var(--tg-theme-section-separator-color, rgba(0, 0, 0, .08))}.admin-user-row:last-child{padding-bottom:0;border-bottom:none}.admin-user-main{display:flex;flex-direction:column;gap:2px}.admin-user-name{font-size:15px;font-weight:600}.admin-user-meta{font-size:12px}.admin-user-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.admin-role-select{flex:1 1 140px;min-width:0}@supports not (color-mix(in srgb,white 50%,black)){.tg-btn-secondary{background:var(--tg-theme-secondary-bg-color);border:1px solid var(--tg-theme-section-separator-color, #ccc)}.tg-btn-danger,.banner-error{background:#ffebee}.tab-bar{background:var(--tg-theme-bg-color)}.history-badge.expense{background:#ffebee}}
