/* GX Tracking v0.10.96 — mobile navigation at the same bottom position as Google Maps.
 * Relocate existing #gx64Actions; do not recreate controls or change screen content.
 */
@media (max-width:850px) {
  html body.gx64-mobile.gx96-fixed-nav {
    --gx96-bottom-height:calc(62px + max(6px, env(safe-area-inset-bottom, 0px)));
  }
  html body.gx64-mobile.gx96-fixed-nav #sidebar.gx64-sheet,
  html body.gx64-mobile.gx96-fixed-nav[data-gx64-size] #sidebar.gx64-sheet {
    /* Reserve exactly the area covered by the separate persistent dock. */
    padding:0 0 var(--gx96-bottom-height) !important;
  }
  html body.gx64-mobile.gx96-fixed-nav #gx64Actions,
  html body.gx64-mobile.gx96-fixed-nav[data-gx64-size="min"] #gx64Actions,
  html body.gx64-mobile.gx96-fixed-nav[data-gx67-collapsed="true"] #gx64Actions {
    display:grid !important;
    position:fixed !important;
    inset:auto 0 var(--gx64-keyboard-offset, 0px) 0 !important;
    z-index:1800 !important;
    width:100% !important;
    height:var(--gx96-bottom-height) !important;
    min-height:0 !important;
    margin:0 !important;
    padding:5px 7px max(6px, env(safe-area-inset-bottom, 0px)) !important;
    box-sizing:border-box !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:4px !important;
    align-items:stretch !important;
    background:#0f1c2d !important;
    border-top:1px solid #30445b !important;
    border-radius:0 !important;
    box-shadow:none !important;
    pointer-events:auto !important;
  }
  html body.gx64-mobile.gx96-fixed-nav.gx64-selected #gx64Actions {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  }
  html body.gx64-mobile.gx96-fixed-nav #gx64Actions button {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
    min-width:0 !important;
    width:100% !important;
    min-height:44px !important;
    margin:0 !important;
    padding:4px 1px !important;
    border-radius:10px !important;
    border:0 !important;
    background:transparent !important;
    color:#dce7f7 !important;
    font-size:11px !important;
    line-height:1.1 !important;
    white-space:nowrap !important;
    box-shadow:none !important;
    touch-action:manipulation;
  }
  html body.gx64-mobile.gx96-fixed-nav #gx64Actions button[aria-pressed="true"],
  html[data-theme="dark"] body.gx64-mobile.gx96-fixed-nav #gx64Actions button[aria-pressed="true"] {
    background:#16487b !important;
    color:#fff !important;
  }
  html body.gx64-mobile.gx96-fixed-nav #gx64Actions button svg,
  html body.gx64-mobile.gx96-fixed-nav.gx64-selected #gx64Actions button svg {
    width:20px !important;
    height:20px !important;
  }
  html body.gx64-mobile.gx96-fixed-nav:not(.gx64-selected) #gx64Actions button[data-gx64-action="detail"] {
    display:none !important;
  }
  html:not([data-theme="dark"]) body.gx64-mobile.gx96-fixed-nav #gx64Actions {
    background:#fff !important;
    border-top-color:#e0e7ef !important;
  }
  html:not([data-theme="dark"]) body.gx64-mobile.gx96-fixed-nav #gx64Actions button {
    color:#284056 !important;
  }
  html:not([data-theme="dark"]) body.gx64-mobile.gx96-fixed-nav #gx64Actions button[aria-pressed="true"] {
    background:#e4f0ff !important;
    color:#086fcb !important;
  }
}
@media (min-width:851px) {
  #gx64Actions { /* existing v0.10.65 hides this element on desktop */ }
}
