html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
}

/* KaTeX ships its own display margins; drop them so the formula sits
   centered in the output panel rather than pushed against its top edge. */
.katex-display {
  margin: 0;
}
