/* Desktop retains the original header navigation. */
html.layout-v2 {--pwa-nav-clearance:12px}
@media(min-width:761px) and (min-height:451px),(min-width:901px) {
  html.layout-v2 .v2-dialog-nav {display:none!important}
  /* The full-screen cloud map keeps its menu at the top, above the map. */
  html.layout-v2[data-v2-destination="clouds"] #cloudsView>#pwaBottomNav.pwa-bottom-nav {
    position:absolute!important;inset:12px auto auto 50%!important;z-index:5000!important;
    width:min(540px,calc(100% - 24px))!important;min-height:56px!important;
    margin:0!important;padding:4px!important;gap:6px!important;
    transform:translateX(-50%)!important;
    border:1px solid rgba(169,228,210,.2)!important;border-radius:12px!important;
    background:rgba(5,26,30,.93)!important;backdrop-filter:blur(18px)!important;
  }
  html.layout-v2 #cloudsView #cloudDeckDialog.cloud-map-clean #cloudMapControlPanel {
    max-height:calc(100dvh - var(--cloud-bottom-ui) - var(--cloud-timeline-height) - 164px)!important;
  }
  @media(max-width:1199px) {
    html.layout-v2 #cloudsView #cloudDeckDialog.cloud-map-clean .cloud-deck-heading {top:84px!important}
  }
}

/* The slim edge-attached dock applies only to phones and narrow landscape. */
@media(max-width:760px),(max-width:900px) and (max-height:450px) {
/* One slim navigation attached to the bottom edge on every destination. */
html.layout-v2 {
  --pwa-nav-height:calc(56px + env(safe-area-inset-bottom,0px));
  --pwa-nav-bottom:0px;
  --pwa-nav-gap:8px;
  --pwa-nav-clearance:calc(var(--pwa-nav-height) + var(--pwa-nav-bottom) + var(--pwa-nav-gap));
  scroll-padding-bottom:calc(var(--pwa-nav-clearance) + 12px);
}
html.layout-v2 body {padding-bottom:var(--pwa-nav-clearance)!important}
html.layout-v2 .console-shell {padding-bottom:24px!important}
html.layout-v2 :is(#pwaBottomNav.pwa-bottom-nav,.v2-dialog-nav) {
  position:fixed!important;
  inset:auto 0 0!important;
  z-index:500!important;display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  width:100vw!important;max-width:none!important;min-height:calc(56px + env(safe-area-inset-bottom,0px))!important;height:auto!important;
  margin:0!important;
  padding:4px max(12px,calc((100vw - 540px)/2)) calc(4px + env(safe-area-inset-bottom,0px)) max(12px,calc((100vw - 540px)/2))!important;
  gap:4px!important;
  box-sizing:border-box!important;
  border:0!important;border-top:1px solid rgba(169,228,210,.2)!important;border-radius:0!important;
  background:rgba(5,26,30,.93)!important;
  -webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;
  box-shadow:0 -4px 16px #0002!important;
  transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
html.layout-v2 :is(#pwaBottomNav,.v2-dialog-nav) .pwa-nav-button {
  position:relative!important;display:flex!important;
  flex-direction:row!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;min-width:0!important;min-height:46px!important;height:auto!important;
  margin:0!important;padding:4px!important;border:1px solid transparent!important;border-radius:10px!important;
  background:transparent!important;box-shadow:none!important;color:#a8c9c2!important;
  font:600 12px/1.2 var(--display)!important;touch-action:manipulation;
}
html.layout-v2 :is(#pwaBottomNav,.v2-dialog-nav) .pwa-nav-button.active {
  color:#ebfff7!important;border-color:rgba(143,231,208,.22)!important;
  background:linear-gradient(175deg,rgba(125,255,213,.16),rgba(125,255,213,.04))!important;
  box-shadow:inset 0 -2px rgba(125,255,213,.45)!important;
}
html.layout-v2 :is(#pwaBottomNav,.v2-dialog-nav) .pwa-nav-icon {
  display:grid!important;place-items:center!important;flex:none!important;width:18px!important;height:18px!important;
}
html.layout-v2 :is(#pwaBottomNav,.v2-dialog-nav) .pwa-nav-icon svg {width:18px!important;height:18px!important;fill:none;stroke:currentColor;stroke-width:1.8}
html.layout-v2 :is(#pwaBottomNav,.v2-dialog-nav) .pwa-nav-label {
  max-width:100%!important;font:600 12px/1.2 var(--sans)!important;
  letter-spacing:0!important;text-transform:uppercase!important;white-space:normal!important;overflow-wrap:anywhere;
}
html.layout-v2 :is(#pwaBottomNav,.v2-dialog-nav) .pwa-nav-button:focus-visible {outline:2px solid #9be5c7!important;outline-offset:1px!important}
/* Alerts uses its existing navigation inside the native modal's top layer. */
html.layout-v2 #alertDialog {
  bottom:var(--pwa-nav-clearance)!important;
  max-height:calc(100dvh - var(--pwa-nav-clearance) - 16px)!important;
}
html.layout-v2 #alertDialog .alert-dialog-shell {max-height:calc(100dvh - var(--pwa-nav-clearance) - 16px)!important}
html.layout-v2 :is(.ac-support-launcher,#acSalesNudge) {bottom:calc(var(--pwa-nav-clearance) + 8px)!important}
html.layout-v2 .ac-support-modal {bottom:calc(var(--pwa-nav-clearance) + 64px)!important}

@media(max-width:760px),(max-width:900px) and (max-height:450px) {
  html.layout-v2 :is(#pwaBottomNav.pwa-bottom-nav,.v2-dialog-nav) {
    padding-left:max(4px,env(safe-area-inset-left,0px))!important;
    padding-right:max(4px,env(safe-area-inset-right,0px))!important;
  }
  html.layout-v2 :is(#pwaBottomNav,.v2-dialog-nav) .pwa-nav-button {flex-direction:column!important;gap:2px!important;padding:3px 1px!important}
}
@media(max-height:500px) and (min-width:600px) {
  html.layout-v2 :is(#pwaBottomNav.pwa-bottom-nav,.v2-dialog-nav) {
    padding-left:max(12px,env(safe-area-inset-left,0px),calc((100vw - 540px)/2))!important;
    padding-right:max(12px,env(safe-area-inset-right,0px),calc((100vw - 540px)/2))!important;
  }
}
@media(max-width:350px) {
  html.layout-v2 :is(#pwaBottomNav.pwa-bottom-nav,.v2-dialog-nav) {padding-inline:2px!important;gap:2px!important}
}

}
