.profile-modal {
  width: clamp(260px, 80vw, 380px);
  border: 1px solid var(--md-sys-color-outline);
  border-radius: var(--md-sys-shape-corner-lg);
  padding: 0;
  background: var(--md-sys-color-surface-container-high);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.profile-modal[open] {
  opacity: 1;
  transform: translateY(0);
}

.profile-modal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.profile-modal-title {
  margin: 0;
  font-size: 1rem;
  color: var(--md-sys-color-on-surface);
}

.profile-modal .icon-btn {
  color: var(--md-sys-color-on-surface);
}

.profile-modal .icon-btn:hover {
  background: var(--md-sys-color-surface-variant);
}

.profile-modal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-modal-avatar-row {
  align-self: center;
  margin-bottom: 4px;
}

.profile-modal-avatar {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  object-fit: cover;
}

.profile-modal-avatar-fallback {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  background-color: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.profile-modal-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-modal-label {
  font-size: 0.75rem;
  color: var(--md-sys-color-on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-modal-value {
  font-size: 1rem;
  color: var(--md-sys-color-on-surface);
  word-break: break-all;
}
