/* =========================================================
   Pellosy 统一登录状态组件样式
   仅作用于 style3.css 设计语言的页面头部。
   ========================================================= */

.auth-user {
  position: relative;
  display: inline-flex;
}

.auth-chip {
  gap: 10px;
  min-width: 0;
}

.auth-chip-avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--black);
  background: var(--acid);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.auth-chip-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  background: var(--paper-light);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(23, 23, 23, .14);
}

.auth-menu[hidden] {
  display: none;
}

.auth-menu a,
.auth-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 11px;
  letter-spacing: .03em;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.auth-menu a:hover,
.auth-menu button:hover {
  color: var(--white);
  background: var(--ink);
}

.auth-menu a:first-child {
  border-bottom: 1px solid var(--line);
}

.auth-menu i {
  font-size: 14px;
  font-style: normal;
}

@media (max-width: 760px) {
  .auth-chip-name {
    max-width: 76px;
  }

  .auth-menu {
    right: auto;
    left: 0;
  }
}
