.auth-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.auth-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.auth-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.auth-btn-ghost {
  background: transparent;
  color: var(--accent);
}

.auth-btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.auth-slot.is-user {
  gap: 7px;
  padding: 3px 4px 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.auth-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.auth-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.auth-name,
.auth-email {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.auth-email {
  font-size: 10.5px;
  color: var(--muted);
  direction: ltr;
  text-align: right;
}

.auth-link {
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1;
  padding: 6px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.auth-link:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

@media (max-width: 640px) {
  .auth-email {
    display: none;
  }

  .auth-name {
    max-width: 110px;
  }

  .auth-btn {
    padding: 7px 12px;
  }
}
