.panel {
  background: var(--rich-white);
  display: block;
  box-shadow: var(--heavy-shadow);
  gap: 1.25rem;
  width: max-content;
  height: max-content;
  padding: 1.5rem 2rem;
  border-radius: var(--base-radius);
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--black-glass);
  backdrop-filter: blur(0.25rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
}

.overlay.active,
.overlay.is-active,
.overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10400;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

.modal .content {
  background: var(--rich-white);
  border-radius: var(--base-radius);
  padding: 1.5rem 2rem;
  width: clamp(20rem, 90%, 40rem);
  box-shadow: var(--heavy-shadow);
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}