/* Loaded only by Binance PC futures. Shared trading styles remain unchanged. */
html[data-binance-futures-theme] #v2_trading_area .bf-position-tabs > tbody > tr:first-child > td {
    border-bottom: 0 !important;
}
html[data-binance-futures-theme] #v2_trading_area .bf-position-tabs > tbody > tr:first-child > td:first-child > table {
    width: 70%;
    min-width: min(100%, 340px);
    table-layout: fixed;
    border: 1px solid #354052;
    border-radius: 8px;
    border-spacing: 3px;
    background: #171c27;
}
html[data-binance-futures-theme] #v2_trading_area .bf-position-tabs :is(#down_menu_1, #down_menu_2, #down_menu_3) {
    width: 33.333%;
    height: 31px;
    border: 0 !important;
    border-radius: 5px;
    background: transparent !important;
    color: #aab4c3 !important;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
    cursor: pointer;
}
html[data-binance-futures-theme] #v2_trading_area .bf-position-tabs :is(#down_menu_1, #down_menu_2, #down_menu_3).btn_coin {
    background: #303a4b !important;
    color: #eef2f7 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area .bf-position-tabs > tbody > tr:first-child > td:first-child > table {
    border-color: #d6deea;
    background: #eef2f7;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area .bf-position-tabs :is(#down_menu_1, #down_menu_2, #down_menu_3) {
    color: #64748b !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area .bf-position-tabs :is(#down_menu_1, #down_menu_2, #down_menu_3).btn_coin {
    background: #fff !important;
    color: #202938 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area {
    color-scheme: light;
    --bf-bg: #ffffff;
    --bf-panel: #f3f5f8;
    --bf-selected: #e7edf6;
    --bf-text: #202938;
    --bf-muted: #657185;
    --bf-border: #d5dbe5;
    --bf-accent: #956400;
    --bf-positive-text: #087443;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area {
    background: var(--bf-bg) !important;
    color: var(--bf-text);
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    .spot-hoga-shell, .spot-hoga-header-v2, .spot-hoga-controls,
    .spot-hoga-book, .spot-hoga-last-line, .spot-hoga-footer-v2,
    .scrollbar, .st_position_symbol, .tr_trade, #tr_trade,
    .binance-split-chart-panel, .binance-split-chart-header) {
    background: var(--bf-bg) !important;
    color: var(--bf-text) !important;
    border-color: var(--bf-border) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    .btn_tx, .btn_tx_black, .btn_coin, .btn_coin_funtion, .btn_action, .btn_action2,
    .btn_position, .css_margin_type, .css_margin_type_rate, .btn_input,
    .btn_input_size, .btn_input_price_hoga_size, .btn_input_triger,
    .spot-hoga-unit select, .css_select_coin_on, .top_menu_on) {
    background: var(--bf-panel) !important;
    color: var(--bf-text) !important;
    border-color: var(--bf-border) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    .css_select_coin, .css_select_coin_on, .css_select_coin_have_win,
    .css_select_coin_have_los, .css_select_coin_position) {
    border-top-color: var(--bf-border) !important;
    border-bottom-color: var(--bf-border) !important;
    border-right-color: var(--bf-border) !important;
}
/* The generated neutral border rule must not erase the market-state rail. */
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_market .css_select_coin_on {
    border-left: 4px solid #a96800 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_market .css_select_coin_have_win {
    border-left: 4px solid #087443 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_market .css_select_coin_have_los {
    border-left: 4px solid #b42335 !important;
}
html[data-binance-futures-theme] #v2_trading_area #scroll_market [data-position-side="long"] {
    background: #1b2927 !important;
}
html[data-binance-futures-theme] #v2_trading_area #scroll_market [data-position-side="short"] {
    background: #2d2228 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_market [data-position-side="long"] {
    background: #e8f5ed !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_market [data-position-side="short"] {
    background: #fcebed !important;
}
html[data-binance-futures-theme] #v2_trading_area #scroll_market [data-position-side="long"]:not(.css_select_coin_on) {
    border-left: 4px solid #41b37d !important;
}
html[data-binance-futures-theme] #v2_trading_area #scroll_market [data-position-side="short"]:not(.css_select_coin_on) {
    border-left: 4px solid #d74e5a !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_market [data-position-side="long"]:not(.css_select_coin_on) {
    border-left-color: #087443 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_market [data-position-side="short"]:not(.css_select_coin_on) {
    border-left-color: #b42335 !important;
}
html[data-binance-futures-theme] #v2_trading_area #scroll_market .css_select_coin_on[data-position-side] {
    border-left: 4px solid #ffcc00 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_market .css_select_coin_on[data-position-side] {
    border-left-color: #a96800 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    .css_select_coin:hover, .btn_tx:hover, .btn_tx_black:hover,
    .btn_position_on, .top_menu_on) {
    background: var(--bf-selected) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    .spot-hoga-tabs button, .spot-hoga-more, .spot-hoga-columns,
    .spot-hoga-stack-columns, .spot-recent-trades-header, .spot-recent-time,
    .tr_wallet_txt, .btn_tx_p, .top_menu, .v_none, .v_none1) {
    color: var(--bf-muted) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    .spot-hoga-tabs button.is-active, .spot-hoga-pair .bid-size,
    .spot-hoga-pair .ask-size, .spot-hoga-pair .ask-total,
    .spot-hoga-stack-row .bid-size, .spot-hoga-stack-row .ask-size) {
    color: var(--bf-text) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area .spot-hoga-tabs button.is-active::after { background: var(--bf-text); }
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area .spot-hoga-mode .mode-muted { fill: var(--bf-muted); }
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area .spot-hoga-depth-side.bid > span { background: #d7efe3; }
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area .spot-hoga-depth-side.ask > span { background: #f8dfe3; }
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(input, select, textarea) {
    border-color: var(--bf-border);
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area input::placeholder { color: var(--bf-muted); }
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(#view_window_funding_time, .spot-hoga-last-line span) { color: var(--bf-muted) !important; }
/* The live HOT card carries its own inline dark background. */
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_coin_hot .css_coin_title > table {
    background: var(--bf-panel) !important;
    color: var(--bf-text) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_coin_hot .css_coin_title > table > tbody > tr > td {
    border-top-color: var(--bf-border) !important;
    border-right-color: var(--bf-border) !important;
    border-bottom-color: var(--bf-border) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #scroll_coin_hot table table {
    color: var(--bf-text) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area input:is(.btn_buy, .btn_sell, .btn_speed_buy, .btn_speed_sell) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area input:is(.st_money_position, .st_money_position_half) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(#pos_price, #pos_price_long, #pos_price_short, [id^="pos_entryPrice_"]) {
    color: #087443 !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    [id^="tcoin_"], [id^="tcoin2_"], #scroll_coin_hot, #frame_main2,
    #down_menu_info, #vm_hoga_1, #view_window_my_funding
) [style*="color:#41b37d"]:not([style*="background:#41b37d"]):not([style*="background-color:#41b37d"]),
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    [id^="tcoin_"], [id^="tcoin2_"], #scroll_coin_hot, #frame_main2,
    #down_menu_info, #vm_hoga_1, #view_window_my_funding
) [style*="color: rgb(65, 179, 125)"],
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area [id^="tcoin_"][style*="rgb(65, 179, 125)"],
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area [id^="tcoin_"][style*="color:#41b37d"],
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    #pos_profit_top, #my_margin_balance_top, #my_margin_balance_top_iso,
    #vm_margin_risk, #pos_profit_per_top
) [style*="color:#4fff08"],
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(
    .btn_input_price_hoga_buy, .btn_input_size_usdt_buy
) {
    color: var(--bf-positive-text) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area input.pop_btn_no {
    background: var(--bf-panel) !important;
    color: var(--bf-text) !important;
    -webkit-text-fill-color: var(--bf-text) !important;
    border-color: var(--bf-border) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area input.pop_btn_no:hover {
    background: var(--bf-selected) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(#down_menu_trans, #down_menu_leverage, #down_menu_iso) {
    background: var(--bf-bg) !important;
    color: var(--bf-text);
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(#down_menu_trans, #down_menu_leverage, #down_menu_iso) [style*="color:#efefef" i] {
    color: var(--bf-muted) !important;
}
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area :is(#position_leverage_temp, #my_margin_iso),
html[data-binance-futures-theme][color-scheme="light"] #v2_trading_area #down_menu_trans td[style*="background:#166ec5" i] {
    color: #ffffff !important;
}
