/* Minimal styling for now — the goal at this stage is just to prove the
   config renders. Real design work comes later. */
body {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 2rem;
  line-height: 1.4;
}

.hint {
  color: #555;
}

#status {
  margin: 1rem 0;
}

.error {
  color: #b00020;
  font-weight: 600;
}

pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

.field-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0;
}

.field-row label {
  min-width: 12rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}

.field-row input {
  flex: 1;
  padding: 0.25rem 0.4rem;
  font-family: ui-monospace, monospace;
}

.field-row input[readonly] {
  background: #eee;
  color: #666;
}

details {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin: 0.4rem 0;
}

details summary {
  cursor: pointer;
  font-family: ui-monospace, monospace;
  font-weight: 600;
}

.nested-block {
  margin: 0.4rem 0 0.4rem 1rem;
  padding-left: 0.6rem;
  border-left: 2px solid #eee;
}

.nested-heading {
  font-family: ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.85rem;
  color: #555;
  margin: 0.3rem 0;
}

.slot-row select {
  padding: 0.25rem 0.4rem;
  font-family: ui-monospace, monospace;
}

/* Ensure a hidden slot input truly collapses even though .field-row input
   sets flex: 1 (which would otherwise keep it laid out). */
.slot-row input[hidden] {
  display: none;
}

.actions-empty {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: #777;
  margin: 0.3rem 0;
}

#actions {
  margin-top: 1rem;
}

#save-btn {
  padding: 0.4rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

#save-msg {
  margin-left: 0.75rem;
}

.success {
  color: #0a7d28;
  font-weight: 600;
}
