.balance-history{--bh-accent:var(--accent,var(--blue,#4267ae));--bh-bg:var(--panel,var(--sheet,#fff));--bh-line:var(--line,var(--rule,#e1e5eb));--bh-soft:var(--panel-2,var(--inset,#f4f5f7));color:var(--ink,#232b38);background:var(--bh-bg);border:1px solid var(--bh-line);border-radius:12px;padding:22px 24px 12px;margin:18px 0 24px;min-width:0;container-type:inline-size;font-variant-numeric:tabular-nums}
.balance-history .bh-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}
.balance-history .bh-head h2{font-size:15px;font-weight:600;line-height:1.4;letter-spacing:-.2px;margin:0;color:inherit}
.bh-head p{font-size:11px;color:var(--muted,#647083);margin:4px 0 0}
.bh-periods{display:flex;gap:3px;padding:3px;background:var(--bh-soft);border-radius:7px;flex-shrink:0}
.balance-history button{cursor:pointer;font:inherit}
.bh-periods button{padding:6px 11px;border:0;border-radius:5px;background:transparent;color:var(--muted,#647083);font-size:11px;white-space:nowrap;transition:background .12s,color .12s}
.bh-periods button[aria-pressed=true]{background:var(--bh-bg);color:var(--ink,#232b38);box-shadow:0 1px 3px #00000014;font-weight:650}.bh-periods button:hover{color:var(--bh-accent)}
.bh-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:12px;min-width:0}.bh-eyebrow{display:block;font-size:11px;color:var(--muted,#647083);line-height:1.4;margin-bottom:5px}.bh-summary strong{display:block;font-size:27px;letter-spacing:-.8px;line-height:1.25;font-weight:600;color:inherit}.bh-asof{display:block;font-size:11px;color:var(--muted,#647083);margin-top:4px}.bh-change{text-align:right;flex-shrink:0;padding-top:1px}.bh-change b{display:block;color:inherit;font-size:17px;line-height:1.5;font-weight:550;letter-spacing:-.2px}.bh-change small{display:block;font-size:11px;color:var(--muted,#647083)}
.bh-stage{position:relative;width:100%;touch-action:pan-y;outline-offset:4px;border-radius:5px}.bh-plot{min-height:200px;width:100%}.bh-plot svg{display:block;max-width:100%;overflow:visible}.bh-axis-text{fill:var(--muted,#647083);font-size:11px;font-family:inherit}.bh-grid{stroke:var(--bh-line);stroke-width:1;stroke-dasharray:2 5}.bh-grid-zero{stroke:var(--muted,#647083);stroke-opacity:.45;stroke-width:1}.bh-line{fill:none;stroke:var(--bh-accent);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.bh-area{fill:var(--bh-accent);fill-opacity:.055}.bh-gap{fill:none;stroke:var(--bh-accent);stroke-opacity:.45;stroke-width:1.5;stroke-dasharray:3 5}.bh-marker{fill:var(--bh-accent);stroke:var(--bh-bg);stroke-width:2;pointer-events:none}.bh-observation{fill:var(--bh-accent);stroke:var(--bh-bg);stroke-width:1}.bh-guide{stroke:var(--bh-accent);stroke-width:1;stroke-dasharray:3 4;opacity:0;pointer-events:none}.bh-bar{fill:var(--bh-accent);fill-opacity:.72}.bh-bar.bh-negative{fill:var(--bad,var(--danger,#bb4d4d))}
.bh-tooltip{position:absolute;z-index:2;width:196px;padding:11px 13px;border:1px solid var(--bh-line);border-radius:8px;background:var(--bh-bg);box-shadow:0 5px 18px #00000012;pointer-events:none}.bh-tooltip span,.bh-tooltip small{display:block;font-size:11px;color:var(--muted,#647083);line-height:1.5}.bh-tooltip strong{display:block;font-size:17px;font-weight:650;color:var(--ink,#232b38);margin:3px 0;letter-spacing:-.3px}.balance-history [hidden]{display:none!important}
.bh-readout{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:var(--muted,#647083);padding:8px 0 14px;min-height:35px}.bh-readout output{color:var(--ink,#232b38);font-size:12px;font-weight:550}.bh-readout>span{font-size:10px;white-space:nowrap}.bh-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--bh-line);padding-top:12px;gap:12px}.bh-extremes{display:flex;gap:22px;flex-wrap:wrap;font-size:11px;color:var(--muted,#647083)}.bh-extremes b{color:var(--ink,#232b38);font-weight:550;margin-left:5px}.bh-zero-control{border:1px solid var(--bh-line);border-radius:5px;background:transparent;color:var(--muted,#647083);font-size:10px!important;padding:5px 8px;white-space:nowrap}.bh-zero-control[aria-pressed=true]{color:var(--bh-accent);border-color:var(--bh-accent)}.bh-note{font-size:10px!important;line-height:1.6;color:var(--muted,#647083);margin:10px 0 8px}
.bh-data{border:0!important;border-top:1px solid var(--bh-line)!important;border-radius:0!important;background:transparent!important;padding:0!important;margin:0!important;box-shadow:none!important}.bh-data summary{font-size:11px;font-weight:500;cursor:pointer;padding:10px 0;color:var(--muted,#647083);list-style-position:inside}.bh-table-scroll{max-height:260px;overflow:auto}.bh-data table{width:100%;border-collapse:collapse;table-layout:auto}.bh-data caption{font-size:11px;color:var(--muted,#647083);text-align:left;padding:8px 0}.bh-data th,.bh-data td{padding:8px 12px!important;font-size:12px!important;border-bottom:1px solid var(--bh-line);text-align:left;white-space:nowrap}.bh-data th{position:sticky;top:0;background:var(--bh-soft);color:var(--muted,#647083)}.bh-data td:last-child,.bh-data th:last-child{text-align:right}
.projection-chart{--pc-good:var(--green,#267961);--pc-warn:var(--warning,#916117)}.pc-legend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:11px;color:var(--muted,#647083);margin-bottom:12px}.pc-k::before{content:'';display:inline-block;width:18px;height:0;border-top:2px solid var(--bh-accent);vertical-align:middle;margin-right:7px}.pc-k-cap::before{border-top-color:var(--muted,#647083)}.pc-k-int::before{border:0;height:9px;background:var(--bh-accent);opacity:.22}.pc-k-opt::before{border-top-style:dashed;border-top-color:var(--pc-good)}.pc-k-pes::before{border-top-style:dashed;border-top-color:var(--pc-warn)}
.pc-area-cap{fill:var(--muted,#647083);fill-opacity:.1}.pc-area-int{fill:var(--bh-accent);fill-opacity:.2}.pc-band{fill:var(--pc-good);fill-opacity:.05}.pc-line-cap{fill:none;stroke:var(--muted,#647083);stroke-width:1.5;vector-effect:non-scaling-stroke}.pc-line-opt,.pc-line-pes{fill:none;stroke:var(--pc-good);stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.pc-line-pes{stroke:var(--pc-warn)}.projection-chart .bh-tooltip{width:216px}.projection-chart .bh-tooltip small b{color:var(--ink,#232b38);font-weight:600;float:right}
.bh-empty{min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;text-align:center;color:var(--muted,#647083);font-size:12px;max-width:360px;margin:auto}.bh-empty strong{font-size:14px;color:var(--ink,#232b38)}.balance-history.bh-trend{margin:0;border:0;border-radius:0;padding:0;background:transparent}.bh-trend .bh-summary strong{font-size:22px}.bh-trend .bh-summary{margin-bottom:4px}.bh-trend .bh-change b{font-size:15px}.balance-history :focus-visible{outline:2px solid var(--bh-accent);outline-offset:3px}
@container(max-width:520px){.balance-history .bh-head{flex-direction:column;gap:12px;margin-bottom:18px}.bh-periods{align-self:flex-start}.bh-summary strong{font-size:23px}.bh-change b{font-size:15px}.bh-summary{gap:12px}.bh-readout>span{display:none}.bh-extremes{gap:8px;flex-direction:column}.bh-footer{align-items:center}.bh-change small{max-width:130px}}
@container(max-width:330px){.bh-summary{flex-direction:column;gap:10px}.bh-change{text-align:left}.bh-change small{max-width:none}.bh-summary strong{font-size:24px}.bh-periods button{padding:6px 9px}.bh-periods{width:100%}.bh-periods button{flex:1}}
@media(max-width:600px){.balance-history{padding:16px 14px 8px}.bh-tooltip{width:190px}.bh-stage{touch-action:pan-y}}
@media(prefers-reduced-motion:reduce){.bh-periods button{transition:none}}
@media print{.bh-periods,.bh-zero-control,.bh-readout>span,.bh-data{display:none}.balance-history{break-inside:avoid}.bh-tooltip{display:none}}
.balance-history{padding-top:16px;padding-bottom:6px}.balance-history .bh-head{margin-bottom:12px}.bh-summary{margin-bottom:8px}.bh-summary strong{font-size:24px}.bh-asof{display:none}.bh-plot{min-height:190px}.bh-readout{padding:5px 0 9px;min-height:28px}.bh-footer{padding-top:8px}.bh-note{margin:7px 0 5px}.bh-data summary{padding:8px 0}
.pc-k-real::before{border-top-color:var(--ink,#232b38);border-top-width:2.5px}.pc-k-alt::before{border-top-style:dotted;border-top-color:var(--bh-accent)}.pc-line-real{fill:none;stroke:var(--ink,#232b38);stroke-width:2.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}.pc-line-alt{fill:none;stroke:var(--bh-accent);stroke-width:1.5;stroke-dasharray:2 4;vector-effect:non-scaling-stroke}.pc-today{stroke:var(--muted,#647083);stroke-width:1;stroke-dasharray:4 4}.pc-obs-real{fill:var(--ink,#232b38)}.pc-loading{opacity:.55;transition:opacity .2s}
[data-simple] .bh-summary,[data-simple] .bh-footer,[data-simple] .bh-note:empty{display:none}
