/* Project additions. Loaded after the original SDKHub stylesheet. */
dialog.profile-gallery,
dialog.profile-gallery:focus,
dialog.profile-gallery:focus-visible {
  border: 0;
  outline: none;
}

/* The original universal SVG cursor also reaches native popup options.
   Use system cursors for selects, including the city/district editor fields. */
html select,
html select option,
html select optgroup {
  cursor: default !important;
}

html select:enabled {
  cursor: pointer !important;
}

/* Keep the entire channel notice visible instead of clamping it to 3 lines. */
._channelText_axeit_164 {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.project-account {
  position: relative;
  pointer-events: auto;
  min-width: 168px;
}

.project-account[data-open] {
  z-index: 40;
}

.project-account-trigger,
.project-account-item {
  cursor: pointer;
}

.project-account .project-account-trigger {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.project-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: calc(100vw - 32px);
  transform-origin: top right;
  animation: project-account-reveal 140ms ease-out;
}

.project-account-menu .project-account-item {
  width: 100%;
  justify-content: flex-start;
  padding: 0 12px;
  white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 94%, var(--hub-ink) 6%);
  text-decoration: none;
}

.project-account-menu .project-account-item:hover,
.project-account-menu .project-account-item:focus-visible {
  background: color-mix(in srgb, var(--surface) 88%, var(--hub-ink) 12%);
}

.project-account-trigger:focus-visible,
.project-account-item:focus-visible {
  outline: 2px solid var(--hub-ink);
  outline-offset: 2px;
}

@keyframes project-account-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .project-account-menu { animation: none; }
}

@media (max-width: 820px) {
  ._bar_i3pwo_96:has(.project-account) {
    align-items: flex-start;
    gap: 8px;
  }

  ._bar_i3pwo_96:has(.project-account) ._tools_i3pwo_107 {
    flex: 1;
    width: 0;
  }

  ._actions_1i2ks_167:has(.project-account) {
    display: flex;
    position: relative;
    top: auto;
    right: auto;
    flex: 0 0 auto;
  }

  .project-account .project-account-trigger,
  .project-account-menu .project-account-item {
    height: 44px;
  }
}
