.python-scratch { display: grid; gap: .9rem; }
.python-scratch > :is(h2,p) { margin: 0; }
.python-field { display: grid; gap: .4rem; font-weight: 600; }
.python-field textarea {
  width: 100%; min-width: 0; resize: vertical; box-sizing: border-box;
  padding: .8rem; border: 1px solid #788a84; border-radius: .5rem;
  font: 400 .96rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: white; color: #20322d; tab-size: 4;
}
.python-field textarea.code-editor { background: #182923; color: #edf7ec; }
.python-input summary { cursor: pointer; font-weight: 600; }
.python-input .python-field { margin-top: .65rem; }
.python-status { font-size: .94rem; }
.python-scratch .python-output { max-height: 16rem; overflow: auto; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.python-output[hidden] { display: none; }
.python-scratch button:disabled { opacity: .55; cursor: default; }
