/* UX28: one transparent native header across Home, Places, Passport and Profile.
   Keep native buttons, notification unread state, focus and routes intact. */
app-global2-shell .g2-phone > .g2-header.g2-header {
  top: max(20px, env(safe-area-inset-top)) !important;
  left: 28px !important;
  right: 28px !important;
  grid-template-columns: 58px minmax(0, 1fr) 58px !important;
  gap: 15px !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
app-global2-shell .g2-phone > .g2-header.g2-header::before,
app-global2-shell .g2-phone > .g2-header.g2-header::after,
app-global2-shell .g2-phone > .g2-header.g2-header > .g2-brand::before,
app-global2-shell .g2-phone > .g2-header.g2-header > .g2-brand::after {
  display: none !important;
}
app-global2-shell .g2-phone > .g2-header.g2-header > .g2-square {
  width: 58px !important;
  height: 58px !important;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: var(--wa-ux28-header-ink, #104c43) !important;
}
app-global2-shell .g2-phone > .g2-header.g2-header > .g2-brand {
  min-width: 0 !important;
  font-size: 15px !important;
  letter-spacing: .18em !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: var(--wa-ux28-header-ink, #104c43) !important;
}
app-global2-shell .g2-phone > .g2-header.g2-header .nt1-bell-icon {
  color: var(--wa-ux28-header-ink, #104c43) !important;
}
app-global2-shell .g2-phone > .g2-header.g2-header > .g2-square:focus-visible,
app-global2-shell .g2-phone > .g2-header.g2-header > .g2-brand:focus-visible {
  outline: 3px solid #ff6859;
  outline-offset: 3px;
}

/* Club keeps its own safe, focus-managed dialog and native navigation proxies. */
#wow-atlas-club-ah4.wa-c4 > .wa-c4-bar {
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 15px;
  padding: max(20px, env(safe-area-inset-top)) 28px 10px;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-bar > small {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .18em;
  color: #104c43;
  white-space: nowrap;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-bar > .wa-c4-back {
  width: 58px;
  height: 58px;
  background: transparent;
  box-shadow: none;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-bar > .wa-c4-mark {
  justify-self: end;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock {
  /* Match .g2-dock's exact geometry without placing it over Club's scroll area. */
  width: calc(100% - 48px);
  min-height: 78px;
  margin: 0 auto max(16px, env(safe-area-inset-bottom));
  padding: 6px;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 30px;
  background: #fffdf7e8;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 17px 37px #103f382e;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button {
  min-height: 64px;
  border: 0;
  border-radius: 23px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 1px 6px;
  background: transparent;
  color: #103f3880;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button:not(.active):hover {
  background: transparent;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button.active {
  background: var(--coral, #f45a48);
  color: #fff;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button:active {
  transform: scale(.91);
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > span {
  font-size: 8px;
  font-weight: 900;
  line-height: normal;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > app-g2-icon,
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock svg {
  width: 22px;
  height: 22px;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > b > img {
  width: 24px;
  height: 24px;
}
@media (max-width: 520px) {
  app-global2-shell .g2-phone > .g2-header.g2-header {
    left: 17px !important;
    right: 17px !important;
    grid-template-columns: 52px minmax(0, 1fr) 52px !important;
  }
  app-global2-shell .g2-phone > .g2-header.g2-header > .g2-square {
    width: 52px !important;
    height: 52px !important;
  }
  app-global2-shell .g2-phone > .g2-header.g2-header > .g2-brand {
    font-size: 12px !important;
  }
  #wow-atlas-club-ah4.wa-c4 > .wa-c4-bar {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    padding-inline: 17px;
  }
  #wow-atlas-club-ah4.wa-c4 > .wa-c4-bar > .wa-c4-back {
    width: 52px;
    height: 52px;
  }
  #wow-atlas-club-ah4.wa-c4 > .wa-c4-bar > small {
    font-size: 12px;
  }
  #wow-atlas-club-ah4.wa-c4 > .wa-c4-dock {
    width: calc(100% - 28px);
    margin-inline: auto;
    margin-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* NV1: preserve the original four-slot dock and replace only its third label/icon. */
app-global2-shell .g2-phone .g2-dock > button[data-wa-nv1-dock="compasses"] > :not(.wa-nv1-compass-icon):not(.wa-nv1-compass-label),
#wow-atlas-club-ah4 .wa-c4-dock > button[data-wa-nv1-dock="compasses"] > :not(.wa-nv1-compass-icon):not(.wa-nv1-compass-label) {
  display: none !important;
}
app-global2-shell .g2-phone .g2-dock > button[data-wa-nv1-active="true"] {
  background: var(--coral, #f45a48) !important;
  color: #fff !important;
}
app-global2-shell .g2-phone .g2-dock > button[data-wa-nv1-active="false"] {
  background: transparent !important;
  color: #103f3880 !important;
}
.g2-dock .wa-nv1-compass-icon,
#wow-atlas-club-ah4 .wa-c4-dock .wa-nv1-compass-icon {
  display: grid !important;
  place-items: center;
  width: 24px;
  height: 24px;
  color: inherit;
}
.g2-dock .wa-nv1-compass-icon > svg,
#wow-atlas-club-ah4 .wa-c4-dock .wa-nv1-compass-icon > svg {
  display: block;
  width: 22px;
  height: 22px;
  color: inherit;
}
.g2-dock .wa-nv1-compass-label,
#wow-atlas-club-ah4 .wa-c4-dock .wa-nv1-compass-label {
  display: block !important;
  font-size: 8px;
  font-weight: 900;
  line-height: normal;
  color: inherit;
}
/* Profile's scan row is always full width, before bookings and saved places. */
#wow-atlas-profile-ah2.g2-user-profile[data-wa-ah2=profile] > .wa-ux14c-profile-shortcut.wa-nv1-visit-shortcut {
  grid-column: 1 / -1 !important;
  min-height: 82px !important;
  padding: 10px 14px !important;
  border: 1px solid #fffdf9 !important;
  background: #eef3e9 !important;
}
#wow-atlas-profile-ah2 .wa-nv1-visit-shortcut .wa-ah2-profile-row {
  gap: 13px !important;
}
#wow-atlas-profile-ah2 .wa-nv1-visit-shortcut .wa-ah2-profile-art {
  width: 58px !important;
  height: 58px !important;
  flex-basis: 58px !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
#wow-atlas-profile-ah2 .wa-nv1-visit-shortcut .wa-ah2-profile-row b {
  font-size: clamp(20px, 5.5vw, 23px) !important;
  line-height: 1.12 !important;
}
#wow-atlas-profile-ah2 .wa-nv1-visit-shortcut .wa-ah2-profile-row small {
  display: block !important;
  margin-top: 5px !important;
  font-size: 12px !important;
}
#wow-atlas-profile-ah2 .wa-nv1-visit-shortcut .wa-ah2-profile-row > .wa-ah2-icon {
  display: block !important;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
}
#wow-atlas-profile-ah2 .wa-nv1-passport-shortcut .wa-ah2-profile-art {
  background: transparent;
  overflow: visible !important;
}
/* The referral cabinet owns another proxy dock; use the same island width. */
#wow-atlas-referral-rf1 > .rf1-dock {
  width: calc(100% - 48px);
  margin: 0 auto max(16px, env(safe-area-inset-bottom));
}
@media (max-width: 520px) {
  #wow-atlas-referral-rf1 > .rf1-dock {
    width: calc(100% - 28px);
    margin-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* GC5: the Club dialog renders proxy buttons from the native dock markup.
   One shared geometry prevents inherited Club typography and icon overrides
   from changing the bar or shrinking a cloned SVG on the Compasses tab. */
app-global2-shell .g2-phone > .g2-dock,
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock {
  box-sizing: border-box;
  height: 78px;
  min-height: 78px;
  grid-template-rows: 64px;
}
app-global2-shell .g2-phone > .g2-dock > button,
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button {
  box-sizing: border-box;
  height: 64px;
  min-height: 64px;
  padding: 1px 6px;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  place-items: center;
  gap: 4px;
  line-height: normal;
}
app-global2-shell .g2-phone > .g2-dock > button > app-g2-icon,
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > app-g2-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  line-height: 1;
}
app-global2-shell .g2-phone > .g2-dock > button > b:not(.wa-nv1-compass-icon),
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > b:not(.wa-nv1-compass-icon) {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  line-height: normal;
}
app-global2-shell .g2-phone > .g2-dock > button > b:not(.wa-nv1-compass-icon) > img,
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > b:not(.wa-nv1-compass-icon) > img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}
app-global2-shell .g2-phone > .g2-dock > button > app-g2-icon > svg,
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > app-g2-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
}
app-global2-shell .g2-phone > .g2-dock > button > span,
#wow-atlas-club-ah4.wa-c4 > .wa-c4-dock > button > span {
  font-size: 8px;
  font-weight: 900;
  line-height: normal;
}
