.schema-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0 70px;
}
.schema-editor,
.schema-output {
  min-width: 0;
  border-radius: 28px;
  padding: 28px;
  background: #f5f5f7;
}
.schema-output {
  background: #f0f4ff;
}
.schema-workbench label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0 8px;
}
.schema-workbench label:first-child {
  margin-top: 0;
}
.schema-workbench input,
.schema-workbench select,
.schema-workbench textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: #1d1d1f;
  background: white;
}
.schema-workbench textarea {
  font:
    13px/1.65 ui-monospace,
    SFMono-Regular,
    monospace;
  resize: vertical;
  tab-size: 2;
}
.schema-workbench input:focus-visible,
.schema-workbench textarea:focus-visible,
.schema-workbench select:focus-visible,
.schema-workbench summary:focus-visible {
  outline: 3px solid #385de0;
  outline-offset: 3px;
}
.schema-workbench .output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.schema-workbench button {
  min-height: 44px;
}
.schema-workbench h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.schema-workbench .fine {
  font-size: 13px;
  line-height: 1.65;
  color: #65656d;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.schema-summary {
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.schema-tree {
  background: white;
  border-radius: 18px;
  padding: 18px;
  max-height: 620px;
  overflow: auto;
  margin: 18px 0;
}
.schema-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schema-tree ul ul {
  padding-left: 16px;
  border-left: 1px solid #e7e7ee;
  margin-left: 5px;
}
.schema-tree li {
  margin: 7px 0;
  min-width: 0;
}
.schema-tree summary {
  cursor: pointer;
  min-height: 32px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.schema-tree summary span {
  color: #686870;
  font-size: 12px;
  margin-left: 8px;
}
.schema-tree code {
  font:
    600 13px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  color: #263a83;
  overflow-wrap: anywhere;
}
.schema-leaf {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.schema-value {
  font:
    13px/1.65 ui-monospace,
    SFMono-Regular,
    monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.schema-path {
  display: block;
  font:
    11px/1.6 ui-monospace,
    SFMono-Regular,
    monospace;
  color: #73737b;
  overflow-wrap: anywhere;
}
.schema-notes {
  font-size: 13px;
  line-height: 1.65;
  padding-left: 18px;
  overflow-wrap: anywhere;
  color: #6b5018;
}
.schema-notes:empty {
  display: none;
}
.schema-notes li {
  margin: 10px 0;
}
.schema-notes code {
  font:
    11px/1.65 ui-monospace,
    SFMono-Regular,
    monospace;
  display: block;
}
.schema-workbench button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (max-width: 1000px) {
  .schema-workbench {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .schema-editor,
  .schema-output {
    padding: 20px;
    border-radius: 22px;
  }
  .schema-workbench input,
  .schema-workbench select,
  .schema-workbench textarea {
    font-size: 16px;
  }
  .schema-tree {
    padding: 12px;
  }
  .schema-tree ul ul {
    padding-left: 10px;
  }
  .schema-workbench .output-actions {
    gap: 8px;
  }
  .schema-workbench button {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .schema-workbench * {
    transition: none !important;
  }
}
/* Keep tree disclosure rows independent of the marketing FAQ styles. */
.schema-tree details,
#result .schema-tree details {
  border: 0;
  padding: 0;
}
.schema-tree summary,
#result .schema-tree summary {
  display: list-item;
  list-style: disclosure-closed;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}
.schema-tree details[open] > summary {
  list-style: disclosure-open;
}
.schema-tree summary::-webkit-details-marker {
  display: inline;
}
.schema-tree summary span,
.schema-tree details[open] summary span {
  display: inline;
  transform: none;
  transition: none;
  font-weight: 400;
}
