/* A module page's playground, on site.css's tokens: the boxes, the options,
   the answer and its error. */

.play-form { display: grid; gap: 14px; margin: 0 0 16px; }
.play-field label, .play-option label { display: block; font-size: 0.9rem; color: var(--muted); margin: 0 0 4px; }
.play-field textarea {
  width: 100%; min-height: 8rem; resize: vertical;
  padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font: 0.95rem/1.5 var(--mono);
}
.play-field textarea[aria-invalid="true"] { border-color: var(--accent); }
.play-options { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.play-option select { padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; max-width: 100%; }
.play-option { min-width: 0; max-width: 100%; }
.play-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.play-result { margin: 0 0 12px; }
.play-result[aria-busy="true"] { opacity: 0.6; transition: opacity 0.2s 0.15s; }
.play-error { padding: 14px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.play-error p { margin: 0; }
.play-answer-head { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; color: var(--muted); font-size: 0.9rem; }
.play-output { max-height: 28rem; overflow: auto; margin: 0; }
.play-pdf { display: block; width: 100%; height: 34rem; margin: 0 0 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.play-frame { display: block; width: 100%; height: 26rem; margin: 0 0 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.play-output code { white-space: pre-wrap; overflow-wrap: anywhere; }
.play-nowrap code { white-space: pre; overflow-wrap: normal; }
.play-share { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 12px; }
.play-share[hidden] { display: none; }
#play-copied { color: var(--muted); font-size: 0.92rem; }
.play-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .play-result[aria-busy="true"] { transition: none; } }
