body.catalog-view:has(.app:not(.sidebar-collapsed) #desktopLanguage #languageSelect) {
  --catalog-nav-width: 204px;
}

.app .global-nav,
.catalog-view .app.browsing-catalog .global-nav:has(#desktopLanguage #languageSelect) {
  padding: 10px 10px 12px;
  gap: 12px;
  background: linear-gradient(168deg, #211923 0%, #19161c 36%);
  border-inline-end-color: #352c39;
}

.app .global-nav .nav-head {
  min-block-size: 44px;
  padding: 0 3px 9px;
  border-color: #322936;
}

.global-nav .nav-brand,
#conversationRail .rail-home {
  color: #ffc1e2;
  letter-spacing: -.025em;
}

#conversationRail .rail-home .site-brand-icon,
#catalogDrawerProfile { display: none; }

.global-nav .nav-brand { min-inline-size: 0; }

.global-nav .nav-head .icon-button {
  color: #d6c1d2;
  border-radius: 10px;
}

.global-nav .nav-head .icon-button:hover { background: #332636; }

.global-nav .nav-links {
  overflow: hidden;
  gap: 10px;
}

.global-nav #navSections {
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #4a3c4a transparent;
}

#navSections {
  gap: 9px;
}

#navSections .nav-group {
  flex: none;
  gap: 3px;
  padding-block-end: 9px;
  border-color: #322936;
}

#navSections .nav-group:last-child {
  padding-block-end: 0;
  border-bottom: 0;
}

#navSections .nav-button {
  position: relative;
  min-block-size: 44px;
  gap: 10px;
  border-radius: 11px;
  color: #e5dce4;
  font-size: 13px;
  line-height: 1.3;
}

#navSections .nav-button svg {
  inline-size: 18px;
  block-size: 18px;
}

#navSections .nav-group-primary .nav-button {
  color: #f2e7ef;
  font-weight: 600;
}

#navSections .nav-group-personal .nav-button {
  color: #ded2dc;
}

#navSections .nav-button.active {
  background: #43283f;
  color: #ffd3ec;
  font-weight: 650;
}

@media (any-hover: hover) {
  #navSections .nav-button:not(.active):hover {
    background: #302735;
    color: #fff6fa;
    box-shadow: inset 0 0 0 1px #655068;
  }

  #navSections .nav-button.active:hover {
    background: #4e2c49;
    color: #ffd3ec;
  }
}

#navSections .nav-button:focus-visible {
  outline: 2px solid #ffc0e3;
  outline-offset: -2px;
}

@media (forced-colors: active) {
  #navSections .nav-button.active {
    text-decoration: underline;
  }
}

.global-nav .nav-bottom {
  flex: none;
  padding-block-start: 9px;
  border-block-start: 1px solid #322936;
}

.global-nav .profile-button { margin-block-start: 0; }

@media (max-width: 760px), (max-width: 1023px) and (hover: none) and (pointer: coarse) {
  /* The close button must be focusable as the drawer starts sliding in. */
  .catalog-view .app.browsing-catalog.show-rail #conversationRail {
    transition-property: transform;
  }
  .catalog-view .app.browsing-catalog #conversationRail {
    background: linear-gradient(165deg, #261b28 0%, #1c181f 45%);
    border-inline-end-color: #493a4a;
  }

  #conversationRail .rail-header {
    border-block-end: 1px solid #322936;
    padding-block-end: 8px;
  }

  .catalog-view #conversationRail .rail-header { margin-block-end: 8px; }

  .catalog-view #conversationRail .rail-home {
    gap: 7px;
    font-size: var(--mobile-brand-size);
    line-height: 1;
  }

  .catalog-view #conversationRail .rail-home .site-brand-icon {
    display: block;
    inline-size: 24px;
    block-size: 24px;
    flex: none;
  }

  .catalog-view #catalogDrawerProfile:not(:empty) {
    display: flex;
    align-items: center;
    flex: none;
    gap: 6px;
    margin-block-end: 10px;
    padding-inline: 8px;
    border: 1px solid #4b3b4d;
    border-radius: 12px;
    background: #ffffff08;
  }

  #catalogDrawerProfile .account-entry {
    flex: 1;
    gap: 9px;
    min-height: 44px;
    min-width: 0;
    text-align: start;
    font-size: 13px;
  }

  #catalogDrawerProfile #accountAvatar {
    display: grid;
    inline-size: 26px;
    block-size: 26px;
  }

  #catalogDrawerProfile #accountName { max-width: 100%; }

  #catalogDrawerProfile .account-logout {
    flex: none;
    min-height: 44px;
  }

  #conversationRail #railNav .nav-button {
    padding-inline: 11px;
  }
}
