.funding-history{margin-top:36px;padding-top:28px;border-top:1px solid var(--border,#26302c)}.funding-tag{display:inline-block;vertical-align:middle;margin-left:8px;padding:4px 7px;border:1px solid #b9ef6140;border-radius:5px;font-size:10px;color:#b9ef61;letter-spacing:.08em}.funding-instrument{flex:2;min-width:230px}.funding-history .funding-controls{align-items:end}.funding-history select,.funding-history input{max-width:100%}.funding-summary{display:flex;flex-wrap:wrap;gap:12px 28px;margin:18px 0;color:var(--muted,#9ba9a2);font-size:13px}.funding-summary b{display:block;color:var(--text,#edf4ef);font-size:18px;margin:5px 0}.funding-chart{margin:14px 0 22px;border:1px solid var(--border,#26302c);border-radius:10px;padding:12px}.funding-chart:empty{display:none}.funding-chart svg{display:block;width:100%;height:auto;min-height:130px;max-height:230px}.funding-chart text{fill:#9ba9a2;font-size:11px}.funding-chart .zero{stroke:#506056;stroke-dasharray:4 4}.funding-chart .bar-positive{fill:#b9ef61}.funding-chart .bar-negative{fill:#ef868d}.funding-chart .chart-caption{display:flex;justify-content:space-between;font-size:11px;color:#9ba9a2;gap:16px}.funding-history .funding-status{line-height:1.7}.funding-history #funding-history-more{margin-top:15px}.funding-venue{display:flex;gap:8px;align-items:center}.funding-venue img{width:22px;height:22px;border-radius:4px}.funding-chart .empty-panel{padding:25px;text-align:center}@media(max-width:640px){.funding-controls{display:flex;flex-wrap:wrap}.funding-controls>div{flex:1 1 145px}.funding-history .funding-instrument{flex-basis:100%}.funding-controls button{width:100%}.funding-tag{font-size:9px}.funding-history{margin-top:26px}.funding-history .site-table td{white-space:normal;min-width:105px}}
.funding-source-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:300px;overflow:auto;margin:12px 0}.funding-source-card{display:grid;gap:4px;min-width:0;padding:10px;border:1px solid var(--line,#26302c);border-radius:8px;background:var(--surface,#101814)}.funding-source-card b{font-size:12px;color:var(--text,#edf4ef)}.funding-source-card small{font-size:10px;line-height:1.45;overflow-wrap:anywhere;color:var(--muted,#9ba9a2)}.funding-source-card.funding-source-current{border-color:#5db98a70}.funding-source-card.funding-source-error,.funding-source-card.funding-source-stale{border-color:#ef868d70}.funding-source-issue{color:#efb477!important}.funding-summary>div{min-width:160px}.funding-summary>div:last-child{flex-basis:100%}@media(max-width:640px){.funding-source-status{grid-template-columns:1fr;max-height:340px}.funding-summary>div{min-width:140px}}

/* A3: compact top-of-book comparisons with a bounded read-only disclosure. */
.funding-spread-cell{min-width:146px;vertical-align:top}.funding-spread-cell strong{display:block;font-variant-numeric:tabular-nums}.funding-pairs{position:relative;margin-top:5px}.funding-pairs summary{cursor:pointer;color:var(--accent,#b9ef61);font-size:11px;white-space:nowrap}.funding-pairs[hidden]{display:none}.funding-pairs-scroll{max-width:min(76vw,950px);overflow:auto;max-height:330px;margin-top:9px;border:1px solid var(--border,#26302c);border-radius:8px}.funding-comparisons{border-collapse:collapse;font-size:12px;min-width:760px}.funding-comparisons td,.funding-comparisons th{padding:9px;border-bottom:1px solid var(--border,#26302c);text-align:left;white-space:normal}.funding-comparisons small{display:block;font-size:10px;color:var(--muted,#9ba9a2)}.funding-comparisons a{display:block}.funding-comparisons td{vertical-align:top;font-variant-numeric:tabular-nums}

/* Release 25.436: prominently identify both venues; links remain ordinary safe anchors. */
.funding-spread-cell{min-width:225px}
.funding-spread-value{font-weight:750;font-size:15px}
.funding-best-venues{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:5px;font-size:12px}
.funding-best-leg{display:flex;flex-direction:column;gap:2px}
.funding-best-leg small{font-size:10px;color:var(--muted,#9ba9a2)}
.funding-best-leg a{color:var(--accent,#b9ef61);overflow-wrap:anywhere}
.funding-best-arrow{font-weight:700;color:var(--muted,#9ba9a2)}
.funding-pairs-footer{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:7px 2px;flex-wrap:wrap}
.funding-pairs-footer small{font-size:11px}
.funding-pairs-more{padding:5px 10px!important;font-size:11px!important}
.funding-pairs summary:focus-visible,.funding-best-leg a:focus-visible{outline:2px solid var(--accent,#b9ef61);outline-offset:3px}

/* Distinguish an indicative ticker spread from verified order-book depth. */
.funding-spread-mode{display:block;font-size:.7rem;line-height:1.25;opacity:.76;margin-top:2px}.funding-spread-value{display:block;overflow-wrap:anywhere}

/* 25.1116: old funding remains visible but cannot look like a live signal. */
#funding-rows tr.funding-stale-snapshot{background:rgba(215,150,58,.09);border-left:3px solid #d99b43;color:var(--muted,#9ba9a2)}
#funding-rows tr.funding-stale-snapshot td{border-bottom-color:rgba(215,150,58,.22)}
#funding-rows .funding-rate-stale{color:#e4aa5b;font-weight:700;font-variant-numeric:tabular-nums}
#funding-rows tr.funding-stale-snapshot .funding-spread-value{color:#e4aa5b}

/* Official per-venue token picture alongside the exchange logo. */
.funding-venue img.funding-source-token{width:19px;height:19px;min-width:19px;object-fit:contain;border-radius:50%;background:var(--surface-2,transparent)}
