/* Editor layout */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .editor-preview {
    position: sticky;
    top: 80px;
  }
}

.editor-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.editor-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(20,33,61,.08);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.preview-frame {
  width: 100%;
  height: 620px;
  border: none;
  display: block;
  background: #fff;
}

@media (max-width: 1023px) {
  .preview-frame { height: 500px; }
  .editor-layout.preview-active .editor-form { display: none; }
  .editor-layout.preview-active .editor-preview { display: block; }
  .editor-layout:not(.preview-active) .editor-preview { display: none; }
}

.preview-toggle { margin-bottom: 16px; }
@media (min-width: 1024px) { .preview-toggle { display: none; } }

.menu-item-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  background: #fff;
}

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.menu-item-head strong { font-size: 13px; }
.menu-item-form .btn-danger { padding: 4px 10px; min-height: 28px; font-size: 12px; }