.funding-page{display:grid;gap:18px;min-width:0}
.funding-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.funding-page>.funding-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.funding-metric{display:grid;align-content:start;gap:5px;padding:17px 19px;min-width:0}
.funding-metric span,.funding-week-summary span{font:11px/1.3 var(--mono);color:var(--muted)}
.funding-metric strong,.funding-week-summary strong{font:600 clamp(23px,4vw,40px)/1 var(--display);color:var(--cyan);font-variant-numeric:tabular-nums}
.funding-metric small,.funding-week-summary small,.funding-note{color:var(--muted);font-size:12px}
.funding-panel{min-width:0;padding:clamp(12px,2.8vw,24px)}
.funding-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.funding-panel-head h2{margin:0;font-size:25px}
.funding-selects,.funding-week-nav{display:flex;align-items:end;gap:8px}
.funding-selects label{display:grid;gap:4px;font-size:11px;color:var(--muted)}
.funding-selects select,.funding-week-nav input{border-radius:7px;border:1px solid var(--line);background:var(--bg);color:var(--white);min-height:40px;padding:5px 8px;font-size:16px}
.funding-week-nav input{min-width:0;width:146px}
.funding-week-nav button{min-width:40px;min-height:40px;padding:4px 8px;font-size:23px;line-height:1}
.funding-table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.funding-table :is(th,td){padding:8px 5px;border-bottom:1px solid var(--line);text-align:right;overflow-wrap:anywhere}
.funding-table th:first-child{text-align:left}
.funding-months th:first-child{width:23%}.funding-months th:last-child{width:19%}
.funding-table thead th{color:var(--muted);font-size:12px}
.funding-table tbody th{font-weight:500}
.funding-table td span{display:block}
.funding-table tfoot{font-weight:700}
.funding-swatch{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--cyan);margin-inline-end:5px;vertical-align:middle}
.funding-bar{display:block;margin-top:4px;width:var(--funding-fill);height:3px;border-radius:3px;background:var(--cyan);opacity:.8;margin-inline-start:auto}
.funding-bar.secondary,.funding-swatch.secondary{background:var(--gold)}
.funding-up{color:var(--cyan)}.funding-down{color:var(--red)}
.funding-week-summary{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 14px}
.funding-week-summary>div{display:grid;gap:5px}
.funding-week-summary>div:last-child{text-align:right}
.funding-days th:first-child{width:48%}
.funding-note{margin:12px 0 0;line-height:1.5}
.funding-status{color:var(--gold);margin:0}
.funding-iframe{display:block;margin:14px 0 0;width:100%;height:clamp(620px,80vh,950px);border:1px solid var(--line);background:var(--bg)}
@media(max-width:480px){
 .funding-page{gap:12px}
 .funding-metric{padding:12px 9px}
 .funding-metrics{gap:8px}
 .funding-table :is(th,td){font-size:11px;padding-inline:3px}
 .funding-panel-head h2{font-size:22px}
 .funding-months th:first-child{width:22%}.funding-months th:last-child{width:19%}
}

.funding-table tbody th small{display:block;color:var(--muted);font-size:10px}

.funding-history{background:#212429;color:#f3f5f7;--year-label:3.4rem;--total-label:5.6rem;--grid-color:#393e46}
.funding-history-head{align-items:end;margin-bottom:22px}
.funding-history-head p{margin:7px 0 0;color:#b9c2cc;font-size:13px}
.funding-history-controls{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:end}
.funding-history-controls label,.funding-history-picker label{display:grid;gap:4px;font-size:12px;color:#c9d0d7}
.funding-history-controls select,.funding-history-picker input{
 min-height:36px;border-radius:6px;padding:4px 8px;border:1px solid #495465;background:#181c22;color:#f3f5f7;font-size:16px;
}
.funding-history-controls .funding-history-checkbox{display:flex;gap:6px;align-items:center;min-height:36px}
.funding-history-checkbox input{accent-color:#8ddbe5}
.funding-history-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px}
.funding-history-plot{min-width:0;font-variant-numeric:tabular-nums}
.funding-history-axis,.funding-history-row{
 display:grid;grid-template-columns:var(--year-label) minmax(0,1fr) var(--total-label);
}
.funding-history-axis{height:29px;font-size:11px;color:#b0bac5}
.funding-history-axis>div{position:relative;grid-column:2;border-bottom:1px solid #626c77}
.funding-history-axis span{position:absolute;left:var(--at);top:1px;transform:translateX(-50%);white-space:nowrap}
.funding-history-axis span:first-child{transform:none}
.funding-history-axis span::after{content:"";position:absolute;left:50%;top:19px;height:7px;border-left:1px solid #626c77}
.funding-history-axis span:first-child::after{left:0}
.funding-history-year{align-self:center;color:#d7dce2;font-size:13px}
.funding-history-track{
 position:relative;display:flex;align-items:center;height:41px;min-width:0;
 background:repeating-linear-gradient(to right,var(--grid-color) 0 1px,transparent 1px var(--tick));
 border-right:1px solid var(--grid-color);
}
.funding-history-segment{
 appearance:none;position:relative;flex:0 0 var(--segment);min-width:0;height:30px;
 background:var(--month-color);border:0;border-radius:0;padding:0;cursor:pointer;touch-action:manipulation;
}
.funding-history-segment:is(:hover,:focus-visible,[aria-pressed="true"]){
 z-index:1;outline:2px solid #fff;outline-offset:0;
}
.funding-history-total{
 position:absolute;left:var(--end);padding-inline-start:7px;color:#e4e7ea;font-size:12px;line-height:1.15;white-space:nowrap;pointer-events:none;
}
.funding-history-total small{display:block;margin-top:3px;font-size:10px;color:#bcc9d2}
.funding-history-unit{margin:9px 0 0 var(--year-label);font-size:12px;color:#b9c2cc}
.funding-history-legend{list-style:none;margin:30px 0 0;padding:0;display:grid;align-content:start;gap:7px;font-size:12px}
.funding-history-legend li{display:flex;align-items:center;gap:7px}
.funding-history-legend span,.funding-history-tooltip header i{width:12px;height:12px;border-radius:2px;background:var(--month-color);flex:none}
.funding-history-picker{display:none;margin-top:16px;gap:6px;color:#b9c2cc;font-size:12px}
.funding-history .funding-note{color:#b9c2cc}
.funding-history-tooltip{
 position:fixed;z-index:500;pointer-events:none;width:min(325px,calc(100vw - 16px));
 color:#f3f5f7;background:#151c26;border:1px solid #607184;border-radius:8px;
 padding:13px;box-shadow:0 12px 30px #0008;font-size:12px;font-variant-numeric:tabular-nums;
}
.funding-history-tooltip[hidden]{display:none}
.funding-history-tooltip header{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:8px}
.funding-history-tooltip header b{font-size:15px}
.funding-history-tooltip header small{color:#b9c2cc}
.funding-history-tooltip dl{display:grid;gap:6px;margin:0}
.funding-history-tooltip dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:8px}
.funding-history-tooltip dt{color:#cad2da}
.funding-history-tooltip dd{margin:0;text-align:right}
.funding-history-tooltip dd small{display:block;color:#a9d8df;font-size:11px}
.funding-history-tooltip p{margin:6px 0 0;color:#b9c2cc;font-size:11px}
.funding-history-tooltip .funding-history-cumulative{border-top:1px solid #405064;margin-top:9px;padding-top:8px}
@media(max-width:900px){
 .funding-history-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .funding-history-legend{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
}
@media(max-width:600px){
 .funding-history{--year-label:2.45rem;--total-label:3.25rem}
 .funding-history-track{height:37px}
 .funding-history-segment{height:26px}
 .funding-history-year,.funding-history-total{font-size:11px}
 .funding-history-total small{font-size:9px}
 .funding-history-axis span:nth-child(even){display:none}
 .funding-history-axis span:last-child{display:block}
 .funding-history-legend{grid-template-columns:repeat(3,minmax(0,1fr));font-size:11px}
 .funding-history-picker{display:grid;justify-items:start}
}
@media(pointer:coarse){.funding-history-picker{display:grid;justify-items:start}}

.funding-breakdown{display:grid;gap:18px;min-width:0}
.funding-filter-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:14px;color:#d7e9ef;font-size:13px}
.funding-filter-metrics .funding-metric{min-width:0}
.funding-bar.correction{background:var(--red)}
@media(max-width:480px){.funding-breakdown{gap:12px}}

.funding-records{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
.funding-records>div{display:grid;gap:5px;min-width:0}
.funding-records strong{font-size:clamp(22px,3vw,34px);overflow-wrap:anywhere}
.funding-records-source{grid-column:1/-1}
.funding-tableau-toggle{margin-inline-start:4px}
#funding-tableau-panel .funding-iframe{margin-top:0}
#funding-tableau-panel .textlink{display:inline-block;margin-top:8px}
@media(max-width:980px){
 .funding-page>.funding-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .funding-records{grid-column:1/-1}
}
