.precision-editor-modal {
  background: rgba(248, 250, 255, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

html.dark .precision-editor-modal {
  background: rgba(2, 8, 23, 0.12);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.precision-editor-modal[data-state='open'] {
  opacity: 1;
}

.precision-editor-modal__shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transform: translateY(10px) scale(0.992);
  transform-origin: center center;
  transition: transform 0.24s cubic-bezier(0.22, 0.88, 0.22, 1);
}

.precision-editor-modal[data-state='open'] .precision-editor-modal__shell {
  transform: translateY(0) scale(1);
}

.precision-editor-modal__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.precision-editor-modal__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f8f9ff;
  opacity: 0;
  pointer-events: none;
}

.precision-editor-modal__frame.is-active {
  opacity: 1;
  pointer-events: auto;
}

.precision-editor-modal__frame.is-loaded {
  transition: opacity 0.18s ease;
}

.precision-editor-modal__frame--dark {
  background: #0b1326;
}

@media (max-width: 1280px) {
  .precision-editor-modal__shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .precision-editor-modal {
    padding: 0;
  }

  .precision-editor-modal__shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}
