#siteHelpMenu {
  width: 100%;
  min-width: 0;
  flex: none;
}

#helpMenuToggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d5c8d3;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}

.help-menu-dots { width: 18px; height: 18px; flex: none; fill: currentColor; }

.sidebar-collapsed .global-nav #helpMenuToggle {
  width: 42px;
  margin-inline: auto;
  justify-content: center;
  padding-inline: 0;
}

#conversationRail #helpMenuToggle .nav-label { display: inline; }
#creationMenuHome #siteHelpMenu { border-top: 1px solid #322936; padding-top: 4px; }
#helpMenuToggle:hover, #helpMenuToggle[aria-expanded="true"] { background: #302832; color: #fff6fc; }
#siteHelpMenu :focus-visible { outline: 2px solid #f6a8d5; outline-offset: -2px; }

#helpMenuPanel {
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  width: min(250px, calc(100vw - 16px));
  max-width: none;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  margin: 0;
  padding: 9px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #51414e;
  border-radius: 14px;
  background: #221d24;
  color: #f8f1f7;
  box-shadow: 0 12px 36px #09060c75;
}

#helpMenuPanel::backdrop { background: rgb(8 6 10 / .23); }
#helpMenuPanel section + section { border-top: 1px solid #40343f; margin-top: 5px; padding-top: 4px; }
#helpMenuPanel h2 { margin: 0; padding: 10px 9px 6px; font-size: 12px; line-height: 1.4; color: #d0acbf; }
#helpMenuPanel section:first-of-type h2 { padding-inline-end: 44px; }
#helpMenuPanel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 7px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#helpMenuPanel a:hover, #helpMenuClose:hover { background: #372c37; }
#helpMenuClose {
  position: absolute;
  top: 4px;
  inset-inline-end: 5px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d6cbd4;
  font-size: 20px;
  cursor: pointer;
}

#catalogMembership { display: none; }
.nav-group-utilities .nav-button[hidden] { display: none; }
.nav-group-utilities .nav-button svg, .nav-membership svg {
  width: 18px;
  height: 18px;
  flex: none;
}
:is(#navSections, #creationSiteNav) :is(.nav-group-primary, .nav-group-personal) {
  border-block-end: 0;
}

@media (max-width: 760px), (max-width: 1023px) and (hover: none) and (pointer: coarse) {
  :is(.account-wallet-actions, .header-actions) > #catalogMembership {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    flex: none;
    color: white;
    text-decoration: none;
  }
  #catalogMembership + #walletBalance { display: none; }
  #catalogMembership .membership-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding-inline: 12px;
    border-radius: 999px;
    background: linear-gradient(165deg, #e83c98, #cc157e);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
  }
  #catalogMembership svg { width: 14px; height: 14px; fill: currentColor; }
  #catalogMembership:focus-visible { outline: 2px solid #f6a8d5; outline-offset: -2px; border-radius: 999px; }
}

@media (max-width: 340px) {
  #catalogMembership .membership-pill { gap: 3px; padding-inline: 6px; font-size: 12px; }
  #catalogMembership svg { width: 11px; height: 11px; }
}
