.editor-panel {
  width: min(100%, 760px);
  margin-block: auto;
  padding: 36px 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  text-align: center;
}

.editor-panel .page-title,
.editor-panel .eyebrow {
  text-align: center;
}

.editor-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.editor-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  margin-top: 28px;
}

.editor-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editor-flow .form-field {
  align-items: center;
  width: min(100%, 320px);
}

.editor-flow .form-label {
  text-align: center;
}

.editor-flow .select-menu {
  width: 100%;
}

.editor-tab {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--color-button-border);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.editor-tab:hover {
  background: var(--color-secondary-hover);
}

.editor-tab.is-selected,
.editor-tab.is-selected:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.editor-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.editor-block,
.editor-back {
  width: min(100%, 374px);
}

.editor-block .button {
  width: 100%;
}

.editor-block .form-error {
  margin-top: 8px;
  text-align: center;
}

.crop-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.crop-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #2b2d31;
  cursor: grab;
  touch-action: none;
}

.crop-canvas:active {
  cursor: grabbing;
}

.crop-zoom {
  display: block;
  max-width: 100%;
  margin: 12px 0 0;
}

.crop-help {
  margin: 8px 0 0;
  text-align: center;
}

.editor-back {
  margin-top: 28px;
}

@media (max-width: 520px) {
  .editor-panel {
    padding: 28px 20px;
  }
}
