/* Prompt Editor */

.prompt-editors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s1, 1rem);
}

.prompt-editor label {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  margin-block-end: var(--s-3, 0.25rem);
}

.prompt-textarea {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  width: 100%;
  resize: vertical;
}

/* Variable reference panel */

.variable-reference {
  margin-block-start: var(--s1, 1rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--s0, 0.75rem);
}

.variable-reference-toggle {
  display: flex;
  align-items: center;
  gap: var(--s-3, 0.25rem);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0;
}

.variable-reference-toggle:hover {
  color: var(--color-text);
}

.variable-reference h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-block-start: var(--s0, 0.75rem);
  margin-block-end: var(--s-4, 0.125rem);
}

.variable-reference h4:first-child {
  margin-block-start: var(--s-2, 0.25rem);
}

.variable-reference dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4, 0.125rem) var(--s0, 0.75rem);
  margin: 0;
  font-size: var(--font-size-sm);
}

.variable-reference dt {
  font-family: var(--font-mono);
  color: var(--color-text);
  white-space: nowrap;
}

.variable-reference dd {
  color: var(--color-text-muted);
  margin: 0;
}
