.funding-main{display:flex;flex-direction:column;gap:14px;padding:18px;overflow:hidden}
.funding-main-head{flex:0 0 70px;margin:0}
.funding-live{min-width:196px;display:grid;grid-template-columns:8px 1fr;column-gap:8px;row-gap:4px}
.funding-live i{grid-row:1/3}
.funding-live b{color:#718198;font-family:Consolas,monospace;font-size:9px;font-weight:800;letter-spacing:.4px}
.funding-board{min-width:0;overflow:hidden;background:#0b111b;border:1px solid #202d40;border-radius:8px}
.funding-board-title{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;background:linear-gradient(90deg,#101a27,#0c141f);border-bottom:1px solid #223047}
.funding-board-title>div{display:flex;align-items:center;gap:11px}
.funding-board-title>div>span:last-child{display:flex;flex-direction:column;gap:4px}
.funding-board-title b{color:#eef4fc;font-size:12px;font-weight:950;letter-spacing:1px}
.funding-board-title small{color:#8290a4;font-size:9px;font-weight:700}
.funding-board-title>strong{font-family:Consolas,monospace;font-size:17px;font-weight:900}
.funding-board.positive .funding-board-title>strong{color:#ff6876}
.funding-board.negative .funding-board-title>strong{color:#31dfa2}
.funding-direction-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:7px;font-size:19px;font-weight:950}
.funding-board.positive .funding-direction-icon{color:#ff6876;background:#2a151c;border:1px solid #552531}
.funding-board.negative .funding-direction-icon{color:#31dfa2;background:#0d2a25;border:1px solid #17513f}
.funding-rate-table{min-height:270px}
.funding-rate-scroll{overflow-x:auto;scrollbar-color:#33445b #0b111b;scrollbar-width:thin}
.funding-rate-row{min-width:max-content;display:grid;align-items:center;border-bottom:1px solid #1a2636}
.funding-rate-row:last-child{border-bottom:0}
.funding-rate-row.head{position:sticky;top:0;z-index:2;height:42px;color:#8695aa;background:#0d1622;font-size:10px;font-weight:900;letter-spacing:.55px}
.funding-rate-row.head>span{height:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 9px;border-right:1px solid #1c2939}
.funding-rate-row.head>span:first-child{justify-content:flex-start;padding-left:17px}
.funding-rate-row.head .funding-exchange-head{height:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 9px;border:0;border-right:1px solid #1c2939;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;position:relative;cursor:pointer}
.funding-rate-row.head .funding-exchange-head:hover{color:#dce7f5;background:#132033}
.funding-rate-row.head .funding-exchange-head:focus-visible{outline:2px solid #65e9bd;outline-offset:-3px}
.funding-rate-row.head .funding-exchange-head.active{color:#f4f8ff;background:#132238}
.funding-rate-row.head .funding-exchange-head.active:after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:2px;background:#38e2aa;border-radius:2px}
.funding-rate-row.head img{width:18px;height:18px;object-fit:contain}
.funding-rate-row:not(.head){min-height:46px;background:#0b121c;transition:background .14s}
.funding-rate-row:not(.head):hover{background:#101a27}
.funding-symbol{height:100%;display:flex;align-items:center;gap:10px;padding:0 14px;border-right:1px solid #1c2939}
.funding-symbol em{width:21px;height:21px;display:grid;place-items:center;color:#8291a5;background:#141f2d;border:1px solid #27364a;border-radius:5px;font-size:9px;font-style:normal;font-weight:900}
.funding-symbol span{color:#f0f5fc;font-size:12px;font-weight:950;letter-spacing:.25px}
.funding-rate-cell{height:100%;min-height:46px;display:flex;align-items:center;justify-content:center;padding:0 8px;border-right:1px solid #172333;font-family:Consolas,monospace;font-size:12px;font-weight:900}
.funding-rate-cell.up{color:#ff6876}
.funding-rate-cell.down{color:#31dfa2}
.funding-rate-cell.flat{color:#a0adbe}
.funding-rate-cell.empty{color:#46556a}
.funding-rate-cell.leader{position:relative;background:linear-gradient(180deg,#ffffff03,#ffffff00)}
.funding-board.positive .funding-rate-cell.leader{color:#ff8b96;text-shadow:0 0 10px #ff556655}
.funding-board.negative .funding-rate-cell.leader{color:#59edb8;text-shadow:0 0 10px #22d99b55}
.funding-rate-cell.leader:after{content:"";position:absolute;left:15%;right:15%;bottom:0;height:2px;border-radius:2px}
.funding-board.positive .funding-rate-cell.leader:after{background:#ff5b6c}
.funding-board.negative .funding-rate-cell.leader:after{background:#25d99b}
.funding-board .funding-empty{min-height:270px}
.funding-exchange-row.soon{opacity:.45}
.funding-switch input:disabled+em,.funding-gear:disabled{cursor:not-allowed;filter:grayscale(1)}
@media(min-width:901px) and (max-height:900px){.funding-main{gap:10px;padding:12px}
.funding-main-head{flex-basis:59px}
.funding-board-title{height:51px}
.funding-rate-row:not(.head),.funding-rate-cell{min-height:38px}
.funding-rate-table{min-height:230px}
.funding-board .funding-empty{min-height:230px}
.funding-filter-inner{padding-top:11px}
.funding-exchange-row{min-height:38px}
.funding-exchange-name img{width:20px;height:20px}
}
@media(max-width:900px){.funding-main{padding:12px}
.funding-live{min-width:auto}
.funding-board-title{padding:0 12px}
.funding-board-title small{display:none}
}
@media(max-width:560px){.funding-live b{display:none}
.funding-main-head{min-height:62px}
.funding-board-title>strong{font-size:13px}
.funding-rate-row.head{font-size:9px}
.funding-rate-cell,.funding-symbol span{font-size:11px}
}

/* v172: header must share the body grid exactly. */
.funding-rate-row.head{gap:0;padding:0;width:auto}

/* v173: funding direction is carried by the cell background; values remain white. */
.funding-rate-cell{color:#fff;font-weight:950;text-shadow:0 1px 0 #0008}
.funding-rate-cell.up{color:#fff;background:linear-gradient(135deg,#5b1c2b,#35131e)}
.funding-rate-cell.down{color:#fff;background:linear-gradient(135deg,#07513d,#0a312a)}
.funding-rate-cell.up.leader{color:#fff;background:linear-gradient(135deg,#742234,#461723);text-shadow:0 0 10px #ff8a9655}
.funding-rate-cell.down.leader{color:#fff;background:linear-gradient(135deg,#087050,#0a4236);text-shadow:0 0 10px #57edba55}
.funding-board.positive .funding-rate-cell.leader,.funding-board.negative .funding-rate-cell.leader{color:#fff}
.funding-board.positive .funding-rate-cell.leader:after,.funding-board.negative .funding-rate-cell.leader:after{background:#fff}

/* v174: rate, next UTC settlement and live time remaining. */
.funding-rate-row:not(.head),.funding-rate-cell{min-height:64px}
.funding-rate-cell{flex-direction:column;gap:2px;line-height:1.05}
.funding-rate-value{font-size:10px;font-weight:850;opacity:.93}
.funding-next-time{font-size:12px;font-weight:950;letter-spacing:.15px}
.funding-countdown{font-size:8px;font-weight:850;letter-spacing:.45px;opacity:.88}

/* v175: UTC time first, funding rate second, countdown last. */
.funding-next-time{font-size:9px;font-weight:850;letter-spacing:.35px;opacity:.92}
.funding-rate-value{font-size:12px;font-weight:950;letter-spacing:.1px;opacity:1}

/* v176: compact settlement cards — time, rate panel, countdown and elapsed progress. */
.funding-rate-row:not(.head),.funding-rate-cell{min-height:94px}
.funding-rate-cell{align-items:stretch;justify-content:center;gap:5px;padding:7px 9px;background:#0b121c!important;text-shadow:none}
.funding-rate-cell.up.leader,.funding-rate-cell.down.leader{background:#0b121c!important;text-shadow:none}
.funding-rate-cell.leader:after{left:12%;right:12%;height:2px}
.funding-time-line{display:flex;align-items:center;justify-content:center;gap:5px;min-height:13px;color:#aeb9c8}
.funding-time-line i{color:#35dbab;font-size:14px;font-style:normal;line-height:1}
.funding-next-time{font-size:10px;font-weight:950;letter-spacing:.3px;line-height:1;color:#eaf1fa;opacity:1}
.funding-rate-value{display:flex;align-items:center;justify-content:center;min-height:30px;padding:0 3px;border:1px solid #244052;border-radius:8px;background:#132231;color:#fff;font-size:17px;font-weight:950;letter-spacing:.15px;line-height:1;text-shadow:0 1px 0 #0008}
.funding-rate-cell.down .funding-rate-value{border-color:#138e6d;background:linear-gradient(135deg,#0b6a50,#084435);box-shadow:inset 0 1px #58efbd22}
.funding-rate-cell.up .funding-rate-value{border-color:#a93b4e;background:linear-gradient(135deg,#852b3b,#511923);box-shadow:inset 0 1px #ff9ba522}
.funding-countdown-row{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.funding-countdown{color:#dce8f6;font-size:9px;font-weight:950;letter-spacing:.5px;line-height:1;text-align:center;opacity:1}
.funding-progress{display:block;width:100%;height:5px;overflow:hidden;border-radius:999px;background:#273545;box-shadow:inset 0 1px #0008}
.funding-progress-fill{display:block;height:100%;border-radius:inherit;background:#78edc3;box-shadow:0 0 7px #47e5ae99;transition:width .75s linear}
.funding-rate-cell.up .funding-progress-fill{background:#ff8190;box-shadow:0 0 7px #ff617599}
.funding-rate-cell.flat .funding-rate-value{background:#1b2835;border-color:#34475b}
.funding-rate-cell.flat .funding-progress-fill{background:#a9b8ca;box-shadow:none}

/* v177: no elapsed bar; give the live countdown more visual weight. */
.funding-countdown-row{min-height:15px;justify-content:center}
.funding-countdown{font-size:11px;letter-spacing:.65px}

