/* Keep the original preview in view only within the open editor. */
@media (max-width: 900px) {
  #designer .designer {
    --mobile-editor-visual-height: clamp(110px, 20svh, 175px);
    --mobile-editor-scroll-padding: calc(var(--editor-header-top, 100px) + var(--mobile-editor-visual-height) + 80px);
  }

  #designer .designer #mobile-editor-visual-host {
    position: sticky;
    top: var(--editor-header-top, 100px);
    z-index: 12;
    margin-bottom: 16px;
    background: var(--bg);
    box-shadow: 0 6px 16px #00000012;
  }

  #designer .editor-visual #engraving-preview {
    height: var(--mobile-editor-visual-height);
  }

  #designer .editor-visual #preview-note,
  #designer .editor-visual .editor-drag-hint {
    display: none;
  }

  #designer .designer :is(.positions-heading, .field, .approve, #file-field) {
    scroll-margin-top: var(--mobile-editor-scroll-padding);
  }

  #designer .designer .editor-zoom-button {
    margin-top: 2px;
  }
}

@media (max-width: 900px) and (max-height: 550px) {
  #designer .designer {
    --mobile-editor-visual-height: 92px;
  }
}
