.tgi-account {
  display: inline-flex;
  min-width: 72px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
}

.tgi-account.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.account-login,
.account-logout {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #151515;
  color: var(--text);
  padding: 9px 14px;
  font: 600 12px "DM Sans", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.account-login:hover,
.account-logout:hover {
  border-color: var(--gold);
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-profile[hidden],
.account-login[hidden] {
  display: none;
}

.account-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #161107;
  font: 700 12px "Space Grotesk", sans-serif;
}

.account-name {
  max-width: 110px;
  overflow: hidden;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-logout {
  padding: 7px 10px;
  color: var(--muted);
}

.auth-notice {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  border: 1px solid #70452f;
  border-radius: 12px;
  background: #1c120e;
  box-shadow: 0 18px 48px #000a;
  color: #f0d0bc;
  padding: 13px 16px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .site-nav .tgi-account {
    justify-content: stretch;
    padding: 8px 12px 4px;
  }

  .site-nav .account-login,
  .site-nav .account-profile {
    width: 100%;
  }

  .site-nav .account-login {
    text-align: center;
  }

  .site-nav .account-name {
    flex: 1;
  }
}
