/* Notebooks: stacked cells driven by Jupyter keys. */

/* notebooks: cells stacked in one widget, driven by Jupyter's keys */
.notebook { outline: none; }
.notebook:focus-visible { box-shadow: inset 0 0 0 2px var(--you-tint); }
.nb-cell { display: grid; grid-template-columns: 56px minmax(0, 1fr); border-bottom: 1px solid var(--line); border-left: 3px solid transparent; cursor: default; }
.nb-cell:last-child { border-bottom: 0; }
.nb-cell.is-active { border-left-color: var(--you); background: #FAFBFF; }
.nb-cell:focus-within { border-left-color: var(--ok); }
.nb-gutter { display: grid; gap: 4px; align-content: start; justify-items: end; padding: 12px 6px 6px 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.nb-gutter .btn { min-height: 22px; padding: 0 6px; font-size: 11px; }
.nb-main { min-width: 0; }
.code-edit { display: grid; background: var(--surface-2); }
.code-edit > * {
  grid-area: 1 / 1; margin: 0; padding: var(--s3) var(--s4); border: 0;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6; tab-size: 4;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal;
}
.code-paint { color: var(--ink); pointer-events: none; min-height: calc(1.6em + 2 * var(--s3)); }
.code-input { width: 100%; height: 100%; resize: none; overflow: hidden; background: transparent; color: transparent; caret-color: var(--ink); }
.code-input::placeholder { color: var(--muted); }
.code-input:focus { outline: none; }
.code-input::selection { background: rgba(39, 71, 212, .22); color: transparent; }
.nb-note { padding: var(--s3) var(--s4); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-md); line-height: 1.5; }
.nb-note-edit { display: block; width: 100%; padding: var(--s3) var(--s4); border: 0; resize: none; background: var(--surface); font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.5; }
.nb-note-edit:focus { outline: none; }
.nb-hint { padding: 4px 10px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 11px; color: var(--muted); }
.cell-out.quiet { color: var(--muted); font-family: var(--font-body); font-size: var(--fs-xs); cursor: default; }
.widget.cell { cursor: default; }
.widget.cell .widget-head { cursor: grab; }
