.math-editor .ql-toolbar{border-top:none;border-left:none;border-right:none;border-bottom:1px solid #e5e7eb}.math-editor .ql-container{border-top:none;border-left:none;border-right:none;border-bottom:1px solid #e5e7eb;font-family:inherit}.math-editor .ql-editor{font-size:14px;line-height:1.5}.math-editor .ql-editor.ql-blank:before{font-style:normal;color:#9ca3af}.math-symbol-btn{transition:all .2s ease;border:1px solid #d1d5db;background:#fff}.math-symbol-btn:hover{background:#f3f4f6;border-color:#9ca3af;transform:translateY(-1px)}.math-symbol-btn:active{transform:translateY(0)}.math-editor.compact .ql-toolbar{padding:4px 8px}.math-editor.compact .ql-container{min-height:60px}.math-editor.compact .ql-editor{font-size:13px;padding:8px 12px}.math-modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.math-modal{box-shadow:0 25px 50px -12px #00000040;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.template-btn{transition:all .2s ease;border:1px solid #d1d5db}.template-btn:hover{background:#e5e7eb;border-color:#9ca3af}.latex-preview{background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;min-height:60px;display:flex;align-items:center;justify-content:center;font-family:Computer Modern,"Latin Modern Math",Times New Roman,serif}.math-editor.error .ql-container,.math-editor.error .ql-toolbar{border-color:#ef4444}.math-editor .ql-container.ql-focused{border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f6}@media (max-width: 640px){.math-modal{margin:16px;width:calc(100% - 32px)}.math-symbol-btn{padding:4px 6px;font-size:12px}.template-btn{padding:6px 8px;font-size:11px}}.math-renderer img{max-width:100%;height:auto;display:block}
