/* Owner request 2026-10-28: one mobile navigation area above the role/budget row.
   Same controls, map and state; desktop keeps its existing left/map/right layout. */
#l07Navigation{flex:none;min-width:0}
.l07-mobile-nav-only{display:none}
@media(min-width:721px){
 #l07DockHandle{order:0}
 #l07Navigation{order:1}
 #l07Content{order:2}
}
@media(max-width:720px){
 body.world-sandbox-active{padding-bottom:calc(126px + env(safe-area-inset-bottom,0px))}
 body.world-sandbox-active #l07Dock{height:calc(116px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px)}
 body.world-sandbox-active #l07Dock[data-state="peek"]{height:min(74dvh,630px)}
 body.world-sandbox-active #l07Dock[data-state="full"]{height:94dvh}
 body.world-sandbox-active #l07Dock::before{content:"";display:block;flex:none;align-self:center;width:36px;height:3px;border-radius:4px;background:#b1b49d;margin:6px 0 1px}
 body.world-sandbox-active #l07Navigation{order:0}
 body.world-sandbox-active #l07DockHandle{order:1;height:48px;min-height:48px;padding:10px 13px;background:#f1f2e2;border-top:1px solid #e0dfcd;border-bottom:1px solid #e0dfcd}
 body.world-sandbox-active #l07DockHandle::before{display:none}
 body.world-sandbox-active #l07Content{order:2;min-height:0;padding:13px 12px;overscroll-behavior-y:contain}
 body.world-sandbox-active #bfMobilePrimary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0;padding:6px 8px}
 body.world-sandbox-active #bfMobilePrimary button{min-height:44px;border-radius:9px;font-size:12px}
 body.world-sandbox-active #l07NavMore[aria-expanded="true"]{background:#e3ead6;border-color:#77936c;color:#365a43}
 body.world-sandbox-active #l07Tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:3px 8px 8px;max-height:26dvh;overflow-y:auto;overscroll-behavior-y:contain;border:0}
 body.world-sandbox-active #l07Tabs button{min-height:44px;padding:6px 3px;font-size:11px}
 body.world-sandbox-active #l07Tabs .l07-mobile-nav-only{display:block}
 body.world-sandbox-active #l07Tabs .l07-rank-secondary{display:none}
 body.world-sandbox-active #l07Dock[data-state="closed"] #l07Tabs{display:none}
 body.world-sandbox-active .field-head .tools [data-world-tab],
 body.world-sandbox-active #openAtlas,
 body.world-sandbox-active .bf-stage-next{display:none!important}
 #l07Navigation button:focus-visible{outline:3px solid #b28a42;outline-offset:1px}
}
