.schema-generator {
  margin: 0 0 1.5rem;
}

.schema-generator__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid #e3ddd4;
  background: #fff8ed;
}

.schema-generator__toolbar select {
  min-width: 210px;
  padding: 9px 11px;
  border: 1px solid #d7c5ad;
  background: #fff;
  color: #263943;
  font: inherit;
}

.schema-generator__layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.schema-generator__form,
.schema-generator__preview {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce4e9;
  background: #f8fafb;
}

.schema-generator__field {
  margin-bottom: 13px;
}

.schema-generator__field:last-child {
  margin-bottom: 0;
}

.schema-generator__field label {
  display: block;
  margin-bottom: 5px;
  color: #334954;
  font-size: .9rem;
  font-weight: 700;
}

.schema-generator__field input,
.schema-generator__field textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid #bdc9d1;
  background: #fff;
  color: #263943;
  font: inherit;
}

.schema-generator__field input:focus,
.schema-generator__field textarea:focus,
.schema-generator__toolbar select:focus {
  outline: 2px solid rgba(238, 158, 45, .28);
  outline-offset: 1px;
  border-color: #ee9e2d;
}

.schema-generator__preview {
  background: #222b33;
  color: #e8eef2;
}

.schema-generator__preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.schema-generator__preview-head button {
  border: 0;
  border-radius: 5px;
  padding: 9px 12px;
  background: #ee9e2d;
  color: #1f2b33;
  font-weight: 700;
  cursor: pointer;
}

.schema-generator__preview pre {
  box-sizing: border-box;
  max-height: 520px;
  margin: 0;
  padding: 15px;
  overflow: auto;
  background: #161d23;
  color: #eaf2f5;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .86rem;
  line-height: 1.55;
}

.schema-generator__status {
  min-height: 1.5em;
  margin: 9px 0 0;
  padding: 0;
  color: #ffdb9b;
  font-size: .88rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .schema-generator__layout {
    grid-template-columns: 1fr;
  }

  .schema-generator__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .schema-generator__toolbar select {
    width: 100%;
    min-width: 0;
  }
}