/* The Edit canvas (studio.js openEditor): one version's PDF on aitopdf's canvas engine (static/pdf). */
.design-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
#editor {
  width: min(1200px, 96vw);
  height: 94vh;
  max-height: 94vh;
  padding: 16px;
  border: 1px solid var(--cl-border-strong);
  border-radius: 10px;
  color: var(--cl-text);
}
#editor[open] {
  display: flex;
  flex-direction: column;
}
#editor::backdrop {
  background: var(--cl-backdrop);
}
#editor .viewer-bar,
.editor-actions {
  flex-wrap: wrap;
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#editor-status {
  margin: 4px 0 10px;
}
.editor-stage {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  background: var(--cl-surface-3);
  border-radius: 6px;
  overflow: auto;
}
/* auto margins centre the page and, unlike centred flex alignment, never push part of it out of reach */
.editor-stage .pdf-page {
  margin: auto;
  box-shadow: 0 2px 10px #0003;
}
