/* Space 2047 v6.4.5 — compact contextual popup, true content-width topbar buttons, permanent menu retirement. */
#s2047-hamburger-shell-v51217,
.s2047-menu-launcher,
.s2047-hamburger,
[data-menu-launcher],
.s2047-floating-menu-button,
button[aria-label="Menu"],
button[title="Menu"]{
 display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;
 width:0!important;min-width:0!important;max-width:0!important;height:0!important;min-height:0!important;
 padding:0!important;margin:0!important;border:0!important;overflow:hidden!important
}

/* Top-bar actions should be only as wide as their labels. */
.s2047-reference-hud .s2047-topbar-actions{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 gap:6px!important;width:max-content!important;max-width:100%!important;min-width:0!important
}
.s2047-reference-hud .s2047-topbar-actions button{
 flex:0 0 auto!important;width:auto!important;min-width:max-content!important;max-width:none!important;
 padding:0 11px!important;white-space:nowrap!important
}

/* Small nearby-object / character action popup. */
#s2047-nearby-object-actions,
.s2047-nearby-object-actions{
 width:max-content!important;max-width:min(390px,calc(100vw - 24px))!important;
 min-width:0!important;padding:7px 9px 8px!important;border-width:1px!important;border-radius:12px!important;
 bottom:max(16px,calc(env(safe-area-inset-bottom) + 10px))!important
}
#s2047-nearby-object-actions strong,
.s2047-nearby-object-actions strong{
 display:block!important;width:auto!important;max-width:340px!important;margin:0 0 5px!important;
 font-size:12px!important;line-height:1.05!important
}
#s2047-nearby-object-actions>div,
.s2047-nearby-object-actions>div{
 display:flex!important;justify-content:center!important;align-items:center!important;gap:4px!important;
 flex-wrap:nowrap!important;width:max-content!important;max-width:100%!important;overflow-x:auto!important
}
#s2047-nearby-object-actions button,
.s2047-nearby-object-actions button{
 flex:0 0 auto!important;width:auto!important;min-width:max-content!important;min-height:30px!important;
 padding:5px 8px!important;border-radius:8px!important;font-size:11px!important;line-height:1!important
}

@media (max-width:760px){
 .s2047-reference-hud .s2047-topbar-actions{width:100%!important;overflow-x:auto!important;justify-content:flex-start!important}
 .s2047-reference-hud .s2047-topbar-actions button{padding:0 9px!important}
 #s2047-nearby-object-actions,.s2047-nearby-object-actions{
   max-width:calc(100vw - 12px)!important;padding:6px!important;border-radius:10px!important
 }
 #s2047-nearby-object-actions strong,.s2047-nearby-object-actions strong{font-size:11px!important;margin-bottom:4px!important}
 #s2047-nearby-object-actions button,.s2047-nearby-object-actions button{min-height:29px!important;padding:5px 7px!important;font-size:10px!important}
}
