.budget-card{margin-block:24px;border:1px solid var(--border,#d9e0e6);border-radius:20px;background:var(--surface,#fff);color:var(--text,#253242);overflow:hidden}.budget-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border-bottom:1px solid var(--border,#d9e0e6);text-align:left}.budget-heading h2{font-size:20px;margin:6px 0}.budget-heading p,.budget-note{margin:0;line-height:1.6;color:var(--text-muted,#67788a);font-size:14px}.budget-eyebrow{font-size:11px;letter-spacing:.08em;font-weight:700;color:#608fae}.budget-badge{padding:8px 12px;background:rgba(96,143,174,.14);border-radius:20px;white-space:nowrap;font-size:13px}.budget-body{padding:24px;display:grid;gap:24px}.budget-statistics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.budget-statistics>div{border:1px solid var(--border,#d9e0e6);border-radius:12px;padding:16px;display:grid;gap:8px}.budget-statistics span{font-size:13px;color:var(--text-muted,#67788a)}.budget-statistics strong{font-size:24px}.budget-form{display:grid;gap:20px}.budget-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.budget-fields label{display:grid;gap:9px;font-size:14px;font-weight:600;text-align:left;min-width:0}.budget-fields input,.budget-fields select{box-sizing:border-box;width:100%;height:44px;padding:0 12px;border-radius:10px;background:transparent;border:1px solid var(--border,#d9e0e6);color:inherit;font:inherit}.budget-fields select{padding-right:36px}.budget-fields small{font-size:12px;font-weight:400;color:var(--text-muted,#67788a)}.budget-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.budget-card .button{min-height:44px;font-size:14px}.budget-card label.budget-toggle{display:inline-flex;align-items:center;gap:10px;margin:0;font-size:14px;cursor:pointer}.budget-card .budget-toggle input{appearance:none;position:static;margin:0;width:20px;height:20px;min-height:20px;flex:0 0 20px;padding:0;border:2px solid #7793a6;border-radius:5px;background:transparent;box-shadow:none;transition:none}.budget-card .budget-toggle input:checked{background:#608fae;border-color:#608fae;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E")}.budget-card input:focus-visible,.budget-card select:focus-visible{outline:2px solid #608fae;outline-offset:3px}.budget-footer{padding-top:16px;border-top:1px solid var(--border,#d9e0e6)}.budget-footer [data-message]{font-size:14px;flex:1;min-width:160px}.budget-history summary{cursor:pointer;font-weight:600}.budget-history article{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:16px 0;border-bottom:1px solid var(--border,#d9e0e6);font-size:13px;overflow-wrap:anywhere}.budget-history article>div{display:grid;gap:6px}.budget-history p{margin:0}.budget-history small{color:var(--text-muted,#67788a)}html[data-theme=dark] .budget-card{--surface:#19232e;--text:#e7eef5;--text-muted:#a3b2c2;--border:#344250}html[data-theme=dark] .budget-fields option{background:#19232e;color:#e7eef5}@media(max-width:640px){.budget-heading,.budget-body{padding:18px}.budget-fields{grid-template-columns:1fr}.budget-statistics{gap:8px}.budget-statistics>div{padding:10px}.budget-statistics strong{font-size:20px}.budget-heading{align-items:flex-start}.budget-history article{grid-template-columns:1fr}.budget-actions .button{width:100%}}
.budget-card .budget-fields label{color:var(--text)!important}.budget-card label.budget-toggle{flex-direction:row!important;color:var(--text)!important;justify-content:flex-start!important;width:auto!important}.budget-card .button-secondary{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}.budget-card .budget-heading{justify-content:space-between!important}.budget-card .budget-heading>div{text-align:left!important}
html[data-theme=dark] .budget-card .button-secondary{background:#22313f!important;color:#d7e3ed!important;border:1px solid #3a4b59!important}html[data-theme=dark] .budget-card .budget-fields input,html[data-theme=dark] .budget-card .budget-fields select{border-color:#3a4b59!important}.budget-card [data-refresh]{justify-self:start}
.budget-card label.budget-toggle{user-select:none;min-height:44px}
.budget-routing{display:grid;gap:20px;padding:20px;border:1px solid var(--border);border-radius:14px}.budget-routing h3{margin:4px 0 0;font-size:17px}.budget-routing .budget-toggle span{line-height:1.5}.budget-routing [data-categories]:empty{display:none}
html[data-theme] .budget-card .budget-toggle input[type=checkbox]:checked{background:#608fae url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/16px 16px no-repeat!important;border-color:#608fae!important}
