/* ---------- context kit form ---------- */
.kit-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 640px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.field input,
.field select,
.field textarea {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
  color: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%),
    linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) center,
    calc(100% - 13px) center;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-dim);
}

.field-hint {
  margin: 0;
  font-size: 13px;
  color: var(--slate-dim);
}

/* honeypot - visually hidden, still reachable by simple bots that skip display:none */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
}

.form-actions .btn {
  cursor: pointer;
  border: none;
  font-family: var(--display);
}

.form-actions .btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.error-box {
  font-family: var(--mono);
  font-size: 13px;
  color: #e08a6a;
  background: rgba(224, 138, 106, 0.08);
  border: 1px solid rgba(224, 138, 106, 0.3);
  border-radius: 4px;
  padding: 12px 14px;
  margin-top: 4px;
}

/* ---------- result ---------- */
.result pre {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 22px 24px;
  color: #d8dadd;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 60vh;
  overflow-y: auto;
  margin: 8px 0 20px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.result-actions .btn {
  cursor: pointer;
  border: none;
  font-family: var(--display);
  font-size: 15px;
  padding: 11px 20px;
}

.result-actions .btn-ghost {
  border: 1px solid var(--line);
}

@media (max-width: 760px) {
  .kit-form {
    max-width: none;
  }
}
