.app {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
  height: 100vh;
  min-height: 0;
}

.editor {
  padding: 40px 36px;
  border-right: 1px solid var(--panel-border);
  background: #f7f2e9;
  overflow-y: auto;
  height: 100vh;
  min-height: 0;
}

.preview-pane {
  padding: 40px 36px;
  background: var(--bg);
  overflow-y: auto;
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preview-header {
  width: 100%;
  max-width: 820px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.preview-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .editor,
  .preview-pane {
    height: auto;
    min-height: auto;
    border-right: none;
  }

  .editor {
    border-bottom: 1px solid var(--panel-border);
  }
}

@media (max-width: 720px) {
  .editor,
  .preview-pane {
    padding: 28px 20px;
  }
}
