#indexFuturesView .ifb-tabs { display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:18px; }
#indexFuturesView .ifb-tabs button, #indexFuturesBasisPanel button, #indexFuturesBasisPanel input, #indexFuturesBasisPanel select { color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:4px; padding:8px 12px; font:inherit; min-height:38px; }
#indexFuturesView .ifb-tabs [aria-pressed="true"], #indexFuturesBasisPanel [aria-pressed="true"] { border-color:var(--blue); color:var(--blue); }
#indexFuturesView > #indexFuturesPanel[hidden], #indexFuturesBasisPanel[hidden] { display:none; }
#indexFuturesBasisPanel { min-width:0; max-width:100%; color:var(--text); font-size:14px; letter-spacing:0; }
#indexFuturesBasisPanel *, #indexFuturesView .ifb-tabs * { box-sizing:border-box; }
#indexFuturesBasisPanel h2 { margin:0; font-size:22px; }
#indexFuturesBasisPanel h3 { margin:0 0 12px; font-size:17px; }
#indexFuturesBasisPanel .ifb-head, #indexFuturesBasisPanel .ifb-controls { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:16px; min-width:0; }
#indexFuturesBasisPanel .ifb-head { justify-content:space-between; }
#indexFuturesBasisPanel .ifb-controls label { display:flex; align-items:center; gap:6px; min-width:0; max-width:100%; }
#indexFuturesBasisPanel input, #indexFuturesBasisPanel select { min-width:0; max-width:100%; }
#indexFuturesBasisPanel .ifb-meta, #indexFuturesBasisPanel .ifb-note, #indexFuturesBasisPanel .ifb-point { color:var(--muted); font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
#indexFuturesBasisPanel .ifb-notice { border-left:3px solid var(--orange); padding:8px 12px; background:var(--panel); line-height:1.7; overflow-wrap:anywhere; }
#indexFuturesBasisPanel .ifb-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0 24px; }
#indexFuturesBasisPanel .ifb-overview button { display:flex; flex-direction:column; align-items:flex-start; gap:8px; text-align:left; padding:14px; overflow-wrap:anywhere; }
#indexFuturesBasisPanel .ifb-overview strong { font-size:20px; font-variant-numeric:tabular-nums; }
#indexFuturesBasisPanel .ifb-overview small { font-size:12px; color:var(--muted); font-weight:400; }
#indexFuturesBasisPanel .ifb-section { border-top:1px solid var(--line); padding-top:18px; margin-top:22px; min-width:0; }
#indexFuturesBasisPanel .ifb-table-wrap { overflow:auto; max-width:100%; }
#indexFuturesBasisPanel table { width:100%; border-collapse:collapse; font-size:14px; white-space:nowrap; }
#indexFuturesBasisPanel th, #indexFuturesBasisPanel td { text-align:right; padding:10px 12px; border-bottom:1px solid var(--line); font-variant-numeric:tabular-nums; }
#indexFuturesBasisPanel th:first-child { text-align:left; }
#indexFuturesBasisPanel .ifb-positive { color:var(--red); }
#indexFuturesBasisPanel .ifb-negative { color:var(--green); }
#indexFuturesBasisPanel .ifb-expiry { color:var(--orange); font-size:12px; }
#indexFuturesBasisPanel .ifb-chart { width:100%; height:240px; min-width:0; }
#indexFuturesBasisPanel .ifb-chart svg { width:100%; height:240px; display:block; overflow:visible; }
#indexFuturesBasisPanel .ifb-chart text { fill:var(--muted); font:11px Arial,sans-serif; }
#indexFuturesBasisPanel .ifb-grid { stroke:var(--line); stroke-width:1; }
#indexFuturesBasisPanel .ifb-zero { stroke:var(--muted); stroke-dasharray:3 4; }
#indexFuturesBasisPanel .ifb-line { stroke:#168a79; stroke-width:1.7; fill:none; stroke-linejoin:round; }
#indexFuturesBasisPanel .ifb-dot { fill:#168a79; stroke:var(--panel); stroke-width:1; }
#indexFuturesBasisPanel .ifb-dot:hover, #indexFuturesBasisPanel .ifb-dot:focus { fill:var(--blue); stroke:var(--blue); stroke-width:4; outline:none; }
#indexFuturesBasisPanel .ifb-point { min-height:44px; margin:6px 0; }
#indexFuturesBasisPanel .ifb-note { margin-top:24px; border-top:1px solid var(--line); padding-top:14px; }
#indexFuturesView .ifb-tabs button:focus-visible, #indexFuturesBasisPanel button:focus-visible, #indexFuturesBasisPanel input:focus-visible, #indexFuturesBasisPanel select:focus-visible, #indexFuturesBasisPanel .ifb-table-wrap:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
@media(max-width:600px) {
  #indexFuturesBasisPanel h2 { font-size:20px; }
  #indexFuturesBasisPanel .ifb-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #indexFuturesBasisPanel .ifb-overview button { padding:10px; }
  #indexFuturesBasisPanel .ifb-overview strong { font-size:18px; }
  #indexFuturesBasisPanel .ifb-head, #indexFuturesBasisPanel .ifb-controls { gap:8px; }
  #indexFuturesBasisPanel th, #indexFuturesBasisPanel td { padding:9px 8px; }
}
