/* Final mobile layer for the recent depth controls; no desktop/payment logic changes. */
@media(max-width:960px){
 .deposit-premium{overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
 .deposit-premium .deposit-premium-shell{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
 .deposit-premium input,.deposit-premium select{font-size:16px!important;min-height:48px;max-width:100%;box-sizing:border-box;scroll-margin-bottom:110px}
 .deposit-premium .deposit-premium-amount input{font-size:25px!important}
 .deposit-premium .deposit-asset-card,.deposit-premium .deposit-network-card{touch-action:manipulation}
 .trader-theme.theme-dark [data-floating-menu=layout]{left:10px!important;top:calc(64px + env(safe-area-inset-top,0px))!important;width:min(480px,calc(100vw - 20px))!important;max-height:calc(100dvh - 84px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .trader-theme.theme-dark [data-floating-menu=layout]>div:first-child{position:sticky;top:0;z-index:3;padding:10px 12px}
 .trader-theme.theme-dark [data-floating-menu=layout]>div:first-child button{width:44px!important;height:44px!important;min-width:44px;font-size:26px}
 .trader-theme.theme-dark [data-floating-menu=layout] [data-layout-choice]{width:44px!important;height:44px!important;min-width:44px;touch-action:manipulation}
 .trader-theme.theme-dark [data-floating-menu=layout] [role=checkbox]{min-height:48px;font-size:12px}
 .trader-theme .trade-history-details{top:calc(62px + env(safe-area-inset-top,0px))!important;max-height:calc(100dvh - 82px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;z-index:150!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .trader-theme .trade-history-details>div:first-child{padding:10px 12px;min-height:66px}
 .trader-theme .trade-history-details>div:first-child button,.trader-theme [data-floating-menu=history-panel]>div:first-child button{width:44px!important;height:44px!important;min-width:44px;font-size:24px}
 .trader-theme .trade-history-details .grid-cols-2{font-size:12px;gap:14px 10px}
 .trader-theme [data-floating-menu].history-depth-result{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .trader-theme .history-depth-result .finish-result-header{position:sticky;top:0;z-index:4;padding:10px 12px}
 .trader-theme .history-depth-result button.finish-result-close{width:44px!important;height:44px!important;min-width:44px;font-size:25px}
 .trader-theme .history-depth-result .finish-result-row{min-height:39px;align-items:center}
 .trader-theme.theme-dark .chart-asset-volume .chart-asset-close{width:40px!important;height:40px!important;min-width:40px}
 .trader-theme .chart-asset-volume .chart-asset-depth{min-height:40px!important;height:40px!important;max-width:min(240px,calc(100vw - 145px));gap:6px}
 .trader-theme .chart-asset-depth-name{font-size:12px}
 .trader-theme .top-tabs-scroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-padding-inline:8px}
 .trader-theme.theme-dark .trade-asset-tab{padding-right:30px!important}
 .trader-theme.theme-dark .trade-tab-close{width:28px!important;height:28px!important;right:0!important;top:0!important;font-size:19px!important}
 .trader-theme.theme-dark .mobile-bottom-nav-item{min-height:48px;border:1px solid #2d536d;background:linear-gradient(145deg,#18384f,#0a2034);box-shadow:inset 0 1px #b5e3ff22,inset 0 -2px #0005;border-radius:10px;color:#b8d9ee}
 .trader-theme.theme-dark .mobile-bottom-nav-item-active{border-color:#39b7ed;background:linear-gradient(145deg,#1a4e70,#0b2943);box-shadow:inset 0 1px #c7f1ff33,0 0 8px #078cce33;color:#e5f7ff}
 .trader-theme .mobile-bottom-nav-icon{filter:drop-shadow(0 2px 1px #0008)}
}
@media(max-width:360px){
 .trader-theme.theme-dark [data-floating-menu=layout]>div:nth-child(2)>div{grid-template-columns:68px minmax(0,1fr);gap:6px}
 .trader-theme.theme-dark [data-floating-menu=layout]>div:nth-child(2){padding-left:10px;padding-right:10px}
 .trader-theme.theme-dark [data-floating-menu=layout]>div:first-child b{font-size:11px}
 .deposit-premium .deposit-premium-shell{padding-left:7px!important;padding-right:7px!important}
 .deposit-premium #deposit-panel-crypto{padding:11px!important}
 .deposit-premium .deposit-asset-card{padding:9px 6px;gap:6px}
}
@media(max-height:500px) and (max-width:960px){
 .deposit-premium .deposit-premium-shell{padding-top:48px!important}
 .deposit-premium .deposit-premium-steps{gap:8px!important;margin-bottom:15px!important}
 .trader-theme.theme-dark [data-floating-menu=layout]{position:fixed!important;top:8px!important;left:50%!important;transform:translateX(-50%);width:min(480px,calc(100vw - 20px))!important;max-height:calc(100dvh - 16px)!important;overflow:auto}
 .trader-theme .trade-history-details{position:fixed!important;left:50%!important;transform:translateX(-50%);top:8px!important;width:min(440px,calc(100vw - 20px))!important;max-height:calc(100dvh - 16px)!important}
}
