.cbt-editor-container{background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.08);display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;max-width:100%;overflow:hidden}.cbt-toolbar{align-items:center;background:#f9fafb;border-bottom:1px solid #e5e7eb;display:flex;flex-wrap:wrap;gap:4px;padding:8px 10px}.cbt-toolbar-group{display:flex;gap:2px}.cbt-toolbar-spacer{flex:1}.cbt-btn{align-items:center;background:transparent;border:1px solid transparent;border-radius:4px;color:#374151;cursor:pointer;display:inline-flex;font-size:13px;justify-content:center;line-height:1.4;min-height:28px;min-width:28px;padding:5px 10px;transition:background .15s,border-color .15s,color .15s;white-space:nowrap}.cbt-btn:hover{background:#e5e7eb}.cbt-btn--active{background:#dbeafe!important;border-color:#93c5fd!important;color:#1d4ed8!important}.cbt-editor-content{max-height:500px;min-height:200px;outline:none;overflow-y:auto;padding:16px 20px}.cbt-editor-content .ProseMirror{min-height:160px;outline:none}.cbt-editor-content .ProseMirror>*+*{margin-top:.5em}.cbt-editor-content .ProseMirror h1{font-size:1.6em;font-weight:700;line-height:1.3;margin-bottom:.3em}.cbt-editor-content .ProseMirror h2{font-size:1.3em;font-weight:600;line-height:1.35;margin-bottom:.25em}.cbt-editor-content .ProseMirror h3{font-size:1.1em;font-weight:600;line-height:1.4;margin-bottom:.2em}.cbt-editor-content .ProseMirror p{line-height:1.6;margin:0 0 .5em}.cbt-editor-content .ProseMirror ol,.cbt-editor-content .ProseMirror ul{margin:.3em 0 .5em;padding-left:1.5em}.cbt-editor-content .ProseMirror li{margin-bottom:.15em}.cbt-editor-content .ProseMirror li p{margin:0}.cbt-editor-content .ProseMirror table{border-collapse:collapse;margin:.5em 0;table-layout:auto;width:100%}.cbt-editor-content .ProseMirror table td,.cbt-editor-content .ProseMirror table th{border:1px solid #d1d5db;min-width:60px;padding:6px 10px;vertical-align:top}.cbt-editor-content .ProseMirror table th{background:#f3f4f6;font-weight:600;text-align:left}.cbt-editor-content .ProseMirror table .selectedCell{background:#dbeafe}.cbt-btn-math{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.cbt-btn-math:hover{background:#d1fae5!important}.cbt-btn-chem{background:#fef2f2;border-color:#fecaca;color:#991b1b}.cbt-btn-chem:hover{background:#fee2e2!important}.cbt-math-block{align-items:center;background:#f0fdf4;border:2px dashed #a7f3d0;border-radius:8px;cursor:pointer;display:flex;margin:12px 0;min-height:40px;padding:10px 14px;position:relative;transition:border-color .15s,box-shadow .15s}.cbt-math-block:hover{border-color:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.15)}.cbt-math-block--editing{background:#fff;border-color:#10b981;border-style:solid;box-shadow:0 0 0 3px rgba(16,185,129,.2)}.cbt-math-display{color:#1f2937;font-family:KaTeX_Main,Times New Roman,serif;font-size:1.1em;min-height:24px}.cbt-math-placeholder{color:#9ca3af;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:.9em;font-style:italic}.cbt-math-rendered{font-style:italic}.cbt-math-field{font-size:1.1em;min-height:48px;width:100%}.cbt-math-block math-field{--caret-color:#10b981;--selection-color:#a7f3d0;--contains-highlight-background-color:#d1fae5}.cbt-chem-block{background:#fef2f2;border:2px dashed #fecaca;border-radius:8px;cursor:pointer;margin:12px 0;min-height:40px;padding:10px 14px;position:relative;transition:border-color .15s,box-shadow .15s}.cbt-chem-block:hover{border-color:#f87171;box-shadow:0 0 0 3px hsla(0,91%,71%,.15)}.cbt-chem-block--editing{background:#fff;border-color:#ef4444;border-style:solid;box-shadow:0 0 0 3px rgba(239,68,68,.2);cursor:default}.cbt-chem-display{color:#1f2937;font-family:KaTeX_Main,Times New Roman,serif;font-size:1.1em;min-height:24px}.cbt-chem-placeholder{color:#9ca3af;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:.9em;font-style:italic}.cbt-chem-editor{display:flex;flex-direction:column;gap:10px}.cbt-chem-terms{align-items:center;display:flex;flex-wrap:wrap;gap:8px}.cbt-chem-molecule{align-items:center;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px;display:flex;gap:4px;padding:6px 10px}.cbt-chem-molecule input[type=number]{text-align:center;width:40px}.cbt-chem-molecule input[type=text]{text-align:center;width:50px}.cbt-chem-operator select{border:1px solid #d1d5db;border-radius:4px;padding:4px 8px}.cbt-chem-atom{align-items:center;display:flex;gap:2px}.cbt-chem-atom input{border:1px solid #d1d5db;border-radius:3px;font-size:.85em;padding:2px 4px;text-align:center;width:36px!important}.cbt-chem-editor-actions{display:flex;flex-wrap:wrap;gap:6px}.cbt-chem-editor-actions button{background:#fff;border:1px solid #d1d5db;border-radius:4px;cursor:pointer;font-size:.82em;padding:4px 10px}.cbt-chem-editor-actions button:hover{background:#f3f4f6}