.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  transition: opacity 0.2s ease;
}a


.modal.hidden {
  display: none;
}

.modal__panel {
  background: white;
  border-radius: 0.5rem;
  max-width: 600px;
  width: 90vw;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp 0.25s ease;
}

.modal__overlay {
  position: absolute;
  inset: 0;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}