.budget-chart{max-width:100%;overflow-x:auto}.budget-chart svg{display:block;width:100%;min-width:600px;height:auto;max-height:300px}.budget-chart text{fill:var(--muted);font-size:11px}.budget-grid{stroke:var(--line);stroke-dasharray:3 5}.budget-spent{fill:var(--accent)}.budget-reserved{fill:var(--muted)}.budget-uncertain{fill:var(--amber)}.budget-limit{stroke:var(--ink);stroke-width:2;stroke-dasharray:4 3}.budget-selection{stroke:var(--accent);stroke-width:3}.budget-hit{fill:transparent;cursor:pointer}.budget-hit:focus{stroke:var(--accent);stroke-width:2;outline:none}.budget-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:11px;color:var(--muted);margin:20px 0 8px}.budget-legend span:before{content:'';display:inline-block;width:14px;height:6px;margin-right:6px;background:var(--accent)}.budget-legend .budget-reserved-key:before{background:var(--muted)}.budget-legend .budget-uncertain-key:before{background:var(--amber)}.budget-legend .budget-limit-key:before{height:0;border-top:2px dashed var(--ink);background:transparent}
.tools-workspace form.bundle-period{display:flex;flex-wrap:wrap;gap:16px;align-items:end;padding:24px 0;border-bottom:1px solid var(--line)}.bundle-period label{display:flex;flex-direction:column;gap:8px;min-width:160px}.bundle-period button{margin-left:auto}.bundle-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:24px 0}.bundle-totals>div{display:flex;flex-direction:column;gap:10px}.bundle-totals span,.bundle-totals small{color:var(--muted);font-size:12px}.bundle-totals strong{font-size:27px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}.bundle-chart{width:100%;overflow:hidden;margin:24px 0 8px}.bundle-chart svg{display:block;width:100%;height:auto;min-height:190px;max-height:360px;overflow:visible}.bundle-chart text{fill:var(--muted);font-size:11px}.bundle-series{fill:currentColor;stroke:currentColor}.bundle-series polyline{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.series-0{color:var(--accent)}.series-1{color:var(--green)}.series-2{color:var(--cyan)}.series-3{color:var(--amber)}.series-4{color:var(--danger)}.series-5{color:var(--muted-strong)}.bundle-selection{stroke:var(--line-strong);stroke-width:1;stroke-dasharray:4 4}.bundle-legend{display:flex;flex-wrap:wrap;gap:12px 24px;margin:16px 0;font-size:12px}.bundle-legend span{display:flex;gap:8px;align-items:center;max-width:100%;overflow-wrap:anywhere}.bundle-legend i{width:18px;flex:0 0 18px;border-top:3px solid currentColor}.bundle-day{display:flex;flex-wrap:wrap;gap:10px 20px;align-items:baseline;min-height:44px;padding:12px 0;color:var(--muted);font-size:12px}.bundle-day b{color:var(--ink);font-weight:500;margin-left:6px;font-variant-numeric:tabular-nums}.bundle-picker{margin:16px 0;border-top:1px solid var(--line);padding-top:16px}.bundle-picker>summary{cursor:pointer;color:var(--accent)}.bundle-picker>label{display:flex;gap:8px;flex-direction:column;max-width:440px;margin:20px 0 10px}.bundle-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;max-height:360px;overflow:auto;overscroll-behavior:contain}.bundle-options label{display:flex;align-items:flex-start;gap:12px;padding:14px 4px;border-bottom:1px solid var(--line)}.bundle-options span{display:flex;flex-direction:column;gap:6px;min-width:0}.bundle-options strong{font-size:12px;overflow-wrap:anywhere}.bundle-options small{font-size:12px;color:var(--muted);line-height:1.5}.bundle-config{display:grid;grid-template-columns:1fr 2fr;gap:24px;margin:24px 0 12px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.bundle-config>div{display:flex;gap:8px;flex-direction:column;min-width:0}.bundle-config span{font-size:12px;color:var(--muted)}.bundle-config strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.bundle-focus .section-heading label{max-width:50%;display:flex;flex-direction:column;gap:6px}.bundle-focus select{max-width:100%}.bundle-empty{padding:48px 16px;text-align:center;color:var(--muted);border-bottom:1px solid var(--line)}.bundle-focus .table-scroll{margin-top:24px}.bundle-focus td{overflow-wrap:anywhere}.bundle-options [hidden]{display:none}.bundle-options input{accent-color:var(--accent);margin-top:2px}@media(max-width:760px){.bundle-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.bundle-totals strong{font-size:23px}.bundle-period label{min-width:0;flex:1 1 40%}.bundle-period button{margin-left:0}.bundle-options{grid-template-columns:1fr}.bundle-config{grid-template-columns:1fr}.bundle-focus .section-heading{align-items:stretch;flex-direction:column}.bundle-focus .section-heading label{max-width:100%;width:100%}.bundle-chart svg{min-height:170px}.bundle-chart text{font-size:13px}.bundle-legend{gap:10px}.bundle-day{flex-direction:column;gap:8px}.bundle-chart .budget-hit:focus{stroke-width:4}}

@media(max-width:760px){.bundle-chart{overflow-x:auto;overscroll-behavior-x:contain}.bundle-chart svg{min-width:900px;min-height:0;max-height:none}.bundle-chart text{font-size:15px}}

.bundle-period label{font-size:12px;color:var(--muted)}
.budget-expand{display:inline-flex;align-items:center;gap:8px;text-align:left;font:inherit;white-space:nowrap}.budget-expand .icon{font-size:18px;transition:transform .15s}.budget-expand[aria-expanded=true] .icon{transform:rotate(90deg)}.budget-spender-row[hidden]{display:none}.budget-spender-row>td{padding:24px;background:var(--surface-subtle)}.budget-spender-row section{min-width:0}.budget-spender-row h3{margin:0 0 16px;font-size:14px}.budget-spenders td{vertical-align:top;font-variant-numeric:tabular-nums}.budget-spenders td:first-child{min-width:240px;max-width:420px;white-space:normal;overflow-wrap:anywhere}.budget-spenders small{display:block;color:var(--muted);margin-top:6px;overflow-wrap:anywhere}.budget-spender-paging{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px}.budget-spender-paging>span{margin-right:auto;color:var(--muted);font-size:12px}@media(prefers-reduced-motion:reduce){.budget-expand .icon{transition:none}}

.budget-category-scroll{container-type:inline-size}.budget-spender-row section{position:sticky;left:24px;width:calc(100cqw - 48px);max-width:100%}

.budget-spender-row section{white-space:normal}.budget-spender-row .table-overflow-controls,.table-overflow-shell:has(>.budget-category-scroll)>.table-overflow-controls{position:static}
