#market-main-area.market-shared-tab{padding:0!important;overflow:hidden!important;background:var(--market-loading-paper,var(--background-color,#fff));position:relative}#market-main-area.market-shared-tab>:not(#mobile-shared-market){display:none!important}#mobile-shared-market{display:block;width:100%;border:0;min-height:320px;background:var(--market-loading-paper,var(--background-color,#fff))}body.market-active:has(#mobile-shared-market) .market-guest-dashboard,body.market-active:has(#mobile-shared-market) #mobile-market-guest-dashboard{display:none!important}

html body.market-active #bottom-nav,html body.market-active .bottom-navigation{display:none!important}
html body.market-active:not(:has(#mobile-shared-market))::after{content:"Loading market…";position:fixed;inset:84px 0 0;display:flex;align-items:center;justify-content:center;background:var(--background-color,#fff);color:var(--text-primary,#111);font:500 13px system-ui;z-index:99;pointer-events:none}
html body.market-active #mobile-shared-market{height:calc(100dvh - var(--mobile-app-header-height,84px))!important;max-height:calc(100dvh - var(--mobile-app-header-height,84px))!important}

#mobile-market-header-wallet{display:none}
html body.market-active:has(#mobile-shared-market) #mobile-market-header-wallet{display:flex;position:absolute;left:50%;top:calc(50% - 8px);transform:translate(-50%,-50%);align-items:center;justify-content:center;gap:8px;max-width:calc(100% - 150px);min-height:38px;padding:8px 16px;border:1px solid currentColor;border-radius:999px;background:transparent;color:var(--text-primary,#111);font-family:inherit;font-weight:700;font-size:13px;white-space:nowrap;z-index:4}
#mobile-market-header-wallet .mk-walletpill__dot{width:8px;height:8px;border-radius:50%;background:#bdbdbd;flex-shrink:0}
#mobile-market-header-wallet.is-on .mk-walletpill__dot{background:#12a44b}
html body.market-active:has(#mobile-shared-market) #mobile-header-blips-wrap,html body.market-active:has(#mobile-shared-market) .mobile-app-header__profile-btn{visibility:hidden!important;pointer-events:none!important}
html body.market-active:has(#mobile-shared-market) #mobile-app-header .mobile-app-header__brand{visibility:hidden!important;pointer-events:none!important;background:none!important;border:0!important;box-shadow:none!important}

html body.market-active #market-main-area.market-shared-tab{display:block!important;visibility:visible!important;opacity:1!important}html body.market-active #market-main-area.market-shared-tab>#mobile-shared-market{display:block!important;visibility:visible!important;opacity:1!important}

html body.market-active #mobile-market-header-wallet{pointer-events:auto!important;z-index:100!important}
/* The wallet action belongs to Market and Wallet, never the open app menu. */
html body.market-active #mobile-market-header-wallet[hidden],
html body.market-active.mobile-header-menu-open #mobile-market-header-wallet,
html body.market-active:has(.mobile-app-header__more.is-open) #mobile-market-header-wallet{display:none!important;pointer-events:none!important}

html body.market-active #market-main-area.market-shared-tab>#mobile-shared-market[data-loading]{visibility:hidden!important}
#market-main-area.market-shared-tab>#mobile-market-loading{display:flex!important;position:absolute;inset:0;align-items:center;justify-content:center;gap:10px;color:var(--text-primary,#777);font:500 12px system-ui;min-height:260px}
.market-loading-spinner{width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;opacity:.65;animation:market-loading-turn .8s linear infinite}
@keyframes market-loading-turn{to{transform:rotate(360deg)}}
html body.market-active #mobile-app-header{border-bottom:0!important;box-shadow:none!important}
html[data-appearance="glass"] body.market-active #mobile-app-header{background:transparent!important;backdrop-filter:none!important}
/* One fixed viewport: scrolling never resizes or translates the iframe. */
html body.market-active #mobile-app-header { transform:translateY(calc(-1 * var(--market-header-scroll,0px)))!important; transition:none!important; background:transparent!important; border:0!important; box-shadow:none!important; backdrop-filter:none!important; z-index:100!important; }
html body.market-active #market-main-area.market-shared-tab { position:fixed!important; inset:0!important; margin:0!important; padding:0!important; height:100dvh!important; max-height:100dvh!important; transform:none!important; overflow:hidden!important; background:transparent!important; }
html body.market-active #mobile-shared-market { width:100%!important; height:100dvh!important; max-height:100dvh!important; }
html:has(body.market-active), html body.market-active { overflow:hidden!important; }
body:not(.market-active) #mobile-app-header { transform:none!important; }
html body.market-active #mobile-shared-market { position:absolute!important; inset:0!important; margin:0!important; }
