.profile-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13, 26, 44, 0.36);
  backdrop-filter: blur(8px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.profile-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.profile-modal.layer-sheet {
  align-items: flex-end;
  justify-content: stretch;
  padding: 0;
  background: var(--layer-sheet-overlay);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.profile-modal.layer-sheet .layer-sheet-card {
  width: 100%;
  max-width: var(--layer-sheet-max-width);
  margin: 0 auto;
  border: 0;
  border-radius: var(--layer-sheet-radius) var(--layer-sheet-radius) 0 0;
  background: var(--layer-sheet-bg);
  box-shadow: none;
  text-align: initial;
  transform: translateY(100%);
  transition: transform 0.26s ease, opacity 0.26s ease;
  will-change: transform;
}

.profile-modal.layer-sheet.active .layer-sheet-card {
  transform: translateY(0);
}

.layer-sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--layer-sheet-handle);
  margin: 12px auto 20px;
}
