/* New wrappers are layout-transparent outside the short mobile workspace. */
.bf-market[data-mobile-workspace=v1] .bf-market-workspace,.bf-market[data-mobile-workspace=v1] .bf-market-workspace-list,.bf-market[data-mobile-workspace=v1] .bf-market-workspace-detail,.bf-market[data-mobile-workspace=v1] .bf-market-workspace-quests{display:contents}
@media(orientation:landscape) and (min-width:560px){
 body.mobile-hud-v2 .bf-market[data-menu-ux=v1][data-market-layout=v2][data-mobile-workspace=v1]{padding:0!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-card{position:fixed!important;left:calc(8px + env(safe-area-inset-left))!important;right:calc(8px + env(safe-area-inset-right))!important;top:calc(8px + env(safe-area-inset-top))!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-heading{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;padding:4px 8px!important;flex:none!important;min-height:54px!important;height:auto!important;box-sizing:border-box!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-portrait{width:36px!important;height:36px!important;flex:0 0 36px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-identity{flex:1!important;min-width:0!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-identity h2{font:700 18px/1.15 system-ui!important;margin:0!important;white-space:normal!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-purse{display:block!important;width:auto!important;max-width:45%!important;margin:0!important;flex:none!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-purse>small{font-size:10px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-close{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-tools{padding:4px 8px!important;flex:none!important;gap:6px!important;flex-wrap:nowrap!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-tools [role=tablist]{display:flex!important;flex:1!important;gap:5px!important;flex-wrap:nowrap!important;width:auto!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-tools [role=tab]{min-height:44px!important;flex:1!important;padding:5px 8px!important;font-size:13px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-hint{display:none!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-workspace{display:grid!important;grid-template-columns:minmax(280px,1.2fr) minmax(220px,1fr)!important;flex:1 1 0!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-workspace-list,body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-workspace-detail{display:block!important;min-width:0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-workspace-detail{border-left:1px solid #6e5a42;background:#161a14}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-categories{padding:5px!important;gap:5px!important;flex-wrap:wrap!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-categories button{min-height:44px!important;padding:5px!important;font-size:12px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-backpack-summary{padding:6px!important;gap:6px!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-backpack-ladder{padding:0 6px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-backpack-ladder summary{min-height:44px!important;padding:8px 0!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;flex:none!important;height:max(180px,calc(100dvh - 132px))!important;min-height:180px!important;overflow:hidden!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-shelves{display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important;padding:5px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-caption{min-height:34px!important;gap:4px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-caption strong{font-size:12px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-scroll{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr))!important;gap:5px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-item{min-height:104px!important;padding:5px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-item [data-label]{font-size:12px!important;line-height:1.25!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-detail{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-height:0!important;padding:8px!important;border-top:0!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-selected{width:100%!important;align-items:flex-start!important;gap:6px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-description h3{font-size:16px!important;line-height:1.25!important;overflow-wrap:anywhere}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-trade{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:100%!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-quantity{display:block!important;min-width:0!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-quantity>label{display:block!important;font-size:11px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-quantity :is(button,input){min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-total{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-confirm{width:100%!important;min-width:0!important;max-width:none!important;min-height:48px!important;padding:8px!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1][data-view=quest] .bf-market-workspace{grid-template-columns:minmax(0,1fr)!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] .bf-market-workspace-quests{display:none!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1][data-view=quest] .bf-market-workspace-list,body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1][data-view=quest] .bf-market-workspace-detail{display:none!important}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1][data-view=quest] .bf-market-workspace-quests{display:block!important;grid-column:1/-1!important;min-width:0!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;touch-action:pan-y}
 body.mobile-hud-v2 .bf-market[data-mobile-workspace=v1] [hidden]{display:none!important}
}
