.math-inline, .math-block { color: var(--ink); font-family: 'Times New Roman', 'STIX Two Math', serif; }
.math-inline { display: inline-block; padding: 0 2px; font-size: 1.05em; }
.math-block { display: block; margin: 8px 0; text-align: center; font-size: 1.3em; }
.math-frac { display: inline-flex; flex-direction: column; vertical-align: middle; align-items: stretch; min-width: 1.3em; margin: 0 2px; text-align: center; line-height: 1.1; }
.math-frac > span:first-child { padding: 0 3px 2px; border-bottom: 1px solid currentColor; }
.math-frac > span:last-child { padding: 2px 3px 0; }
.math-root { display: inline-flex; align-items: flex-start; gap: 1px; }
.math-root > span { border-top: 1px solid currentColor; padding: 0 2px; }
.math-vector { position: relative; display: inline-block; padding: 0 2px; }
.math-vector::after { position: absolute; top: -0.42em; right: -0.08em; content: '→'; font-size: 0.7em; line-height: 1; }
.math-word { font-style: italic; }
.math-accent { position: relative; display: inline-block; padding: 0 1px; }
.math-accent-hat::before { position: absolute; top: -0.62em; left: 50%; content: '^'; transform: translateX(-50%); font-size: 0.75em; line-height: 1; }
.math-accent-bar::before, .math-accent-overline::before { position: absolute; top: 0; right: 0; left: 0; border-top: 1px solid currentColor; content: ''; }
.math-accent-underline { text-decoration: underline; text-decoration-thickness: 1px; }
.math-text { font-family: inherit; font-style: normal; }
.math-cases { display: inline-flex; align-items: center; vertical-align: middle; gap: 2px; }
.math-cases > b { align-self: stretch; padding: 0 2px; font-size: 1.5em; font-weight: 400; line-height: 1.15; }
.math-cases > span { display: inline-grid; gap: 1px; }
.math-cases > span > span { display: block; white-space: nowrap; }
.math-raw { color: #f3baa3; font-family: var(--mono); font-size: 0.9em; }
.rich-table { width: 100%; margin: 10px 0; border-collapse: collapse; color: var(--muted); font-size: 0.92em; line-height: 1.45; white-space: normal; }
.rich-table th, .rich-table td { padding: 5px 7px; border: 1px solid rgba(220,232,237,0.2); text-align: center; }
.rich-table th { color: var(--ink); background: rgba(240,202,115,0.1); font-weight: 700; }