.bai-mobile-toolbar,.bai-mobile-backdrop{display:none}
@media(max-width:760px){
 body.bai-mobile-shell{padding-top:52px!important}
 body.bai-mobile-news{padding-top:0!important}
 #baiMobileToolbar{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:8px;position:fixed;inset:0 0 auto;height:52px;z-index:1410;padding:6px 10px;box-sizing:border-box;background:#0d1b2f;color:#fff;border-bottom:1px solid #2a3a50;font-family:inherit}
 .bai-mobile-menu-toggle{width:38px;height:38px;border:1px solid #435064;border-radius:8px;background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer}
 .bai-mobile-page-name{font-size:16px;font-weight:700;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #baiMenuBackdrop:not([hidden]){display:block;position:fixed;inset:52px 0 0;width:100%;height:calc(100% - 52px);border:0;padding:0;background:#0005;z-index:1390}
 #baiSiteMenu{display:none;position:fixed;z-index:1400;background:#0d1b2f}
 #baiSiteMenu.is-open{display:block}
 body.bai-mobile-news .news-tools{z-index:1410}
 #baiScrollButtons{display:flex!important;position:fixed;right:20px;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:1300}
 body.bai-mobile-shell>.bai-support-float{display:flex!important;align-items:center;justify-content:center;position:fixed!important;right:10px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;width:62px!important;height:62px!important;z-index:1300!important}
 body.bai-mobile-shell>.bai-support-float .bai-support-float-img{width:58px;height:58px}
 body.bai-mobile-news.bai-news-paged #baiScrollButtons{bottom:calc(134px + env(safe-area-inset-bottom,0px))}
 body.bai-mobile-news.bai-news-paged>.bai-support-float{bottom:calc(54px + env(safe-area-inset-bottom,0px))!important}
 body.bai-menu-open #baiScrollButtons,body.bai-menu-open>.bai-support-float,body.news-modal-open #baiScrollButtons,body.news-modal-open>.bai-support-float{visibility:hidden}
 #baiMenuToggle:focus-visible,#baiScrollButtons button:focus-visible{outline:2px solid #ee8b22;outline-offset:2px}
}

@media(max-width:760px){
 #baiSiteMenu{
   inset:52px auto auto 8px!important;
   width:min(340px,calc(100vw - 16px));
   height:auto!important;min-height:0!important;
   max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px);
   overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
   border:1px solid #344456;border-radius:12px;
   box-shadow:0 14px 36px #0008;
 }
 #baiSiteMenu .bai-header{
   position:static!important;display:block!important;
   width:100%!important;max-width:none!important;
   height:auto!important;min-height:0!important;
   margin:0!important;padding:12px!important;
 }
 #baiSiteMenu .bai-top{
   display:flex!important;flex-wrap:wrap!important;
   align-items:center!important;justify-content:space-between!important;
   gap:10px!important;width:100%!important;padding:0 0 10px!important;
   margin:0!important;min-height:0!important;
 }
 #baiSiteMenu .bai-brand{flex:1 1 140px!important;min-width:0!important;gap:8px!important}
 #baiSiteMenu .bai-brand img{width:30px!important;height:30px!important}
 #baiSiteMenu .bai-brand strong{font-size:15px!important}
 #baiSiteMenu .bai-brand small{font-size:10px!important}
 #baiSiteMenu .bai-page-title{display:none!important}
 #baiSiteMenu .bai-account{flex:0 1 auto!important;max-width:100%;font-size:11px!important}
 #baiSiteMenu .bai-account-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
 #baiSiteMenu .bai-account a{overflow-wrap:anywhere}
 #baiSiteMenu .bai-nav{
   display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;
   align-items:stretch!important;justify-content:flex-start!important;
   gap:4px!important;width:100%!important;max-width:none!important;
   height:auto!important;min-height:0!important;
   overflow:visible!important;white-space:normal!important;
   margin:0!important;padding:8px 0 0!important;
 }
 #baiSiteMenu .bai-nav .bai-link{
   display:flex!important;align-items:center!important;justify-content:flex-start!important;
   flex:none!important;gap:10px!important;
   width:100%!important;max-width:100%!important;
   min-height:40px!important;height:auto!important;
   margin:0!important;padding:9px 12px!important;border-radius:7px!important;
   font-size:14px!important;line-height:20px!important;text-align:left!important;
   white-space:normal!important;box-sizing:border-box;
 }
 #baiSiteMenu .bai-nav .bai-link.bai-current{
   background:#1b3246!important;box-shadow:inset 3px 0 0 var(--bai-orange,#ed901b)!important;
 }
 #baiSiteMenu .bai-menu-icon{display:inline-flex;width:20px;justify-content:center;flex:none}
 #baiSiteMenu .bai-lock{margin-left:auto!important;flex:none}
 #baiSiteMenu .bai-logout{display:block!important;width:100%!important;margin:0!important}

}

/* ==================================================
   GLOBAL MOBILE HEADER - NasdaqAI
   ================================================== */
@media (max-width:600px){

    /* 手机版统一隐藏浮动客服 */
    body.bai-mobile-shell > .bai-support-float{
        display:none !important;
    }

    /* 手机版顶部统一高度 */
    body.bai-mobile-shell .bai-header{
        margin:0 !important;
        padding:0 !important;
    }

    body.bai-mobile-shell .bai-top{
        position:relative !important;

        min-height:52px !important;
        height:52px !important;

        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        background:#0b1b31 !important;
        border:0 !important;
    }

    /* 页面名称固定居中 */
    body.bai-mobile-shell .bai-page-title{
        position:absolute !important;

        left:50% !important;
        top:50% !important;
        transform:translate(-50%,-50%) !important;

        display:block !important;

        margin:0 !important;
        padding:0 !important;

        color:#fff !important;

        font-size:17px !important;
        font-weight:700 !important;
        line-height:1 !important;

        text-align:center !important;
        white-space:nowrap !important;

        pointer-events:none !important;
    }
}


@media(max-width:600px){

    /* 保留客服入口，但固定到右上角 */
    body.bai-mobile-shell > .bai-support-float{
        display:flex !important;

        position:fixed !important;
        top:9px !important;
        right:12px !important;
        bottom:auto !important;
        left:auto !important;

        width:36px !important;
        height:36px !important;

        align-items:center !important;
        justify-content:center !important;

        padding:0 !important;
        margin:0 !important;

        background:transparent !important;
        border:0 !important;
        box-shadow:none !important;

        z-index:1500 !important;
    }

    /* 隐藏原本大客服图片 */
    body.bai-mobile-shell > .bai-support-float
    .bai-support-float-img,
    body.bai-mobile-shell > .bai-support-float
    .bai-support-float-label{
        display:none !important;
    }

    /* 右上角白色轮廓人形 */
    body.bai-mobile-shell > .bai-support-float::before{
        content:"" !important;

        display:block !important;

        width:27px !important;
        height:27px !important;

        background-repeat:no-repeat !important;
        background-position:center !important;
        background-size:25px 25px !important;

        background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11.2 10.3C11.2 6.8 13.2 4.7 16 4.7s4.8 2.1 4.8 5.6c0 3.4-1.9 5.8-4.8 5.8s-4.8-2.4-4.8-5.8Z' fill='none' stroke='white' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.8 16v3.1M18.2 16v3.1' fill='none' stroke='white' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M5.3 27c.5-4.2 3.4-6.7 8.5-7.9M18.2 19.1c5.1 1.2 8 3.7 8.5 7.9' fill='none' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    }

}

/* Account tools stay in normal flow, above navigation, on phones. */
@media(max-width:760px){
 html body.bai-mobile-shell #baiSiteMenu .bai-top{
  position:static!important;display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:flex-start!important;
  height:auto!important;min-height:0!important;gap:12px!important;
 }
 html body #baiSiteMenu .bai-brand{flex:0 0 auto!important;align-self:flex-start!important}
 html body #baiSiteMenu .bai-brand img.bai-brand-logo{width:130px!important;height:auto!important;transform:none!important}
 html body #baiSiteMenu .bai-page-title{display:none!important}
 html body #baiSiteMenu .bai-account-tools{
  position:static!important;inset:auto!important;transform:none!important;
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  justify-content:flex-start!important;gap:8px!important;width:100%!important;padding:0!important;
 }
 html body #baiSiteMenu .bai-account-tools .bai-account,
 html body #baiSiteMenu .bai-account-tools .bai-account-row{display:contents!important}
 html body #baiSiteMenu #baiThemeToggle,
 html body #baiSiteMenu .bai-notification-bell{
  position:static!important;inset:auto!important;transform:none!important;margin:0!important;flex:none!important;
 }
 html body #baiSiteMenu .bai-account-row>a:not(.bai-notification-bell){max-width:145px;overflow-wrap:anywhere}
 html body #baiSiteMenu .bai-account-actions{position:static!important;margin:0!important;padding:0!important;align-self:center!important}
 html body #baiSiteMenu .bai-nav{margin-top:0!important}
}
