/* The public market is isolated from internal Finance; the app owns the shared chrome. */
html body #app > #content:has(> #viewFinanceMarket:not(.hidden)) {
 width:100%;max-width:none;padding:0!important;margin:0!important;overflow:hidden;
}
html body #app #viewFinanceMarket:not(.hidden) {
 position:relative;display:block;width:100%;height:calc(100dvh - 70px);
 max-width:none;padding:0!important;margin:0!important;border:0;
}
#financeMarketSurface {display:block;height:100%;width:100%;background:#0b0b0a}
body:has(#viewFinanceMarket:not(.hidden)) :is(#switchModeFab,#bottomBar) {display:none!important}
@media(max-width:760px) {
 html body #app #viewFinanceMarket:not(.hidden){height:calc(100dvh - 118px)}
}
@media(min-width:761px) {
  /* Own the standard left Back slot when legacy desktop actions overlap it. */
  html body:has(#viewFinanceMarket:not(.hidden)) #app .topbar.topbarTwoRow #globalBackBtn:not(.hidden) {
    position:fixed!important;inset:12px auto auto 8px!important;transform:none!important;
    display:grid!important;place-items:center!important;width:44px!important;height:44px!important;
    z-index:2200!important;pointer-events:auto!important;
  }
}
/* Finance owns its bottom tabs inside its own viewport. Reserve their
   height independently of the outer app's intentionally hidden tab bar. */
html body #app:has(#viewFinanceMarket:not(.hidden)) > #hubUpgradeBtn.recodetCornerUpgrade {
  bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;
}
