.studio-account-root {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font: inherit;
}

.studio-account-root > button {
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 32px;
  transition: background-color 120ms ease, color 120ms ease;
}

.studio-account-root > button:hover,
.studio-account-root > button:focus-visible {
  background: rgba(120, 120, 120, 0.12);
  outline: none;
}

.studio-account-wallet,
.studio-account-login {
  padding: 0 10px;
  border: 1px solid rgba(120, 120, 120, 0.16) !important;
  background: rgba(120, 120, 120, 0.055) !important;
  font-variant-numeric: tabular-nums;
}

.studio-account-wallet::before {
  content: "▣";
  margin-right: 5px;
  font-size: 12px;
}

.studio-account-user {
  max-width: 118px;
  overflow: hidden;
  padding: 0 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-account-user::after {
  content: "⌄";
  margin-left: 5px;
  opacity: 0.65;
}

.studio-account-menu {
  position: absolute;
  z-index: 9999;
  top: calc(100% + 8px);
  right: 0;
  width: 216px;
  overflow: hidden;
  border: 1px solid rgba(120, 120, 120, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  color: #1c1917;
  padding: 6px;
}

.dark .studio-account-menu {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1c1917;
  color: #f5f5f4;
}

.studio-account-identity {
  overflow: hidden;
  padding: 9px 10px 10px;
  border-bottom: 1px solid rgba(120, 120, 120, 0.18);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-account-menu-item {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 2px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 36px;
  text-align: left;
}

.studio-account-menu-item:hover,
.studio-account-menu-item:focus-visible {
  background: rgba(120, 120, 120, 0.12);
  outline: none;
}

.studio-account-logout {
  margin-top: 6px;
  border-top: 1px solid rgba(120, 120, 120, 0.18);
  border-radius: 0 0 6px 6px;
  color: #ef4444;
}

@media (max-width: 760px) {
  .studio-account-user {
    width: 32px;
    padding: 0;
    font-size: 0;
  }

  .studio-account-user::before {
    content: "○";
    font-size: 14px;
  }

  .studio-account-user::after {
    display: none;
  }
}
