/* Shared user menu + workspace switcher styles. Pages link this from /styles/auth-menus.css. */
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 240px;
  background: rgba(15, 23, 42, 0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-pop.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.menu-pop .menu-section {
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.menu-pop .menu-section:last-child {
  border-bottom: none;
}
.menu-pop .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #f1f5f9;
  cursor: pointer;
  transition: background 0.1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
}
.menu-pop .menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.menu-pop .menu-item svg {
  width: 14px;
  height: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}
.menu-pop .menu-item.danger {
  color: #f87171;
}
.menu-pop .menu-item.danger svg {
  color: #f87171;
}
.menu-pop .menu-header {
  padding: 12px 12px 8px;
}
.menu-pop .menu-header .top {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}
.menu-pop .menu-header .sub {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ----------------------------------------------------------------------------
 * Logo-shift fix: keep the Statura logo + the workspace toggle pixel-stable
 * across (a) workspace-name length changes and (b) tab/lens-panel toggles that
 * cause a vertical scrollbar to appear/disappear.
 * --------------------------------------------------------------------------*/
html {
  /* Reserves space for the vertical scrollbar so its appearance/disappearance
     does not reflow the layout horizontally. */
  scrollbar-gutter: stable;
}
#ws-toggle {
  max-width: 240px;
  overflow: hidden;
  flex-shrink: 0;
}
#ws-toggle > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
#workspace-switcher {
  flex-shrink: 0;
  min-width: 0;
}
