/* Mizora Pro — focused phone workspace. Activate only after the controller is
   ready. Desktop, account policy, data authority and order handlers stay intact. */
.mz-mobile-nav,.mz-mobile-heading,.mz-mobile-account,.mz-mobile-more,
.mz-mobile-bbo,.mz-mobile-order{display:none}

@media(max-width:1024px){
  body:has(#T.mz-mobile-ready:not(.dojo-on):not(.streak-active)){overflow:hidden}
  #T.mz-mobile-ready:not(.dojo-on):not(.streak-active){
    --mz-nav-height:64px;--mz-quick-height:80px;
    display:flex;flex-direction:column;gap:0;min-height:0;
    height:calc(var(--mz-mobile-height,100dvh) - var(--anb,0px));
    padding:0 12px calc(var(--mz-nav-height) + env(safe-area-inset-bottom));
    overflow:hidden;
  }
  #T.mz-mobile-ready>.st{display:none}
  #T.mz-mobile-ready>header.top{flex:0 0 auto;min-height:62px;gap:8px;flex-wrap:nowrap;padding:8px 2px;border-bottom:1px solid var(--l);margin:0}
  #T.mz-mobile-ready>header.top .brand{flex:0 0 auto;gap:0;padding:0}
  #T.mz-mobile-ready>header.top .brand .bmk{width:28px;height:28px}
  #T.mz-mobile-ready>header.top .brand>b,#T.mz-mobile-ready>header.top .brand>em,
  #T.mz-mobile-ready>header.top #tnav,#T.mz-mobile-ready>header.top #openCmd,
  #T.mz-mobile-ready>header.top #clientBtn,#T.mz-mobile-ready>header.top #mizoraCopierOpen,
  #T.mz-mobile-ready>header.top #mizoraPointsLink,#T.mz-mobile-ready>header.top #rulesBtn{display:none}
  #T.mz-mobile-ready>header.top .acct{order:0;flex:1 1 auto;min-width:0;width:auto;height:44px;margin:0;background:none;border:0;border-radius:0;overflow:visible}
  #T.mz-mobile-ready>header.top .acct>div{display:none}
  #T.mz-mobile-ready>header.top .acct>.sel{display:flex;width:100%;min-width:0;max-width:none;height:44px;padding:0 4px;border:0;justify-content:flex-start;border-radius:8px}
  #T.mz-mobile-ready>header.top .acct>.sel>div{min-width:0;flex:1}
  #T.mz-mobile-ready>header.top .acct>.sel b{font-size:12px;max-width:100%;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #T.mz-mobile-ready>header.top .acct>.sel span{font-size:9px;margin-bottom:2px}
  #T.mz-mobile-ready>header.top .acct .dot{width:5px;height:5px;box-shadow:none;flex:0 0 auto}
  #T.mz-mobile-ready>header.top #themeBtn,#T.mz-mobile-ready>header.top #meBtn{display:grid;flex:0 0 44px;width:44px!important;height:44px!important;min-width:44px;padding:0;place-items:center}
  #T.mz-mobile-ready>header.top #getFunded{margin-left:auto;min-height:44px;height:44px;padding:0 12px;font-size:11px;box-shadow:none}
  #T.mz-mobile-ready>header.top #authOut{font-size:12px;min-height:44px;align-items:center}
  #T.mz-mobile-ready .mz-mobile-heading{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:12px 2px 14px;outline:0}
  .mz-mobile-heading h1{font:600 25px/1.15 var(--ui);letter-spacing:-.045em;color:var(--ink)}
  .mz-mobile-primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 14px;border-radius:10px;background:var(--fill);color:#fff;font-size:12px;font-weight:600;white-space:nowrap}
  .mz-mobile-primary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  #T.mz-mobile-ready:not([data-mobile-screen="trade"]):not([data-mobile-screen="chart"]) #mzMobileNewOrder{display:none}
  #T.mz-mobile-ready:not([data-mobile-product="trade"]):not([data-mobile-product="dock"]) #mzMobileHeading{display:none}
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"] #mzMobileHeading{min-height:56px;padding:6px 2px}
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"] #mzMobileHeading h1{font-size:20px}
  #T.mz-mobile-ready[data-mobile-product="trade"]:where(:not(.dojo-on):not(.streak-active))>:is(.wl,.ch,.side,.dock,.sig){display:none}
  #T.mz-mobile-ready[data-mobile-product="trade"][data-mobile-screen="quotes"]>.wl,
  #T.mz-mobile-ready[data-mobile-product="trade"][data-mobile-screen="chart"]>.ch,
  #T.mz-mobile-ready[data-mobile-product="trade"][data-mobile-screen="trade"]>.dock,
  #T.mz-mobile-ready[data-mobile-product="trade"][data-mobile-screen="history"]>.dock,
  #T.mz-mobile-ready[data-mobile-product="dock"]>.dock{display:flex;flex:1 1 auto;height:auto;min-height:0;margin-bottom:10px}
  #T.mz-mobile-ready[data-mobile-product="dock"]>:is(.wl,.ch,.side,.sig){display:none}
  #T.mz-mobile-ready:not([data-mobile-product="trade"])> :is(.VW.on,.OF){flex:1 1 auto;min-height:0;overflow:auto;margin-bottom:10px}
  #T.mz-mobile-ready[data-mobile-product="trade"][data-mobile-screen="trade"]>#mzMobileAccount{display:grid}
  #T.mz-mobile-ready[data-mobile-product="trade"][data-mobile-screen="more"]>#mzMobileMore{display:block}

  /* Five stable destinations; never a horizontally scrolling bottom bar. */
  #T.mz-mobile-ready>.mz-mobile-nav{position:fixed;z-index:65;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));inset:auto 0 0;min-height:calc(64px + env(safe-area-inset-bottom));padding:4px max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));border-top:1px solid var(--l2);background:var(--p);box-shadow:0 -4px 24px color-mix(in srgb,var(--bg) 32%,transparent)}
  .mz-mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;min-height:56px;border-radius:10px;color:var(--faint);font:500 10px/1.25 var(--ui);letter-spacing:.005em;touch-action:manipulation}
  .mz-mobile-nav button svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
  .mz-mobile-nav button[aria-current="page"],.mz-mobile-nav button.on{color:var(--red);background:var(--ra)}
  .mz-mobile-nav button:active{background:var(--hov)}

  /* Quotes keep true venue prices and a separate status in each row. */
  #T.mz-mobile-ready>.wl{border-radius:12px}
  #T.mz-mobile-ready>.wl>.ph{display:none}
  #T.mz-mobile-ready>.wl>.ph h4{font-size:10px}
  #T.mz-mobile-ready #wlAdd{min-width:44px;min-height:44px;margin-right:-8px}
  #T.mz-mobile-ready .wl-f{padding:9px 10px;gap:5px;scrollbar-width:none}
  #T.mz-mobile-ready .wl-f button{height:40px;min-width:44px;padding:0 12px;font-size:11px}
  #T.mz-mobile-ready .market-search{min-height:50px}
  #T.mz-mobile-ready #wlSearch{font-size:16px;min-height:44px}
  #T.mz-mobile-ready .wl-l{padding-bottom:0;mask-image:none;-webkit-mask-image:none;overscroll-behavior:contain;scroll-padding:8px}
  #T.mz-mobile-ready .wr{min-height:76px;padding:12px;column-gap:9px;row-gap:4px;contain-intrinsic-size:auto 102px}
  #T.mz-mobile-ready .wr .s{font-size:15px;line-height:1.3}
  #T.mz-mobile-ready .wr .n{font-size:10px;line-height:1.3}
  #T.mz-mobile-ready .wr .p{font-size:15px;line-height:1.3}
  #T.mz-mobile-ready .wr .c{font-size:10px}
  #T.mz-mobile-ready .wr svg.sp{width:34px}
  #T.mz-mobile-ready .wr .mz-mobile-bbo{grid-column:2/-1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:5px;padding-top:8px;border-top:1px solid var(--l)}
  .mz-mobile-bbo>span{display:flex;align-items:baseline;justify-content:space-between;gap:4px;color:var(--faint);font-size:9px;white-space:nowrap}
  .mz-mobile-bbo b{color:var(--ink);font:500 12px/1.2 var(--mono);font-variant-numeric:tabular-nums}

  /* Chart owns the available height; all toolbar actions remain touchable. */
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"]>.ch{margin-top:10px;margin-bottom:calc(var(--mz-quick-height) + 8px)}
  #T.mz-mobile-ready .ch-h{flex-wrap:nowrap;gap:8px;min-height:58px;padding:8px 10px}
  #T.mz-mobile-ready .ch-h .sym{min-width:0;flex:1 1 auto;padding:0;min-height:42px}
  #T.mz-mobile-ready .ch-h .sym .tx{min-width:0}
  #T.mz-mobile-ready .ch-h .sym .tx b{font-size:13px;white-space:nowrap}
  #T.mz-mobile-ready .ch-h .sym .tx>span{font-size:9px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #T.mz-mobile-ready .ch-h .sym .mzp-trigger-key{margin-left:0;gap:0}
  #T.mz-mobile-ready .ch-h .sym kbd{display:none}
  #T.mz-mobile-ready .ch-h .bigpx{margin-left:auto;font-size:17px;white-space:nowrap}
  #T.mz-mobile-ready .ch-h .chg{font-size:10px;padding:3px 5px;white-space:nowrap}
  #T.mz-mobile-ready .ch-t{overflow-x:auto;overflow-y:hidden;gap:5px;min-height:54px;padding:5px 8px;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}
  #T.mz-mobile-ready .ch-t::-webkit-scrollbar{display:none}
  #T.mz-mobile-ready .ch-t .seg button{height:42px;min-width:44px;font-size:11px;padding:0 10px}
  #T.mz-mobile-ready .ch-t .ddb,#T.mz-mobile-ready .ch-t .ib{height:44px;min-height:44px;min-width:44px}
  #T.mz-mobile-ready .ch-t .rgt{margin-left:0}
  #T.mz-mobile-ready .ch-t .dd.open .ddp{position:fixed;top:auto;bottom:calc(156px + env(safe-area-inset-bottom));left:12px;right:12px;min-width:0;max-height:calc(var(--mz-mobile-height,100dvh) - 220px);overflow:auto;z-index:70}
  #T.mz-mobile-ready .ch-t .ddp button{min-height:44px;height:auto;padding:10px 12px}
  #T.mz-mobile-ready .mz-lighter-quote-strip{gap:14px;flex-wrap:nowrap;min-height:36px;padding:7px 10px;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
  #T.mz-mobile-ready .mz-lighter-quote-strip>*{flex:0 0 auto}
  #T.mz-mobile-ready .mz-lighter-quote-strip>strong{order:-2;margin-left:0;font-size:10px}
  #T.mz-mobile-ready .mz-lighter-quote-strip>span:has([data-lighter="age"]){order:-1}
  /* Chart prices and live SL/TP controls remain; repeated size/risk prose lives
     in the Trade card and Account rules instead of covering the candles. */
  #T.mz-mobile-ready .bkp{gap:4px;padding-left:6px;font-size:10px}
  #T.mz-mobile-ready .bkp>b{font-size:9px;letter-spacing:.035em}
  #T.mz-mobile-ready .bkp.ent .sz,#T.mz-mobile-ready .bkp.lvl .rd,
  #T.mz-mobile-ready .bkp.rlp .rm{display:none}
  #T.mz-mobile-ready .bkp .np{font-size:8px;padding:2px 4px;letter-spacing:.015em}
  #T.mz-mobile-ready .bkbar{max-width:calc(100% - 16px);flex-wrap:wrap;gap:6px;padding:8px;font-size:10px}
  #T.mz-mobile-ready .bkbar button{min-height:36px;padding:0 10px}
  #T.mz-mobile-ready .bkbar kbd{display:none}
  #T.mz-mobile-ready .lbl{right:84px;overflow:hidden;white-space:nowrap}
  #T.mz-mobile-ready .lbl>*:nth-child(n+3){display:none}
  #T.mz-mobile-ready .cw{min-height:120px;overflow:hidden}
  #T.mz-mobile-ready .cm{min-height:80px}
  #T.mz-mobile-ready .cs{min-height:45px;flex-basis:24%}
  #T.mz-mobile-ready>.qbar{display:none;position:fixed;z-index:59;left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom));min-height:80px;align-items:stretch;border:1px solid var(--l2);border-bottom:0;background:var(--p);grid-template-columns:minmax(0,1fr) minmax(132px,1.15fr) minmax(0,1fr);gap:5px;padding:8px;border-radius:12px 12px 0 0;box-shadow:none}
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"]:where(:not(.mz-mobile-keyboard):not(.dojo-on):not(.streak-active):not(.fs))>.qbar{display:grid}
  #T.mz-mobile-ready .qbar>button{display:flex;flex-direction:column;justify-content:center;border-radius:11px;text-align:left;touch-action:manipulation}
  #T.mz-mobile-ready .qbar>button>span{font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;opacity:.85}
  #T.mz-mobile-ready .qbar>.sl{background:var(--fill);color:#fff}
  #T.mz-mobile-ready .qbar>.by{background:var(--buy1);color:#fff;align-items:flex-end;text-align:right}
  #T.mz-mobile-ready .qbar .qpx{font:600 20px/1 var(--mono);white-space:nowrap;font-variant-numeric:tabular-nums}
  #T.mz-mobile-ready .qbar .qpx small{opacity:.85;letter-spacing:-.02em}
  #T.mz-mobile-ready .qbar .qpx sup{font-size:12px;vertical-align:top;margin-left:1px;position:relative;top:1px}
  #T.mz-mobile-ready .qbar .sl,#T.mz-mobile-ready .qbar .by{min-width:0;min-height:62px;height:62px;padding:0 8px}
  #T.mz-mobile-ready .qbar .qpx{font-size:20px;max-width:100%;letter-spacing:-.035em}
  #T.mz-mobile-ready .qbar .qpx small{font-size:12px}
  #T.mz-mobile-ready .qvol{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;height:62px;position:relative;border:1px solid var(--l2);border-radius:11px;background:var(--bg);overflow:hidden}
  #T.mz-mobile-ready .qvol [data-qd]{display:none}
  #T.mz-mobile-ready .qvv{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;border:0;gap:0}
  #T.mz-mobile-ready .qbar #qSzV{display:block;border-radius:0;background:none;color:var(--ink);font:600 13px/1.1 var(--mono);text-align:center;white-space:nowrap;width:100%;min-height:44px;height:44px;padding:0 5px;font-size:13px}
  #T.mz-mobile-ready .qbar #qMode{position:absolute;display:block;background:none;color:var(--faint);font:600 9px/12px var(--ui);letter-spacing:.1em;text-transform:uppercase;top:4px;left:0;right:0;min-height:0;height:12px;padding:0;opacity:1;pointer-events:none;line-height:12px}
  #T.mz-mobile-ready .qbar #qSpr{position:absolute;font:500 9px/1 var(--mono);color:var(--faint);white-space:nowrap;bottom:4px;left:0;right:0;text-align:center;font-size:9px;pointer-events:none}
  #T.mz-mobile-ready .qbar .qv{max-width:100%;min-height:24px;font-size:12px;overflow:hidden;text-overflow:ellipsis}
  #T.mz-mobile-ready .qvi{font-size:16px;min-height:36px;max-width:100%}
  #T.mz-mobile-ready .qbar .qm{min-height:20px;font-size:9px}
  #T.mz-mobile-ready.mz-mobile-keyboard>.ch{margin-bottom:8px}

  /* The Trade screen presents account numbers and the existing keyed rows. */
  .mz-mobile-account{grid-template-columns:1fr auto;gap:12px;flex:0 0 auto;padding:16px;margin:0 0 12px;border:1px solid var(--l2);border-radius:12px;background:var(--p)}
  .mz-mobile-account>div{min-width:0;display:flex;flex-direction:column;gap:6px}
  .mz-mobile-account>div>span{font-size:10px;color:var(--faint)}
  .mz-mobile-account strong{font-size:23px;line-height:1.1;font-weight:550;letter-spacing:-.045em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .mz-mobile-account .mz-mobile-pnl{text-align:right;align-self:end}
  .mz-mobile-account .mz-mobile-pnl strong{font-size:17px;letter-spacing:-.02em}
  .mz-mobile-account dl{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px;border-top:1px solid var(--l)}
  .mz-mobile-account dl>div{display:flex;flex-direction:column;gap:3px;min-width:0}
  .mz-mobile-account dl>div:last-child{text-align:right}
  .mz-mobile-account-rules{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;width:100%;margin-top:0;padding:8px 0 0;border-top:1px solid var(--l);font-size:12px;color:var(--dim);text-align:left}
  .mz-mobile-account-rules svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
  .mz-mobile-account dt{font-size:10px;color:var(--faint)}
  .mz-mobile-account dd{font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  #T.mz-mobile-ready>.dock{border:0;border-radius:0;background:none;box-shadow:none;overflow:hidden}
  #T.mz-mobile-ready #dockT{padding:0 0 10px;height:54px;min-height:54px;border:0;gap:4px;overflow-x:auto;scrollbar-width:none}
  #T.mz-mobile-ready #dockT>.tab{min-height:44px;padding:0 13px;font-size:12px}
  #T.mz-mobile-ready[data-mobile-screen="trade"] #dockT>.tab:not([data-d="pos"]):not([data-d="ord"]),
  #T.mz-mobile-ready #dockT>.vr{display:none}
  #T.mz-mobile-ready #dockT>.r{margin-left:auto}
  #T.mz-mobile-ready #flat{min-height:44px;padding:0 10px;font-size:10px;white-space:nowrap}
  #T.mz-mobile-ready[data-mobile-screen="history"] #dockT,
  #T.mz-mobile-ready[data-mobile-product="dock"] #dockT{display:none}
  #T.mz-mobile-ready #dk{min-width:0;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:auto;overscroll-behavior:contain;scroll-padding:12px;padding-bottom:8px}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] table.g,
  #T.mz-mobile-ready #dk[data-mobile-dock="ord"] table.g,
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] table.g{display:block;table-layout:auto;min-width:0!important;width:100%;border-collapse:separate}
  #T.mz-mobile-ready #dk:is([data-mobile-dock="pos"],[data-mobile-dock="ord"],[data-mobile-dock="his"]) table.g>thead{display:none}
  #T.mz-mobile-ready #dk:is([data-mobile-dock="pos"],[data-mobile-dock="ord"],[data-mobile-dock="his"]) table.g>tbody{display:grid;gap:10px}
  #T.mz-mobile-ready #dk:is([data-mobile-dock="pos"],[data-mobile-dock="ord"],[data-mobile-dock="his"]) table.g tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 8px;padding:14px 12px;border:1px solid var(--l2);border-radius:12px;background:var(--p);min-width:0}
  #T.mz-mobile-ready #dk:is([data-mobile-dock="pos"],[data-mobile-dock="ord"],[data-mobile-dock="his"]) :where(table.g) td{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;width:auto!important;min-width:0;height:auto;padding:0;border:0;text-align:left;white-space:normal;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  #T.mz-mobile-ready #dk:is([data-mobile-dock="pos"],[data-mobile-dock="ord"],[data-mobile-dock="his"]) td[data-label]::before{content:attr(data-label);font-size:9px;line-height:1.3;color:var(--faint);font-weight:400}
  #T.mz-mobile-ready #dk .nt{gap:7px;max-width:100%;align-items:center}
  #T.mz-mobile-ready #dk .nt>b{font-size:13px;line-height:1.25;white-space:normal}
  #T.mz-mobile-ready #dk .nt .cn{width:23px;height:23px;flex:0 0 23px;border-radius:50%}
  #T.mz-mobile-ready #dk .sd{font-size:9px;line-height:1.4;padding:3px 7px}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(1),
  #T.mz-mobile-ready #dk[data-mobile-dock="ord"] td:nth-child(1){grid-column:1/3;grid-row:1;align-self:center}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(2),
  #T.mz-mobile-ready #dk[data-mobile-dock="ord"] td:nth-child(2){grid-column:3;grid-row:1;align-items:flex-end;justify-content:center}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(-n+2)::before,
  #T.mz-mobile-ready #dk[data-mobile-dock="ord"] td:nth-child(-n+2)::before{display:none}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(3){grid-column:1;grid-row:2}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(4){grid-column:2;grid-row:2}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(5){grid-column:3;grid-row:2}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(6){grid-column:1;grid-row:3}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(7){grid-column:2/4;grid-row:3;align-items:flex-end}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(7)>b{font-size:20px;line-height:1.1;letter-spacing:-.03em;font-weight:550}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(8){grid-column:1/-1;padding-top:12px;border-top:1px solid var(--l)}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(9){grid-column:1/-1;flex-direction:row;justify-content:flex-end;gap:7px;padding-top:2px}
  #T.mz-mobile-ready #dk[data-mobile-dock="pos"] td:nth-child(9)::before{display:none}
  #T.mz-mobile-ready #dk .bkg{width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #T.mz-mobile-ready #dk .bkadd,#T.mz-mobile-ready #dk .bkv,#T.mz-mobile-ready #dk .bki{min-height:44px;height:44px;min-width:0;font-size:12px}
  #T.mz-mobile-ready #dk .bki{font-size:16px}
  #T.mz-mobile-ready #dk .bkdl{min-width:44px;width:44px;min-height:44px;height:44px}
  #T.mz-mobile-ready #dk .xb,#T.mz-mobile-ready #dk .tshb{min-height:44px;min-width:44px;padding:0 13px;font-size:12px;border-radius:8px}
  #T.mz-mobile-ready #dk[data-mobile-dock="ord"] td:last-child{grid-column:1/-1;align-items:flex-end}
  #T.mz-mobile-ready #dk[data-mobile-dock="ord"] td:last-child::before{display:none}
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] td:nth-child(1){grid-column:1/-1;grid-row:2;font-size:10px;color:var(--faint)}
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] td:nth-child(2){grid-column:1/3;grid-row:1}
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] td:nth-child(3){grid-column:3;grid-row:1;align-items:flex-end}
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] td:nth-child(-n+3)::before{display:none}
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] td:nth-child(6){align-items:flex-end}
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] td:nth-child(7){grid-column:1/-1;align-items:flex-end}
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] td:nth-child(7):empty{display:none}
  #T.mz-mobile-ready #dk[data-mobile-dock="his"] td:nth-child(7)::before{display:none}
  #T.mz-mobile-ready #dk[data-mobile-dock="cal"],#T.mz-mobile-ready #dk[data-mobile-dock="mv"]{overflow-x:auto}
  #T.mz-mobile-ready #dk .empty{min-height:200px;padding:32px 24px;text-align:center}
  #T.mz-mobile-ready #dk .empty>span{max-width:28ch;font-size:12px;line-height:1.5}
  #T.mz-mobile-ready #dk .empty>a{min-height:44px;display:inline-flex;align-items:center}

  /* More holds the existing product routes; it does not create new authority. */
  .mz-mobile-more{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 0 16px}
  .mz-mobile-more h2{margin:8px 3px 9px;color:var(--faint);font-size:10px;font-weight:550;letter-spacing:.07em;text-transform:uppercase}
  .mz-mobile-more h2:not(:first-child){margin-top:24px}
  .mz-mobile-menu{border:1px solid var(--l2);border-radius:12px;overflow:hidden;background:var(--p)}
  .mz-mobile-menu button{display:flex;align-items:center;gap:12px;min-height:60px;width:100%;padding:12px 16px;color:var(--ink);text-align:left;touch-action:manipulation}
  .mz-mobile-menu button+button{border-top:1px solid var(--l)}
  .mz-mobile-menu button>svg{width:21px;height:21px;fill:none;stroke:var(--dim);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
  .mz-mobile-menu button>span{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0;font-size:14px;line-height:1.3}
  .mz-mobile-menu small{font-size:10px;color:var(--faint)}
  .mz-mobile-menu button::after{content:'';width:6px;height:6px;border-top:1.5px solid var(--faint);border-right:1.5px solid var(--faint);transform:rotate(45deg);flex-shrink:0}
  .mz-mobile-menu button:active{background:var(--hov)}
  .mz-mobile-menu button:disabled{opacity:.45;cursor:not-allowed}

  /* A native focused ticket: the single existing ticket node moves here. */
  #mzMobileOrder[open]{position:fixed;inset:0;display:flex;flex-direction:column;width:100vw;max-width:100vw;height:var(--mz-mobile-height,100dvh);max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:var(--p);color:var(--ink);overflow:hidden;font-family:var(--ui);overscroll-behavior:contain}
  #mzMobileOrder::backdrop{background:color-mix(in srgb,var(--bg) 70%,transparent)}
  .mz-mobile-order-heading{display:flex;align-items:center;flex:0 0 auto;gap:8px;min-height:64px;padding:8px 12px;border-bottom:1px solid var(--l2);background:var(--p)}
  .mz-mobile-order-heading>button{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid var(--l2);border-radius:10px}
  .mz-mobile-order-heading svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .mz-mobile-order-heading h2{font-size:18px;line-height:1.2;font-weight:550;letter-spacing:-.035em}
  .mz-mobile-order-heading>span{margin-left:auto;color:var(--faint);font-size:9px;max-width:76px;text-align:right}
  #mzMobileOrderHost{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 12px calc(20px + env(safe-area-inset-bottom));scroll-padding:12px 12px 90px}
  #mzMobileOrderHost .tk{width:100%;border-radius:12px;background:var(--p);box-shadow:none;overflow:visible}
  #mzMobileOrderHost .tk #ot{min-height:0;padding:6px 8px;gap:3px}
  #mzMobileOrderHost .tk #ot>button{min-height:44px;height:44px;flex:1 1 0;padding:0 8px;font-size:12px}
  #mzMobileOrderHost .tk #ot>.r{min-height:34px;font-size:11px!important;padding:4px 2px}
  #mzMobileOrderHost .tk-b{padding:14px 12px 16px}
  #mzMobileOrderHost .tk .fr{grid-template-columns:minmax(0,1fr);gap:4px;margin-bottom:16px}
  #mzMobileOrderHost .tk .fr>label{display:flex;justify-content:space-between;gap:8px;font-size:12px;min-height:28px;align-items:center;margin-bottom:6px}
  #mzMobileOrderHost .tk .in{height:48px;min-height:48px;font-size:16px;padding:0 12px}
  #mzMobileOrderHost .tk .stp{grid-template-columns:minmax(0,1fr) 44px 44px}
  #mzMobileOrderHost .tk .stp>button{min-width:44px;min-height:48px;font-size:20px}
  #mzMobileOrderHost .tk #szMode button{min-height:44px;min-width:44px;font-size:12px;padding:0 9px}
  #mzMobileOrderHost .tk .szp{gap:6px}
  #mzMobileOrderHost .tk .szp>button{min-height:44px;font-size:12px}
  #mzMobileOrderHost .tk #szx{font-size:12px;line-height:1.5;min-height:3em}
  #mzMobileOrderHost #sizingPanel{margin-bottom:14px}
  #mzMobileOrderHost .sizing-presets-label,#mzMobileOrderHost .paper-sizing-controls>span{font-size:12px}
  #mzMobileOrderHost #sizingPanel .order-sizing__adjust{font-size:12px;white-space:normal;line-height:1.2}
  #mzMobileOrderHost #sizingPanel .order-sizing__side{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) 88px}
  #mzMobileOrderHost #sizingPanel .order-sizing__summary{font-size:12px}
  #mzMobileOrderHost #sizingPanel .order-sizing__label,#mzMobileOrderHost #sizingPanel .order-sizing__value{font-size:12px}
  #mzMobileOrderHost #sizingPanel .order-sizing__message{font-size:12px;line-height:1.5}
  #mzMobileOrderHost .tk .risk{font-size:12px;padding:10px 0;gap:10px;flex-wrap:wrap}
  #mzMobileOrderHost .tk .bs{gap:8px}
  #mzMobileOrderHost .tk .bs>button{min-height:64px;padding:12px}
  #mzMobileOrderHost .tk .bs>button>span{font-size:12px}
  #mzMobileOrderHost .tk .bs>button>b{font-size:21px}
  #mzMobileOrderHost .tk .oc{display:flex;align-items:center;min-height:52px;font-size:12px;margin-top:10px;gap:10px}
  #mzMobileOrderHost .tk .oc .k{display:none}
  #mzMobileOrderHost .tk #oneClick{position:relative;flex:0 0 32px;margin:14px 6px}
  #mzMobileOrderHost .tk #oneClick::before{content:'';position:absolute;inset:-14px -6px}
  #mzMobileOrderHost .tk #mktc{font-size:12px;line-height:1.5;padding:12px}
  #mzMobileOrder #toasts{position:relative;inset:auto;flex:0 0 auto;align-items:stretch;gap:6px;width:100%;max-height:30vh;overflow-y:auto;padding:8px 12px calc(8px + env(safe-area-inset-bottom));z-index:1}
  #mzMobileOrder #toasts:empty{display:none}
  #mzMobileOrder #toasts .toast{min-width:0;max-width:none;font-size:12px}
  body:has(#T.mz-mobile-ready)>.toasts{left:12px;right:12px;bottom:calc(76px + env(safe-area-inset-bottom))}
  body:has(#T.mz-mobile-ready[data-mobile-screen="chart"])>.toasts{bottom:calc(160px + env(safe-area-inset-bottom))}
  #T.mz-mobile-ready.dojo-on>.mz-mobile-heading,#T.mz-mobile-ready.streak-active>.mz-mobile-heading{display:none}
}

@media(max-width:360px){
  #T.mz-mobile-ready:not(.dojo-on):not(.streak-active){padding-left:8px;padding-right:8px}
  #T.mz-mobile-ready .ch-h{gap:5px;padding:7px}
  #T.mz-mobile-ready .ch-h .bigpx{font-size:15px}
  #T.mz-mobile-ready .ch-h .chg{font-size:9px;padding:3px 4px}
  #T.mz-mobile-ready .ch-h .sym .tx>span{max-width:96px}
  #T.mz-mobile-ready .ch-h .sym .cn{display:none}
  #T.mz-mobile-ready .wr{padding:11px 9px;grid-template-columns:26px minmax(0,1fr) 28px auto;column-gap:7px}
  #T.mz-mobile-ready .wr svg.sp{width:28px}
  #T.mz-mobile-ready .wr .s,#T.mz-mobile-ready .wr .p{font-size:15px}
  #T.mz-mobile-ready .wr .mz-mobile-bbo{grid-column:1/-1}
  #T.mz-mobile-ready>.qbar{grid-template-columns:minmax(0,1fr) 128px minmax(0,1fr);gap:4px;padding:8px 5px}
  #T.mz-mobile-ready .qbar .qpx{font-size:16px}
  #T.mz-mobile-ready .qbar .qpx small{font-size:10px}
  #T.mz-mobile-ready .qbar .qpx sup{font-size:9px}
  #T.mz-mobile-ready .qbar .sl,#T.mz-mobile-ready .qbar .by{padding:0 6px}
  #T.mz-mobile-ready .mz-mobile-account{padding:14px 12px}
  #T.mz-mobile-ready .mz-mobile-account strong{font-size:21px}
  #T.mz-mobile-ready .mz-mobile-account .mz-mobile-pnl strong{font-size:15px}
  #mzMobileOrderHost{padding-left:8px;padding-right:8px}
  #mzMobileOrderHost .tk-b{padding-left:10px;padding-right:10px}
}
@media(prefers-reduced-motion:reduce){
  .mz-mobile-nav *,#mzMobileOrder *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* Phone landscape: New order stays in the header, giving the chart the space
   otherwise occupied by the quick quote bar and indicator pane. */
@media(max-width:1024px) and (max-height:500px){
  #T.mz-mobile-ready:not(.dojo-on):not(.streak-active){--mz-nav-height:56px}
  #T.mz-mobile-ready>header.top{min-height:54px;padding-top:4px;padding-bottom:4px}
  #T.mz-mobile-ready>.mz-mobile-nav{min-height:calc(56px + env(safe-area-inset-bottom));padding-top:2px}
  #T.mz-mobile-ready>.mz-mobile-nav button{min-height:52px;gap:2px}
  #T.mz-mobile-ready>.mz-mobile-nav button svg{height:20px;width:20px}
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"]>.qbar{display:none}
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"]>.ch{margin-top:4px;margin-bottom:6px}
  #T.mz-mobile-ready .ch-h{min-height:42px;padding-top:2px;padding-bottom:2px}
  #T.mz-mobile-ready .ch-t{min-height:46px;padding-top:1px;padding-bottom:1px}
  #T.mz-mobile-ready .mz-lighter-quote-strip{min-height:28px;padding-top:4px;padding-bottom:4px}
  #T.mz-mobile-ready .cw{min-height:70px}
  #T.mz-mobile-ready .cm{min-height:60px}
  #T.mz-mobile-ready .cs{display:none}
  #T.mz-mobile-ready .mz-mobile-heading{min-height:56px;padding-top:6px;padding-bottom:6px}
  #T.mz-mobile-ready .mz-mobile-account{grid-template-columns:repeat(4,minmax(0,1fr));padding:10px 12px;gap:8px;margin-bottom:8px}
  #T.mz-mobile-ready .mz-mobile-account dl{display:contents}
  #T.mz-mobile-ready .mz-mobile-account strong{font-size:18px}
  #T.mz-mobile-ready .mz-mobile-account .mz-mobile-pnl{text-align:left}
  #T.mz-mobile-ready .mz-mobile-account .mz-mobile-pnl strong{font-size:16px}
  #T.mz-mobile-ready .mz-mobile-account dl>div:last-child{text-align:left}
}

/* Compact phones keep New order reachable and give price action priority. */
@media(max-width:1024px) and (max-height:650px){
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"]>.qbar{display:none}
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"]>.ch{margin-bottom:8px}
  #T.mz-mobile-ready .cs{display:none}
}

/* In short landscape the chart needs the screen, while More retains account,
   theme and product access. New order remains visible above the chart. */
@media(max-width:1024px) and (max-height:500px) and (orientation:landscape){
  body:has(#T.mz-mobile-ready) #betaBar{display:none!important}
  #T.mz-mobile-ready:not(.dojo-on):not(.streak-active){--mz-nav-height:52px;height:var(--mz-mobile-height,100dvh)}
  #T.mz-mobile-ready>header.top{display:none}
  #T.mz-mobile-ready>.mz-mobile-heading,
  #T.mz-mobile-ready[data-mobile-screen="chart"][data-mobile-product="trade"] #mzMobileHeading{min-height:46px;height:46px;padding-top:1px;padding-bottom:1px}
  #T.mz-mobile-ready>.mz-mobile-heading h1{font-size:20px}
  #T.mz-mobile-ready>.mz-mobile-nav{min-height:calc(52px + env(safe-area-inset-bottom));padding-top:0}
  #T.mz-mobile-ready>.mz-mobile-nav button{min-height:52px;height:52px;gap:2px}
  #T.mz-mobile-ready .ch-h{min-height:38px;padding-top:0;padding-bottom:0}
  #T.mz-mobile-ready .ch-h .sym{min-height:36px}
  #T.mz-mobile-ready .ch-t{min-height:46px}
}
