/* Account indicator + logout — used on app pages and marketing header */
.app-header-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.app-account-bar {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.app-account-bar.is-visible {
  display: flex;
}

a.app-account-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.app-account-name:hover {
  text-decoration: underline;
}

.app-account-email {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.btn-logout {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

button.btn-logout:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}

button.btn-logout:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 768px) {
  .app-account-bar {
    align-items: flex-end;
  }

  .app-account-email {
    max-width: 140px;
    font-size: 0.68rem;
  }
}
