/* Try Decide: the form, the JSON and the answer. Loaded by try-decide.html only. */
.try-decide .try-panel { padding-top: 6px; }
.try-decide h2 { margin-top: 48px; }
.try-decide h3 { margin: 30px 0 8px; font-size: 19px; }
.decide-help, .decide-note { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.decide-note.is-edited { color: #b45309; }
.decide-examples { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.decide-examples .button, .decide-add { padding: 9px 14px; font-size: 15px; }
.decide-add { margin-top: 10px; }
.decide-rows { display: grid; gap: 10px; }
.decide-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.decide-row input, .decide-row select, .try-decide textarea, .decide-wide {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.decide-row input { flex: 1 1 140px; min-width: 0; }
.decide-row select { flex: 0 1 auto; max-width: 100%; }
.decide-rule input { flex: 0 1 120px; }
.decide-choice input:last-of-type { flex: 3 1 220px; }
.decide-word { color: var(--muted); font-size: 15px; }
.decide-wide { display: block; width: 100%; margin: 8px 0; box-sizing: border-box; }
.decide-label { display: block; margin-top: 14px; color: var(--ink); font-size: 15px; font-weight: 600; }
.try-decide textarea { display: block; width: 100%; box-sizing: border-box; resize: vertical; }
.decide-remove {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.decide-remove:hover, .decide-remove:focus { border-color: #b91c1c; color: #b91c1c; }
.decide-group { margin: 16px 0; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--tint); }
.decide-group-head input { font-weight: 600; }
#decide-json { min-height: 22em; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
.decide-json-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 0; }
.decide-send-row { margin-top: 22px; }
.decide-result { margin: 14px 0; padding: 18px 20px; border-radius: 9px; border-left: 4px solid var(--blue); background: var(--tint); }
.decide-result.is-refused { border-left-color: #b45309; background: #fff7ed; }
.decide-result h3 { margin: 0 0 6px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.decide-result p { margin: 6px 0; }
.decide-result ul { margin: 6px 0 0; padding-left: 20px; }
.decide-headline { color: var(--ink); font-size: 21px; font-weight: 700; line-height: 1.35; }
.decide-why { margin-top: 12px !important; font-weight: 600; }
#decide-response { display: block; min-height: 3em; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 640px) {
  .decide-row { align-items: stretch; }
  .decide-row input, .decide-row select { flex: 1 1 100%; }
  .decide-word { flex: 1 1 100%; }
  /* Each fact, rule and choice is one card, so it is clear which fields go together. */
  .decide-fact, .decide-rule, .decide-choice { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
  .decide-row .decide-remove { flex: 0 0 auto; margin-left: auto; }
}
