/* Navigation surfaces must paint on real boxes, above the scrolling media. */
html.cv-mobile-editorial:not(.cv-desktop-mode) body:not(.welcome-open) > .bottom-nav-wrap {
  position: fixed !important;
  inset: auto 0 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(12px, env(safe-area-inset-left, 0px)) !important;
  background: #121410 !important;
  border: 0 !important;
  border-top: 1px solid #2a2e24 !important;
  border-radius: 0 !important;
  box-shadow: 0 -8px 24px #0000001a !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  z-index: 5200 !important;
}

/* This shell deliberately has display: contents; its parent owns the surface. */
html.cv-mobile-editorial:not(.cv-desktop-mode) body:not(.welcome-open) #cvBottomNavWrap {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.cv-mobile-editorial:not(.cv-desktop-mode) body:not(.welcome-open) #cvBottomNavWrap .bottom-nav {
  background: #121410 !important;
}

html.cv-mobile-editorial:not(.cv-desktop-mode) body:not(.welcome-open) #cvBottomNavWrap .bottom-nav :is(#allModelsNav, #aiStudioNav, #balanceNav):not(.active) {
  color: #b1b6a8 !important;
}

/* Keep header content aligned to the cards; let its backplate cover both gutters.
   A clipped shadow paints outside the box without adding horizontal scroll width. */
html.cv-mobile-editorial.cv-catalog-refined:not(.cv-desktop-mode) body.cv-all-models-open:not(.welcome-open):not(.cv-language-chat-open) #cvAllModelsHub {
  isolation: isolate !important;
  overflow: visible !important;
}

html.cv-mobile-editorial.cv-catalog-refined:not(.cv-desktop-mode) body.cv-all-models-open:not(.welcome-open):not(.cv-language-chat-open) #cvAllModelsHub::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background: #10110f !important;
  box-shadow: 0 0 0 100vmax #10110f !important;
  clip-path: inset(0 -100vmax) !important;
}

html.cv-mobile-editorial.cv-catalog-refined:not(.cv-desktop-mode) body.cv-all-models-open:not(.welcome-open) #cvAllModelsHub .cv-home-search {
  right: 0 !important;
}
