.auth-account-dock {
  display: flex;
  flex: 0 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.auth-account-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  max-width: min(260px, calc(100vw - 28px));
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(132, 198, 244, 0.32);
  border-radius: 12px;
  background: rgba(12, 29, 45, 0.96);
  color: #eef7ff;
  text-decoration: none;
  font-family: "Exo 2", system-ui, sans-serif;
  transition: border-color 180ms ease-out, background-color 180ms ease-out, transform 180ms ease-out;
}

.auth-account-link::after {
  content: "›";
  flex: 0 0 auto;
  margin-left: 2px;
  color: #71f0d8;
  font-size: 1.18rem;
  line-height: 1;
}

.auth-account-link:hover {
  border-color: rgba(71, 226, 197, 0.66);
  background: rgba(17, 40, 58, 0.98);
  transform: translateY(-1px);
}

.auth-account-link:focus-visible {
  outline: 3px solid rgba(71, 226, 197, 0.34);
  outline-offset: 2px;
}

.auth-account-link.is-loading {
  pointer-events: none;
}

.auth-account-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(71, 226, 197, 0.14);
  color: #71f0d8;
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-account-copy {
  display: grid;
  min-width: 0;
  line-height: 1.12;
}

.auth-account-copy strong,
.auth-account-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-account-copy strong {
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-account-copy small {
  margin-top: 2px;
  color: #a8bfd4;
  font-size: 0.68rem;
}

#landing .auth-account-link {
  max-width: 210px;
}

@media (max-width: 720px) {
  #landing .auth-account-link {
    max-width: 170px;
  }

  #landing .auth-account-copy small {
    display: none;
  }
}

@media (max-width: 520px) {
  #landing .auth-account-dock {
    flex-basis: 100%;
  }
}

@media (max-width: 430px) {
  #landing .auth-account-link {
    gap: 7px;
    min-height: 44px;
    max-width: 132px;
    padding: 4px 7px 4px 5px;
  }

  #landing .auth-account-avatar {
    width: 30px;
    height: 30px;
  }

  #landing .auth-account-copy strong {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-account-link {
    transition: none;
  }

  .auth-account-link:hover {
    transform: none;
  }
}
