/* Formula layout shares the surrounding Claude-style typography and colors. */
.studio-math{font-size:1em;max-width:100%;overflow-wrap:normal;word-break:normal}
.studio-math .katex{font-size:1.08em;text-indent:0;line-height:1.2}
.studio-math-block{display:block;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:.4em .1em;margin:.8em 0;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.studio-math-block .katex-display{margin:.25em 0;text-align:center;min-width:min-content}
.studio-math:not(.studio-math-block){display:inline-block;vertical-align:middle;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:.18em 0;margin:-.18em 0}
.studio-math-source{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em;white-space:pre-wrap;overflow-wrap:anywhere;color:inherit;opacity:.85}
.studio-math .katex-mathml{user-select:none}
.studio-math .katex .cjk_fallback{font-family:"PingFang SC","Microsoft YaHei",sans-serif}
@media(max-width:600px){.studio-math-block{margin:.65em 0;padding:.45em 0}.studio-math .katex{font-size:1.04em}}

/* Deferred mobile formulas remain selectable, readable source until in view. */
.studio-math[data-studio-tex]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em;white-space:pre-wrap;overflow-wrap:anywhere}
