.mobile-app .m-nav button .m-tab-icon{width:24px;height:24px}
.m-position-tools{display:flex;align-items:center;justify-content:space-between;padding:8px 17px 2px;gap:12px;color:var(--m-muted)}
.mobile-app .m-position-tools button{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--m-muted)}
.m-position-tools .m-check{margin:0;width:11px;height:11px;flex:0 0 11px}
.m-position-tools .m-icon{width:9px;height:9px}
.m-brief-summary{display:flex;justify-content:space-between;gap:10px;margin:12px 0 15px}
.m-brief-summary>div:last-child{text-align:right}
.m-brief-summary small{display:block;color:var(--m-muted);font-size:10px;line-height:1.4}
.m-brief-summary strong{display:block;font-size:21px;font-weight:600;line-height:1.5}
.m-brief-summary span{display:block;font-size:12px}
.mobile-app .m-position-brief{padding-top:12px;padding-bottom:14px}
.mobile-app .m-position-brief .m-position-buttons{margin-top:14px}
.mobile-app .m-position-brief .m-position-buttons button{height:32px}
.overview-link{text-decoration:none;font-size:12px;color:inherit}
/* Keep the complete first position and its actions above the chart drawer. */
.screen-futures .m-top-tabs{padding-top:6px;padding-bottom:4px}
.screen-futures .m-pair-bar{margin-top:6px}
.screen-futures .m-market-line{margin-bottom:4px}
.screen-futures .m-leverage-row{margin-bottom:5px}
.screen-futures .m-order-selector,.screen-futures .m-order-select{height:26px}
.screen-futures div.m-price-input,.screen-futures div.m-amount-input{height:38px;margin-top:5px}
.screen-futures .m-allocation-track{height:30px}
.screen-futures .m-buy,.screen-futures .m-sell{height:30px}
.screen-futures .m-order-cost{margin-top:2px;margin-bottom:2px}
.screen-futures .m-trading-panel{padding-bottom:8px}
.screen-futures .m-position{padding-top:8px;padding-bottom:4px}
.screen-futures .m-position-grid{row-gap:5px}
.screen-futures .m-position-grid span{margin-top:3px}
.screen-futures .m-position-share{height:21px}
.screen-futures .m-position-tools{padding-top:6px}
.screen-futures .m-equity-strip{padding-top:4px;padding-bottom:4px}
.screen-futures .m-position-tabs{padding-top:7px;padding-bottom:7px}
.screen-futures .m-position-tabs button.active:after{bottom:-8px}
.mobile-app .m-nav button{color:#9a9da2;gap:3px}
.mobile-app.m-dark .m-nav button{color:#848e9c}
.mobile-app .m-nav button.selected{color:var(--m-text)}
.mobile-app .m-funding{display:flex;flex-direction:column;align-items:flex-end;gap:1px;line-height:1.3}
.mobile-app .m-funding>span{font-size:9px;color:var(--m-muted);border-bottom:1px dashed var(--m-muted)}
.mobile-app .m-funding>b{font-size:10px;color:var(--m-text);font-weight:400}
.mobile-app .m-leverage-row .m-funding{border:0;padding:0;border-radius:0;background:none}
.screen-futures .m-available{display:flex;align-items:center;gap:4px;font-size:10px}
.screen-futures .m-available>b{margin-left:auto;font-weight:400;color:var(--m-text)}
.screen-futures .m-available button{display:flex;width:14px;height:16px;color:#d3a300;flex:0 0 14px}
.screen-futures .m-available button svg{width:12px;height:12px}
.m-price-direction{font-size:16px;font-weight:400;margin-left:3px}
.mobile-app .m-book-mark{font-size:9px;white-space:nowrap}
.margin-options{display:grid;gap:10px;margin:14px 0}
#trade-dialog .margin-options label{display:flex;gap:12px;align-items:center;border:1px solid #e1e4e8;border-radius:7px;padding:14px;margin:0;cursor:pointer}
#trade-dialog .margin-options label:has(input:checked){border-color:#f0b90b;background:#fffbec}
#trade-dialog .margin-options input{width:17px;height:17px;margin:0;accent-color:#d9a700}
.margin-options b{display:block;font-size:14px;margin-bottom:5px}.margin-options small{display:block;color:#848e9c;font-size:11px;line-height:1.5}
#trade-dialog input[type=range]{padding:0;height:30px;margin:12px 0 0;accent-color:#f0b90b;box-shadow:none;border:0}
.leverage-presets{display:flex;justify-content:space-between;gap:7px;margin:8px 0 16px}
.leverage-presets button{flex:1;padding:7px 0;background:#f5f5f5;color:#555e69;font-size:11px;border-radius:4px}

.p-exchange{height:47px;padding:0 17px;display:flex;align-items:center;gap:15px}
.mobile-app .p-avatar{width:23px;height:23px;border-radius:5px;background:#f0b90b;color:#181a20;font-weight:700;font-size:13px;flex:0 0 23px}
.p-exchange>div{margin:auto;display:flex;align-items:center;gap:0;background:var(--m-fill);border-radius:5px;height:27px;font-size:12px;white-space:nowrap}
.p-exchange>div>b,.p-exchange>div>button{padding:3px 11px;font-size:12px;font-weight:500}
.p-exchange>div>b{background:var(--m-bg);border:1px solid var(--m-line);border-radius:4px;margin-left:2px}
.p-exchange>div>button{color:var(--m-muted)}
.p-exchange>.mobile-icon,.p-exchange>button>.m-icon{width:18px;height:18px}
.mobile-app .p-search{display:flex;align-items:center;height:32px;margin:0 17px;padding:0 10px;width:calc(100% - 34px);background:var(--m-fill);border-radius:7px;gap:7px;color:var(--m-muted);font-size:11px;text-align:left}
.p-search>.m-icon{width:15px;height:15px}.p-search kbd{margin-left:auto;font-size:9px;font-family:inherit;font-weight:400}
.p-balance{display:flex;justify-content:space-between;align-items:center;padding:20px 17px 16px;gap:8px}
.p-balance>div{min-width:0}.p-balance small{display:flex;align-items:center;gap:5px;color:var(--m-muted);font-size:11px;white-space:nowrap}
.mobile-app .p-eye{color:var(--m-muted);width:20px;height:18px;display:inline-flex;align-items:center;justify-content:center}
.p-eye .m-icon{width:14px;height:14px}
.mobile-app .p-balance h2{font-size:29px;font-weight:600;line-height:1.3;letter-spacing:-.5px;margin:5px 0 8px}
.p-balance p{color:var(--m-muted);font-size:10px;display:flex;gap:8px;white-space:nowrap}
.p-balance p>span{font-weight:500}.p-balance>.m-yellow-button{height:31px;font-size:11px;padding:5px 16px;white-space:nowrap}
.p-shortcuts{display:grid;grid-template-columns:repeat(5,1fr);padding:4px 12px 16px;gap:5px}
.mobile-app .p-shortcuts button{display:flex;flex-direction:column;align-items:center;gap:9px;font-size:10px}
.p-shortcuts .m-icon{width:24px;height:24px;color:var(--m-text);stroke-width:1.4}
.p-widgets{padding:10px 17px;background:var(--m-fill);display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mobile-app .p-widgets>button{border-radius:8px;background:var(--m-bg);padding:13px 11px;text-align:left;min-width:0}
.p-widgets small{display:flex;align-items:center;justify-content:space-between;color:var(--m-muted);font-size:10px}
.p-widgets strong{display:block;font-size:20px;letter-spacing:-.4px;font-weight:550;margin:9px 0 7px}
.p-widgets strong>em{font-size:10px;color:var(--m-muted);font-style:normal;letter-spacing:0;font-weight:400}
.p-widgets button>span{font-size:10px}.p-widgets i{font-size:8px;color:var(--m-muted);font-style:normal;margin-left:4px}
.p-rank-tabs{display:flex;gap:21px;overflow:auto;scrollbar-width:none;padding:17px 17px 11px;white-space:nowrap;color:var(--m-muted)}
.p-rank-tabs>button{font-size:13px;flex-shrink:0}.mobile-app .p-rank-tabs>.active{color:var(--m-text);font-weight:600}
.p-mini-filter{padding:0 17px 8px;font-size:10px;display:flex;gap:15px}.p-mini-filter span{color:var(--m-muted)}
.p-table-head{display:grid;grid-template-columns:1.1fr 1fr .8fr;gap:8px;padding:7px 17px;color:var(--m-muted);font-size:9px}
.p-table-head>*:nth-child(2),.p-table-head>*:last-child{text-align:right}
.p-quote-row{padding:0 17px;display:flex;align-items:center;gap:8px}
.mobile-app .p-star{width:18px;flex:0 0 18px;color:#b2b9c2}.p-star .m-icon{width:14px;height:14px}
.mobile-app .p-star.on .m-icon{fill:#f0b90b;stroke:#f0b90b}
.mobile-app .p-quote-body{display:grid;grid-template-columns:1.1fr 1fr .8fr;align-items:center;gap:8px;flex:1;width:100%;min-width:0;text-align:left;padding:13px 0}
.p-quote-body div{display:flex;flex-direction:column;gap:4px;min-width:0}.p-quote-body div:nth-child(2){text-align:right}
.p-quote-body b{font-size:15px;font-weight:550;white-space:nowrap}.p-quote-body small{font-size:9px;color:var(--m-muted);font-weight:400;margin-left:3px}
.p-quote-body span{font-size:9px;color:var(--m-muted);white-space:nowrap}
.p-quote-body .m-change{width:72px;font-size:11px;padding:8px 1px;border-radius:4px;justify-self:end;font-weight:500}
.mobile-app .p-view-all{width:100%;padding:9px 0 14px;color:var(--m-muted);font-size:10px}.p-view-all .m-icon{width:10px;height:10px;margin-left:7px}
.p-discover{padding:14px 17px 18px;border-top:4px solid var(--m-fill)}
.p-discover>div{display:flex;align-items:center;justify-content:space-between;font-size:14px}.p-discover>div>button{font-size:10px;color:var(--m-muted)}
.mobile-app .p-discover p{margin-top:12px;font-size:13px;line-height:1.6}.p-discover>small{display:block;color:var(--m-muted);font-size:9px;margin-top:8px}
.p-markets-heading{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;gap:12px}
.p-markets-heading>div{display:flex;gap:18px;align-items:center;color:var(--m-muted);white-space:nowrap}
.p-markets-heading>div>button{font-size:15px}.mobile-app .p-markets-heading .active{font-size:19px;color:var(--m-text);font-weight:600}
.p-markets-heading>.m-icon,.p-markets-heading>button .m-icon{width:19px;height:19px}
.p-market-kind{display:flex;gap:23px;padding:5px 17px 13px;border-bottom:1px solid var(--m-line);color:var(--m-muted)}
.p-market-kind button{font-size:13px}.mobile-app .p-market-kind .active{color:var(--m-text);font-weight:600;position:relative}
.p-market-kind .active:after{content:'';position:absolute;bottom:-14px;left:50%;margin-left:-10px;width:20px;height:3px;background:#f0b90b;border-radius:3px}
.p-market-tools{display:flex;justify-content:space-between;gap:12px;padding:13px 17px 9px;align-items:center}
.p-market-tools>div{display:flex;gap:12px;align-items:center}.p-market-tools button{font-size:10px;color:var(--m-muted)}
.mobile-app .p-market-tools .active{padding:3px 7px;border-radius:4px;background:var(--m-fill);color:var(--m-text)}
.p-market-tools label,.p-asset-group label{display:flex;gap:5px;align-items:center;margin:0;min-width:0;color:var(--m-muted);max-width:100px}
.p-market-tools label .m-icon,.p-asset-group label .m-icon{width:12px;height:12px}
.mobile-app .p-market-tools input,.mobile-app .p-asset-group input{height:24px;min-width:0;width:65px;background:none;border:0;border-radius:0;padding:0;font-size:10px;box-shadow:none;color:var(--m-text)}
.mobile-app .p-sort-head button{font-size:9px;color:var(--m-muted)}.p-sort-head>span{padding-left:26px}
.p-market-status{padding:20px 17px;color:var(--m-muted);font-size:9px;text-align:center}.p-market-status i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#20b884;margin:0 4px 1px 0}
.p-assets-tabs{display:flex;gap:25px;padding:11px 17px 14px;border-bottom:1px solid var(--m-line);white-space:nowrap;color:var(--m-muted)}
.p-assets-tabs>button{font-size:13px}.mobile-app .p-assets-tabs>.active{font-weight:600;color:var(--m-text)}
.p-assets-balance{padding-top:18px;padding-bottom:20px}.p-assets-balance>button{color:var(--m-muted);align-self:flex-start;margin-top:4px}
.p-asset-actions{display:flex;gap:8px;padding:0 17px 24px}.mobile-app .p-asset-actions>button{flex:1;border-radius:5px;background:var(--m-fill);height:32px;font-size:11px;font-weight:500}
.mobile-app .p-asset-actions>.m-yellow-button{background:#f0b90b;color:#181a20;padding:0}
.p-asset-group{display:flex;gap:22px;padding:0 17px 15px;align-items:center;color:var(--m-muted)}
.p-asset-group>button{font-size:14px}.mobile-app .p-asset-group>.active{font-weight:600;color:var(--m-text);position:relative}
.p-asset-group>.active:after{content:'';height:3px;width:18px;position:absolute;bottom:-7px;left:50%;margin-left:-9px;background:#f0b90b;border-radius:2px}
.p-asset-group>label{margin-left:auto}.p-asset-filter{display:flex;padding:2px 17px 10px}
.mobile-app .p-asset-filter button{display:flex;gap:5px;align-items:center;color:var(--m-muted);font-size:9px}
.p-asset-filter .m-check{width:10px;height:10px;flex-basis:10px}
.mobile-app .p-coin-row{display:flex;width:100%;padding:15px 17px;gap:10px;align-items:center;text-align:left}
.p-coin-icon{width:28px;height:28px;flex:0 0 28px;background:#687480;border-radius:50%;color:white;font-size:17px;display:flex;align-items:center;justify-content:center;font-weight:600}
.coin-usdt{background:#26a17b}.coin-btc{background:#f7931a}.coin-eth{background:#7c8fbe}.coin-bnb{background:#f0b90b;color:#181a20}.coin-sol{background:#222}.coin-xrp{background:#111}
.p-coin-row>div{display:flex;flex-direction:column;gap:5px}.p-coin-row>div:nth-of-type(2){text-align:right;margin-left:auto}
.p-coin-row b{font-size:14px;font-weight:500}.p-coin-row small{font-size:9px;color:var(--m-muted)}
.p-coin-row>.m-icon{height:10px;width:10px;transform:rotate(-90deg);color:var(--m-muted)}
.p-account-cards{padding:0 17px}.mobile-app .p-account-cards>button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:18px 0;border-bottom:1px solid var(--m-line);text-align:left}
.p-account-cards span{font-size:13px}.p-account-cards strong{font-weight:500;font-size:14px;margin-left:auto}.p-account-cards small{font-size:9px;color:var(--m-muted)}.p-account-cards .m-icon{width:10px;height:10px;color:var(--m-muted)}
.p-account-metrics{padding:12px 17px}.mobile-app .p-account-metrics p{display:flex;justify-content:space-between;font-size:11px;margin:12px 0;color:var(--m-muted)}
.p-account-metrics b{font-weight:500;color:var(--m-text)}.p-assets-note{margin:15px 17px;color:var(--m-muted);font-size:9px;line-height:1.6}
.p-spot-top{overflow:auto;scrollbar-width:none;gap:22px!important;white-space:nowrap;align-items:center}.p-spot-top>*{flex-shrink:0;font-size:14px}
.screen-trade .m-pair-bar .m-icon{width:15px;height:15px}.screen-trade .m-pair-bar>div{gap:12px}
.screen-trade .m-pair-bar>div>button{color:var(--m-muted)}.screen-trade .m-pair-bar b{font-size:19px}
.p-buy-sell{display:flex;border:1px solid var(--m-line);height:27px;margin-bottom:6px;border-radius:4px;overflow:hidden}
.mobile-app .p-buy-sell button{flex:1;color:var(--m-muted);font-size:11px}.mobile-app .p-buy-sell .selected{color:#fff;font-weight:500}.p-buy-sell .selected.buy{background:#20b884}.p-buy-sell .selected.sell{background:#f6465d}
.p-spot-panel{padding-top:6px;min-height:317px}
.p-spot-estimates{margin-top:8px;margin-bottom:9px}.mobile-app .p-spot-estimates p{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:9px;color:var(--m-muted);line-height:1.8}
.p-spot-estimates b{font-weight:400;color:var(--m-text);white-space:nowrap;margin-left:auto}.p-spot-estimates button{width:11px;height:13px}.p-spot-estimates .m-icon{width:11px;height:11px;color:#c69b17}
.p-spot-order-tabs{gap:19px!important}.p-spot-order-tabs>button{font-size:11px!important}.p-spot-order-tabs+.p-asset-filter{padding-top:11px;padding-bottom:11px;border-bottom:1px solid var(--m-line)}
.p-empty{padding:45px 16px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;color:var(--m-muted)}
.p-empty>.m-icon{width:30px;height:30px;color:#b7bec7}.p-empty>b{font-size:12px;font-weight:400}.p-empty>small{font-size:10px;line-height:1.6}
.p-spot-holding{padding:17px}.p-spot-holding>div{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;font-size:15px}.p-spot-holding strong{font-weight:500}
.mobile-app .p-spot-holding p{display:flex;justify-content:space-between;font-size:11px;color:var(--m-muted);margin:10px 0}.p-spot-holding b{font-weight:400}.mobile-app .p-spot-holding>button{width:100%;height:30px;background:var(--m-fill);border-radius:4px;margin-top:10px;font-size:11px}
#pair-results small{display:block;color:#848e9c;font-size:10px;font-weight:400;margin-top:5px}
.p-transfer-to{display:flex;align-items:center;gap:20px;margin:15px 0 23px;font-size:12px;color:#848e9c}.p-transfer-to>b{color:#181a20;font-weight:500}.p-transfer-to>button{margin-left:auto;background:#f5f5f5;color:#181a20;border-radius:5px;font-size:17px;padding:4px 9px}
.p-services-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 20px}.p-services-grid button{padding:15px 5px;border:1px solid #eceef1;border-radius:7px;color:#181a20;background:#fafafa;font-size:12px}
@media(max-width:430px){.p-markets-heading>div{gap:13px}.p-quote-body b{font-size:13px}.p-quote-body .m-change{width:65px}.p-assets-tabs{gap:18px}.p-spot-order-tabs{gap:13px!important}.p-widgets button>span{font-size:9px}.p-balance h2{font-size:26px!important}}

.m-top-tabs>button{font-size:inherit;color:var(--m-muted);white-space:nowrap}.p-spot-holding+.p-spot-holding{border-top:1px solid var(--m-line)}
