.math-preview.svelte-8oulvm{font-size:1.5rem}.tiptap-container.svelte-10y29wo{margin:2em auto;width:100%;height:100%;max-height:100%;border:none;padding:2em;background:#fff;font-size:18px;line-height:1.6;border-radius:0;transition:all .2s ease;letter-spacing:.01em;overflow:auto;display:flex;flex-direction:column;border-color:#000}html.dark .tiptap-container.svelte-10y29wo{background:#1e293b!important;border-color:#475569!important;color:#fff!important}.tiptap-container .ProseMirror{outline:none;padding:10px;min-height:100%;flex:1;white-space:pre-wrap;letter-spacing:.01em}.tiptap-container .ProseMirror p{white-space:pre-wrap;margin:.5em 0;line-height:1.6}.tiptap-container .ProseMirror p:first-child{margin-top:0}.tiptap-container .ProseMirror p:last-child{margin-bottom:0}.tiptap-container .ProseMirror p:empty{min-height:1.2em;margin:.5em 0}html.dark .tiptap-container.svelte-10y29wo .ProseMirror,html.dark .tiptap-container.svelte-10y29wo .ProseMirror p,html.dark .tiptap-container.svelte-10y29wo .ProseMirror h1,html.dark .tiptap-container.svelte-10y29wo .ProseMirror h2,html.dark .tiptap-container.svelte-10y29wo .ProseMirror h3,html.dark .tiptap-container.svelte-10y29wo .ProseMirror h4,html.dark .tiptap-container.svelte-10y29wo .ProseMirror h5,html.dark .tiptap-container.svelte-10y29wo .ProseMirror h6,html.dark .tiptap-container.svelte-10y29wo .ProseMirror strong,html.dark .tiptap-container.svelte-10y29wo .ProseMirror em,html.dark .tiptap-container.svelte-10y29wo .ProseMirror u,html.dark .tiptap-container.svelte-10y29wo .ProseMirror s,html.dark .tiptap-container.svelte-10y29wo .ProseMirror li{color:#fff!important}.tiptap-container .custom-highlight{padding:2px 4px;border-radius:3px}.tiptap-container .custom-highlight[data-color]{background:var(--highlight-color, transparent)}.tiptap-container [style*="text-align: center"]{text-align:center}.tiptap-container [style*="text-align: right"]{text-align:right}.tiptap-container [style*="text-align: justify"]{text-align:justify}.tiptap-container u{text-decoration:underline}.tiptap-container .MathJax,.tiptap-container .MathJax_Display,.tiptap-container mjx-container,.tiptap-container mjx-math{display:inline!important;font-size:1.1em!important;margin:0 .25em!important}.tiptap-container .math-inline{font-family:Times New Roman,serif;color:#059669;font-style:italic;display:inline!important;font-size:1.1em!important}.tiptap-container .math-display{font-family:Times New Roman,serif;color:#059669;font-style:italic;display:inline!important;font-size:1.1em!important;margin:0 .25em!important}.formatting-dropdown-container.svelte-ogb2is{position:relative;display:inline-block}button.svelte-ogb2is{border:1px solid black}.main-dropdown-btn.svelte-ogb2is{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#fff;border:1px solid #d1d5db;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;color:#374151;transition:all .2s ease}.main-dropdown-btn.svelte-ogb2is:hover{background:#f9fafb;border-color:#9ca3af}.main-dropdown.svelte-ogb2is{position:absolute;top:100%;left:0;z-index:2000;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:1rem;min-width:600px;margin-top:.25rem}.formatting-toolbar.svelte-ogb2is{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.toolbar-group.svelte-ogb2is{display:flex;align-items:center;gap:.25rem;padding:0 .5rem;border-right:1px solid #e2e8f0}.toolbar-group.svelte-ogb2is:last-child{border-right:none}.toolbar-btn.svelte-ogb2is{padding:.5rem;min-width:2.5rem;height:2.5rem;border:1px solid #e2e8f0;background:#fff;color:#374151;border-radius:4px;cursor:pointer;font-size:.875rem;font-weight:500;display:flex;align-items:center;justify-content:center;transition:all .2s ease;position:relative}.toolbar-btn.svelte-ogb2is:hover{background:#f3f4f6;border-color:#d1d5db}.toolbar-btn.svelte-ogb2is:active{background:#e5e7eb}.dropdown-container.svelte-ogb2is{position:relative}.toolbar-dropdown.svelte-ogb2is{position:absolute;top:100%;left:0;z-index:2100;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-shadow:0 4px 6px -1px #0000001a;padding:.5rem;margin-top:4px}.color-picker.svelte-ogb2is{min-width:160px}.color-grid.svelte-ogb2is{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.color-option.svelte-ogb2is{width:24px;height:24px;border:1px solid #e2e8f0;border-radius:4px;cursor:pointer;transition:all .2s ease}.color-option.svelte-ogb2is:hover{border-color:#374151;transform:scale(1.1)}.font-selector-btn.svelte-ogb2is{display:flex;align-items:center;gap:.5rem;min-width:120px;justify-content:flex-start;padding:.5rem .75rem}.font-icon.svelte-ogb2is{font-size:1rem}.font-name.svelte-ogb2is{font-size:.875rem;font-weight:500}.font-dropdown.svelte-ogb2is{min-width:160px;max-height:200px;overflow-y:auto}.font-option.svelte-ogb2is{display:block;width:100%;padding:.5rem .75rem;text-align:left;background:none;border:none;cursor:pointer;font-size:.875rem;transition:background-color .2s ease}.font-option.svelte-ogb2is:hover{background:#f3f4f6}.heading-btn.svelte-ogb2is{min-width:36px;font-size:.75rem;font-weight:600}.heading-btn.svelte-ogb2is strong:where(.svelte-ogb2is){font-size:.7rem;font-weight:700}.paragraph-btn.svelte-ogb2is{min-width:32px;font-size:.75rem;font-weight:500}.paragraph-btn.svelte-ogb2is strong:where(.svelte-ogb2is){font-size:.65rem;font-weight:600;color:#6b7280}.align-icon.svelte-ogb2is{display:flex;flex-direction:column;gap:2px;width:16px;height:14px}.align-icon.svelte-ogb2is .line:where(.svelte-ogb2is){height:2px;background:currentColor;border-radius:1px}.align-icon.svelte-ogb2is .line.short:where(.svelte-ogb2is){width:8px}.align-icon.svelte-ogb2is .line.medium:where(.svelte-ogb2is){width:12px}.align-icon.svelte-ogb2is .line.long:where(.svelte-ogb2is){width:16px}.align-left.svelte-ogb2is .line.short:where(.svelte-ogb2is),.align-left.svelte-ogb2is .line.medium:where(.svelte-ogb2is),.align-left.svelte-ogb2is .line.long:where(.svelte-ogb2is){align-self:flex-start}.align-center.svelte-ogb2is .line.medium:where(.svelte-ogb2is),.align-center.svelte-ogb2is .line.long:where(.svelte-ogb2is){align-self:center}.align-right.svelte-ogb2is .line.short:where(.svelte-ogb2is),.align-right.svelte-ogb2is .line.medium:where(.svelte-ogb2is),.align-right.svelte-ogb2is .line.long:where(.svelte-ogb2is){align-self:flex-end}.color-btn.svelte-ogb2is{position:relative;display:flex;flex-direction:column;align-items:center;padding:.25rem .5rem;border:1px black solid}.color-icon.svelte-ogb2is,.highlight-icon.svelte-ogb2is{font-weight:700;font-size:.875rem;margin-bottom:1px}.color-preview.svelte-ogb2is{width:16px;height:3px;border-radius:1px;display:block}.app.dark .formatting-toolbar.svelte-ogb2is{background:#0f172a;border-color:#475569}.app.dark .toolbar-group.svelte-ogb2is{border-color:#475569}.app.dark .toolbar-btn.svelte-ogb2is{background:#1e293b;color:#e2e8f0;border-color:#475569}.app.dark .toolbar-btn.svelte-ogb2is:hover{background:#334155;border-color:#64748b}.app.dark .toolbar-dropdown.svelte-ogb2is{background:#1e293b;border-color:#475569}.app.dark .font-option.svelte-ogb2is{color:#e2e8f0}.app.dark .font-option.svelte-ogb2is:hover{background:#334155;color:#fff}.app.dark .color-option.svelte-ogb2is{border-color:#475569}.app.dark .paragraph-btn.svelte-ogb2is strong:where(.svelte-ogb2is){color:#9ca3af}.app.dark .main-dropdown-btn.svelte-ogb2is{background:#1e293b;border-color:#475569;color:#e2e8f0}.app.dark .main-dropdown-btn.svelte-ogb2is:hover{background:#334155;border-color:#64748b}.app.dark .main-dropdown.svelte-ogb2is{background:#1e293b;border-color:#475569}.math-dropdown-container.svelte-15khxba{position:relative;display:inline-block}.main-dropdown-btn.svelte-15khxba{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#fff;border:1px solid #000000;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;color:#374151;transition:all .2s ease}.main-dropdown-btn.svelte-15khxba:hover{background:#f9fafb;border-color:#585c64}.main-dropdown.svelte-15khxba{position:absolute;top:100%;left:0;z-index:2500;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;padding:1rem;min-width:800px;margin-top:.25rem}.mega-math-toolbar.svelte-15khxba{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.notation-toggle.svelte-15khxba{display:flex;align-items:center;margin-right:.5rem}.toggle-container.svelte-15khxba{display:flex;flex-direction:column;align-items:center;gap:.25rem}.toggle-labels.svelte-15khxba{display:flex;gap:1rem;font-size:.75rem;font-weight:500;font-family:Courier New,monospace}.toggle-label.svelte-15khxba{color:#9ca3af;transition:color .3s ease;min-width:1.5rem;text-align:center}.toggle-label.active.svelte-15khxba{color:#374151;font-weight:600}.slider-toggle.svelte-15khxba{position:relative;width:3rem;height:1.5rem;background:none;border:none;cursor:pointer;padding:0}.slider-track.svelte-15khxba{width:100%;height:100%;background:#e5e7eb;border-radius:.75rem;position:relative;transition:background-color .3s ease;border:1px solid #d1d5db}.slider-toggle.dollar.svelte-15khxba .slider-track:where(.svelte-15khxba){background:#e5e7eb;border-color:#d1d5db}.slider-thumb.svelte-15khxba{position:absolute;top:2px;left:2px;width:1.25rem;height:1.25rem;background:#fff;border-radius:50%;box-shadow:0 2px 4px #0000001a;transition:all .3s cubic-bezier(.4,0,.2,1);border:1px solid #d1d5db}.slider-thumb.right.svelte-15khxba{transform:translate(1.5rem)}.slider-toggle.dollar.svelte-15khxba .slider-thumb:where(.svelte-15khxba){background:#fff;border-color:#d1d5db;box-shadow:0 2px 4px #0000001a}.quick-insert-buttons.svelte-15khxba{display:flex;align-items:center;gap:.5rem;margin-right:.5rem}.quick-btn.svelte-15khxba{display:flex;align-items:center;gap:.375rem;padding:.5rem .75rem;background:#fff;border:1px solid #d1d5db;border-radius:8px;cursor:pointer;transition:all .2s ease;font-size:.875rem;font-weight:500;color:#374151;white-space:nowrap;box-shadow:0 1px 2px #0000000d}.quick-btn.svelte-15khxba:hover{background:#f9fafb;border-color:#9ca3af;transform:translateY(-1px);box-shadow:0 4px 6px #0000001a}.quick-btn.svelte-15khxba:active{transform:translateY(0);background:#f3f4f6}.quick-icon.svelte-15khxba{font-size:1rem;font-weight:600;font-family:Courier New,monospace;color:#6366f1}.quick-text.svelte-15khxba{font-weight:500}.separator.svelte-15khxba{width:1px;height:2rem;background:#e5e7eb;margin:0 .5rem}.category-container.svelte-15khxba{position:relative;z-index:auto}.category-btn.svelte-15khxba{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#fff;border:1px solid #d1d5db;border-radius:8px;cursor:pointer;transition:all .2s ease;font-size:.875rem;font-weight:500;color:#374151;white-space:nowrap;box-shadow:0 1px 2px #0000000d;position:relative;z-index:2900}.category-name.svelte-15khxba{font-weight:500}.category-btn.svelte-15khxba:hover{background:#f9fafb;border-color:#9ca3af;transform:translateY(-1px);box-shadow:0 4px 6px #0000001a}.category-btn.active.svelte-15khxba{background:#3b82f6;color:#fff;border-color:#2563eb;box-shadow:0 4px 6px #3b82f640}.dropdown-arrow.svelte-15khxba{font-size:.75rem;transition:transform .2s ease}.dropdown-arrow.rotated.svelte-15khxba{transform:rotate(180deg)}.dropdown-menu.svelte-15khxba{position:fixed!important;top:auto;left:auto;min-width:320px;max-width:480px;background:#fff;border:1px solid #d1d5db;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;z-index:9999!important;margin-top:.25rem;max-height:400px;overflow-y:auto;isolation:isolate;transform:translateZ(0)}.dropdown-header.svelte-15khxba{padding:1rem;border-bottom:1px solid #e5e7eb;background:#f9fafb;border-radius:12px 12px 0 0}.dropdown-header.svelte-15khxba h3:where(.svelte-15khxba){margin:0;font-size:1rem;font-weight:600;color:#1f2937}.item-count.svelte-15khxba{font-size:.75rem;color:#6b7280;margin-top:.25rem;display:block}.dropdown-grid.svelte-15khxba{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.5rem;padding:1rem}.math-item-btn.svelte-15khxba{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.75rem .5rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .2s ease;text-align:center;min-height:60px}.math-item-btn.svelte-15khxba:hover{background:#f3f4f6;border-color:#3b82f6;transform:translateY(-1px);box-shadow:0 4px 6px #0000001a}.math-display.svelte-15khxba{font-size:1.1em;font-weight:600;color:#1f2937;line-height:1}.math-title.svelte-15khxba{font-size:.75rem;color:#6b7280;font-weight:400;line-height:1.2}html.dark .mega-math-toolbar.svelte-15khxba{background:linear-gradient(135deg,#0f172a,#1e293b);border-color:#475569}html.dark .toggle-label.svelte-15khxba{color:#64748b}html.dark .toggle-label.active.svelte-15khxba{color:#f1f5f9}html.dark .slider-track.svelte-15khxba{background:#374155;border-color:#475569}html.dark .slider-toggle.dollar.svelte-15khxba .slider-track:where(.svelte-15khxba){background:#374155;border-color:#475569}html.dark .slider-thumb.svelte-15khxba{background:#f1f5f9;border-color:#64748b}html.dark .slider-toggle.dollar.svelte-15khxba .slider-thumb:where(.svelte-15khxba){background:#f1f5f9;border-color:#64748b}html.dark .quick-btn.svelte-15khxba{background:#1e293b;color:#e2e8f0;border-color:#475569}html.dark .quick-btn.svelte-15khxba:hover{background:#334155;border-color:#64748b}html.dark .quick-btn.svelte-15khxba:active{background:#475569}html.dark .quick-icon.svelte-15khxba{color:#818cf8}html.dark .separator.svelte-15khxba{background:#475569}html.dark .category-btn.svelte-15khxba{background:#1e293b;color:#e2e8f0;border-color:#475569}html.dark .category-btn.svelte-15khxba:hover{background:#334155;border-color:#64748b}html.dark .category-btn.active.svelte-15khxba{background:#3b82f6;color:#fff}html.dark .dropdown-menu.svelte-15khxba{background:#1e293b;border-color:#475569}html.dark .dropdown-header.svelte-15khxba{background:#0f172a;border-color:#374155}html.dark .dropdown-header.svelte-15khxba h3:where(.svelte-15khxba){color:#f1f5f9}html.dark .item-count.svelte-15khxba{color:#94a3b8}html.dark .math-item-btn.svelte-15khxba{background:#334155;border-color:#475569}html.dark .math-item-btn.svelte-15khxba:hover{background:#475569;border-color:#60a5fa}html.dark .math-display.svelte-15khxba{color:#f1f5f9}html.dark .math-title.svelte-15khxba{color:#94a3b8}@media (max-width: 768px){.mega-math-toolbar.svelte-15khxba{padding:.5rem;gap:.25rem}.toggle-labels.svelte-15khxba{font-size:.625rem;gap:.75rem}.slider-toggle.svelte-15khxba{width:2.5rem;height:1.25rem}.slider-thumb.svelte-15khxba{width:1rem;height:1rem}.slider-thumb.right.svelte-15khxba{transform:translate(1.25rem)}.quick-btn.svelte-15khxba{padding:.375rem .5rem;font-size:.75rem}.quick-text.svelte-15khxba{display:none}.category-btn.svelte-15khxba{padding:.375rem .5rem;font-size:.75rem}.category-name.svelte-15khxba{display:none}.dropdown-menu.svelte-15khxba{min-width:280px;max-width:90vw;right:0;left:auto}}.app.dark .main-dropdown-btn.svelte-15khxba{background:#1e293b;border-color:#475569;color:#e2e8f0}.app.dark .main-dropdown-btn.svelte-15khxba:hover{background:#334155;border-color:#64748b}.app.dark .main-dropdown.svelte-15khxba{background:#1e293b;border-color:#475569}.preview-container.svelte-1v5oha7{flex:1;height:100%;max-height:100%;overflow:auto;overflow-x:hidden;background:#f8fafc;padding:1rem 0;scroll-behavior:smooth}.preview-content.svelte-1v5oha7{max-width:100%;width:100%;min-height:600px;margin:0;padding:.75in;word-wrap:break-word;box-sizing:border-box;background:#fff;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border-radius:2px;border:1px black solid;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:14pt;line-height:1.6;color:#000;letter-spacing:.01em;white-space:pre-wrap;overflow-wrap:break-word;word-break:break-word;overflow:hidden;text-wrap:wrap}.preview-content.svelte-1v5oha7 *{max-width:100%;word-wrap:break-word;overflow-wrap:break-word}.preview-content.svelte-1v5oha7 h1{font-size:28pt;font-weight:700;margin:24pt 0 12pt;color:#000;line-height:1.2;page-break-after:avoid;word-wrap:break-word;overflow-wrap:break-word;max-width:100%}.preview-content.svelte-1v5oha7 h2{font-size:22pt;font-weight:600;margin:20pt 0 10pt;color:#000;line-height:1.3;page-break-after:avoid;word-wrap:break-word;overflow-wrap:break-word;max-width:100%}.preview-content.svelte-1v5oha7 h3{font-size:18pt;font-weight:600;margin:16pt 0 8pt;color:#000;line-height:1.4;page-break-after:avoid;word-wrap:break-word;overflow-wrap:break-word;max-width:100%}.preview-content.svelte-1v5oha7 h4{font-size:16pt;font-weight:600;margin:14pt 0 7pt;color:#000;line-height:1.4;page-break-after:avoid;word-wrap:break-word;overflow-wrap:break-word;max-width:100%}.preview-content.svelte-1v5oha7 p{margin:14pt 0;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;color:#000;text-align:justify;-webkit-hyphens:auto;hyphens:auto}.preview-content.svelte-1v5oha7 p:first-child{margin-top:0}.preview-content.svelte-1v5oha7 p:last-child{margin-bottom:0}.preview-content.svelte-1v5oha7 strong{font-weight:700;color:inherit}.preview-content.svelte-1v5oha7 em{font-style:italic;color:inherit}.preview-content.svelte-1v5oha7 u{text-decoration:underline;color:inherit}.preview-content.svelte-1v5oha7 s{text-decoration:line-through;color:inherit;opacity:.8}.preview-content.svelte-1v5oha7 ul,.preview-content.svelte-1v5oha7 ol{margin:12pt 0;padding-left:24pt}.preview-content.svelte-1v5oha7 li{margin:6pt 0;line-height:1.6;color:inherit}.preview-content.svelte-1v5oha7 ul li{list-style-type:disc}.preview-content.svelte-1v5oha7 ol li{list-style-type:decimal}.preview-content.svelte-1v5oha7 ul ul,.preview-content.svelte-1v5oha7 ol ol,.preview-content.svelte-1v5oha7 ul ol,.preview-content.svelte-1v5oha7 ol ul{margin:.25rem 0}.preview-content.svelte-1v5oha7 .page-break-before{position:relative;page-break-before:always;margin-top:6rem!important;margin-left:-1in!important;margin-right:-1in!important;padding:2rem 1in;border-top:3px solid rgba(107,114,128,.3);background:transparent}.preview-content.svelte-1v5oha7 .page-break-before:before{content:"--- Page Break ---";position:absolute;top:-4rem;right:0;font-size:.75rem;font-weight:600;color:#6b7280b3;text-transform:uppercase;letter-spacing:.1em;background:#f8fafce6;padding:.25rem .75rem;border-radius:6px;border:1px solid rgba(107,114,128,.2)}.preview-content.svelte-1v5oha7 .MathJax,.preview-content.svelte-1v5oha7 .MathJax_Display,.preview-content.svelte-1v5oha7 mjx-container,.preview-content.svelte-1v5oha7 mjx-math{font-size:inherit!important;color:#000!important;font-family:Computer Modern,"Latin Modern Math","STIX Two Math",Times New Roman,serif!important}.preview-content.svelte-1v5oha7 mjx-container:not([display=block]){display:inline!important;margin:0 2pt!important}.preview-content.svelte-1v5oha7 mjx-container[display=block]{display:block!important;text-align:center!important;margin:12pt 0!important;page-break-inside:avoid}.preview-content.svelte-1v5oha7 .math-inline{display:inline!important;margin:0 2pt!important;color:#000!important;font-family:Computer Modern,Times New Roman,serif!important}.preview-content.svelte-1v5oha7 .math-display{display:block!important;text-align:center!important;margin:12pt 0!important;color:#000!important;font-family:Computer Modern,Times New Roman,serif!important;page-break-inside:avoid}@media print{.preview-container.svelte-1v5oha7{background:#fff;padding:0}.preview-content.svelte-1v5oha7{box-shadow:none;border-radius:0;max-width:none;min-height:none;margin:0;padding:.5in}.preview-content.svelte-1v5oha7 h1,.preview-content.svelte-1v5oha7 h2,.preview-content.svelte-1v5oha7 h3{page-break-after:avoid}.preview-content.svelte-1v5oha7 mjx-container[display=block]{display:block!important;text-align:center!important;page-break-inside:avoid}.preview-content.svelte-1v5oha7 mjx-container:not([display=block]){display:inline!important}}.preview-content.svelte-1v5oha7 [style*="text-align: center"]{text-align:center}.preview-content.svelte-1v5oha7 [style*="text-align: right"]{text-align:right}.preview-content.svelte-1v5oha7 [style*="text-align: justify"]{text-align:justify}.app.dark .preview-container.svelte-1v5oha7{background:#1e293b}.app.dark .preview-content.svelte-1v5oha7{background:#fff!important;color:#000!important}.app.dark .preview-content.svelte-1v5oha7 h1,.app.dark .preview-content.svelte-1v5oha7 h2,.app.dark .preview-content.svelte-1v5oha7 h3,.app.dark .preview-content.svelte-1v5oha7 p,.app.dark .preview-content.svelte-1v5oha7 li,.app.dark .preview-content.svelte-1v5oha7 strong,.app.dark .preview-content.svelte-1v5oha7 em,.app.dark .preview-content.svelte-1v5oha7 u,.app.dark .preview-content.svelte-1v5oha7 s{color:#000!important}.app.dark .preview-content.svelte-1v5oha7 .math-inline,.app.dark .preview-content.svelte-1v5oha7 .math-display,.app.dark .preview-content.svelte-1v5oha7 .MathJax,.app.dark .preview-content.svelte-1v5oha7 mjx-container,.app.dark .preview-content.svelte-1v5oha7 mjx-math{color:#000!important}.app.dark .preview-content.svelte-1v5oha7{background:#fff!important;box-shadow:0 8px 16px -4px #0000004d}.app.dark .preview-content.svelte-1v5oha7 .page-separator{background:#374151b3;color:#f3f4f6cc;border:none;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}@media (max-width: 768px){.preview-content.svelte-1v5oha7{padding:1rem;font-size:14px}.preview-content.svelte-1v5oha7 h1{font-size:1.75em}.preview-content.svelte-1v5oha7 h2{font-size:1.5em}.preview-content.svelte-1v5oha7 h3{font-size:1.25em}}.document-manager.svelte-5dv4dj{display:flex;align-items:center}.document-actions.svelte-5dv4dj{display:flex;align-items:center;gap:.75rem}.doc-btn.svelte-5dv4dj{padding:.5rem .75rem;background:#fff;border:1px solid #e2e8f0;border-radius:6px;color:#374151;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s ease;display:flex;align-items:center;gap:.25rem;white-space:nowrap}.doc-btn.svelte-5dv4dj:hover{background:#f9fafb;border-color:#d1d5db}.doc-btn.svelte-5dv4dj:active{background:#f3f4f6}.new-btn.svelte-5dv4dj{color:#059669;border-color:#a7f3d0;background:#ecfdf5}.new-btn.svelte-5dv4dj:hover{background:#d1fae5;border-color:#6ee7b7}.save-btn.svelte-5dv4dj{color:#0f766e;border-color:#7dd3fc;background:#f0f9ff}.save-btn.svelte-5dv4dj:hover{background:#e0f2fe;border-color:#38bdf8}.autosave-section.svelte-5dv4dj{display:flex;flex-direction:column;gap:.25rem;margin:0 .75rem}.autosave-toggle-container.svelte-5dv4dj{display:flex;align-items:center;gap:.5rem}.autosave-label.svelte-5dv4dj{font-size:.75rem;font-weight:500;color:#6b7280;white-space:nowrap}.autosave-toggle.svelte-5dv4dj{position:relative;width:2.5rem;height:1.25rem;background:#e5e7eb;border-radius:.625rem;cursor:pointer;transition:all .3s ease;border:1px solid #d1d5db}.autosave-toggle.svelte-5dv4dj:hover{background:#d1d5db}.autosave-toggle.enabled.svelte-5dv4dj{background:#3b82f6;border-color:#3b82f6}.autosave-toggle.enabled.svelte-5dv4dj:hover{background:#2563eb;border-color:#2563eb}.autosave-slider.svelte-5dv4dj{position:relative;width:100%;height:100%}.autosave-thumb.svelte-5dv4dj{position:absolute;top:1px;left:1px;width:.875rem;height:.875rem;background:#fff;border-radius:50%;transition:all .3s ease;box-shadow:0 1px 3px #0000001a}.autosave-toggle.enabled.svelte-5dv4dj .autosave-thumb:where(.svelte-5dv4dj){left:calc(100% - .875rem - 1px)}.autosave-toggle.svelte-5dv4dj:focus{outline:none;box-shadow:0 0 0 3px #3b82f61a}.document-status.svelte-5dv4dj{display:flex;align-items:center;justify-content:center;gap:.5rem}.status-text.svelte-5dv4dj{font-size:.75rem;color:#6b7280;white-space:nowrap;transition:color .2s ease}.status-text.saving.svelte-5dv4dj{color:#f59e0b}.status-text.unsaved.svelte-5dv4dj{color:#ef4444}.save-dialog-overlay.svelte-5dv4dj{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:50}.save-dialog.svelte-5dv4dj{background:#fff;border-radius:8px;padding:1.5rem;min-width:400px;max-width:90vw;box-shadow:0 10px 25px #0000001a}.save-dialog.svelte-5dv4dj h3:where(.svelte-5dv4dj){margin:0 0 1rem;color:#374151}.save-input-group.svelte-5dv4dj{margin-bottom:1.5rem}.save-input-group.svelte-5dv4dj label:where(.svelte-5dv4dj){display:block;margin-bottom:.5rem;font-weight:500;color:#374151}.save-input.svelte-5dv4dj{width:100%;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;box-sizing:border-box}.save-input.svelte-5dv4dj:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.save-dialog-actions.svelte-5dv4dj{display:flex;gap:.75rem;justify-content:flex-end}.btn-primary.svelte-5dv4dj,.btn-secondary.svelte-5dv4dj{padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-primary.svelte-5dv4dj{background:#3b82f6;color:#fff;border:1px solid #3b82f6}.btn-primary.svelte-5dv4dj:hover:not(:disabled){background:#2563eb;border-color:#2563eb}.btn-primary.svelte-5dv4dj:disabled{background:#9ca3af;border-color:#9ca3af;cursor:not-allowed}.btn-secondary.svelte-5dv4dj{background:#fff;color:#374151;border:1px solid #e2e8f0}.btn-secondary.svelte-5dv4dj:hover:not(:disabled){background:#f9fafb}.app.dark .doc-btn.svelte-5dv4dj{background:#374155;color:#e2e8f0;border-color:#475569}.app.dark .doc-btn.svelte-5dv4dj:hover{background:#475569}.app.dark .new-btn.svelte-5dv4dj{background:#064e3b;color:#6ee7b7;border-color:#047857}.app.dark .new-btn.svelte-5dv4dj:hover{background:#065f46;border-color:#059669}.app.dark .save-btn.svelte-5dv4dj{background:#0c4a6e;color:#7dd3fc;border-color:#0369a1}.app.dark .save-btn.svelte-5dv4dj:hover{background:#075985;border-color:#0284c7}.app.dark .status-text.svelte-5dv4dj,.app.dark .autosave-label.svelte-5dv4dj{color:#94a3b8}.app.dark .autosave-toggle.svelte-5dv4dj{background:#475569;border-color:#64748b}.app.dark .autosave-toggle.svelte-5dv4dj:hover{background:#64748b}.app.dark .autosave-toggle.enabled.svelte-5dv4dj{background:#3b82f6;border-color:#3b82f6}.app.dark .autosave-toggle.enabled.svelte-5dv4dj:hover{background:#2563eb;border-color:#2563eb}.app.dark .save-dialog.svelte-5dv4dj{background:#1e293b;color:#e2e8f0}.app.dark .save-dialog.svelte-5dv4dj h3:where(.svelte-5dv4dj){color:#e2e8f0}.app.dark .save-input.svelte-5dv4dj{background:#374155;border-color:#475569;color:#e2e8f0}.app.dark .save-input.svelte-5dv4dj:focus{border-color:#3b82f6}.app.dark .btn-secondary.svelte-5dv4dj{background:#374155;color:#e2e8f0;border-color:#475569}.app.dark .btn-secondary.svelte-5dv4dj:hover:not(:disabled){background:#475569}@media (max-width: 768px){.document-actions.svelte-5dv4dj{gap:.25rem}.doc-btn.svelte-5dv4dj{padding:.5rem;font-size:.75rem}.status-text.svelte-5dv4dj{font-size:.625rem}.autosave-section.svelte-5dv4dj{margin:0 .5rem;gap:.125rem}.autosave-label.svelte-5dv4dj{font-size:.625rem}.autosave-toggle.svelte-5dv4dj{width:2rem;height:1rem}.autosave-thumb.svelte-5dv4dj{width:.75rem;height:.75rem}.autosave-toggle.enabled.svelte-5dv4dj .autosave-thumb:where(.svelte-5dv4dj){left:calc(100% - .75rem - 1px)}.save-dialog.svelte-5dv4dj{min-width:320px;margin:1rem}}
