:root{--font-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--font-mono:"JetBrains Mono", "Fira Code", "SF Mono", Menlo, monospace;--gray-50:#f8fafc;--gray-100:#f1f5f9;--gray-200:#e2e8f0;--gray-300:#cbd5e1;--gray-400:#94a3b8;--gray-500:#64748b;--gray-600:#475569;--gray-700:#334155;--gray-800:#1e293b;--gray-900:#0f172a;--primary-50:#eef2ff;--primary-100:#e0e7ff;--primary-500:#6366f1;--primary-600:#4f46e5;--primary-700:#4338ca}body{font-family:var(--font-sans);font-feature-settings:"cv02", "cv03", "cv04", "cv11";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizelegibility;letter-spacing:-.011em}h1,h2,h3,h4,h5,h6{letter-spacing:-.02em;font-weight:600;line-height:1.25}#note-editor{font-family:var(--font-mono);letter-spacing:0;background:var(--gray-50);tab-size:2;font-size:13px;line-height:1.7}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--gray-300);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:var(--gray-400)}.auto-hide-scrollbar{scrollbar-width:thin;scrollbar-color:transparent transparent}.auto-hide-scrollbar::-webkit-scrollbar{width:4px;height:4px}.auto-hide-scrollbar:hover,.auto-hide-scrollbar.is-scrolling{scrollbar-color:var(--gray-300) transparent}.auto-hide-scrollbar::-webkit-scrollbar-thumb{background:0 0;transition:background-color .2s}.auto-hide-scrollbar:hover::-webkit-scrollbar-thumb{background:var(--gray-200)}.auto-hide-scrollbar.is-scrolling::-webkit-scrollbar-thumb{background:var(--gray-200)}.auto-hide-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--gray-300)}input:focus,textarea:focus,select:focus,[contenteditable]:focus{outline:none}a:focus-visible,button:focus-visible,summary:focus-visible,[role=button]:focus-visible{outline:2px solid var(--primary-600);outline-offset:2px}button{transition:all .15s}button:active{transform:scale(.98)}.hover-lift{transition:transform .2s,box-shadow .2s}.hover-lift:hover{transform:translateY(-1px);box-shadow:0 4px 12px #00000014}.markdown-body{--lightningcss-light:initial!important;--lightningcss-dark: !important;color-scheme:light!important;color:#1f2328!important;background-color:#fff!important}.markdown-body *{--lightningcss-light:initial!important;--lightningcss-dark: !important;color-scheme:light!important}.chat-markdown{word-break:break-word;color:inherit!important;background:0 0!important;font-size:14px!important;line-height:1.625!important}.chat-markdown .katex-display{padding:4px 0;overflow:auto hidden}.chat-markdown>:first-child{margin-top:0!important}.chat-markdown>:last-child{margin-bottom:0!important}.chat-markdown p{margin:0 0 .5em}.chat-markdown h1,.chat-markdown h2,.chat-markdown h3,.chat-markdown h4,.chat-markdown h5,.chat-markdown h6{margin:.75em 0 .4em;font-size:1em;font-weight:600;line-height:1.4}.chat-markdown ul,.chat-markdown ol{margin:.4em 0;padding-left:1.4em}.chat-markdown li{margin:.15em 0}.chat-markdown blockquote{color:#6b7280;border-left:3px solid #e5e7eb;margin:.5em 0;padding:0 0 0 .8em}.chat-markdown a{color:#4f46e5;text-decoration:underline}.chat-markdown code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.chat-markdown :not(pre)>code{color:#4f46e5;background:#6366f114;border-radius:4px;padding:1px 5px;font-size:.9em}.chat-markdown pre{background:#f6f8fa;border:1px solid #e5e7eb;border-radius:8px;margin:.5em 0;padding:10px 12px;font-size:12px;line-height:1.55;overflow-x:auto}.chat-markdown pre code{background:0 0;padding:0}.chat-markdown table{border-collapse:collapse;width:100%;margin:.5em 0;font-size:12px}.chat-markdown th,.chat-markdown td{text-align:left;border:1px solid #e5e7eb;padding:4px 8px}.chat-markdown img{border-radius:6px;max-width:100%}.chat-cite{vertical-align:super;color:#4f46e5;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;background:#4f46e514;border-radius:3px;margin:0 .15em;padding:0 2px;font-size:.72em;line-height:1;display:inline-block;position:relative}.chat-cite:hover,.chat-cite:focus-visible{background:#4f46e533;outline:none}.chat-markdown sup.chat-cite{vertical-align:super;line-height:1}.chat-cite-tooltip{z-index:9999;color:#f9fafb;text-align:left;white-space:normal;word-break:break-word;pointer-events:none;background:#111827f2;border-radius:8px;width:max-content;min-width:120px;max-width:min(320px,100vw - 16px);max-height:220px;padding:8px 12px;font-size:12px;line-height:1.55;position:fixed;overflow-y:auto;box-shadow:0 6px 18px #0003}.citation-jump-highlight{border-radius:3px;animation:2.6s ease-out forwards citation-jump-fade}@keyframes citation-jump-fade{0%{background-color:#facc15d9;box-shadow:0 0 0 3px #facc1559}30%{background-color:#fde04799}to{box-shadow:none;background-color:#0000}}.edit-del{color:#b91c1c;background-color:#fee2e2d9;border-radius:2px;padding:0 1px;text-decoration:line-through}.edit-del-clickable{cursor:pointer}.edit-del-clickable:hover{outline-offset:1px;outline:1px dashed #fca5a5}.edit-ins{color:#15803d;background-color:#dcfce7e6;border-radius:2px;padding:0 1px;font-weight:600}.edit-ins-clickable{cursor:pointer}.edit-ins-clickable:hover{outline-offset:1px;outline:1px dashed #4ade80}.edit-ins-insert-block{color:#15803d;white-space:pre-wrap;background-color:#dcfce7e6;border:1px dashed #4ade80;border-radius:4px;margin:2px 0;padding:4px 8px;font-weight:500;line-height:1.6;display:block}.llmn-conv-msg{align-items:flex-start;gap:8px;margin:14px 0;display:flex}.llmn-conv-msg--user{justify-content:flex-end}.llmn-conv-msg--assistant{justify-content:flex-start}.llmn-conv-avatar{-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #e2e8f0;border-radius:9999px;flex:none;justify-content:center;align-items:center;width:26px;height:26px;margin-top:2px;display:flex;overflow:hidden}.llmn-conv-avatar img{-o-object-fit:contain;object-fit:contain;width:18px;height:18px}.llmn-conv-bubble{border:1px solid #0000;border-radius:14px;min-width:0;max-width:82%;padding:10px 14px;font-size:14px;line-height:1.7}.llmn-conv-msg--user .llmn-conv-bubble{background:#eef2ff;border-color:#e0e7ff;border-bottom-right-radius:4px}.llmn-conv-msg--assistant .llmn-conv-bubble{background:#f8fafc;border-color:#e9eef5;border-bottom-left-radius:4px}.llmn-conv-bubble>:first-child{margin-top:0}.llmn-conv-bubble>:last-child{margin-bottom:0}.llmn-conv-bubble pre,.llmn-conv-bubble table{max-width:100%;overflow-x:auto}.llmn-conv-msg.ProseMirror-selectednode .llmn-conv-bubble{border-color:#93c5fd;box-shadow:0 0 0 2px #93c5fd59}.llmn-conv-math{font-size:14px}.llmn-conv-math--block{text-align:center;margin:8px 0;display:block;overflow:auto hidden}.llmn-conv-math--block .katex-display{margin:0}.llmn-conv-math .katex{font-size:1.05em}.llmn-conv-msg .llmn-conv-bubble pre{color:#0f172a;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;background:#f8fafc;border:1px solid #e6eaf1;border-radius:10px;margin:10px 0;padding:30px 14px 12px;font-size:14px;line-height:1.6;position:relative}.llmn-conv-msg .llmn-conv-bubble pre code{color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace;font-size:inherit;white-space:inherit;background:0 0;border:0;padding:0;font-weight:400;display:block}.llmn-conv-msg .llmn-conv-bubble pre[data-language]:before{content:attr(data-language);color:#64748b;letter-spacing:.01em;pointer-events:none;-webkit-user-select:none;user-select:none;background:#0f172a09;border-bottom:1px solid #e6eaf1;border-radius:9px 9px 0 0;padding:4px 14px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:11.5px;font-weight:500;line-height:1.6;position:absolute;top:0;left:0;right:0}.llmn-conv-msg .llmn-conv-bubble :not(pre)>code{background:#0f172a0f;border-radius:4px;padding:.15em .4em;font-size:13px;font-weight:400}.llmn-conv-msg .llmn-conv-bubble :not(pre)>code:before,.llmn-conv-msg .llmn-conv-bubble :not(pre)>code:after{content:none}.llmn-conv-msg .llmn-conv-bubble table{border-collapse:collapse;border:0;width:100%;margin:12px 0;font-size:13.5px}.llmn-conv-msg .llmn-conv-bubble th,.llmn-conv-msg .llmn-conv-bubble td{text-align:left;vertical-align:top;background:0 0;border:0;border-bottom:1px solid #0000001f;padding:8px 20px 8px 0;line-height:1.55}.llmn-conv-msg .llmn-conv-bubble th{color:#0f172a;border-bottom-color:#0000002e;font-weight:600}.llmn-conv-msg .llmn-conv-bubble th:last-child,.llmn-conv-msg .llmn-conv-bubble td:last-child{padding-right:0}.llmn-conv-msg .llmn-conv-bubble a{overflow-wrap:anywhere}.llmn-conv-msg .llmn-conv-bubble a:hover{text-decoration:underline}.llmn-anno{cursor:help;background:linear-gradient(#0000 58%,#facc156b 58%);border-radius:3px;position:relative;box-shadow:inset 0 -1px #ca8a0473}.llmn-anno:after{content:attr(data-note);z-index:40;color:#f9fafb;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;opacity:0;visibility:hidden;pointer-events:none;background:#1f2937;border-radius:8px;width:max-content;max-width:min(300px,72vw);padding:6px 9px;font-size:12px;font-style:normal;font-weight:400;line-height:1.5;transition:opacity .12s,transform .12s;position:absolute;bottom:calc(100% + 6px);left:0;transform:translateY(2px);box-shadow:0 4px 14px #0f172a40}.llmn-anno:hover:after,.llmn-anno:focus:after{opacity:1;visibility:visible;transform:translateY(0)}.llmn-anno[data-note=""]:after{display:none}.prose .llmn-anno{padding-bottom:1px}.llmn-mindmap{margin:10px 0;overflow-x:auto}.llmn-mindmap>pre{background:#f9fafb;border-radius:8px;margin:0;padding:10px 12px;font-size:12px;line-height:1.6;overflow:auto}.llmn-mindmap svg[data-mindmap-svg]{max-width:100%;height:auto;margin:0 auto;display:block}.llmn-mindmap-host{width:100%}.llmn-mindmap-node{margin:10px 0}.llmn-mindmap-node.ProseMirror-selectednode{outline-offset:2px;border-radius:10px;outline:2px solid #93c5fd}.edit-ins-insert-mindmap{white-space:normal;padding:0;overflow:hidden}.edit-ins-mindmap-preview{overflow:hidden}.edit-ins-mindmap-preview svg{max-width:100%;height:auto;display:block}.edit-popup{z-index:9990;background:#fff;border:1px solid #e5e7eb;border-radius:10px;max-width:360px;padding:6px;animation:.16s ease-out edit-popup-fade;position:fixed;box-shadow:0 8px 24px #00000024}.edit-popup-reason{background:#fffbeb;border:1px solid #fde68a;border-radius:6px;flex-direction:column;gap:2px;max-width:268px;margin-bottom:6px;padding:5px 8px;display:flex}.edit-popup-reason-label{color:#b45309;font-size:10px;font-weight:600;line-height:1.3}.edit-popup-reason-text{color:#78350f;white-space:pre-wrap;word-break:break-word;font-size:11px;line-height:1.5}@keyframes edit-popup-fade{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.edit-popup-actions{gap:4px;display:flex}.edit-popup-btn{cursor:pointer;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;padding:3px 10px;font-size:12px;font-weight:500;line-height:1.4;transition:background-color .12s,border-color .12s,color .12s;display:inline-flex}.edit-popup-accept{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}.edit-popup-accept:hover{background:#dcfce7;border-color:#86efac}.edit-popup-reject{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.edit-popup-reject:hover{background:#fee2e2;border-color:#fca5a5}.edit-popup-more{color:#374151;background:#f9fafb;border-color:#e5e7eb}.edit-popup-more:hover{background:#f3f4f6;border-color:#d1d5db}.edit-popup-comment{border-top:1px solid #f3f4f6;gap:4px;margin-top:6px;padding-top:6px;display:flex}.edit-popup-comment input{border:1px solid #e5e7eb;border-radius:6px;outline:none;flex:1;min-width:0;padding:4px 8px;font-size:12px}.edit-popup-comment input:focus{border-color:#a5b4fc}.edit-popup-comment button{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:6px;flex-shrink:0;padding:4px 10px;font-size:12px;font-weight:500}.edit-popup-comment button:disabled{opacity:.4;cursor:not-allowed}.llmn-material-flash{animation:1.6s ease-out llmn-material-flash}@keyframes llmn-material-flash{0%{background-color:#a5b4fc8c;box-shadow:inset 0 0 0 1px #6366f180}to{box-shadow:none;background-color:#0000}}.llmn-drag-ghost{opacity:.97;animation:.12s ease-out llmn-drag-ghost-in}.llmn-drag-ghost.is-leaving{opacity:0;transition:opacity .12s ease-out}@keyframes llmn-drag-ghost-in{0%{opacity:0;transform:scale(.96)}}@media (prefers-reduced-motion:reduce){.llmn-drag-ghost,.llmn-drag-ghost.is-leaving{transition:none;animation:none}}.search-hit-highlight{background-color:#facc1573;border-radius:2px;box-shadow:0 0 0 1px #facc1566}.chat-bubble{position:relative}.chat-bubble:before,.chat-bubble:after{content:"";border-style:solid;width:0;height:0;position:absolute}.bubble-user:before{border-width:7px 0 7px 8px;border-color:#0000 #0000 #0000 #e0e7ff;top:14px;right:-8px}.bubble-user:after{border-width:6px 0 6px 6px;border-color:#0000 #0000 #0000 #eef2ff;top:15px;right:-6px}.bubble-assistant:before{border-width:7px 8px 7px 0;border-color:#0000 #e5e7eb #0000 #0000;top:14px;left:-8px}.bubble-assistant:after{border-width:6px 6px 6px 0;border-color:#0000 #f9fafb #0000 #0000;top:15px;left:-6px}.text-annotation{cursor:help;background:linear-gradient(#0000 50%,#ffd70066 50%);border-bottom:2px dashed #ffc107cc;padding:0 2px;transition:all .2s;position:relative}.text-annotation:hover{background:linear-gradient(#0000 30%,#ffd70080 30%);border-bottom-color:#ffc107}.annotation-tooltip{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff;z-index:10000;pointer-events:auto;opacity:0;word-wrap:break-word;white-space:pre-wrap;cursor:text;-webkit-user-select:text;user-select:text;background:#1e293bf2;border-radius:8px;max-width:360px;padding:12px 16px;font-size:14px;line-height:1.6;transition:opacity .2s,transform .2s;position:fixed;transform:translateY(-4px);box-shadow:0 10px 40px #0000004d}.annotation-tooltip.show{opacity:1;transform:translateY(0)}.annotation-tooltip:before{content:"";border-bottom:6px solid #1e293bf2;border-left:6px solid #0000;border-right:6px solid #0000;position:absolute;top:-6px;left:50%;transform:translate(-50%)}button[data-tip]:not(.absolute):not(.fixed):not(.sticky){position:relative}button[data-tip]:after{content:attr(data-tip);white-space:nowrap;text-overflow:ellipsis;color:#475569;z-index:70;opacity:0;pointer-events:none;background:#fff;border:1px solid #e2e8f0;border-radius:6px;max-width:280px;padding:3px 8px;font-size:11px;line-height:1.4;transition:opacity .15s .12s;position:absolute;top:calc(100% + 6px);left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 2px 8px #0000001a}button[data-tip]:hover:after{opacity:1}button[data-tip].tip-hidden:after{display:none}
