.math-markdown{font-size:16px;line-height:1.8;overflow-wrap:anywhere;min-width:0;text-wrap:pretty}.math-markdown p{white-space:normal;margin:12px 0;font-size:inherit;line-height:inherit}.math-markdown>:first-child{margin-top:0}.math-markdown>:last-child{margin-bottom:0}.math-markdown h1,.math-markdown h2,.math-markdown h3,.math-markdown h4{line-height:1.4;margin:24px 0 12px}.math-markdown h1{font-size:25px}.math-markdown h2{font-size:22px}.math-markdown h3{font-size:19px}.math-markdown h4{font-size:17px}.math-markdown ul,.math-markdown ol{padding-left:26px;margin:12px 0}.math-markdown li+li{margin-top:5px}.math-markdown blockquote{margin:16px 0;padding:12px 18px;background:var(--panel-soft,#f4f6f5);border-left:3px solid var(--primary,#0f7660);border-radius:10px;color:var(--muted)}.math-markdown pre{overflow:auto;padding:14px;background:var(--panel-soft,#f4f6f5);border:1px solid var(--line);border-radius:10px;white-space:pre;max-width:100%;font-size:13px}.math-markdown code{font-family:Consolas,monospace;background:var(--panel-soft,#f4f6f5);border-radius:4px;padding:2px 5px}.math-markdown pre code{padding:0;background:transparent}.math-markdown a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}.math-markdown img{max-width:100%;height:auto;border-radius:10px}.math-markdown hr{border:0;border-top:1px solid var(--line);margin:20px 0}.math-table-scroll{overflow-x:auto;max-width:100%;margin:16px 0;border:1px solid var(--line);border-radius:10px}.math-table-scroll table{width:100%;border-collapse:collapse;font-size:14px}.math-table-scroll th,.math-table-scroll td{padding:10px 14px;border:1px solid var(--line);white-space:normal;min-width:100px;line-height:1.6}.math-table-scroll th{background:var(--panel-soft,#f4f6f5);color:var(--text)}.math-equation-block{overflow-x:auto;max-width:100%;padding:6px 2px}.math-equation .katex{font-size:1.13em}.math-equation .katex-display{margin:10px 0;text-align:center;overflow:visible}.math-equation-error{color:var(--danger,#c4453d);font:14px/1.8 Consolas,monospace;white-space:pre-wrap}.math-image-note{color:var(--muted);font-size:14px}.math-writing-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px}.math-preview-toggle{display:flex;gap:4px;padding:4px;border:1px solid var(--border);border-radius:11px;background:var(--panel-soft)}.math-preview-toggle button{min-height:44px;padding:8px 18px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-weight:550}.math-preview-toggle button[aria-pressed=true]{background:var(--surface-elevated);color:var(--primary);box-shadow:var(--glass-highlight),0 1px 4px rgba(14,48,38,.08)}.math-markdown-help{font-size:13px;line-height:1.8;color:var(--muted)}.math-markdown-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--primary)}.math-markdown-help pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--panel-soft);border-radius:10px;font-size:12px}.math-markdown-help code{font-family:Consolas,monospace}.math-editor-preview{padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--panel-soft)}.math-editor-preview section+section{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.math-editor-preview>section>h3{font-size:13px;color:var(--primary);margin:0 0 16px}.math-bulk-preview{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:10px}.math-bulk-preview summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--primary);font-size:13px}.math-bulk-preview section+section{margin-top:20px}.math-bulk-preview section>h3{font-size:13px;color:var(--muted)}.math-preview-toggle button:focus-visible,.math-table-scroll:focus-visible{outline:2px solid var(--primary);outline-offset:3px}@media(max-width:640px){.math-editor-preview{padding:16px 12px}.math-markdown h1{font-size:23px}.math-markdown h2{font-size:20px}.math-markdown h3{font-size:18px}.math-table-scroll th,.math-table-scroll td{padding:8px 10px}.math-equation .katex{font-size:1.08em}.math-writing-tools{gap:8px}.math-markdown-help{width:100%}}