.dashboard-account { position: relative; }

.dashboard-user-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 7px 4px 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text, var(--text-main, #f5f7fb));
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.dashboard-user-button:hover,
.dashboard-user-button[aria-expanded="true"] {
  border-color: var(--line-strong, rgba(255,255,255,.18));
  background: rgba(255,255,255,.035);
}

.dashboard-user-avatar {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-soft, var(--line, rgba(255,255,255,.11)));
  border-radius: 9px;
  object-fit: cover;
  background: rgba(255,255,255,.04);
}

.dashboard-user-name {
  max-width: 160px;
  overflow: hidden;
  font-size: .82rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-caret {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  color: var(--text-dim, var(--dim, #747a85));
}

.dashboard-user-button[aria-expanded="true"] .dashboard-user-caret { transform: rotate(180deg); }

.dashboard-user-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  width: 248px;
  padding: 7px;
  border: 1px solid var(--line-strong, rgba(255,255,255,.18));
  border-radius: 10px;
  background: #101319;
  box-shadow: 0 18px 45px rgba(0,0,0,.4);
}

.dashboard-user-menu-profile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line-soft, var(--line, rgba(255,255,255,.11)));
}

.dashboard-user-menu-profile img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.dashboard-user-menu-profile div { min-width: 0; }

.dashboard-user-menu-profile strong,
.dashboard-user-menu-profile > div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-menu-profile strong {
  color: var(--text, var(--text-main, #f5f7fb));
  font-size: .82rem;
}

.dashboard-user-menu-profile > div > span {
  margin-top: 2px;
  color: var(--text-dim, var(--dim, #747a85));
  font-size: .7rem;
}

.dashboard-user-menu > a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text-muted, var(--muted, #a8adb7));
  text-decoration: none;
  font-size: .8rem;
  transition: color .2s ease, background .2s ease;
}

.dashboard-user-menu > a:hover,
.dashboard-user-menu > a:focus-visible {
  color: var(--text, var(--text-main, #f5f7fb));
  background: rgba(255,255,255,.05);
}

.dashboard-user-menu .account-global {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 6px 0 0;
  min-width: 0;
  color: var(--text-dim, var(--dim, #747a85));
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-user-menu .account-global [data-global-level] {
  display: inline;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  flex: 0 1 auto;
}

.dashboard-user-menu .account-global a {
  min-height: 0;
  display: inline;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  color: var(--text-muted, var(--muted, #a8adb7));
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  transition: color .2s ease;
}

.dashboard-user-menu .account-global a:hover {
  background: none;
  color: var(--text, var(--text-main, #f5f7fb));
}

.dashboard-user-menu .account-global-visibility {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  color: var(--text-muted, var(--muted, #a8adb7));
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
  cursor: pointer;
}

.dashboard-user-menu .account-global-visibility select {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line-soft, var(--line, rgba(255,255,255,.11)));
  border-radius: 7px;
  color: var(--text, var(--text-main, #f5f7fb));
  background: #0c0f14;
  font: inherit;
  font-size: .68rem;
  cursor: pointer;
}

.dashboard-user-menu form { margin: 0; }

.dashboard-user-menu .menu-logout {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted, var(--muted, #a8adb7));
  background: none;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: .8rem;
  transition: color .2s ease;
}

.dashboard-user-menu .menu-logout:hover {
  color: #ffb4b4;
  background: none;
}
