.notebook-output {
  margin: 0.85rem 0 1.25rem;
  overflow-x: auto;
}

.notebook-output figure {
  margin: 0;
}

.notebook-output figcaption {
  margin: 0 0 0.4rem;
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 600;
}

.notebook-table {
  border-collapse: collapse;
  border: 1px solid var(--table-border-color);
  border-radius: 6px;
  font-size: 0.86rem;
  min-width: 100%;
  overflow: hidden;
}

.notebook-table th,
.notebook-table td {
  border-bottom: 1px solid var(--table-border-color);
  padding: 0.45rem 0.65rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.notebook-table th {
  background: var(--quote-bg);
  font-weight: 600;
}

.notebook-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--quote-bg) 45%, transparent);
}

.notebook-table tbody tr:last-child td {
  border-bottom: 0;
}

.notebook-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.85rem 0 1.25rem;
}

.notebook-metric {
  border: 1px solid var(--table-border-color);
  border-radius: 6px;
  min-width: 8rem;
  padding: 0.65rem 0.85rem;
}

.notebook-metric-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.notebook-metric-label {
  color: var(--fg);
  display: block;
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.notebook-callout {
  border-left: 4px solid var(--links);
  background: var(--quote-bg);
  margin: 0.85rem 0 1.25rem;
  padding: 0.75rem 0.9rem;
}
