/* One stable entrance for Capture Memory across desktop and mobile. */
html body .app-shell .memory-editor,
html body main.app-shell .memory-editor {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform-origin: center 22% !important;
  translate: 0 10px;
  will-change: opacity, translate;
  transition: opacity 220ms ease-out !important;
}

html body .app-shell .memory-editor.open,
html body main.app-shell .memory-editor.open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: mymappiMemoryEditorEnter 340ms cubic-bezier(0.2, 0.76, 0.24, 1) both !important;
}

@keyframes mymappiMemoryEditorEnter {
  0% {
    translate: 0 10px;
  }

  100% {
    translate: 0 0;
  }
}

@media (max-width: 760px) {
  html body .app-shell .memory-editor,
  html body main.app-shell .memory-editor,
  html body .app-shell .memory-editor.open,
  html body main.app-shell .memory-editor.open {
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .memory-editor.open,
  html body main.app-shell .memory-editor.open {
    animation: mymappiMemoryEditorEnterReduced 1ms linear both !important;
    transition-duration: 1ms !important;
  }
}

@keyframes mymappiMemoryEditorEnterReduced {
  from { translate: 0 0; }
  to { translate: 0 0; }
}
