.notebook-reader {
  --notebook-border: var(--app-line, var(--background-modifier-border));
  --notebook-muted: var(--app-muted, var(--text-muted));
  --notebook-bg: var(--app-panel, var(--background-secondary));
  overflow-wrap: anywhere;
}
.notebook-summary, .notebook-cell-label, .notebook-muted {
  color: var(--notebook-muted);
  font-size: 12px;
}
.notebook-summary { margin-bottom: 24px; }
.notebook-cell { min-width: 0; margin: 0 0 26px; }
.notebook-cell-label { margin: 0 0 6px; }
.notebook-reader pre {
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
  padding: 12px 14px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid var(--notebook-border);
  background: var(--notebook-bg);
}
.notebook-reader .notebook-output-text {
  background: transparent;
  border: 0;
  padding: 12px 0;
}
.notebook-outputs { margin-top: 6px; }
.notebook-output { min-width: 0; overflow-x: auto; }
.notebook-reader img { max-width: 100%; height: auto; }
.notebook-reader .notebook-output-image {
  display: block;
  margin: 12px 0;
  background: white;
}
.notebook-error { color: var(--text-error, #ff8585); }
.notebook-reader table { border-collapse: collapse; max-width: 100%; }
.notebook-reader td, .notebook-reader th {
  padding: 6px 9px;
  border: 1px solid var(--notebook-border);
}
.notebook-actions { display: flex; gap: 12px; align-items: center; margin: 0 0 20px; flex-wrap: wrap; }
.notebook-actions button { cursor: pointer; }
.notebook-view { overflow-y: auto; padding: 24px; }
@media (max-width: 560px) {
  .notebook-view { padding: 16px; }
  .notebook-reader pre { font-size: 12px; padding: 10px; }
}
