/* Funding monitor: visible view selection, compact analysis, useful ledger preview. */
.funding-workspace{scroll-margin-top:76px}
.funding-workspace .facet-tools{gap:8px;margin-bottom:16px;align-items:center}
.funding-workspace .fm-view-switch{order:-2;margin:0 12px 0 0;display:inline-flex;gap:20px;padding:0;border:0;border-radius:0;background:transparent}
html body .funding-workspace .fm-view-switch button{min-height:40px;padding:9px 0;border:0!important;border-bottom:2px solid transparent!important;border-radius:0;font-size:13px;line-height:20px;background:transparent!important;color:var(--muted);font-weight:400}
html body .funding-workspace .fm-view-switch button[aria-pressed=true]{background:transparent!important;color:var(--ink)!important;border-bottom-color:var(--ink)!important;box-shadow:none!important}
.funding-workspace .fm-view-switch button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.funding-workspace .result-count{margin-left:auto;white-space:nowrap}
.funding-workspace .funding-stats{margin:0;padding:8px 0 12px;gap:16px}
.funding-workspace .funding-stats span{font-size:11px;margin-bottom:5px}
.funding-workspace .funding-stats strong{font-size:26px;line-height:1.2;letter-spacing:-.7px}
.funding-workspace .funding-stats small{font-size:11px;line-height:1.5;margin-top:6px}
.funding-workspace .fm-analysis{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px;padding:18px 0}
.funding-workspace .fm-panel-title{margin-bottom:10px;min-height:32px}
.funding-workspace .fm-scope{margin-bottom:6px}
.funding-workspace .fm-rank{min-height:44px;padding:4px 8px;gap:12px;grid-template-columns:minmax(100px,1.15fr) minmax(28px,1fr) minmax(104px,.8fr)}
.funding-workspace .fm-rank small{margin-top:3px;line-height:1.4}
.funding-workspace .fm-timeline-plot{--plot-height:174px;padding-top:24px}
.funding-workspace .fm-ledger-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 6px}
.funding-workspace .fm-ledger-title h2{font-size:16px;font-weight:500;margin:0}
.funding-workspace .fm-ledger-title .fm-ledger-action{min-height:36px;font-size:13px;padding:8px 0;white-space:nowrap;background:transparent!important;color:var(--muted);border:0;border-radius:0;box-shadow:none!important}
.funding-workspace .fm-ledger-action:hover{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.funding-workspace .fm-ledger-action:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.funding-workspace .funding-table td{padding-top:13px;padding-bottom:13px}
.funding-workspace .funding-table .table-company{min-height:36px}
.funding-workspace .table-scroll{max-width:100%;overflow-x:auto}
.funding-workspace .fm-methodology{margin-top:18px}
.funding-workspace .fm-methodology summary{min-height:36px;display:flex;align-items:center}
@media(min-width:761px) and (max-width:1100px){
 .funding-workspace .fm-analysis{grid-template-columns:1fr 1fr;gap:20px}
 .funding-workspace .fm-rank{grid-template-columns:minmax(90px,1fr) minmax(84px,.8fr);gap:8px;position:relative;padding-bottom:12px}
 .funding-workspace .fm-rank-track{position:absolute;left:8px;right:8px;bottom:3px;height:3px}
 .funding-workspace .fm-panel-title{flex-wrap:wrap}
 .funding-workspace .fm-rank-value{grid-column:2}
}
@media(max-width:760px){
 .funding-workspace{scroll-margin-top:70px}
 .funding-workspace .fm-view-switch{flex:1 0 100%;box-sizing:border-box;margin:0 0 4px;order:-3}
 html body .funding-workspace .fm-view-switch button{flex:0 0 auto;min-height:42px;font-size:14px}
 .funding-workspace .fm-period{display:block;order:-2}
 .funding-workspace .fm-market{display:block;order:-1;min-width:0}
 .funding-workspace .fm-market>summary{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .funding-workspace .catalog-filter-toggle{order:0}
 .funding-workspace .result-count{width:auto;margin:0 0 0 auto;font-size:11px}
 .funding-workspace .sort-select{order:1}
 .funding-workspace .funding-stats{padding:10px 0 16px;gap:16px 12px;margin:0}
 .funding-workspace .funding-stats strong{font-size:24px}
 .funding-workspace .funding-stats small{font-size:11px}
 .funding-workspace .fm-analysis{grid-template-columns:1fr;gap:20px;padding:16px 0}
 .funding-workspace .fm-rank{min-height:46px;grid-template-columns:minmax(85px,1fr) minmax(26px,.6fr) minmax(90px,.8fr);gap:8px;padding:8px 4px}
 .funding-workspace .fm-panel-title>.fm-menu>summary{font-size:14px;padding-left:0;margin-left:0;white-space:normal}
 .funding-workspace .fm-metrics button{padding:6px 8px;min-height:40px}
 .funding-workspace .fm-timeline-plot{--plot-height:130px;padding-top:12px}
 .funding-workspace .fm-ledger-title{gap:10px;flex-wrap:wrap;margin-top:18px}
 .funding-workspace .fm-ledger-title .fm-ledger-action{min-height:42px}
 .funding-workspace .funding-table .table-company{font-size:13px}
 .funding-workspace .funding-table .amount-cell{font-size:14px;font-weight:500}
 .funding-workspace .fm-time-tooltip{max-width:calc(100vw - 60px)}
 .funding-workspace .fm-market .catalog-popover{left:auto;right:0;max-width:calc(100vw - 40px)}
}
@media(max-width:380px){
 .funding-workspace .fm-market>summary{max-width:145px}
 .funding-workspace .fm-rank{grid-template-columns:minmax(82px,1fr) minmax(18px,.35fr) 92px}
}

.funding-workspace .fm-scope[hidden]{display:none}
.funding-workspace .fm-ledger-summary{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;padding:8px 0 14px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6;color:var(--muted)}
.funding-workspace .fm-ledger-summary strong{color:var(--ink);font-weight:500;font-size:14px}
@media(max-width:760px){
 .funding-workspace .fm-ledger-summary{padding:0 0 12px;gap:4px}
 .funding-workspace .fm-ledger-title{margin-top:12px}
 .funding-workspace .fm-market{display:none}
 .funding-workspace .mobile-filters-open .fm-market{display:block}
}

.funding-workspace .funding-table .amount-cell{white-space:normal;overflow-wrap:anywhere;max-width:190px}
