/* Budget: one clear month, a separate subscriptions view, optional advanced tracking. */
#finance-board[hidden]{display:none!important}
.finance-mode>.sheet-switcher,.finance-mode>.workbook-grid,.finance-mode>.ready-summary,.finance-mode>#week-navigation,.finance-mode>#sport-charts,.finance-mode>#data-quality{display:none!important}
body[data-tool=finances] .personal-shell{max-width:1256px;padding:36px 40px 72px}
body[data-tool=finances] .workbook-heading{margin-bottom:28px;align-items:center}
body[data-tool=finances] .workbook-heading h1{font-size:34px;margin:0;letter-spacing:-.045em}
body[data-tool=finances] .save-area{margin:0}
.budget-workspace{--budget-tint:color-mix(in srgb,var(--theme-accent,#3f6d5e) 9%,var(--theme-surface,#fff));--budget-muted:var(--theme-muted,#65727b);color:var(--theme-text,var(--theme-text));font-size:14px}
.budget-workspace *{box-sizing:border-box}.budget-workspace svg,.finance-dialog .budget-icon-button svg{width:22px;height:22px;flex-shrink:0;display:block}
.budget-workspace button,.budget-workspace summary{font-family:inherit}.budget-workspace button:disabled{opacity:.45;cursor:not-allowed}.budget-workspace [hidden]{display:none!important}
.budget-workspace button:focus-visible,.budget-workspace summary:focus-visible,.finance-dialog button:focus-visible{outline:3px solid var(--theme-accent);outline-offset:3px}
.budget-toolbar{display:flex;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap}
.budget-tabs{display:flex;gap:4px;padding:5px;border:1px solid var(--theme-border,var(--theme-border));border-radius:14px;background:var(--theme-surface,var(--theme-surface))}
.budget-tab{display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:10px;min-height:44px;padding:10px 17px;background:transparent;color:var(--budget-muted);font-size:14px;font-weight:700;white-space:nowrap}
.budget-tab[aria-pressed=true]{background:var(--theme-accent,var(--theme-accent));color:var(--theme-on-accent,var(--theme-on-accent));box-shadow:0 2px 6px color-mix(in srgb, var(--theme-text) 4%, transparent)}
.budget-month{display:flex;align-items:center;gap:5px;margin-left:auto}.budget-month-label{position:relative;font-size:14px;font-weight:750;text-align:center;min-width:154px;cursor:pointer;padding:11px 3px;text-transform:capitalize}
.budget-month-label input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer;min-height:44px}.budget-month-label:focus-within{outline:2px solid var(--theme-accent);border-radius:7px}
.budget-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:1px solid var(--theme-border,var(--theme-border));border-radius:12px;background:var(--theme-surface,var(--theme-surface));color:inherit;flex-shrink:0}.budget-icon-button:hover{background:var(--budget-tint)}
.budget-more{position:relative;margin-left:auto}.budget-month+.budget-more{margin-left:0}.budget-more>summary{display:flex;list-style:none;align-items:center;gap:5px;cursor:pointer;min-height:44px;color:var(--budget-muted);font-size:12px;font-weight:650;padding:8px 4px}.budget-more summary::-webkit-details-marker{display:none}.budget-more summary svg{width:16px}
.budget-more-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:8;min-width:225px;padding:7px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface);box-shadow:0 12px 40px color-mix(in srgb, var(--theme-text) 13%, transparent)}.budget-menu-item{display:block;width:100%;text-align:left;border:0;border-radius:8px;padding:12px;min-height:44px;font-size:14px;background:transparent;color:inherit}.budget-menu-item:hover{background:var(--budget-tint)}
.budget-overview{display:grid;grid-template-columns:1.25fr 1fr;gap:20px;margin-bottom:16px}.budget-balance{position:relative;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;background:var(--theme-accent,var(--theme-accent));color:var(--theme-on-accent,var(--theme-on-accent));border-radius:22px;padding:28px 30px;min-height:235px}.budget-balance:after{content:'';position:absolute;width:220px;height:220px;border:38px solid currentColor;opacity:.04;border-radius:50%;right:-76px;top:-80px;z-index:-1;pointer-events:none}.budget-eyebrow{font-size:12px;font-weight:650;letter-spacing:.025em}.budget-balance-value{font-size:clamp(32px,3.6vw,48px);font-weight:800;letter-spacing:-.055em;line-height:1.2;margin-top:10px;overflow-wrap:anywhere;max-width:100%}.budget-balance>p{font-size:13px;margin:10px 0 22px;opacity:.85;line-height:1.5}.budget-current{display:flex;gap:8px;align-items:center;font-size:12px;padding-top:14px;border-top:1px solid color-mix(in srgb, var(--theme-border) 19%, transparent);width:100%;flex-wrap:wrap}.budget-current svg{width:17px;height:17px;opacity:.8}.budget-current strong{margin-left:auto;font-size:16px;letter-spacing:-.02em}.budget-balance.is-negative{background:var(--theme-danger,var(--theme-accent));color:var(--theme-on-accent)}
.budget-totals{display:grid;gap:14px}.budget-total{display:flex;align-items:center;gap:17px;background:var(--theme-surface,var(--theme-surface));border:1px solid var(--theme-border,var(--theme-border));border-radius:20px;padding:20px 24px;min-width:0}.budget-total-icon{display:grid;place-items:center;border-radius:14px;width:46px;height:46px;background:var(--budget-tint);color:var(--theme-accent);flex-shrink:0}.budget-total:nth-child(2) .budget-total-icon{background:color-mix(in srgb,var(--theme-text) 5%,var(--theme-surface));color:var(--theme-text)}.budget-total>div{display:grid;gap:3px;min-width:0}.budget-total span{font-size:12px;color:var(--budget-muted);font-weight:600}.budget-total strong{font-size:28px;letter-spacing:-.045em;line-height:1.35;overflow-wrap:anywhere}.budget-total small{font-size:12px;color:var(--budget-muted)}
.budget-quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 30px}.budget-quick{display:flex;align-items:center;gap:12px;min-height:68px;padding:13px 17px;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:15px;color:inherit;text-align:left;font-size:14px;font-weight:700;transition:border-color .15s,background .15s}.budget-quick:hover{border-color:var(--theme-accent);background:var(--budget-tint)}.budget-quick>svg{margin-left:auto;width:18px;height:18px}.budget-quick-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:var(--budget-tint);color:var(--theme-accent)}.budget-quick-icon svg{width:19px;height:19px}
.budget-content{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);align-items:start;gap:20px}.budget-panel{background:var(--theme-surface,var(--theme-surface));border:1px solid var(--theme-border,var(--theme-border));border-radius:20px;padding:24px;min-width:0}.budget-side{display:grid;gap:18px}.budget-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.budget-section-heading h2{font-size:19px;letter-spacing:-.035em;line-height:1.3;margin:0;font-weight:800}.budget-section-heading p{font-size:12px;color:var(--budget-muted);margin:5px 0 0;line-height:1.5}.budget-section-heading .button{font-size:13px;min-height:44px;padding:12px 16px}.budget-muted{font-size:13px;line-height:1.65;color:var(--budget-muted);margin:0}
.budget-list-controls{margin-bottom:12px}.budget-filters{display:flex;gap:6px;flex-wrap:wrap}.budget-filter{font-size:12px;font-weight:650;min-height:40px;padding:9px 12px;border:1px solid transparent;background:transparent;color:var(--budget-muted);border-radius:9px}.budget-filter[aria-pressed=true]{background:var(--budget-tint);color:var(--theme-text);border-color:color-mix(in srgb,var(--theme-accent) 20%,transparent)}.budget-filter:hover{background:var(--budget-tint)}
.budget-search{display:flex;align-items:center;gap:9px;border:1px solid var(--theme-border);background:var(--theme-bg,var(--theme-bg));border-radius:10px;margin-top:12px;padding:0 12px}.budget-search svg{width:17px;height:17px;color:var(--budget-muted)}.budget-search input{width:100%;min-width:0;font:inherit;font-size:14px;min-height:44px;border:0;outline:none;background:transparent;color:inherit}.budget-search:focus-within{outline:2px solid var(--theme-accent);outline-offset:1px}.budget-operation{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--theme-border);padding:10px 0}.budget-operation:last-child{border-bottom:0}.budget-operation-icon,.budget-pay{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;border-radius:12px;background:var(--theme-bg,var(--theme-bg));color:var(--budget-muted)}.budget-operation-icon svg,.budget-pay svg{width:18px;height:18px}.budget-operation-icon.is-paid{background:var(--budget-tint);color:var(--theme-accent)}.budget-pay{min-width:44px;min-height:44px;border:1px dashed var(--theme-accent);color:var(--theme-accent);background:var(--theme-surface)}.budget-pay:hover{background:var(--budget-tint)}
.budget-operation-edit{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:left;background:none;border:0;padding:8px 0;min-height:56px;color:inherit}.budget-operation-edit>svg{width:14px;height:14px;color:var(--budget-muted)}.budget-operation-name{display:grid;gap:5px;min-width:0;flex:1}.budget-operation-name strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.budget-operation-name small{font-size:11px;line-height:1.4;color:var(--budget-muted)}.budget-operation-value{display:grid;justify-items:end;gap:5px;max-width:45%;flex-shrink:0}.budget-operation-value strong{font-size:14px;line-height:1.4;letter-spacing:-.025em;overflow-wrap:anywhere;max-width:100%;text-align:right}.budget-status{font-size:10px;font-weight:600;line-height:1.4;color:var(--budget-muted)}.budget-status.is-planned{color:var(--theme-accent)}
.budget-empty{text-align:center;padding:40px 10px;display:flex;align-items:center;flex-direction:column;gap:12px}.budget-empty>svg{width:32px;height:32px;color:var(--theme-accent);margin-bottom:6px}.budget-empty h3{font-size:18px;letter-spacing:-.03em;margin:0}.budget-empty p{font-size:13px;color:var(--budget-muted);line-height:1.65;max-width:330px;margin:0}.budget-empty .button{font-size:13px;padding:12px 18px;min-height:46px;margin-top:5px}.budget-text-button,.budget-history-link{min-height:44px;border:0;background:transparent;color:var(--theme-accent);font-weight:700;font-size:12px;padding:10px 0;text-align:left}.budget-history-link{margin-top:14px;color:var(--budget-muted);font-weight:600}.budget-list-more{display:flex;justify-content:center}.budget-upcoming-row{display:flex;width:100%;align-items:center;gap:12px;padding:13px 0;border:0;border-top:1px solid var(--theme-border);background:transparent;color:inherit;text-align:left}.budget-date-badge{display:flex;align-items:center;justify-content:center;flex-direction:column;width:42px;min-height:46px;flex-shrink:0;border-radius:10px;background:var(--budget-tint)}.budget-date-badge strong{font-size:16px;line-height:1.3}.budget-date-badge small{font-size:10px;color:var(--budget-muted)}.budget-upcoming-name{display:grid;gap:4px;min-width:0;flex:1}.budget-upcoming-name strong{font-size:12px;overflow-wrap:anywhere;line-height:1.4}.budget-upcoming-name small{font-size:10px;color:var(--budget-muted)}.budget-upcoming-row>strong{font-size:12px;max-width:38%;overflow-wrap:anywhere;text-align:right}
.budget-chart-total{font-size:25px;letter-spacing:-.04em}.budget-chart>svg{width:100%;height:auto;margin-top:5px}.budget-chart-area{fill:var(--theme-accent);opacity:.09}.budget-chart-line{stroke:var(--theme-accent);stroke-width:2.5;fill:none;stroke-linejoin:round;stroke-linecap:round}.budget-chart-zero{stroke:var(--theme-border);stroke-width:1;stroke-dasharray:3 3;fill:none}.budget-chart-dot{fill:var(--theme-accent);stroke:var(--theme-surface);stroke-width:2}.budget-chart-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--budget-muted)}.budget-optional summary{cursor:pointer;font-weight:700;font-size:13px}.budget-optional p{font-size:12px;color:var(--budget-muted);line-height:1.6}.budget-optional>strong{font-size:16px}.budget-limit{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:11px;margin:17px 0}.budget-limit strong{text-align:right;font-size:11px}.budget-limit progress{grid-column:1/-1}
.budget-workspace progress{width:100%;height:6px;border:0;border-radius:10px;overflow:hidden;background:var(--theme-border);accent-color:var(--theme-accent)}.budget-workspace progress::-webkit-progress-bar{background:var(--theme-border)}.budget-workspace progress::-webkit-progress-value{background:var(--theme-accent);border-radius:10px}.budget-workspace progress::-moz-progress-bar{background:var(--theme-accent);border-radius:10px}
.budget-warning{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;background:var(--budget-tint);border-radius:14px;font-size:13px;margin-top:20px}.budget-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:24px}.budget-footer button{font-size:11px;font-weight:500;color:var(--budget-muted)}.budget-notice{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);z-index:50;border-radius:12px;padding:13px 22px;background:var(--theme-accent);color:var(--theme-on-accent);box-shadow:0 8px 30px color-mix(in srgb, var(--theme-text) 13%, transparent);font-size:13px;font-weight:650;pointer-events:none}
.budget-sub-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;border-radius:22px;padding:30px;background:var(--budget-tint);border:1px solid var(--theme-border)}.budget-sub-hero h2{font-size:42px;line-height:1.3;letter-spacing:-.045em;margin:5px 0 8px}.budget-sub-hero .budget-unit{font-size:16px;letter-spacing:0;font-weight:500;color:var(--budget-muted)}.budget-sub-hero p{margin:0;font-size:13px;color:var(--budget-muted)}.budget-sub-hero .button{font-size:14px;padding:14px 20px;min-height:48px}.budget-sub-caption{font-size:12px;color:var(--budget-muted);margin:14px 0 24px}.budget-sub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:16px}.budget-sub-grid>.budget-empty{grid-column:1/-1;padding:48px 22px}.budget-sub-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--theme-border);background:var(--theme-surface);border-radius:20px;padding:22px}.budget-sub-top{display:flex;align-items:center;gap:12px;margin-bottom:24px}.budget-sub-avatar{flex:none;display:grid;place-items:center;width:44px;height:44px;font-size:15px;font-weight:800;letter-spacing:-.04em;border-radius:13px;background:var(--budget-tint);color:var(--theme-accent)}.budget-sub-top>div{min-width:0;flex:1}.budget-sub-top h3{font-size:15px;margin:0;line-height:1.4;letter-spacing:-.02em;overflow-wrap:anywhere}.budget-sub-state{font-size:11px;color:var(--budget-muted)}.budget-sub-top .budget-icon-button{border:0;width:32px;min-width:32px;height:44px;padding:5px;background:transparent}.budget-sub-price{line-height:1.4}.budget-sub-price strong{font-size:26px;letter-spacing:-.04em;overflow-wrap:anywhere}.budget-sub-price span{font-size:12px;color:var(--budget-muted)}.budget-sub-next{font-size:12px;line-height:1.65;color:var(--budget-muted);margin:10px 0 16px}.budget-sub-card>.budget-muted{font-size:11px;margin-top:-8px;margin-bottom:10px}.budget-sub-manage{width:100%;margin-top:auto;border:0;border-top:1px solid var(--theme-border);background:transparent;text-align:left;color:var(--theme-accent);padding:16px 0 0;min-height:44px;font-size:12px;font-weight:700}.budget-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px}.budget-suggestions button{border:1px solid var(--theme-border);color:var(--theme-text)}
.budget-other-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.budget-other-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.budget-other-card>div{min-width:0;flex:1}.budget-other-card h3{margin:0;font-size:16px;overflow-wrap:anywhere}.budget-other-card p{margin:8px 0;font-size:13px;line-height:1.6;color:var(--budget-muted)}.budget-other-card small{font-size:11px;color:var(--budget-muted)}.budget-other-card .outline-button{font-size:12px;min-height:44px;padding:10px 14px}.budget-other-list>.budget-empty{grid-column:1/-1}
/* Shared dialogs retain the complete legacy metadata, but common actions stay short. */
.finance-dialog{width:min(650px,calc(100% - 32px));max-height:90dvh;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:28px;border-radius:22px;border:1px solid var(--theme-border);background:var(--theme-surface);color:var(--theme-text);font-family:Manrope,Arial,sans-serif}.finance-dialog::backdrop{background:color-mix(in srgb, var(--theme-accent) 40%, transparent);backdrop-filter:blur(4px)}.finance-dialog-head{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:26px}.finance-dialog-head h2{font-size:24px;line-height:1.3;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere}.finance-dialog .dialog-close{flex:none}.finance-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:650;min-width:0;margin-bottom:18px}.finance-dialog input,.finance-dialog select,.finance-dialog textarea{font:inherit;font-size:16px;min-width:0;max-width:100%;width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-bg,var(--theme-bg));color:var(--theme-text);box-sizing:border-box}.finance-dialog input:focus,.finance-dialog select:focus,.finance-dialog textarea:focus{outline:2px solid var(--theme-accent);outline-offset:1px}.finance-dialog textarea{min-height:90px;resize:vertical}.finance-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.finance-form-grid>label{margin-bottom:0}.finance-dialog form>.finance-form-grid:first-child>label:first-child{grid-column:1/-1}.finance-field-help{color:var(--theme-muted);font-size:12px;line-height:1.6;margin:0 0 18px}.finance-field-help:empty{display:none}.finance-dialog-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;position:sticky;bottom:-28px;background:var(--theme-surface);padding:18px 0 4px;border-top:1px solid var(--theme-border);margin-top:24px;z-index:2}.finance-dialog-actions button{font-size:13px;min-height:48px;padding:12px 18px}.finance-dialog-actions .budget-delete,.finance-dialog-actions .text-button{margin-right:auto;background:transparent;border:0;color:var(--theme-danger);padding:10px 0}.finance-error{color:var(--theme-danger);font-size:13px;line-height:1.6}.finance-error:empty{display:none}.finance-payment-history{margin:24px 0;font-size:13px}.finance-payment-history summary{cursor:pointer;font-weight:700}.finance-history-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--theme-border)}.finance-history-line button{font-size:11px;min-height:44px;padding:8px 10px}.budget-quick-dialog{max-width:520px}.budget-amount-field{position:relative}.budget-amount-field input{font-size:32px;font-weight:750;padding-right:50px;height:68px;letter-spacing:-.035em}.budget-currency{position:absolute;right:18px;bottom:16px;font-size:23px;color:var(--theme-muted)}.budget-form-options{border-top:1px solid var(--theme-border);padding-top:8px}.budget-form-options>summary{font-size:13px;font-weight:650;color:var(--theme-muted);cursor:pointer;padding:10px 0;min-height:44px}.budget-options-fields{padding-top:12px}.budget-help-section{margin:20px 0}.budget-help-section h3{font-size:15px;margin:0 0 7px}.budget-help-section p{font-size:13px;color:var(--theme-muted);line-height:1.7;margin:0}
@media(max-width:1020px){.budget-toolbar{gap:12px}.budget-tabs .budget-tab{padding:10px 12px}.budget-more>summary{font-size:11px}.budget-content{grid-template-columns:minmax(0,1.5fr) minmax(255px,1fr)}.budget-panel{padding:20px}.budget-sub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-balance{padding:24px}.budget-month-label{min-width:140px}}
@media(max-width:760px){body[data-tool=finances] .personal-shell{padding:25px 18px 48px}body[data-tool=finances] .workbook-heading{margin-bottom:20px}body[data-tool=finances] .workbook-heading h1{font-size:29px}.budget-toolbar{gap:12px;margin-bottom:18px}.budget-tabs{flex:1}.budget-tab{flex:1}.budget-more{margin-left:0;order:1}.budget-month{order:2;width:100%;margin-left:0;justify-content:center}.budget-content{grid-template-columns:1fr}.budget-side{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.budget-overview{gap:12px}.budget-total{padding:16px;gap:12px}.budget-total strong{font-size:23px}.budget-total-icon{width:35px;height:35px;border-radius:10px}.budget-total-icon svg{width:18px;height:18px}.budget-quick{font-size:13px;gap:8px;padding:13px}.budget-quick>svg{display:none}.budget-quick-actions{gap:10px;margin-bottom:22px}.budget-other-list{grid-template-columns:1fr}}
@media(max-width:520px){body[data-tool=finances] .personal-shell{padding:22px 16px 40px}body[data-tool=finances] .workbook-heading{gap:10px}body[data-tool=finances] .workbook-heading h1{font-size:28px}.budget-toolbar{display:grid;grid-template-columns:1fr auto;gap:12px}.budget-tabs{grid-column:1/-1;width:100%}.budget-month{grid-column:1;grid-row:2;width:auto;justify-content:flex-start}.budget-month-label{min-width:120px;font-size:12px}.budget-month .budget-icon-button{width:36px;height:44px;padding:9px;border:0;background:transparent}.budget-more{grid-column:2;grid-row:2}.budget-more>summary{font-size:10px;gap:1px}.budget-more summary svg{width:12px}.budget-overview{grid-template-columns:1fr;gap:12px}.budget-balance{border-radius:19px;padding:22px 24px;min-height:205px}.budget-balance-value{font-size:39px}.budget-balance>p{font-size:12px;margin-bottom:16px}.budget-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.budget-total{align-items:flex-start;gap:9px;border-radius:15px;padding:15px 13px}.budget-total-icon{width:27px;height:27px;border-radius:8px}.budget-total-icon svg{width:15px;height:15px}.budget-total span{font-size:10px}.budget-total strong{font-size:21px}.budget-total small{font-size:10px}.budget-quick{display:flex;flex-direction:column;justify-content:center;text-align:center;font-size:11px;line-height:1.4;min-height:87px;padding:11px 5px;border-radius:14px}.budget-quick-actions{gap:8px}.budget-quick-icon{width:28px;height:28px;border-radius:8px}.budget-quick-icon svg{width:17px;height:17px}.budget-panel{padding:19px 16px;border-radius:17px}.budget-section-heading{gap:10px;margin-bottom:16px}.budget-section-heading h2{font-size:18px}.budget-section-heading p{font-size:11px}.budget-side{grid-template-columns:1fr}.budget-filters{gap:2px}.budget-filter{padding:9px 10px;font-size:11px;min-height:44px}.budget-search input{font-size:16px}.budget-operation{gap:8px}.budget-operation-icon{width:32px;height:36px;border-radius:9px}.budget-operation-edit{gap:6px}.budget-operation-edit>svg{display:none}.budget-operation-name strong{font-size:13px}.budget-operation-name small{font-size:10px}.budget-operation-value strong{font-size:13px}.budget-operation-value{max-width:41%}.budget-pay{width:38px;min-width:38px;min-height:44px}.budget-footer{align-items:start;flex-direction:column;gap:0}.budget-warning{align-items:start;flex-direction:column;gap:6px;font-size:12px}.budget-sub-hero{padding:24px;align-items:flex-start;flex-direction:column;border-radius:18px}.budget-sub-hero h2{font-size:36px}.budget-sub-hero .button{width:100%;justify-content:center}.budget-sub-caption{font-size:11px;line-height:1.6}.budget-sub-grid{grid-template-columns:1fr;gap:14px}.budget-sub-card{padding:20px}.budget-sub-top{margin-bottom:18px}.budget-sub-top h3{font-size:16px}.budget-other-card{padding:18px}.budget-other-card h3{font-size:14px}.budget-other-card p{font-size:12px}.budget-section-heading>.button{font-size:11px;padding:10px 12px;max-width:145px}.finance-dialog{width:calc(100% - 16px);max-height:94dvh;margin:auto;padding:22px 18px;border-radius:20px}.finance-dialog-head{margin-bottom:22px;gap:10px}.finance-dialog-head h2{font-size:22px}.finance-form-grid{gap:12px}.finance-dialog label{font-size:12px}.finance-dialog input,.finance-dialog select{padding:12px 10px;font-size:16px}.finance-dialog-actions{bottom:-22px;display:grid;grid-template-columns:1fr 1fr;padding:16px 0 max(4px,env(safe-area-inset-bottom));gap:10px}.finance-dialog-actions .button{grid-column:2;grid-row:1}.finance-dialog-actions .outline-button{grid-column:1;grid-row:1}.finance-dialog-actions .budget-delete,.finance-dialog-actions .text-button{grid-column:1/-1;grid-row:2;justify-self:center;margin:0;min-height:44px}.finance-dialog-actions button{padding:12px 10px;font-size:12px}.finance-history-line{align-items:flex-start;flex-direction:column;gap:7px}.finance-dialog:not(.budget-quick-dialog) .finance-form-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.budget-workspace *{scroll-behavior:auto!important;transition:none!important}}

.budget-more{padding:0!important;border:0!important;margin-top:0!important;margin-bottom:0!important;background:transparent!important}.budget-more>summary:after{display:none!important}.budget-more>summary{margin:0!important}.budget-more-menu{margin:0!important}.budget-pay{min-width:44px;width:44px}

.budget-form-options{margin:12px 0 0!important;padding:0!important;border-bottom:0!important}.budget-form-options>summary{font-size:13px!important}.budget-form-options .budget-options-fields{padding-top:12px}
@media(max-width:520px){.budget-amount-field input{font-size:30px}.budget-quick{font-size:12px}.budget-total span{font-size:11px}.budget-operation-name strong{font-size:14px}.budget-filter{font-size:12px}}
@media(max-width:360px){.budget-total-icon{display:none}.budget-total{padding:14px 12px}.budget-total strong{font-size:21px}.budget-month-label{min-width:110px}.budget-more>summary{font-size:11px}.budget-tabs .budget-tab{font-size:13px;padding:9px 10px}}
