/* Guest shell top navigation revision.
   Every rule is scoped to body.app-shell-guest so authenticated shells keep
   their existing sidebar geometry and navigation behavior. */

body.app-shell-guest {
  min-height: 100vh;
  background: var(--w2g-bg) !important;
}

body.app-shell-guest > .topbar {
  --guest-motion-fast: 150ms;
  --guest-motion-state: 200ms;
  --guest-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 90;
  width: 100%;
  height: 64px;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  padding: 0 clamp(20px, 3.2vw, 52px);
  overflow: visible;
  background: color-mix(in srgb, var(--w2g-surface) 90%, transparent) !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background-color var(--guest-motion-state) var(--guest-motion-ease), border-color var(--guest-motion-state) var(--guest-motion-ease), box-shadow var(--guest-motion-state) var(--guest-motion-ease);
}

body.app-shell-guest > .topbar.is-scrolled {
  background: color-mix(in srgb, var(--w2g-surface) 98%, transparent) !important;
  border-bottom-color: var(--w2g-line) !important;
  box-shadow: 0 1px 2px rgba(12, 16, 25, 0.05) !important;
}

body.app-shell-guest > .topbar > .brand {
  width: auto;
  min-width: max-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 !important;
  border: 0 !important;
  color: var(--w2g-ink);
}

body.app-shell-guest > .topbar .brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--w2g-orange) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.app-shell-guest > .topbar .brand strong {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

body.app-shell-guest > .topbar .brand-subtitle {
  display: none !important;
}

body.app-shell-guest > .topbar > .main-nav {
  position: static;
  display: flex !important;
  width: auto;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Desktop topbar alignment correction (see chat): the grid's middle
   column is centered in the LEFTOVER space between `.brand` and
   `.auth-actions`, not the true viewport/topbar center — since
   `.auth-actions` (language switch + theme toggle + login/signup) is
   measurably wider than `.brand` (logo + wordmark), the nav group sits
   ~100px left of center at 1440px, off-axis from the centered hero
   headline below it. `.topbar` is already `position: sticky`, which
   establishes a containing block for absolutely-positioned descendants,
   so centering `.main-nav` on the topbar's own width (Option B from the
   brief) guarantees true viewport-relative centering regardless of how
   unequal the two side groups are — no dependency on CSS Grid track
   sizing quirks. Scoped to >1050px only: below that, the existing
   mobile-drawer rules already take `.main-nav` out of the grid (`display:
   none` until `.open`, then `position: fixed !important` as an
   off-canvas panel), so this must not run there or it would fight that
   positioning. `.brand`/`.auth-actions` keep their normal grid columns
   1 and 3 — `.auth-actions` gets an explicit `grid-column` so it can't
   auto-place into the now-vacated middle column once `.main-nav` is
   taken out of grid flow. */
@media (min-width: 1051px) {
  body.app-shell-guest > .topbar > .brand {
    grid-column: 1;
  }
  body.app-shell-guest > .topbar > .auth-actions {
    grid-column: 3;
  }
  body.app-shell-guest > .topbar > .main-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: min(720px, calc(100vw - 2 * 340px));
  }
}

body.app-shell-guest .main-nav > .guest-nav-links {
  display: flex;
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
}

body.app-shell-guest .guest-nav-links .shell-nav-group,
body.app-shell-guest .guest-nav-links .shell-nav-group-items {
  display: flex;
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: clamp(8px, 1.1vw, 16px);
  margin: 0;
}

body.app-shell-guest .guest-nav-links .shell-nav-group-label,
body.app-shell-guest .guest-nav-links .shell-nav-icon,
body.app-shell-guest .guest-nav-links .shell-nav-badge {
  display: none;
}

body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item {
  position: relative;
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 0.8vw, 16px);
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  color: var(--w2g-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background-color var(--guest-motion-state) var(--guest-motion-ease), color var(--guest-motion-state) var(--guest-motion-ease);
}

body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item::before {
  content: none !important;
  display: none !important;
}
body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item::after {
  content: '' !important;
  position: absolute;
  right: 10px;
  bottom: 2px;
  left: 10px;
  display: block !important;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.45);
  transform-origin: center;
  transition: opacity var(--guest-motion-state) var(--guest-motion-ease), transform var(--guest-motion-state) var(--guest-motion-ease);
}

body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item:hover {
  background: var(--w2g-surface-2) !important;
  color: var(--w2g-ink) !important;
}
body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item:hover::after,
body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item.active::after {
  opacity: 1;
  transform: scaleX(1);
}

body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item:focus-visible {
  outline: 2px solid var(--w2g-orange);
  outline-offset: 2px;
}

body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item.active {
  background: var(--w2g-orange-soft) !important;
  color: var(--w2g-orange-ink) !important;
  box-shadow: none !important;
}

body.app-shell-guest > .topbar > .auth-actions {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  width: auto;
  height: auto;
  min-width: max-content;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 0.9vw, 12px);
  padding: 0;
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 1051px) and (max-width: 1180px) {
  body.app-shell-guest > .topbar {
    gap: 18px;
  }

  body.app-shell-guest .guest-nav-links .shell-nav-group,
  body.app-shell-guest .guest-nav-links .shell-nav-group-items {
    gap: 4px;
  }

  body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item {
    /* Trimmed from 9px (was 12px originally) — the true-center topbar fix
       (see the `.main-nav` absolute-centering rule above) needs a little
       more room at this narrow end of desktop so the centered nav group
       doesn't touch `.auth-actions`. */
    padding-inline: 4px;
  }

  body.app-shell-guest > .topbar > .auth-actions {
    gap: 6px;
  }

  body.app-shell-guest > .topbar > .auth-actions #loginShortcut,
  body.app-shell-guest > .topbar > .auth-actions #signupShortcut {
    padding-inline: 10px;
  }
}

body.app-shell-guest > .topbar > .auth-actions .language-switch {
  width: auto;
  min-height: 34px;
  justify-content: initial;
  border-radius: 8px;
}

body.app-shell-guest > .topbar > .auth-actions .language-switch button {
  min-height: 32px;
  padding: 3px 8px;
  font-size: 11px;
}

body.app-shell-guest > .topbar > .auth-actions .theme-toggle {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 8px;
  background: transparent !important;
  color: var(--w2g-muted);
}

body.app-shell-guest > .topbar > .auth-actions .theme-toggle-label,
body.app-shell-guest > .topbar > .auth-actions .notification-button,
body.app-shell-guest > .topbar > .auth-actions #logoutButton {
  display: none !important;
}

body.app-shell-guest > .topbar > .auth-actions #loginShortcut,
body.app-shell-guest > .topbar > .auth-actions #signupShortcut {
  width: auto;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

body.app-shell-guest > .topbar > .auth-actions #loginShortcut {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--w2g-ink-2);
  box-shadow: none !important;
}

body.app-shell-guest > .topbar > .auth-actions #loginShortcut:hover {
  background: var(--w2g-surface-2) !important;
  color: var(--w2g-ink) !important;
}

/* Header account-creation CTA is intentionally secondary: the Hero CTA
   (.ghb-primary) is the single dominant action in the first viewport. */
body.app-shell-guest > .topbar > .auth-actions #signupShortcut {
  background: transparent !important;
  border-color: var(--w2g-orange) !important;
  color: var(--w2g-orange) !important;
  box-shadow: none !important;
}

body.app-shell-guest > .topbar > .auth-actions #signupShortcut:hover {
  background: var(--w2g-orange-soft) !important;
  border-color: var(--w2g-orange-strong) !important;
  color: var(--w2g-orange-strong) !important;
}

body.app-shell-guest > .page-shell {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 64px);
  margin-left: 0;
  padding: 28px clamp(20px, 3.2vw, 52px) 88px;
}

body.app-shell-guest > .page-shell > .view {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

body.app-shell-guest > .page-shell > #home.view {
  width: min(100%, 1500px);
  max-width: 1500px;
}

body.app-shell-guest > .page-shell > .view.active-view {
  display: block;
}

body.app-shell-guest .guest-sidebar-cta,
body.app-shell-guest .shell-nav-item-locked,
body.app-shell-guest .shell-nav-lock-icon {
  display: none !important;
}

@media (max-width: 1050px) {
  body.app-shell-guest {
    --guest-drawer-width: 100%;
  }

  body.app-shell-guest.mobile-menu-open,
  body.app-shell-guest.guest-menu-closing {
    overflow: hidden;
  }

  /* .topbar is position:sticky in normal flow. If the page was scrolled
     before the drawer opened, the body-scroll-lock above (overflow:hidden)
     freezes body's scrollTop instead of resetting it, and a sticky element
     inside a container that just lost its scrolling mechanism renders at
     its unclamped, already-scrolled-away position instead of staying
     pinned to the viewport top -- verified via getBoundingClientRect(): a
     388x844 page scrolled 400px before opening the drawer left .topbar at
     top:-400/bottom:-336, fully off-screen, while the drawer (position:
     fixed, unaffected by sticky) still started at its fixed 64px inset.
     The visible 0-64px band then showed frozen page content instead of
     the topbar, i.e. the reported gap. Forcing position:fixed here (Guest
     + mobile-menu-open/closing only) pins the topbar to the true viewport
     top exactly like the drawer already is, independent of any prior
     scroll offset or sticky/scroll-container interaction. */
  body.app-shell-guest.mobile-menu-open > .topbar,
  body.app-shell-guest.guest-menu-closing > .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 350 !important;
  }

  body.app-shell-guest.mobile-menu-open::before,
  body.app-shell-guest.guest-menu-closing::before {
    content: '' !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 330 !important;
    display: block !important;
    width: auto !important;
    height: 100% !important;
    border-radius: 0 !important;
    background: rgba(12, 16, 25, 0.42) !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
    transform: none !important;
  }

  body.app-shell-guest.mobile-menu-open::before {
    animation: guestNavOverlayIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  body.app-shell-guest.guest-menu-closing::before {
    animation: guestNavOverlayOut 180ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  body.app-shell-guest > .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px 14px;
  }

  body.app-shell-guest > .topbar > .brand {
    min-width: 0;
  }

  body.app-shell-guest > .topbar .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.app-shell-guest > .topbar > .mobile-menu-button {
    grid-column: 2;
    display: inline-flex;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid var(--w2g-line) !important;
    border-radius: 10px !important;
    background: var(--w2g-surface) !important;
    color: var(--w2g-muted) !important;
    box-shadow: none !important;
  }

  body.app-shell-guest > .topbar > .auth-actions {
    display: none !important;
  }

  body.app-shell-guest > .topbar > .main-nav {
    display: none !important;
  }

  body.app-shell-guest.mobile-menu-open > .topbar > .main-nav.open,
  body.app-shell-guest.guest-menu-closing > .topbar > .main-nav.open.guest-menu-closing {
    position: fixed !important;
    inset: 64px 0 0 !important;
    z-index: 340 !important;
    display: flex !important;
    width: var(--guest-drawer-width) !important;
    max-width: var(--guest-drawer-width) !important;
    height: calc(100dvh - 64px) !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-flow: column nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 18px 16px max(20px, env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--w2g-surface) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    animation: guestNavPanelIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }

  body.app-shell-guest.guest-menu-closing > .topbar > .main-nav.open.guest-menu-closing {
    pointer-events: none;
    animation-name: guestNavPanelOut !important;
    animation-duration: 180ms !important;
  }

  body.app-shell-guest.mobile-menu-open > .topbar > .main-nav.open::before,
  body.app-shell-guest.mobile-menu-open > .topbar > .main-nav.open::after {
    content: none !important;
    display: none !important;
  }

  body.app-shell-guest .main-nav.open > .guest-nav-links {
    order: 1 !important;
    display: flex;
    width: 100%;
    flex: 0 0 auto;
    overflow: visible;
  }

  body.app-shell-guest .main-nav.open > .mobile-drawer-feedback-btn {
    order: 2 !important;
  }

  body.app-shell-guest .main-nav.open > .mobile-nav-extras {
    order: 3 !important;
  }

  body.app-shell-guest .main-nav.open > .mobile-nav-auth {
    order: 4 !important;
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-group,
  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-group-items {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item {
    display: grid;
    width: 100%;
    min-height: 44px;
    grid-template-columns: 22px minmax(0, 1fr);
    justify-content: initial;
    gap: 10px;
    padding: 9px 10px;
    text-align: left;
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: var(--w2g-muted);
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-icon svg {
    width: 17px;
    height: 17px;
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item.active {
    box-shadow: inset 2px 0 0 var(--w2g-orange) !important;
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item::after {
    content: none !important;
    display: none !important;
  }

  body.app-shell-guest .main-nav.open > .mobile-nav-extras,
  body.app-shell-guest .main-nav.open > .mobile-nav-auth,
  body.app-shell-guest .main-nav.open > .mobile-drawer-feedback-btn {
    display: flex !important;
  }

  body.app-shell-guest .main-nav.open > .mobile-nav-auth {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--w2g-line);
  }

  body.app-shell-guest .main-nav.open .mobile-drawer-auth-btn {
    min-height: 42px;
    flex: 1 1 0;
    justify-content: center;
    border-radius: 8px;
  }

  body.app-shell-guest .main-nav.open #mobileDrawerLogin {
    border: 1px solid var(--w2g-line) !important;
    background: var(--w2g-surface-2) !important;
    color: var(--w2g-ink-2) !important;
  }

  body.app-shell-guest .main-nav.open .mobile-drawer-signup {
    border-color: var(--w2g-orange) !important;
    background: var(--w2g-orange) !important;
    color: #fff !important;
  }

  body.app-shell-guest > .page-shell {
    min-height: calc(100vh - 64px);
    margin-left: 0;
    padding: 18px clamp(14px, 4vw, 24px) 72px;
  }
}

@keyframes guestNavOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes guestNavOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes guestNavPanelIn {
  from { transform: translateY(-8px); }
  to { transform: translateY(0); }
}

@keyframes guestNavPanelOut {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

@media (max-width: 430px) {
  body.app-shell-guest > .topbar {
    padding-inline: 12px;
  }

  body.app-shell-guest > .topbar .brand strong {
    font-size: 13px;
  }

  body.app-shell-guest.mobile-menu-open > .topbar > .main-nav.open {
    width: var(--guest-drawer-width) !important;
    max-width: var(--guest-drawer-width) !important;
  }
}

/* Single shared Guest mobile-menu treatment, applied unconditionally to
   body.app-shell-guest (not gated per-route) so Landing and every Discovery
   route share one drawer look and one hamburger icon. Fixes: (1) the
   toggle icon was colored via html[data-theme="dark"], a preference guests
   never set (guest theme is forced to "light"), so the icon rendered
   near-black and was unreadable against the dark Guest header; (2) the
   drawer surface/text colors here were the light-theme defaults — only
   Competition/Team/Member had a route-scoped override repainting them
   dark, so Landing's drawer stayed light while its own nav-item text
   colors (inherited from this dark palette) were already dark-only,
   making labels like "Home" nearly invisible on the light surface. */
@media (max-width: 1050px) {
  /* style-polish-v3.css also has an html[data-theme="light"] ... button
     rule that outranks a plain body.app-shell-guest selector (see the
     ::before note below) — same fix, same reason. */
  html body[data-page="app"].app-shell-guest > .topbar {
    background: #241d14 !important;
    color: #fffdf8 !important;
    border-bottom-color: rgba(255, 253, 248, 0.14) !important;
  }

  html body[data-page="app"].app-shell-guest > .topbar > .brand,
  html body[data-page="app"].app-shell-guest > .topbar > .brand strong {
    color: #fffdf8 !important;
  }

  html body[data-page="app"].app-shell-guest > .topbar > .mobile-menu-button {
    border-color: rgba(255, 253, 248, 0.28) !important;
    background: rgba(255, 253, 248, 0.08) !important;
    color: #fffdf8 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Multiple legacy stylesheets (style-polish-v3.css has at least 6
     breakpoint/theme-scoped variants, style-redesign-v2.css has more) draw
     this icon with ::before/::after + box-shadow, gated by combinations of
     max-width and html[data-theme] that don't line up with each other --
     any one of them winning without also winning the matching box-shadow
     declaration is enough to collapse the icon to a single line. Rather
     than keep patching individual box-shadow/background values to outrank
     that cascade, disable pseudo-element content generation entirely for
     this specific button (narrowly, not for any other .mobile-menu-button
     use) so none of those legacy rules can render anything at all. The
     visible icon is now two real inline <svg> children in Prototype.html,
     toggled by aria-expanded -- see the .mobile-menu-button-icon-* rules
     below, which is a single deterministic source of truth. */
  body[data-page="app"].app-shell-guest .topbar .mobile-menu-button::before,
  body[data-page="app"].app-shell-guest .topbar .mobile-menu-button::after {
    content: none !important;
    display: none !important;
  }

  body[data-page="app"].app-shell-guest .topbar .mobile-menu-button-icon {
    display: block;
    width: 20px;
    height: 20px;
    stroke: #fffdf8 !important;
    color: #fffdf8;
    pointer-events: none;
  }

  body[data-page="app"].app-shell-guest .topbar .mobile-menu-button-icon-close {
    display: none;
  }

  body[data-page="app"].app-shell-guest .topbar .mobile-menu-button-icon-auth-open {
    display: none !important;
  }

  body[data-page="app"].app-shell-guest .topbar .mobile-menu-button[aria-expanded="true"] .mobile-menu-button-icon-open {
    display: none;
  }

  body[data-page="app"].app-shell-guest .topbar .mobile-menu-button[aria-expanded="true"] .mobile-menu-button-icon-close {
    display: block;
  }

  body.app-shell-guest.mobile-menu-open > .topbar > .main-nav.open,
  body.app-shell-guest.guest-menu-closing > .topbar > .main-nav.open.guest-menu-closing {
    background: #241d14 !important;
    border-left-color: rgba(255, 253, 248, 0.14) !important;
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item {
    color: #e4d6bc !important;
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item:hover,
  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item:focus-visible {
    background: rgba(255, 253, 248, 0.12) !important;
    color: #fffdf8 !important;
  }

  body.app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item.active {
    background: rgba(255, 253, 248, 0.12) !important;
    color: #fffdf8 !important;
    box-shadow: inset 2px 0 0 #ea580c !important;
  }

  body.app-shell-guest .main-nav.open > .mobile-nav-auth {
    border-top-color: rgba(255, 253, 248, 0.14) !important;
  }

  body.app-shell-guest .main-nav.open #mobileDrawerLogin {
    border-color: rgba(255, 253, 248, 0.28) !important;
    background: rgba(255, 253, 248, 0.08) !important;
    color: #fffdf8 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.app-shell-guest > .topbar,
  body.app-shell-guest.mobile-menu-open::before,
  body.app-shell-guest.guest-menu-closing::before,
  body.app-shell-guest > .topbar > .main-nav,
  body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item,
  body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item::after {
    animation: none !important;
    transition: none !important;
  }
  body.app-shell-guest .main-nav .guest-nav-links .shell-nav-item {
    transition: none;
  }
}

/* Approved Light Color System rollout: shared Guest mobile shell. */
@media (max-width: 1050px) {
  html[data-theme="light"] body[data-page="app"].app-shell-guest > .topbar {
    border-bottom-color: #E5E7EB !important;
    background: #FFFFFF !important;
    color: #18181B !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest > .topbar > .brand {
    color: #3F3F46 !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest > .topbar > .brand strong {
    color: #EA580C !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest > .topbar > .mobile-menu-button {
    border-color: #E5E7EB !important;
    background: #FFFFFF !important;
    color: #3F3F46 !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest .topbar .mobile-menu-button-icon {
    stroke: currentColor !important;
    color: #3F3F46;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest.mobile-menu-open > .topbar > .main-nav.open,
  html[data-theme="light"] body[data-page="app"].app-shell-guest.guest-menu-closing > .topbar > .main-nav.open.guest-menu-closing {
    border-left-color: #E5E7EB !important;
    background: #FFFFFF !important;
    color: #18181B !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item {
    border-color: #E5E7EB !important;
    background: #F7F7F7 !important;
    color: #3F3F46 !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item:hover,
  html[data-theme="light"] body[data-page="app"].app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item:focus-visible {
    border-color: #D1D5DB !important;
    background: #F2F3F4 !important;
    color: #18181B !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest .main-nav.open .guest-nav-links .shell-nav-item.active {
    border-color: #FED7AA !important;
    background: #FFF4ED !important;
    color: #C2410C !important;
    box-shadow: inset 2px 0 0 #EA580C !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest .main-nav.open > .mobile-nav-auth {
    border-top-color: #E5E7EB !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest .main-nav.open #mobileDrawerLogin {
    border-color: #D1D5DB !important;
    background: #FFFFFF !important;
    color: #18181B !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest .main-nav.open #mobileDrawerSignup {
    border-color: #C2410C !important;
    background: #C2410C !important;
    color: #FFFFFF !important;
  }

  html[data-theme="light"] body[data-page="app"].app-shell-guest .main-nav.open #mobileDrawerSignup:hover {
    border-color: #9A3412 !important;
    background: #9A3412 !important;
    color: #FFFFFF !important;
  }
}
