/* Shared public-page shell, integrated through the style 11 head template. */
html:has(#ac-header) { background: #101113 !important; }
body:has(#ac-header) {
  --ac-shell-orange: #ff923e;
  background: radial-gradient(ellipse at 5% 42%, #47261735, transparent 42%),
    radial-gradient(ellipse at 100% 5%, #36363b25, transparent 45%), #101113 !important;
  background-attachment: fixed !important;
}
body:has(#ac-header)::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  pointer-events: none !important;
  opacity: .3 !important;
  filter: none !important;
  transform: none !important;
  background: linear-gradient(#ffffff10 1px, transparent 1px),
    linear-gradient(90deg, #ffffff10 1px, transparent 1px) !important;
  background-size: 76px 76px !important;
  mask-image: linear-gradient(#000, transparent 90%);
  -webkit-mask-image: linear-gradient(#000, transparent 90%);
  animation: none !important;
  transition: none !important;
}
body:has(#ac-header) #body_bg,
body:has(#ac-header) .body_wrapper { background: transparent !important; }

/* Keep native navigation, permissions, links and mobile toggle behavior. */
html body:has(#ac-header) #ac-header {
  background: #101113f0 !important;
  border-bottom: 1px solid #ffffff12 !important;
  box-shadow: 0 12px 35px #0002 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html body:has(#ac-header) #ac-header .ac-header-inner {
  width: calc(100% - 80px) !important;
  max-width: 1280px !important;
  min-height: 84px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: 26px !important;
}
html body:has(#ac-header) #ac-header .ac-logo img {
  width: 176px !important;
  height: auto !important;
  filter: none !important;
}
html body:has(#ac-header) #ac-header .ac-navtabs { gap: 24px !important; background: none !important; border: 0 !important; }
html body:has(#ac-header) #ac-header .ac-navtabs .navtab {
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  letter-spacing: 1px !important;
  color: #b1b2b8 !important;
  text-shadow: none !important;
  background: none !important;
  box-shadow: none !important;
}
html body:has(#ac-header) #ac-header .navtab:hover,
html body:has(#ac-header) #ac-header .selected > .navtab { color: #fff !important; }
html body:has(#ac-header) #ac-header .selected > .navtab::after {
  height: 2px !important;
  background: #ff923e !important;
  box-shadow: none !important;
}
html body:has(#ac-header) #ac-header .ac-user-area { gap: 9px !important; }
html body:has(#ac-header) #ac-header :is(.ac-login-btn, .ac-dashboard-btn) {
  padding: 11px 18px !important;
  border: 1px solid #37393e !important;
  border-radius: 7px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #dfdfe2 !important;
  font-size: 10px !important;
  letter-spacing: .6px !important;
}
html body:has(#ac-header) #ac-header .ac-dashboard-btn {
  background: #ff913e !important;
  border-color: #ff913e !important;
  color: #17110e !important;
}
html body:has(#ac-header) #ac-header .ac-dashboard-btn svg { color: #17110e !important; stroke: currentColor !important; }

/* Match the original preproduction utility link, including its framed icon. */
html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: 38px !important;
  min-height: 38px !important;
  gap: 8px !important;
  padding: 0 2px 0 15px !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid #ffffff24 !important;
  border-radius: 0 !important;
  color: #e6e2dc !important;
  font: 900 10px/1 "Segoe UI", Arial, sans-serif !important;
  letter-spacing: .5px !important;
  text-transform: uppercase !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transform: none !important;
}
html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."]::after { content: "\2197" !important; display: inline !important; margin-left: 1px; color: #8e9298; font: 600 12px/1 Arial, sans-serif; }
html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."] svg {
  box-sizing: content-box !important;
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 1px solid #f973164d !important;
  border-radius: 7px !important;
  background: #f9731614 !important;
  color: #fa8a37 !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.5 !important;
}
html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."]:hover { background: transparent !important; border-left-color: #ffffff38 !important; color: #ffae70 !important; }
html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."]:hover svg { border-color: #f9731699 !important; background: #f9731629 !important; }

/* Compact product previews retain their existing destinations and images. */
html body:has(#ac-header) #ac-header #ac-store-menu {
  box-sizing: border-box !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: calc(100% + 8px) !important;
  transform: translateX(-50%) !important;
  width: min(780px, calc(100vw - 48px)) !important;
  max-width: none !important;
  max-height: calc(100dvh - 110px) !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: 18px !important;
  background: #1b1c20 !important;
  border: 1px solid #3b3d42 !important;
  border-radius: 8px !important;
  box-shadow: 0 16px 40px #0008 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
}
html body:has(#ac-header) #ac-header .ac-store-menu-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
html body:has(#ac-header) #ac-header .ac-store-menu-kicker { display: none !important; }
html body:has(#ac-header) #ac-header .ac-store-menu-head strong {
  margin: 0 !important;
  color: #e6e6e8 !important;
  font: 600 17px/1.4 "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
}
html body:has(#ac-header) #ac-header #navbar #navtabs #ac-store-menu a.ac-store-menu-all {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 5px 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #d9a271 !important;
  font: 500 11px/1.5 "Segoe UI", Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}
html body:has(#ac-header) #ac-header .ac-store-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body:has(#ac-header) #ac-header .ac-store-menu-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #35373c !important;
  border-radius: 5px !important;
  background: #151619 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
  transition: border-color .15s !important;
}
html body:has(#ac-header) #ac-header .ac-store-menu-card:hover { border-color: #a27551 !important; }
html body:has(#ac-header) #ac-header .ac-store-menu-card::before,
html body:has(#ac-header) #ac-header .ac-store-menu-card::after { display: none !important; }
html body:has(#ac-header) #ac-header .ac-store-menu-card > img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 96px !important;
  min-height: 0 !important;
  margin: 0 !important;
  object-fit: cover !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  border: 0 !important;
}
html body:has(#ac-header) #ac-header .ac-store-menu-card > span {
  box-sizing: border-box !important;
  position: static !important;
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  min-height: 41px !important;
  margin: 0 !important;
  padding: 9px 11px !important;
  background: none !important;
  border: 0 !important;
  color: #d9dbdf !important;
  font: 500 13px/1.4 "Segoe UI", Arial, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  white-space: normal !important;
}
html body:has(#ac-header) #ac-header :is(a, button):focus-visible { outline: 2px solid #d99e6f !important; outline-offset: 3px !important; }

@media (max-width: 1199px) {
  html body:has(#ac-header) #ac-header #ac-store-menu {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-height: none !important;
    margin: 10px 0 4px !important;
    padding: 12px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
  }
  html body:has(#ac-header) #ac-header #navbar.active {
    max-height: calc(100dvh - 84px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}
@media (max-width: 1100px) {
  html body:has(#ac-header) #ac-header .ac-header-inner { width: calc(100% - 40px) !important; gap: 16px !important; }
  html body:has(#ac-header) #ac-header .ac-logo img { width: 150px !important; }
  html body:has(#ac-header) #ac-header .ac-navtabs { gap: 14px !important; }
}
@media (max-width: 580px) {
  html body:has(#ac-header) #ac-header .ac-header-inner { width: calc(100% - 26px) !important; min-height: 70px !important; gap: 8px !important; }
  html body:has(#ac-header) #ac-header .ac-logo img { width: 129px !important; }
  html body:has(#ac-header) #ac-header :is(.ac-login-btn, .ac-dashboard-btn) { padding: 9px 10px !important; font-size: 8px !important; }
  html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."] { width: 38px !important; height: 36px !important; min-height: 36px !important; padding: 0 !important; gap: 0 !important; border: 1px solid #f973164d !important; border-radius: 7px !important; background: #f9731614 !important; }
  html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."] span { display: none !important; }
  html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."]::after { display: none !important; }
  html body:has(#ac-header) #ac-header .ac-dashboard-btn[href*="portal."] svg { padding: 0 !important; border: 0 !important; background: none !important; }
  html body:has(#ac-header) #ac-header .ac-user-area { gap: 5px !important; }
  html body:has(#ac-header) #ac-header #navbar.active { max-height: calc(100dvh - 70px) !important; }
  html body:has(#ac-header) #ac-header .ac-store-menu-head { flex-wrap: wrap !important; justify-content: flex-start !important; gap: 3px 13px !important; }
  html body:has(#ac-header) #ac-header .ac-store-menu-head strong { font-size: 15px !important; }
  html body:has(#ac-header) #ac-header .ac-store-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  html body:has(#ac-header) #ac-header .ac-store-menu-card > img { height: 76px !important; }
  html body:has(#ac-header) #ac-header .ac-store-menu-card > span { min-height: 44px !important; padding: 8px !important; font-size: 11px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body:has(#ac-header) #ac-header .ac-store-menu-card { transition: none !important; }
}
