.notebook-section { border-block: 1px solid var(--line); background: #f4f2eb; }
.notebook-panel { padding: clamp(1rem, 3vw, 1.8rem); border: 1px solid var(--line); border-radius: 0.5rem; background: var(--white); }
.notebook-panel :where(label, h3) { display: block; margin: 0 0 0.4rem; font-weight: 700; }
.notebook-control { max-width: 24rem; }
.notebook-control select, .notebook-editor textarea { box-sizing: border-box; width: 100%; border: 1px solid #8d818c; border-radius: 0.38rem; }
.notebook-control select { appearance: none; min-height: 2.75rem; padding: 0.5rem 2.2rem 0.5rem 0.65rem; background: var(--white); color: inherit; }
.notebook-control { position: relative; }
.notebook-control::after { position: absolute; right: 0.85rem; bottom: 1.12rem; width: 0.45rem; height: 0.45rem; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); content: ''; pointer-events: none; }
.notebook-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 1.6rem); margin-top: 1.25rem; }
.notebook-grid > div { min-width: 0; }
.notebook-grid h3 { font-size: 1.18rem; }
.notebook-grid p { margin: 0 0 0.85rem; color: var(--muted); line-height: 1.56; }
.notebook-editor textarea, #notebook-output { margin: 0; background: #28222b; color: #faf6f0; font-family: Consolas, Monaco, monospace; font-size: 0.92rem; line-height: 1.52; padding: 0.75rem; tab-size: 4; }
.notebook-editor textarea { display: block; min-height: 15rem; resize: vertical; white-space: pre; overflow: auto; }
#notebook-output { min-height: 6rem; max-height: 19rem; box-sizing: border-box; overflow: auto; border-radius: 0.38rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.notebook-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.notebook-actions .button[disabled] { opacity: 0.63; cursor: default; }
.notebook-checks { padding-left: 1.3rem; margin: 0.8rem 0; line-height: 1.55; }
.notebook-checks li + li { margin-top: 0.38rem; }
.notebook-hint { margin-top: 0.87rem; padding: 0.7rem 0.9rem; border-inline-start: 3px solid #87976a; border-radius: 0.25rem; background: #edf1e2; }
.notebook-hint summary { cursor: pointer; color: var(--accent-ink); font-weight: 680; }
.notebook-hint p { margin: 0.6rem 0 0; }
.notebook-runtime-note { border-top: 1px solid var(--line); margin: 1rem 0 0; padding-top: 0.75rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 47rem) { .notebook-grid { grid-template-columns: minmax(0, 1fr); } }
