/* v3.46: consistent form controls, compact mobile header, and terminal theme parity. */
:root{
  --select-arrow:var(--ui-muted,#697983);
  --select-bg:var(--ui-surface,#fff);
  --select-border:var(--ui-border,#d7dfe4);
  --select-text:var(--ui-text,#18242a);
}

select:not([multiple]){
  -webkit-appearance:none!important;
  appearance:none!important;
  width:100%;
  min-height:44px;
  padding:10px 44px 10px 13px!important;
  border:1px solid var(--select-border)!important;
  border-radius:11px!important;
  background-color:var(--select-bg)!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23697983' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:right 13px center!important;
  background-size:17px!important;
  color:var(--select-text)!important;
  font:inherit;
  line-height:1.25;
  box-shadow:none!important;
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
select:not([multiple]):hover{border-color:color-mix(in srgb,var(--ui-brand,#ff6a00) 34%,var(--select-border))!important}
select:not([multiple]):focus{outline:0!important;border-color:var(--ui-brand,#ff6a00)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-brand,#ff6a00) 16%,transparent)!important}
select:not([multiple]):disabled{cursor:not-allowed;opacity:.62;background-color:var(--ui-surface-2,#f3f6f7)!important}
select option{color:#172229;background:#fff}
.dark-ui select:not([multiple]){
  --select-bg:#14242b;--select-border:#334750;--select-text:#edf3f5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a7b6bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")!important;
}
.dark-ui select option{color:#edf3f5;background:#14242b}
.rtl-ui select:not([multiple]){padding-left:44px!important;padding-right:13px!important;background-position:left 13px center!important}

/* Custom select menu: avoids the unthemed Android radio-list popup. */
.select-shell{position:relative;display:block;width:100%}
.select-shell>select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.select-trigger{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border:1px solid var(--select-border);border-radius:12px;background:var(--select-bg);color:var(--select-text);font:inherit;text-align:left;cursor:pointer}
.select-trigger:after{content:"";width:18px;height:18px;flex:0 0 18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23697983' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/18px no-repeat;transition:transform .16s ease}
.select-shell.open .select-trigger{border-color:var(--ui-brand,#ff6a00);box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-brand,#ff6a00) 16%,transparent)}
.select-shell.open .select-trigger:after{transform:rotate(180deg)}
.select-menu{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:10030;display:none;max-height:min(300px,46dvh);overflow:auto;padding:6px;border:1px solid var(--select-border);border-radius:14px;background:var(--select-bg);box-shadow:0 18px 46px rgba(10,20,26,.2)}
.select-shell.open .select-menu{display:grid;gap:3px;animation:selectReveal .14s ease-out}
.select-option{width:100%;min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:0;border-radius:9px;background:transparent;color:var(--select-text);font:inherit;text-align:left;cursor:pointer}
.select-option:hover,.select-option:focus-visible{outline:0;background:var(--ui-surface-2,#f2f5f6)}
.select-option[aria-selected="true"]{background:var(--ui-brand-soft,#fff0e5);color:var(--ui-brand,#ff6a00);font-weight:750}
.select-option[aria-selected="true"]:after{content:"✓";font-weight:900}
.dark-ui .select-trigger,.dark-ui .select-menu{--select-bg:#14242b;--select-border:#334750;--select-text:#edf3f5}
.dark-ui .select-trigger:after{filter:brightness(1.75)}
.dark-ui .select-option:hover,.dark-ui .select-option:focus-visible{background:#1c3038}
.rtl-ui .select-trigger,.rtl-ui .select-option{text-align:right}
@keyframes selectReveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}

.topbar-svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-button .theme-moon{opacity:0}
.theme-button[data-theme-icon="moon"] :is(.theme-rays,.theme-sun-core){opacity:0}
.theme-button[data-theme-icon="moon"] .theme-moon{opacity:1}
.theme-button[data-theme-icon="moon"] .theme-svg{transform:rotate(-20deg)}
.theme-button .theme-svg{transition:transform .18s ease}

/* The terminal follows the selected website theme instead of staying forced dark. */
html:not(.dark-ui) .terminal-body{background:#f4f7f8;color:#1a272e}
html:not(.dark-ui) .terminal-topbar,html:not(.dark-ui) .terminal-rail,html:not(.dark-ui) .instrument-panel,html:not(.dark-ui) .terminal-chart-toolbar,html:not(.dark-ui) .terminal-orders,html:not(.dark-ui) .order-ticket,html:not(.dark-ui) .terminal-statusbar{background:#fff!important;color:#1a272e!important;border-color:#dce4e8!important}
html:not(.dark-ui) .terminal-chart-wrap,html:not(.dark-ui) .terminal-eod-chart{background:#fff!important}
html:not(.dark-ui) .terminal-topbar :is(a,b,strong),html:not(.dark-ui) .instrument-panel-head button,html:not(.dark-ui) .order-ticket-head button,html:not(.dark-ui) .terminal-order-tabs button.active{color:#17242a!important}
html:not(.dark-ui) .terminal-rail :is(button,a){color:#647681!important}
html:not(.dark-ui) .terminal-rail :is(button,a):hover,html:not(.dark-ui) .terminal-rail button.active{background:#fff1e7!important;color:#e85f00!important}
html:not(.dark-ui) .terminal-search,html:not(.dark-ui) .favorites-label,html:not(.dark-ui) .ticket-input,html:not(.dark-ui) .ticket-prices button,html:not(.dark-ui) .market-pending-tabs button,html:not(.dark-ui) .ticket-order-summary span{background:#f7f9fa!important;border-color:#d9e2e6!important;color:#1b2930!important}
html:not(.dark-ui) .terminal-search input,html:not(.dark-ui) .ticket-input input,html:not(.dark-ui) .ticket-input button{color:#1b2930!important}
html:not(.dark-ui) .terminal-watchlist a{border-color:#e5ebee!important}
html:not(.dark-ui) .terminal-watchlist a.selected{background:#fff3e9!important}
html:not(.dark-ui) .terminal-orders-table th,html:not(.dark-ui) .terminal-orders-table td{border-color:#e5ebee!important;color:#26363e}
html:not(.dark-ui) .terminal-body .modal-card{background:#fff!important;color:#17242a!important;border-color:#dce4e8!important}

@media(max-width:620px){
  select:not([multiple]){min-height:46px;padding-right:42px!important;background-position:right 12px center!important}
  .rtl-ui select:not([multiple]){padding-left:42px!important;padding-right:12px!important;background-position:left 12px center!important}
  body.app-body .topbar{height:56px!important;padding:0 9px!important;gap:6px!important}
  body.app-body .topbar .mobile-menu{width:36px!important;height:36px!important;min-width:36px!important;border:1px solid var(--ui-border,#dde4e7)!important;border-radius:11px!important}
  body.app-body .mobile-brand{flex:1;max-width:min(142px,42vw)!important}
  body.app-body .topbar-actions{flex:0 0 auto;gap:4px!important}
  body.app-body .topbar-actions .icon-button{width:35px!important;height:35px!important;min-width:35px!important;border:1px solid var(--ui-border,#dde4e7)!important;border-radius:11px!important}
  body.app-body .verification-banner{padding:9px 10px!important;gap:7px!important}
  body.app-body .verification-banner strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:9.5px!important}
  body.app-body .verification-banner small{display:none!important}
  body.app-body .verification-banner .btn-primary{min-width:66px!important;justify-content:center;padding:7px 9px!important}
  html.altprimefx-native-android body.app-body .chat-button{bottom:12px!important}
}

@media(prefers-reduced-motion:reduce){.select-shell.open .select-menu{animation:none}.select-trigger:after,.theme-button .theme-svg{transition:none}}

/* v3.48: purpose-built mobile navigation drawer for browser and Android WebView. */
.sidebar-mobile-close,.sidebar-mobile-account,.sidebar-scrim{display:none}
@media(max-width:980px){
  body.app-body.mobile-sidebar-open{overflow:hidden!important;touch-action:none}
  body.app-body .sidebar{
    left:0!important;right:auto!important;top:0!important;bottom:0!important;
    width:min(266px,82vw)!important;height:100dvh!important;box-sizing:border-box!important;
    padding:calc(8px + env(safe-area-inset-top)) 7px calc(7px + env(safe-area-inset-bottom))!important;
    border:0!important;border-right:1px solid var(--ui-border,#dce4e8)!important;
    border-radius:0 16px 16px 0!important;background:var(--ui-surface,#fff)!important;
    box-shadow:18px 0 55px rgba(8,20,28,.22)!important;
    transform:translate3d(-104%,0,0)!important;transition:transform .22s cubic-bezier(.2,.75,.25,1)!important;
    overflow:hidden!important;overscroll-behavior:contain;z-index:510!important;
  }
  body.app-body .sidebar.open{transform:translate3d(0,0,0)!important}
  body.app-body .sidebar-mobile-head{display:flex;align-items:center;gap:7px;padding:0 3px 7px;border-bottom:1px solid var(--ui-border,#e3e8eb)}
  body.app-body .sidebar-brand-wrap{min-width:0;flex:1;padding:0!important;border:0!important}
  body.app-body .sidebar-brand-wrap .brand{min-width:0;max-width:168px}
  body.app-body .sidebar-brand-wrap .brand-logo-wrap{height:33px!important;max-width:160px!important}
  body.app-body .sidebar-mobile-close{display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;padding:0;border:1px solid var(--ui-border,#dce4e8);border-radius:9px;background:transparent;color:var(--ui-muted,#687983);cursor:pointer}
  body.app-body .sidebar-mobile-close svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
  body.app-body .side-nav{padding:8px 2px 6px!important;scrollbar-width:none}
  body.app-body .side-nav::-webkit-scrollbar{display:none}
  body.app-body .nav-group{margin:0 0 3px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important}
  body.app-body .nav-group-toggle,body.app-body .nav-single{min-height:39px!important;padding:4px 6px!important;border-radius:8px!important;font-size:10.8px!important}
  body.app-body .nav-group-toggle .side-icon,body.app-body .nav-single .side-icon{width:28px!important;height:28px!important;flex-basis:28px!important;border-radius:8px!important}
  body.app-body .nav-group-links{margin-left:21px!important;padding:2px 0 4px 11px!important}
  body.app-body .nav-group-links a{min-height:33px!important;padding:3px 6px!important;border-radius:7px!important;font-size:10px!important}
  body.app-body .nav-group-links a .side-icon.small{width:24px!important;height:24px!important;flex-basis:24px!important}
  body.app-body .nav-group-links a.active{background:var(--ui-brand-soft,#fff0e5)!important;color:var(--ui-brand,#e85e00)!important;box-shadow:inset 2px 0 var(--ui-brand,#ff6a00)!important}
  body.app-body .side-nav-divider{height:23px!important;margin-top:1px!important;padding:0 8px 4px!important}
  body.app-body .side-nav-divider span{font-size:8px!important}
  body.app-body .referral-card{margin:3px 2px!important;min-height:38px;padding:5px 7px!important;border-radius:9px!important}
  body.app-body .referral-card .referral-icon{width:27px!important;height:27px!important;flex-basis:27px!important;border-radius:7px!important}
  body.app-body .referral-card b{font-size:10.5px!important}.sidebar .referral-card small{font-size:8px!important}
  body.app-body .client-sidebar-footer{padding:3px 2px 0!important}
  body.app-body .client-logout{min-height:36px!important;border-radius:8px!important;font-size:10.5px!important;padding:3px 6px!important}
  body.app-body .client-logout .side-icon{width:27px!important;height:27px!important;flex-basis:27px!important;border-radius:7px!important}
  body.app-body .sidebar-scrim{display:block;position:fixed;inset:0;z-index:500;padding:0;border:0;background:rgba(7,16,22,.54);backdrop-filter:blur(3px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}
  body.app-body.mobile-sidebar-open .sidebar-scrim{opacity:1;visibility:visible;pointer-events:auto}
  .rtl-ui body.app-body .sidebar{left:auto!important;right:0!important;border-right:0!important;border-left:1px solid var(--ui-border,#dce4e8)!important;border-radius:16px 0 0 16px!important;transform:translate3d(104%,0,0)!important;box-shadow:-18px 0 55px rgba(8,20,28,.22)!important}
  .rtl-ui body.app-body .sidebar.open{transform:translate3d(0,0,0)!important}
  .rtl-ui body.app-body .nav-group-links{margin-left:0!important;margin-right:21px!important;padding-left:0!important;padding-right:11px!important}
}
.dark-ui body.app-body .sidebar-mobile-close{background:#17272e;border-color:#31444d;color:#eef4f6}
@media(prefers-reduced-motion:reduce){body.app-body .sidebar,body.app-body .sidebar-scrim{transition:none!important}}

/* Keep compact selects anchored to their trigger instead of opening as a detached sheet. */
@media(max-width:620px){
  .select-menu{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 7px)!important;bottom:auto!important;max-height:min(270px,42dvh)!important;border-radius:13px!important;box-shadow:0 15px 38px rgba(15,23,42,.2)!important}
  .select-shell.open-up .select-menu{top:auto!important;bottom:calc(100% + 7px)!important}
  .filter-select .select-menu{left:0!important;right:0!important;min-width:100%!important}
}

/* Complete light terminal surfaces, quotes and trade actions. */
html:not(.dark-ui) body.terminal-body .terminal-watchlist strong{background:#edf2f5!important;color:#17242a!important;border:0!important}
html:not(.dark-ui) body.terminal-body .terminal-watchlist :is(.signal.up,.signal.down){color:#fff!important}
html:not(.dark-ui) body.terminal-body .ticket-submit{background:#fff!important;box-shadow:none!important}
html:not(.dark-ui) body.terminal-body .ticket-submit .sell{background:#e94044!important;color:#fff!important}
html:not(.dark-ui) body.terminal-body .ticket-submit .buy{background:#1aa15a!important;color:#fff!important}
html:not(.dark-ui) body.terminal-body .ticket-submit button{border:0!important;box-shadow:none!important}

/* In the native app the original flat nav stays at the bottom; terminal tools remain a compact top rail. */
@media(max-width:760px){
  html.altprimefx-native-android body.terminal-body .terminal-rail{position:sticky!important;left:auto!important;right:auto!important;top:58px!important;bottom:auto!important;width:100%!important;height:46px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:3px 6px!important;border:0!important;border-bottom:1px solid #304048!important;border-radius:0!important;background:#111d22!important;box-shadow:none!important;backdrop-filter:none!important;overflow-x:auto!important}
  html.altprimefx-native-android body.terminal-body .terminal-rail :is(button,a){flex:0 0 44px!important;width:44px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:8px!important;font-size:15px!important}
  html.altprimefx-native-android body.terminal-body .terminal-rail :is(button,a)::after{display:none!important}
  html.altprimefx-native-android body.terminal-body .terminal-center{padding-bottom:0!important}
  html.altprimefx-native-android body.terminal-body .instrument-panel{top:104px!important;bottom:0!important}
  html.altprimefx-native-android body.terminal-body .terminal-layout:not(.watchlist-collapsed) .terminal-panel-scrim{inset:104px 0 0!important}
  html.altprimefx-native-android body.terminal-body .order-ticket{bottom:0!important}
  html:not(.dark-ui).altprimefx-native-android body.terminal-body .terminal-rail{background:#fff!important;border-bottom-color:#d9e2e6!important}
}

/* v3.49 final UI guards. */
body.app-body .select-menu,
body.auth-body .select-menu,
body.admin-body .select-menu,
body.terminal-body .select-menu{
  position:fixed!important;
  right:auto;
  z-index:100000!important;
  margin:0!important;
  overscroll-behavior:contain;
  background:var(--ui-surface,#fff)!important;
  color:var(--ui-text,#17242a)!important;
  border:1px solid var(--ui-border,#d9e2e6)!important;
  box-shadow:0 18px 46px rgba(15,23,42,.22)!important;
}
.select-menu.select-menu-portal.open{display:grid!important;gap:3px!important;z-index:1000000!important}
.dark-ui :is(body.app-body,body.auth-body,body.admin-body,body.terminal-body) .select-menu{background:#14242b!important;color:#edf3f5!important;border-color:#334750!important;box-shadow:0 24px 64px rgba(0,0,0,.5)!important}

/* Fixed AI launcher: original placement, with dismiss/restore only. */
.ai-launcher{left:auto!important;right:24px!important;top:auto!important;bottom:24px!important;touch-action:auto!important}
.ai-launcher .chat-button{cursor:pointer!important;touch-action:auto!important}
.ai-launcher.is-dragging .chat-button{transform:none!important}
.rtl-ui .ai-launcher{right:auto!important;left:24px!important}
@media(max-width:640px){.ai-launcher{right:12px!important;bottom:12px!important}.rtl-ui .ai-launcher{right:auto!important;left:12px!important}html.altprimefx-native-android body.app-body .ai-launcher{bottom:12px!important}}

/* Recognisable market artwork supplied through resilient CDN assets. */
.market-symbol-icon{position:relative;display:inline-grid!important;place-items:center;isolation:isolate;overflow:visible!important;background:#eef2f4!important;color:#243740!important;font-size:9px;font-weight:900;text-transform:uppercase}
.market-symbol-icon:before,.market-symbol-icon:after{content:"";position:absolute;display:block;background-position:center;background-repeat:no-repeat;background-size:cover}
.market-symbol-icon:before{inset:0;border-radius:inherit}
.market-symbol-icon[data-market-symbol="EUR/USD"]:before{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/eu.svg")}
.market-symbol-icon[data-market-symbol="GBP/USD"]:before{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/gb.svg")}
.market-symbol-icon[data-market-symbol="USD/JPY"]:before{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/us.svg")}
.market-symbol-icon[data-market-symbol="AUD/USD"]:before{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/au.svg")}
.market-symbol-icon[data-market-symbol="USD/CHF"]:before{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/us.svg")}
.market-symbol-icon[data-market-symbol="EUR/USD"]:after,.market-symbol-icon[data-market-symbol="GBP/USD"]:after,.market-symbol-icon[data-market-symbol="AUD/USD"]:after{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/us.svg")}
.market-symbol-icon[data-market-symbol="USD/JPY"]:after{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/jp.svg")}
.market-symbol-icon[data-market-symbol="USD/CHF"]:after{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/ch.svg")}
.market-symbol-icon[data-market-symbol="EUR/USD"]:after,.market-symbol-icon[data-market-symbol="GBP/USD"]:after,.market-symbol-icon[data-market-symbol="AUD/USD"]:after,.market-symbol-icon[data-market-symbol="USD/JPY"]:after,.market-symbol-icon[data-market-symbol="USD/CHF"]:after{right:-2px;bottom:-2px;width:14px;height:14px;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 5px rgba(15,23,42,.18)}
.market-symbol-icon[data-market-symbol="BTC/USD"]:before{background-image:url("https://cdn.jsdelivr.net/gh/spothq/cryptocurrency-icons@master/128/color/btc.png")}
.market-symbol-icon[data-market-symbol="ETH/USD"]:before{background-image:url("https://cdn.jsdelivr.net/gh/spothq/cryptocurrency-icons@master/128/color/eth.png")}
.market-symbol-icon[data-market-symbol="BNB/USD"]:before{background-image:url("https://cdn.jsdelivr.net/gh/spothq/cryptocurrency-icons@master/128/color/bnb.png")}
.market-symbol-icon[data-market-symbol="XAU/USD"]:before{content:"Au";display:grid;place-items:center;background:linear-gradient(145deg,#ffd96a,#b78108);color:#4d3500;border:1px solid rgba(116,75,0,.18)}
.market-symbol-icon[data-market-symbol="XAG/USD"]:before{content:"Ag";display:grid;place-items:center;background:linear-gradient(145deg,#f7fafc,#9baab2);color:#34454d;border:1px solid rgba(52,69,77,.18)}
.market-symbol-icon[data-market-symbol="NAS100"]:before,.market-symbol-icon[data-market-symbol="US30"]:before{background-image:url("https://cdn.jsdelivr.net/gh/HatScripts/circle-flags@gh-pages/flags/us.svg")}
.market-symbol-icon[data-market-symbol="NAS100"]:after{content:"N"}.market-symbol-icon[data-market-symbol="US30"]:after{content:"D"}
.market-symbol-icon[data-market-symbol="NAS100"]:after,.market-symbol-icon[data-market-symbol="US30"]:after{right:-2px;bottom:-2px;width:14px;height:14px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#17242a;color:#fff;font-size:7px}
.terminal-symbol-tabs .market-symbol-icon{width:27px;height:27px;border-radius:50%;flex:0 0 27px}

/* Fully consistent light terminal surfaces. */
html:not(.dark-ui) body.terminal-body{background:#f5f7f9!important;color:#17242a!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-layout,.terminal-center,.terminal-chart-wrap,#terminalEodChart,.terminal-orders-table){background:#fff!important}
html:not(.dark-ui) body.terminal-body :is(.ticket-prices button,.market-pending-tabs button,.ticket-input,.ticket-order-summary,.ticket-market-meta,.terminal-warning,.favorites-label,.terminal-search){background:#f6f8f9!important;color:#253740!important;border-color:#d8e2e6!important}
html:not(.dark-ui) body.terminal-body :is(.ticket-prices small,.ticket-prices strong,.market-pending-tabs button,.ticket-order-summary span,.ticket-market-meta span,.terminal-watchlist strong){color:#17242a!important}
html:not(.dark-ui) body.terminal-body .market-pending-tabs button.active{background:#fff!important;color:#f56600!important;border-color:#f8a66b!important;box-shadow:inset 0 -2px #f56600}
html:not(.dark-ui) body.terminal-body .terminal-watchlist a.selected{background:#fff2e8!important}
html:not(.dark-ui) body.terminal-body .terminal-order-tabs button{color:#62737c!important}
html:not(.dark-ui) body.terminal-body .terminal-order-tabs button.active{color:#17242a!important;border-bottom-color:#f56600!important}

/* Calm, bounded verification banner on every client page. */
body.app-body .verification-banner{margin:12px 18px 0!important;border:1px solid color-mix(in srgb,#e9a019 34%,var(--ui-border,#d9e2e6))!important;border-radius:14px!important;background:color-mix(in srgb,var(--ui-surface,#fff) 88%,#fff2c7 12%)!important;box-shadow:0 4px 16px rgba(80,60,20,.045)!important}
.dark-ui body.app-body .verification-banner{background:#1d1c16!important;border-color:#4b4328!important}
@media(max-width:620px){body.app-body .verification-banner{margin:8px 10px 0!important;border-radius:12px!important}}

/* Flat, clear secondary calls to action. */
body.app-body .referral-card{background:var(--ui-surface,#fff)!important;border-color:var(--ui-border,#d9e2e6)!important;box-shadow:none!important}
body.app-body .referral-card:hover{border-color:#f2a169!important;background:var(--ui-surface-2,#f7f9fa)!important}
.dark-ui body.app-body .referral-card{background:#121f25!important;border-color:#30424b!important}

/* v3.49.1 terminal drawer and remaining light-theme controls. */
html:not(.dark-ui) body.terminal-body .terminal-panel-scrim{
  background:rgba(30,42,50,.13)!important;
  backdrop-filter:blur(1px)!important;
}
html:not(.dark-ui) body.terminal-body .terminal-deposit{
  background:#fff3e9!important;
  color:#d95700!important;
  border:1px solid #ffc89f!important;
  box-shadow:none!important;
}
html:not(.dark-ui) body.terminal-body .terminal-deposit:hover{background:#ffe8d6!important;border-color:#ff9b55!important}
html:not(.dark-ui) body.terminal-body .terminal-user{color:#40535d!important}
html:not(.dark-ui) body.terminal-body :is(.instrument-panel-head button,.order-ticket-head>button){color:#40535d!important;background:transparent!important}
html:not(.dark-ui) body.terminal-body :is(.instrument-panel-head button,.order-ticket-head>button):hover{background:#edf2f4!important;color:#17242a!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-watchlist,.terminal-orders-table,.order-ticket,.terminal-chart-toolbar){scrollbar-color:#aebbc2 #f4f7f8!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-watchlist,.terminal-orders-table,.order-ticket,.terminal-chart-toolbar)::-webkit-scrollbar-track{background:#f4f7f8!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-watchlist,.terminal-orders-table,.order-ticket,.terminal-chart-toolbar)::-webkit-scrollbar-thumb{background:#aebbc2!important;border-color:#f4f7f8!important}
html:not(.dark-ui) body.terminal-body .terminal-close-order{color:#344750!important;border-color:#bac7cd!important;background:#fff!important}

/* v3.48.3 movable, dismissible AI launcher. */
.ai-launcher{
  position:fixed;
  right:24px;
  bottom:24px;
  width:62px;
  height:62px;
  z-index:210;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
}
.ai-launcher[hidden]{display:none!important}
body.app-body .ai-launcher .chat-button{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  height:100%!important;
  cursor:grab;
  touch-action:none!important;
}
.ai-launcher.is-dragging .chat-button{cursor:grabbing;transform:scale(.96)!important;transition:none!important}
.ai-launcher-dismiss{
  position:absolute;
  top:-7px;
  right:-7px;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  padding:0;
  border:2px solid #fff;
  border-radius:999px;
  background:#17242a;
  color:#fff;
  box-shadow:0 5px 14px rgba(15,23,42,.25);
  cursor:pointer;
  z-index:3;
}
.ai-launcher-dismiss svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round}
.ai-launcher-restore{
  position:fixed;
  right:0;
  bottom:112px;
  z-index:210;
  width:43px;
  min-height:46px;
  display:none;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:7px 5px;
  border:0;
  border-radius:14px 0 0 14px;
  background:linear-gradient(145deg,#ff7d1a,#f04f00);
  color:#fff;
  box-shadow:0 10px 28px rgba(255,106,0,.3);
  cursor:pointer;
}
.ai-launcher-restore.is-visible{display:flex}
.ai-launcher-restore svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ai-launcher-restore span{font-size:8px;font-weight:900}
.dark-ui .ai-launcher-dismiss{border-color:#0c171c;background:#eef4f6;color:#17242a}
.rtl-ui .ai-launcher{right:auto;left:24px}
.rtl-ui .ai-launcher-dismiss{right:auto;left:-7px}
.rtl-ui .ai-launcher-restore{right:auto;left:0;border-radius:0 14px 14px 0}
@media(max-width:640px){
  .ai-launcher{right:12px;bottom:12px;width:46px;height:46px}
  .rtl-ui .ai-launcher{right:auto;left:12px}
  body.app-body .ai-launcher .chat-button{gap:3px!important}
  body.app-body .ai-launcher .chat-button svg{width:20px;height:20px}
  body.app-body .ai-launcher .chat-button>span{font-size:8px}
  .ai-launcher-dismiss{top:-6px;right:-6px;width:22px;height:22px;border-width:1.5px}
  .ai-launcher-dismiss svg{width:10px;height:10px}
  .ai-launcher-restore{right:0;bottom:18px;width:36px;min-height:40px;padding:6px 4px}
  .ai-launcher-restore svg{width:17px;height:17px}
  .rtl-ui .ai-launcher-dismiss{right:auto;left:-6px}
  html.altprimefx-native-android body.app-body .ai-launcher{bottom:12px}
  html.altprimefx-native-android body.app-body .ai-launcher-restore{bottom:18px}
}
@media(prefers-reduced-motion:reduce){.ai-launcher .chat-button{transition:none!important}}

/* v3.47 — global polished selects, reliable mobile chrome and complete theme parity. */
.select-shell{min-width:0;max-width:100%;isolation:isolate}
.select-shell>select{position:absolute!important;inline-size:1px!important;block-size:1px!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.select-trigger{min-width:0;box-sizing:border-box;background:var(--ui-surface-2,#f8fafb);border-color:var(--ui-border,#d9e1e5);color:var(--ui-text,#17242a);box-shadow:0 1px 2px rgba(15,23,42,.025)}
.select-trigger-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.select-chevron{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;color:var(--ui-muted,#687983);border-radius:7px;transition:transform .16s ease,background .16s ease}
.select-chevron svg,.select-option-check svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.select-shell.open .select-chevron{transform:rotate(180deg);background:color-mix(in srgb,var(--ui-brand,#ff6a00) 10%,transparent);color:var(--ui-brand,#ff6a00)}
.select-trigger:after{display:none!important}
.select-menu{z-index:10040;background:var(--ui-surface,#fff);border-color:var(--ui-border,#d9e1e5);box-shadow:0 20px 54px rgba(15,23,42,.18)}
.select-shell.open-up .select-menu{top:auto;bottom:calc(100% + 7px)}
.select-option{min-width:0;text-align:inherit}
.select-option>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.select-option-check{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;border-radius:7px;background:var(--ui-brand-soft,#fff0e5);color:var(--ui-brand,#ff6a00);opacity:0}
.select-option[aria-selected="true"]:after{display:none!important}
.select-option[aria-selected="true"] .select-option-check{opacity:1}
.dark-ui .select-trigger,.dark-ui .select-menu{background:#14242b;color:#edf3f5;border-color:#334750}
.dark-ui .select-option[aria-selected="true"]{background:#342116;color:#ff9a52}
.filter-select .select-shell{min-width:142px}
.filter-select .select-trigger{min-height:32px;padding:5px 8px 5px 10px;border:0;background:transparent;box-shadow:none}
.filter-select .select-menu{min-width:190px;left:auto}
.withdrawal-account-select .select-shell,.performance-filter-card .select-shell,.workspace-filter-card .select-shell,.binance-deposit-create .select-shell{width:100%}

body.app-body .theme-button{color:var(--ui-text,#17242a)!important}
body.app-body .theme-button .theme-svg{display:block!important;width:19px!important;height:19px!important;overflow:visible;fill:none!important;stroke:currentColor!important}
body.app-body .theme-button :is(.theme-sun-core,.theme-rays,.theme-moon){stroke:currentColor!important;fill:none!important}
body.app-body .theme-button[data-theme-icon="sun"] :is(.theme-sun-core,.theme-rays){opacity:1!important}
body.app-body .theme-button[data-theme-icon="sun"] .theme-moon{opacity:0!important}
body.app-body .theme-button[data-theme-icon="moon"] :is(.theme-sun-core,.theme-rays){opacity:0!important}
body.app-body .theme-button[data-theme-icon="moon"] .theme-moon{opacity:1!important}
.dark-ui body.app-body .theme-button{color:#eef4f6!important}
.mobile-menu .menu-svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important}

/* Light terminal must be entirely light, including mobile docks and order areas. */
html:not(.dark-ui) body.terminal-body{background:#f3f6f8!important;color:#17242a!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-layout,.terminal-center){background:#f3f6f8!important;color:#17242a!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-topbar,.terminal-rail,.instrument-panel,.order-ticket,.terminal-chart-toolbar,.terminal-orders,.terminal-order-tabs,.terminal-statusbar,.chart-side-tools){background:#fff!important;color:#17242a!important;border-color:#d9e2e6!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-chart-wrap,.terminal-eod-chart,.tv-chart-host,.terminal-orders-table){background:#fff!important;color:#17242a!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-chart-toolbar button,.terminal-chart-toolbar span,.terminal-order-tabs button,.terminal-order-tabs a,.terminal-rail button,.terminal-rail a,.chart-side-tools button){color:#657680!important}
html:not(.dark-ui) body.terminal-body :is(.terminal-chart-toolbar button.active,.terminal-order-tabs button.active,.terminal-rail button.active){background:#fff1e7!important;color:#e85f00!important;border-color:#ffb985!important}
html:not(.dark-ui) body.terminal-body :is(.ticket-input,.ticket-prices button,.market-pending-tabs button,.ticket-order-summary span,.ticket-market-meta span,.terminal-search,.favorites-label){background:#f7f9fa!important;color:#17242a!important;border-color:#d9e2e6!important}
html:not(.dark-ui) body.terminal-body :is(input,textarea,select,.select-trigger,.select-menu){background:#fff!important;color:#17242a!important;border-color:#d9e2e6!important}
html:not(.dark-ui) body.terminal-body :is(.ticket-input input,.ticket-input button,.ticket-input span,.order-ticket-head button,.instrument-panel-head button,.terminal-empty,.terminal-account-balance-label b,.terminal-ohlc b,.ticket-order-summary b,.ticket-market-meta b){color:#31434c!important}
html:not(.dark-ui) body.terminal-body .terminal-orders-table :is(th,td){background:#fff!important;color:#263840!important;border-color:#e5ebee!important}
html:not(.dark-ui) body.terminal-body .terminal-orders-table th{background:#f7f9fa!important;color:#6c7b84!important}
html:not(.dark-ui) body.terminal-body .terminal-feed-badge.live{background:#e9f8ef!important;color:#11754a!important;border-color:#9ed9b9!important}
html:not(.dark-ui) body.terminal-body .terminal-ticket-reopen{background:#fff!important;color:#17242a!important;border-color:#d9e2e6!important}
html:not(.dark-ui) body.terminal-body .page-loading-overlay{background:rgba(244,247,248,.84)!important}

/* Verification and payment sheets stay compact and usable on short phones. */
.deposit-requirements-card{max-height:min(92dvh,720px);overflow:auto}
.withdrawal-modal{z-index:260!important}
.withdrawal-modal-card{height:auto}

@media(max-width:620px){
  body.app-body .topbar{height:58px!important;padding:0 10px!important;border-bottom-color:var(--ui-border,#dce4e8)!important}
  body.app-body .topbar .mobile-menu{width:40px!important;height:40px!important;min-width:40px!important;border-radius:13px!important;background:var(--ui-surface-2,#f4f6f8)!important;box-shadow:0 1px 2px rgba(15,23,42,.04)}
  body.app-body .mobile-brand{max-width:min(154px,45vw)!important;gap:8px!important;overflow:hidden}
  body.app-body .mobile-brand .brand-logo-wrap{width:34px!important;height:34px!important;flex:0 0 34px!important}
  body.app-body .mobile-brand>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px!important;letter-spacing:.08em!important}
  body.app-body .topbar-actions .icon-button{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;background:var(--ui-surface-2,#f4f6f8)!important}
  body.app-body .topbar-actions .apps-button{display:none!important}
  body.app-body .verification-banner{grid-template-columns:minmax(0,1fr) auto!important;padding:10px 12px!important;border-radius:0 0 14px 14px!important}
  body.app-body .verification-banner .verification-icon,body.app-body .verification-banner .btn-light{display:none!important}
  body.app-body .verification-banner strong{font-size:10px!important;line-height:1.35!important;-webkit-line-clamp:2}
  body.app-body .verification-banner .btn-primary{display:inline-flex!important;grid-column:auto!important;width:auto!important;min-width:72px!important;min-height:34px!important}
  .select-trigger{min-height:46px;padding:10px 11px 10px 13px;font-size:12px}
  .select-menu{position:fixed;left:12px!important;right:12px!important;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;max-height:min(420px,62dvh);padding:8px;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.3)}
  .select-option{min-height:48px;padding:10px 12px;border-radius:11px;font-size:13px}
  .filter-select{min-width:0!important;padding:4px 7px!important}
  .filter-select .select-shell{min-width:0;width:100%}
  .filter-select .select-trigger{min-height:32px;padding:4px 5px 4px 8px;font-size:11px}
  .filter-select .select-menu{min-width:0}
  .deposit-requirements-modal{padding:10px;align-items:end}
  .deposit-requirements-card{width:100%;padding:20px 17px calc(16px + env(safe-area-inset-bottom));border-radius:24px 24px 12px 12px}
  .deposit-requirements-icon{width:42px;height:42px;margin-bottom:12px;border-radius:13px}
  .deposit-requirements-card h2{font-size:22px;margin:5px 42px 7px 0}
  .deposit-requirements-card>p{font-size:11px;margin-bottom:13px}
  .deposit-requirements-list{gap:7px}.deposit-requirements-list>div{padding:9px 10px}.deposit-requirements-list>div>span{width:28px;height:28px}
  .deposit-requirements-list b{font-size:11px}.deposit-requirements-list small{font-size:9px}
  .deposit-requirements-actions{margin-top:14px;gap:7px}.deposit-requirements-actions .btn{min-height:42px;padding:9px 10px!important;font-size:10px!important}
  body.app-body.withdrawal-refined .withdrawal-modal{align-items:end!important;padding:6px 0 0!important}
  body.app-body.withdrawal-refined .withdrawal-modal-card{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 6px)!important;
    padding:0!important;
    border-radius:22px 22px 0 0!important;
    overflow:hidden!important;
  }
  body.app-body.withdrawal-refined .withdrawal-modal-head{gap:11px;padding:13px 14px 10px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-head .eyebrow{margin-bottom:3px;font-size:8.5px}
  body.app-body.withdrawal-refined .withdrawal-modal-head h2{margin:0!important;font-size:19px!important;line-height:1.15}
  body.app-body.withdrawal-refined .withdrawal-modal-head p{margin:3px 0 0!important;font-size:9px!important;line-height:1.35!important}
  body.app-body.withdrawal-refined .withdrawal-modal-close{width:32px!important;height:32px!important;border-radius:10px!important;font-size:20px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-form{min-height:0;overflow:hidden}
  body.app-body.withdrawal-refined .withdrawal-modal-scroll{padding:10px 14px 8px!important;overflow-y:auto!important}
  body.app-body.withdrawal-refined .withdrawal-available-strip{gap:9px;padding:8px 10px!important;margin-bottom:8px!important;border-radius:11px}
  body.app-body.withdrawal-refined .withdrawal-available-strip div>span{font-size:8px}
  body.app-body.withdrawal-refined .withdrawal-available-strip strong{margin-top:2px;font-size:16px!important}
  body.app-body.withdrawal-refined .withdrawal-secure-badge{max-width:108px;padding:5px 7px;overflow:hidden;text-overflow:ellipsis;font-size:8.5px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid{gap:7px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid label{gap:4px!important;font-size:9px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid input,
  body.app-body.withdrawal-refined .withdrawal-form-grid textarea{min-height:38px!important;padding:8px 10px!important;border-radius:9px!important;font-size:11px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid textarea{min-height:46px!important;max-height:54px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-scroll .method-instructions{margin-top:7px!important;padding:7px 9px!important;border-radius:9px;font-size:8.5px!important;line-height:1.35}
  body.app-body.withdrawal-refined .withdrawal-modal-footer{padding:7px 14px calc(8px + env(safe-area-inset-bottom))!important;gap:6px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-footer .withdraw-fee-preview{padding:6px 8px!important;border-radius:8px;font-size:8.5px!important;line-height:1.35}
  body.app-body.withdrawal-refined .withdrawal-submit-btn{min-height:40px!important;border-radius:9px;font-size:10px!important}
  html.altprimefx-native-android body.terminal-body{padding-bottom:0!important}
  html.altprimefx-native-android body.terminal-body .terminal-rail{bottom:7px!important}
}

@media(max-width:620px) and (max-height:650px){
  body.app-body.withdrawal-refined .withdrawal-modal-head{padding-block:11px 8px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-head p{display:none}
  body.app-body.withdrawal-refined .withdrawal-modal-scroll{padding-block:8px 6px!important}
}

/* v3.53 — readable, balanced withdrawal sheet on desktop and mobile. */
body.app-body.withdrawal-refined .withdrawal-modal,
body.app-body.withdrawal-refined .withdrawal-modal *{box-sizing:border-box}
body.app-body.withdrawal-refined .withdrawal-modal{overflow:hidden}
body.app-body.withdrawal-refined .withdrawal-modal-card{
  width:min(680px,calc(100vw - 32px));
  max-width:100%;
  max-height:min(92dvh,820px);
}
body.app-body.withdrawal-refined .withdrawal-modal-head{align-items:flex-start;padding:20px 22px 16px!important}
body.app-body.withdrawal-refined .withdrawal-modal-head .eyebrow{margin:0 0 5px;font-size:10px;line-height:1.25;letter-spacing:.12em}
body.app-body.withdrawal-refined .withdrawal-modal-head h2{font-size:25px!important;line-height:1.15;letter-spacing:-.025em}
body.app-body.withdrawal-refined .withdrawal-modal-head p{margin:5px 44px 0 0;font-size:12px!important;line-height:1.45}
body.app-body.withdrawal-refined .withdrawal-modal-close{width:38px!important;height:38px!important;border-radius:12px!important;font-size:22px!important}
body.app-body.withdrawal-refined .withdrawal-modal-scroll{padding:16px 22px 14px!important;overflow-x:hidden!important}
body.app-body.withdrawal-refined .withdrawal-available-strip{padding:12px 14px!important;margin-bottom:14px!important;border-radius:12px}
body.app-body.withdrawal-refined .withdrawal-available-strip div>span{font-size:10px;line-height:1.3;letter-spacing:.055em}
body.app-body.withdrawal-refined .withdrawal-available-strip strong{margin-top:3px;font-size:21px!important;line-height:1.2}
body.app-body.withdrawal-refined .withdrawal-secure-badge{max-width:48%;padding:6px 9px;font-size:10.5px!important;line-height:1.3;overflow:hidden;text-overflow:ellipsis}
body.app-body.withdrawal-refined .withdrawal-form-grid{gap:13px!important}
body.app-body.withdrawal-refined .withdrawal-form-grid label{min-width:0;gap:6px!important;font-size:12px!important;line-height:1.35}
body.app-body.withdrawal-refined .withdrawal-field-label{display:block;color:#344054;font-size:12px;font-weight:700;line-height:1.35}
body.app-body.withdrawal-refined .withdrawal-field-optional{color:#77848d;font-weight:600}
body.app-body.withdrawal-refined .withdrawal-form-grid input,
body.app-body.withdrawal-refined .withdrawal-form-grid textarea{
  display:block;
  min-width:0;
  min-height:46px!important;
  padding:11px 13px!important;
  border-radius:11px!important;
  font-family:inherit!important;
  font-size:14px!important;
  font-weight:500!important;
  line-height:1.4!important;
}
body.app-body.withdrawal-refined .withdrawal-form-grid textarea{min-height:58px!important;max-height:86px!important}
body.app-body.withdrawal-refined .withdrawal-form-grid :is(input,textarea)::placeholder{color:#7b848b;opacity:1;font-weight:500}
body.app-body.withdrawal-refined .withdrawal-modal-scroll .method-instructions{margin-top:12px!important;padding:10px 12px!important;border-radius:10px;font-size:11.5px!important;line-height:1.45}
body.app-body.withdrawal-refined .withdrawal-modal-scroll .method-instructions:empty{display:none}
body.app-body.withdrawal-refined .withdrawal-modal-footer{padding:12px 22px calc(12px + env(safe-area-inset-bottom))!important;gap:10px!important}
body.app-body.withdrawal-refined .withdrawal-modal-footer .withdraw-fee-preview{padding:9px 11px!important;border-radius:10px;font-size:11.5px!important;line-height:1.4}
body.app-body.withdrawal-refined .withdrawal-submit-btn{min-height:46px!important;border-radius:11px;font-size:13px!important;font-weight:750}
.dark-ui body.app-body.withdrawal-refined .withdrawal-field-label{color:#d1dbe0}
.dark-ui body.app-body.withdrawal-refined .withdrawal-field-optional{color:#92a2aa}
.dark-ui body.app-body.withdrawal-refined .withdrawal-form-grid :is(input,textarea)::placeholder{color:#87979f}

@media(max-width:620px){
  body.app-body.withdrawal-refined .withdrawal-modal{padding:6px 0 0!important;overflow:hidden!important}
  body.app-body.withdrawal-refined .withdrawal-modal-card{
    width:100%!important;
    max-width:100%!important;
    max-height:calc(100dvh - 6px)!important;
    border-radius:20px 20px 0 0!important;
  }
  body.app-body.withdrawal-refined .withdrawal-modal-head{padding:14px 16px 12px!important;gap:12px}
  body.app-body.withdrawal-refined .withdrawal-modal-head .eyebrow{margin-bottom:4px;font-size:9.5px}
  body.app-body.withdrawal-refined .withdrawal-modal-head h2{font-size:22px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-head p{margin:4px 0 0!important;font-size:11px!important;line-height:1.4!important}
  body.app-body.withdrawal-refined .withdrawal-modal-close{width:36px!important;height:36px!important;font-size:21px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-scroll{padding:12px 16px 10px!important}
  body.app-body.withdrawal-refined .withdrawal-available-strip{align-items:center;gap:10px;padding:10px 12px!important;margin-bottom:11px!important}
  body.app-body.withdrawal-refined .withdrawal-available-strip div>span{font-size:9.5px}
  body.app-body.withdrawal-refined .withdrawal-available-strip strong{font-size:20px!important}
  body.app-body.withdrawal-refined .withdrawal-secure-badge{max-width:46%;padding:6px 8px;font-size:10px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid{grid-template-columns:1fr;gap:9px!important}
  body.app-body.withdrawal-refined .withdrawal-field-wide{grid-column:auto}
  body.app-body.withdrawal-refined .withdrawal-form-grid label{gap:5px!important}
  body.app-body.withdrawal-refined .withdrawal-field-label{font-size:11.5px}
  body.app-body.withdrawal-refined .withdrawal-form-grid input,
  body.app-body.withdrawal-refined .withdrawal-form-grid textarea{min-height:44px!important;padding:10px 12px!important;border-radius:10px!important;font-size:14px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid textarea{min-height:52px!important;max-height:64px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-scroll .method-instructions{margin-top:9px!important;padding:8px 10px!important;font-size:11px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-footer{grid-template-columns:1fr;padding:9px 16px calc(10px + env(safe-area-inset-bottom))!important;gap:7px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-footer .withdraw-fee-preview{padding:8px 10px!important;font-size:11px!important}
  body.app-body.withdrawal-refined .withdrawal-submit-btn{width:100%;min-width:0;min-height:44px!important;font-size:13px!important}
}

@media(max-width:620px) and (max-height:650px){
  body.app-body.withdrawal-refined .withdrawal-modal-head{padding-block:11px 9px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-head p{display:none}
  body.app-body.withdrawal-refined .withdrawal-modal-scroll{padding-block:9px 7px!important}
  body.app-body.withdrawal-refined .withdrawal-available-strip{padding-block:8px!important;margin-bottom:8px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid{gap:7px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid input,
  body.app-body.withdrawal-refined .withdrawal-form-grid textarea{min-height:41px!important;padding-block:8px!important}
  body.app-body.withdrawal-refined .withdrawal-form-grid textarea{min-height:46px!important}
  body.app-body.withdrawal-refined .withdrawal-modal-footer{padding-top:7px!important;gap:6px!important}
}

/* Direct, single-purpose email verification screen. */
.email-verify-body{min-height:100svh;background:linear-gradient(145deg,#f5f7f9,#eef2f4);color:#17242a}
.email-verify-layout{min-height:100svh;display:grid;place-items:center;padding:72px 18px 28px;box-sizing:border-box}
.email-verify-card{width:min(100%,480px);box-sizing:border-box;padding:30px;border:1px solid #dce4e8;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(16,32,40,.12)}
.email-verify-brand{display:inline-flex;margin-bottom:24px}
.email-verify-icon{width:54px;height:54px;display:grid;place-items:center;margin-bottom:17px;border-radius:17px;background:#fff0e5;color:#ec6200}
.email-verify-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.email-verify-card h1{margin:7px 0 8px;font-size:32px;letter-spacing:-.045em}
.email-verify-card>p{margin:0 0 20px;color:#667780;line-height:1.55}.email-verify-card>p strong{display:block;margin-top:3px;color:#263841;overflow-wrap:anywhere}
.email-code-form{display:grid;gap:9px;margin-top:17px}.email-code-form label{font-size:11px;font-weight:750;color:#40515a}
.email-code-form .otp-input{width:100%;height:58px;box-sizing:border-box;border:1px solid #d8e0e4;border-radius:13px;background:#f9fbfc;color:#17242a;text-align:center;font-size:24px;font-weight:800;letter-spacing:.28em;padding-left:.28em;outline:none}
.email-code-form .otp-input:focus{border-color:#ff7920;box-shadow:0 0 0 4px rgba(255,106,0,.11);background:#fff}
.email-code-form .btn{height:50px;margin-top:3px;border-radius:12px}
.email-verify-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.email-verify-actions form{margin:0}.email-verify-actions .btn{min-height:40px}.email-verify-actions>a{font-size:11px;color:#667780;font-weight:700}
.email-verify-help{display:block;margin-top:20px;padding-top:16px;border-top:1px solid #e7ecef;color:#839199;line-height:1.5}
.profile-email-direct{min-height:40px;white-space:nowrap;font-size:10px}
.dark-ui .email-verify-body{background:linear-gradient(145deg,#071319,#0c1b22);color:#edf4f7}.dark-ui .email-verify-card{background:#111e24;border-color:#2d4049;box-shadow:0 28px 80px rgba(0,0,0,.42)}.dark-ui .email-verify-card>p,.dark-ui .email-verify-actions>a,.dark-ui .email-verify-help{color:#9babb3}.dark-ui .email-code-form label{color:#cad5da}.dark-ui .email-code-form .otp-input{background:#17262d;border-color:#354952;color:#fff}.dark-ui .email-code-form .otp-input:focus{background:#192a31}.dark-ui .email-verify-help{border-color:#2c3e46}

@media(max-width:620px){
  .email-verify-layout{align-items:center;padding:68px 12px 20px}
  .email-verify-card{padding:22px 18px;border-radius:21px}
  .email-verify-brand{margin-bottom:20px}.email-verify-icon{width:46px;height:46px;margin-bottom:14px;border-radius:14px}.email-verify-card h1{font-size:27px}.email-verify-card>p{font-size:12px}
  .email-verify-actions{display:grid;grid-template-columns:1fr;text-align:center}.email-verify-actions .btn{width:100%}.email-verify-actions>a{padding:8px}
  .profile-page-title h1{font-size:25px!important}.profile-page-title p{font-size:11px!important;line-height:1.5!important}
  .profile-identity-main h2{font-size:17px!important}.profile-essential-fields{grid-template-columns:1fr!important}
  .profile-email-direct{grid-column:1/-1;width:100%;justify-content:center}
}

/* v3.48.2 final cascade guards: these intentionally follow all earlier mobile rules. */
@media(max-width:620px){
  body.app-body .select-menu{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 7px)!important;bottom:auto!important;max-height:min(270px,42dvh)!important;padding:6px!important;border-radius:13px!important;box-shadow:0 15px 38px rgba(15,23,42,.2)!important}
  body.app-body .select-shell.open-up .select-menu{top:auto!important;bottom:calc(100% + 7px)!important}
  body.app-body .filter-select .select-menu{left:0!important;right:0!important;min-width:100%!important}
}
@media(max-width:760px){
  html.altprimefx-native-android body.terminal-body .terminal-rail{position:sticky!important;left:auto!important;right:auto!important;top:58px!important;bottom:auto!important;width:100%!important;height:46px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:3px!important;padding:3px 6px!important;border:0!important;border-bottom:1px solid #304048!important;border-radius:0!important;background:#111d22!important;box-shadow:none!important;backdrop-filter:none!important;overflow-x:auto!important}
  html.altprimefx-native-android body.terminal-body .terminal-rail :is(button,a){flex:0 0 44px!important;width:44px!important;height:40px!important;display:grid!important;place-items:center!important;border-radius:8px!important;font-size:15px!important}
  html.altprimefx-native-android body.terminal-body .terminal-rail :is(button,a)::after{display:none!important}
  html.altprimefx-native-android body.terminal-body .terminal-center{padding-bottom:0!important}
  html.altprimefx-native-android body.terminal-body .instrument-panel{top:104px!important;bottom:0!important}
  html.altprimefx-native-android body.terminal-body .terminal-layout:not(.watchlist-collapsed) .terminal-panel-scrim{inset:104px 0 0!important}
  html.altprimefx-native-android body.terminal-body .order-ticket{bottom:0!important}
  html:not(.dark-ui).altprimefx-native-android body.terminal-body .terminal-rail{background:#fff!important;border-bottom-color:#d9e2e6!important}
}
