.recipe-controls {
  min-width: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-canvas);
  padding: 18px;
  background: var(--clean-surface);
}

.recipe-controls legend {
  padding: 0 6px;
  font-size: 18px;
  font-weight: 750;
}

#schema-input {
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.coverage-note {
  margin: -8px 0 0;
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 1.45;
}

.coverage-note[data-type="warning"] {
  color: var(--warning);
  font-weight: 650;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.section-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.section-heading p,
.table-note {
  margin: 5px 0 0;
  color: var(--muted-ink);
  font-size: 14px;
  line-height: 1.45;
}

.conflict-table-shell {
  max-height: 460px;
}

.merged-table-shell {
  max-height: 390px;
}

.review-select {
  min-width: 210px;
}

.candidate-limit-note {
  max-width: 38ch;
  margin: 7px 0 0;
  color: var(--warning);
  font-size: 13px;
  line-height: 1.4;
}

.key-value {
  max-width: 28ch;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}

.danger-button {
  color: var(--danger);
}

.empty-table-message {
  margin: 0;
  padding: 18px;
  color: var(--muted-ink);
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .key-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading button {
    width: 100%;
  }
}

@media (forced-colors: active) {
  .recipe-controls {
    border-color: CanvasText;
  }
}
