/* Preserve the original circular HUD while retaining reliable touch targets. */
body.map-docked #app .map-dock .md-action{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;display:grid;place-items:center;grid-template-rows:1fr;gap:0;background:var(--paper)!important;color:var(--ink)}
body.map-docked #app .map-dock .md-action::before{inset:0;border-radius:50%;background:var(--paper)}
body.map-docked #app .map-dock .md-action svg{position:relative;z-index:1;width:20px;height:20px}
body.map-docked #app .map-dock .md-action img{position:relative;z-index:1;width:22px;height:22px}
body.map-docked #app .map-dock .md-action .md-label,body.map-docked #app .mobile-toolbar .md-action .md-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.map-docked #app .map-dock .md-action[aria-expanded=true]{color:var(--paper);background:var(--cobalt-ink)!important}
body.map-docked #app .map-dock .md-action[aria-expanded=true]::before{background:var(--cobalt-ink)}
body.map-docked .md-action:focus-visible,body.map-docked .mobile-toolbar button:focus-visible{outline:3px solid #2f4bff;outline-offset:3px}
body.map-docked .chat .chat-min,body.map-docked .chat .chat-tab,body.map-docked .chat .chat-form button{min-width:44px;min-height:44px}
body.map-docked .chat .chat-form input{min-height:44px;font-size:16px}
body.map-docked #sheet button.close,body.map-docked .pm-head .close{min-width:44px;min-height:44px}
@media(max-width:640px),(pointer:coarse){
 body.map-docked .mobile-toolbar{min-height:52px}
 body.map-docked #app .mobile-toolbar .md-action{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;display:grid;place-items:center;grid-template-rows:1fr;padding:0;background:var(--paper);color:var(--ink)}
 body.map-docked #app .mobile-toolbar .md-action svg{width:20px;height:20px}
 body.map-docked #app .mobile-toolbar .md-action img{width:22px;height:22px}
 body.map-docked .chat:not(.min){max-height:calc(100dvh - 76px);overscroll-behavior:contain}
}

@media(max-width:640px),(pointer:coarse){
 body.map-docked #app .mobile-toolbar .md-action{width:44px!important;height:44px!important;min-width:44px!important;border-radius:50%!important;background:var(--paper)!important;display:grid!important;place-items:center;grid-template-rows:1fr}
 body.map-docked #app .mobile-toolbar .md-action .md-label{display:none!important}
 body.map-docked #app .mobile-toolbar #open-menu{width:44px;height:44px;min-width:44px;border-radius:50%;background:var(--paper);padding:0;justify-self:center}
}
