/* Scoped to the playground so it coexists with the site's own stylesheet. */
.lambda-playground { font: 15px/1.45 system-ui, sans-serif; max-width: 48rem; margin: 1.5rem 0; }
.lambda-playground textarea { width: 100%; box-sizing: border-box; font: 1rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: .5rem; border: 1px solid #bbb; border-radius: 4px; resize: vertical; }
.lambda-playground .row { margin: .4rem 0; }
.lambda-playground .controls { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.lambda-playground button { font: inherit; padding: .25rem .7rem; border: 1px solid #888; border-radius: 4px; background: #f4f4f4; cursor: pointer; }
.lambda-playground button:disabled { opacity: .45; cursor: default; }
.lambda-playground label { color: #444; }
.lambda-playground input[type=number] { width: 5.5rem; font: inherit; }
.lambda-playground select { font: inherit; }
.lambda-playground .status { margin: .5rem 0; color: #333; min-height: 1.4em; }
.lambda-playground .status.error { color: #a1130b; }
.lambda-playground .status.done { color: #1b6e1b; }
.lambda-playground .status.limit { color: #8a5a00; }
.lambda-playground .trace { margin: 0; padding-left: 3rem; max-height: 24rem; overflow: auto; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
.lambda-playground .trace:empty { display: none; }
.lambda-playground .trace li { padding: .15rem .4rem; }
.lambda-playground .trace li:last-child { font-weight: 600; }
.lambda-playground .trace code { font: .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
@media (prefers-color-scheme: dark) {
  .lambda-playground textarea, .lambda-playground .trace { background: #1c1c1c; color: #eee; border-color: #444; }
  .lambda-playground button { background: #2a2a2a; color: #eee; border-color: #666; }
  .lambda-playground label, .lambda-playground .status { color: #ccc; }
}
