/* Logged-in user chip + logout */

.am-user-session {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.35rem 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d7e3ee;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  max-width: min(100%, 260px);
}

.am-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #466691;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.am-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.am-user-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e3a5f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.am-user-login {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  direction: ltr;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.am-user-logout {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #466691;
  background: #eef4fa;
  text-decoration: none;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease;
}

.am-user-logout svg {
  width: 16px;
  height: 16px;
}

.am-user-logout:hover {
  background: #dc2626;
  color: #fff;
}

.fc-nav-user {
  padding: 0.55rem 0.75rem 0.25rem;
}

.fc-nav-user .am-user-session {
  width: 100%;
  max-width: none;
  border-radius: 12px;
  justify-content: flex-start;
}

.fc-nav-user .am-user-name,
.fc-nav-user .am-user-login {
  max-width: none;
}

.fc-topbar-right .am-user-session {
  margin-inline-start: 0.35rem;
}

.sk-topbar-links .am-user-session {
  margin-inline-start: 0.15rem;
}

@media (max-width: 720px) {
  .am-user-meta { display: none; }
  .am-user-session {
    padding: 0.2rem;
    gap: 0.25rem;
  }
}
