.editor-wrapper .ProseMirror,.editor-wrapper .editor-content,.editor-wrapper .editor-content-wrapper,.editor-wrapper .editor-toolbar-container{background:inherit;color:inherit;border-color:inherit}.editor-wrapper,.editor-wrapper .editor-content-wrapper{background:var(--theme-background)}.editor-wrapper .editor-content{background:var(--theme-surface);color:var(--theme-text-primary);border:1px solid var(--theme-border)}.editor-wrapper .ProseMirror{background:transparent;color:var(--theme-text-primary)}.editor-wrapper .editor-toolbar-container{background:var(--theme-surface);border-bottom:1px solid var(--theme-border)}.editor-toolbar-container .toolbar-btn{background:transparent;color:var(--theme-text-secondary);border:1px solid transparent}.editor-toolbar-container .toolbar-btn:hover{background:var(--theme-background);color:var(--theme-text-primary);border-color:var(--theme-border)}.editor-toolbar-container .toolbar-btn.active,.editor-toolbar-container .toolbar-btn:active{background:var(--theme-accent);color:var(--theme-accent-contrast);border-color:var(--theme-accent)}.editor-wrapper .block-bullet,.editor-wrapper .block-heading1,.editor-wrapper .block-heading2,.editor-wrapper .block-heading3,.editor-wrapper .block-heading4,.editor-wrapper .block-number,.editor-wrapper .block-paragraph,.editor-wrapper .editor-block{color:var(--theme-text-primary)}.editor-wrapper .block-quote,.editor-wrapper .editor-block[data-placeholder]:empty:before,.editor-wrapper .list-marker{color:var(--theme-text-secondary)}.editor-wrapper .block-quote{border-left-color:var(--theme-accent)}.editor-wrapper .ProseMirror a,.editor-wrapper .editor-block a{color:var(--theme-accent)}.editor-wrapper .floating-toolbar{background:var(--theme-surface);border:1px solid var(--theme-border)}.editor-wrapper .floating-toolbar button{color:var(--theme-text-secondary)}.editor-wrapper .floating-toolbar button:hover{background:var(--theme-background);color:var(--theme-text-primary)}.editor-wrapper .floating-toolbar button.active{background:var(--theme-accent);color:var(--theme-accent-contrast)}.editor-wrapper .slash-menu-enhanced{background:var(--theme-surface);border:1px solid var(--theme-border)}.editor-wrapper .slash-menu-enhanced .menu-search{background:var(--theme-background);border-color:var(--theme-border);color:var(--theme-text-primary)}.editor-wrapper .slash-menu-enhanced .menu-item{color:var(--theme-text-primary)}.editor-wrapper .slash-menu-enhanced .menu-item.selected,.editor-wrapper .slash-menu-enhanced .menu-item:hover{background:var(--theme-background)}.editor-wrapper .block-codeblock-wrapper{background:var(--theme-surface);border:1px solid var(--theme-border)}.editor-wrapper .code-header{background:var(--theme-background);border-bottom:1px solid var(--theme-border)}.editor-wrapper .code-copy-btn,.editor-wrapper .code-language{border-color:var(--theme-border);color:var(--theme-text-secondary)}.editor-wrapper .editor-table,.editor-wrapper .editor-table td,.editor-wrapper .editor-table th{border-color:var(--theme-border)}.editor-wrapper .table-header .table-cell-content{background:var(--theme-surface)}.editor-wrapper .editor-status-bar{background:var(--theme-surface);border-top:1px solid var(--theme-border);color:var(--theme-text-secondary)}.editor-wrapper,.editor-wrapper .editor-content,.editor-wrapper .editor-content-wrapper,.editor-wrapper .editor-toolbar-container,.editor-wrapper .floating-toolbar,.editor-wrapper .slash-menu-enhanced,.editor-wrapper .toolbar-btn{transition:background-color .2s ease,color .2s ease,border-color .2s ease}.editor-wrapper{height:100%;display:flex;flex-direction:column;background:var(--theme-bg);font-family:var(
        --font-family-sans,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif
    );color:var(--theme-text-primary)}.editor-content-wrapper{flex:1;overflow-y:auto;padding:1.5rem;background:var(--theme-bg)}.editor-content{max-width:900px;margin:0 auto;min-height:100%;padding:2rem;background:var(--theme-surface);border-radius:var(--border-radius,8px);border:1px solid var(--theme-border);color:var(--theme-text-primary)}.editor-content.empty:before{content:attr(data-placeholder);color:var(--theme-text-secondary);font-style:italic;pointer-events:none;position:absolute}.editor-block-wrapper{position:relative;margin:.25rem 0;display:flex;align-items:flex-start;transition:all var(--transition-speed);padding:.125rem 0}.editor-block-wrapper:hover{background:var(--theme-bg,var(--color-background,rgba(0,0,0,.02)));margin-left:-.5rem;margin-right:-.5rem;padding-left:.5rem;padding-right:.5rem;border-radius:calc(var(--border-radius, 8px)/2)}.editor-block-wrapper.focused .syntax-indicator{opacity:1;color:var(--theme-accent)}.syntax-indicator{position:absolute;left:-2rem;color:var(--theme-text-secondary);font-family:var(--font-family-mono);font-size:14px;opacity:0;transition:opacity var(--transition-speed);user-select:none;padding-top:.25rem}.block-heading1-wrapper .syntax-indicator{font-size:20px}.block-heading2-wrapper .syntax-indicator{font-size:18px}.block-heading3-wrapper .syntax-indicator{font-size:16px}.block-heading4-wrapper .syntax-indicator{font-size:14px}.editor-block{width:100%;outline:none;position:relative;caret-color:var(--theme-accent,var(--color-primary));color:var(--theme-text-primary,var(--color-text))}.editor-block:focus{outline:none}.editor-block[data-placeholder]:empty:before{content:attr(data-placeholder);color:var(--theme-text-secondary);opacity:.6;pointer-events:none;position:absolute;font-style:normal}.block-heading1{font-size:var(--font-size-h1,2rem);font-weight:var(--font-weight-h1,700);line-height:1.25;margin:1.25rem 0 .625rem;color:var(--theme-text-primary,var(--color-text));letter-spacing:-.01em}.block-heading2{font-size:1.5rem;line-height:1.35;margin:1rem 0 .5rem}.block-heading2,.block-heading3{font-weight:600;color:var(--theme-text-primary,var(--color-text))}.block-heading3{font-size:1.25rem;line-height:1.45;margin:.875rem 0 .5rem}.block-heading4{font-size:1.125rem;line-height:1.5;margin:.75rem 0 .375rem;font-size:1.1rem;font-weight:600;line-height:1.4;margin:.5rem 0 .25rem}.block-heading4,.block-paragraph{color:var(--theme-text-primary,var(--color-text))}.block-paragraph{font-size:var(--font-size-body,1rem);line-height:1.7;margin:.5rem 0;font-weight:var(--font-weight-body,400)}.block-quote{padding-left:1rem;border-left:3px solid var(--theme-accent,var(--color-primary));font-style:italic;color:var(--theme-text-secondary,var(--color-text-secondary));margin:.5rem 0}.block-bullet-wrapper,.block-number-wrapper{display:flex;align-items:flex-start;margin:.375rem 0}.list-marker{min-width:1.75rem;color:var(--theme-text-secondary,var(--color-text-secondary));user-select:none;font-weight:500}.block-bullet,.block-number{flex:1;line-height:1.7;color:var(--theme-text-primary,var(--color-text))}.block-checkbox-wrapper{display:flex;align-items:flex-start;margin:.25rem 0}.checkbox-input{margin-right:.5rem;margin-top:.25rem;cursor:pointer}.checkbox-content{flex:1;line-height:1.6}.block-checkbox-wrapper[data-checked=true] .checkbox-content{text-decoration:line-through;opacity:.6}.block-codeblock-wrapper{margin:1rem 0;border:1px solid var(--theme-border);border-radius:var(--border-radius);overflow:hidden;background:var(--theme-surface);transition:all var(--transition-speed)}.block-codeblock-wrapper:hover{box-shadow:0 2px 8px rgba(0,0,0,.05)}.code-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem 1rem;background:var(--theme-bg);border-bottom:1px solid var(--theme-border)}.code-language{padding:.25rem .5rem;background:var(--theme-surface)}.code-copy-btn,.code-language{border:1px solid var(--theme-border);border-radius:calc(var(--border-radius)/2);font-size:.75rem;color:var(--theme-text-secondary)}.code-copy-btn{padding:.375rem .75rem;background:transparent;cursor:pointer;font-weight:500;transition:all var(--transition-speed)}.code-copy-btn:hover{background:var(--theme-accent);color:var(--theme-accent-contrast);border-color:var(--theme-accent)}.code-copy-btn:active{transform:scale(.95)}.code-pre{margin:0;padding:1rem;overflow-x:auto}.code-pre code{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;line-height:1.5;display:block;min-height:1.5em}.block-math-wrapper{margin:1rem 0;padding:1rem;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-surface)}.math-display{text-align:center;padding:1rem;cursor:pointer;min-height:3rem;display:flex;align-items:center;justify-content:center}.math-input{width:100%;padding:.5rem;border:1px solid var(--theme-border);border-radius:4px;font-family:monospace;font-size:14px;resize:vertical;min-height:3rem}.block-table-wrapper{margin:1rem 0;overflow-x:auto}.table-container{min-width:100%;overflow-x:auto}.editor-table{width:100%;border-collapse:collapse}.editor-table,.editor-table td{border:1px solid var(--theme-border)}.editor-table td{padding:0}.table-cell-content{padding:.5rem;min-height:2rem;outline:none}.table-header .table-cell-content{font-weight:600;background:var(--theme-surface)}.table-controls{display:flex;gap:.5rem;margin-top:.5rem}.table-btn{padding:.25rem .75rem;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:4px;cursor:pointer;font-size:12px;transition:background .2s}.table-btn:hover{background:var(--theme-accent-light)}.block-image-wrapper{margin:1rem 0;text-align:center}.image-container{display:inline-block;max-width:100%}.image-container img{display:block;max-width:100%;height:auto;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.1)}.image-caption{margin-top:.5rem;font-size:14px;text-align:center}.image-caption,.image-size-info{color:var(--theme-text-secondary)}.image-size-info{font-size:11px;margin-top:.25rem}.block-divider-wrapper{margin:1.5rem 0}.editor-divider{border:none;border-top:2px solid var(--theme-border)}.editor-block strong{font-weight:600}.editor-block em{font-style:italic}.editor-block del{text-decoration:line-through;opacity:.6}.editor-block code{padding:.2rem .4rem;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:3px;font-family:monospace;font-size:.9em}.editor-block a{text-decoration:underline;cursor:pointer}.editor-block a,.editor-block a:hover{color:var(--theme-accent)}.editor-toolbar-container{border-bottom:1px solid var(--theme-border,var(--color-border));background:var(--theme-surface,var(--color-surface));padding:.75rem 1rem;display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.toolbar-group{display:flex;gap:.375rem;padding:0 .75rem;border-right:1px solid var(--theme-border)}.toolbar-group:first-child{padding-left:0}.toolbar-group:last-child{border-right:none;padding-right:0}.toolbar-btn{padding:.375rem .5rem;min-width:2rem;height:2rem;background:transparent;border:1px solid transparent;border-radius:calc(var(--border-radius, 8px)/2);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all var(--transition-speed,.2s ease);color:var(--theme-text-secondary,var(--color-text-secondary));font-size:.875rem;font-weight:500;position:relative}.toolbar-btn:hover{background:var(--theme-bg,var(--color-background));color:var(--theme-text-primary,var(--color-text));border-color:var(--theme-border,var(--color-border))}.toolbar-btn:active{transform:scale(.95)}.toolbar-btn.active{background:var(--theme-accent,var(--color-primary));color:var(--theme-accent-contrast);border-color:var(--theme-accent,var(--color-primary))}.toolbar-btn[disabled]{opacity:.5;cursor:not-allowed;pointer-events:none}.floating-toolbar{position:fixed;background:var(--theme-surface,var(--color-surface));border:1px solid var(--theme-border,var(--color-border));border-radius:var(--border-radius,8px);box-shadow:0 2px 8px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.08);padding:.375rem;display:flex;gap:.25rem;z-index:1000}.floating-toolbar,.floating-toolbar button{transition:all var(--transition-speed,.2s ease)}.floating-toolbar button{width:1.75rem;height:1.75rem;padding:0;border-radius:calc(var(--border-radius, 8px)/2);background:transparent;border:1px solid transparent;cursor:pointer;color:var(--theme-text-secondary,var(--color-text-secondary));display:inline-flex;align-items:center;justify-content:center;font-size:.875rem}.floating-toolbar button:hover{background:var(--theme-bg,var(--color-background));border-color:var(--theme-border,var(--color-border));color:var(--theme-text-primary,var(--color-text))}.floating-toolbar button:active{transform:scale(.9)}.floating-toolbar button.active{background:var(--theme-accent,var(--color-primary));color:var(--theme-accent-contrast);border-color:var(--theme-accent,var(--color-primary))}.slash-menu-enhanced{position:fixed;background:var(--theme-surface,var(--color-surface));border:1px solid var(--theme-border,var(--color-border));border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);padding:.5rem;min-width:260px;max-width:320px;max-height:400px;overflow-y:auto;z-index:1001}.slash-menu-enhanced .menu-search{background:var(--theme-bg);border:1px solid var(--theme-border);margin-bottom:.5rem;outline:none;width:100%;color:var(--theme-text-primary)}.slash-menu-enhanced .menu-item,.slash-menu-enhanced .menu-search{padding:.5rem .75rem;border-radius:calc(var(--border-radius)/2);font-size:.875rem}.slash-menu-enhanced .menu-item{cursor:pointer;display:flex;align-items:center;gap:.75rem;transition:all var(--transition-speed)}.slash-menu-enhanced .menu-item.selected,.slash-menu-enhanced .menu-item:hover{background:var(--theme-bg)}.slash-menu-enhanced .menu-item-icon{font-size:1.125rem;width:1.25rem;text-align:center}.slash-menu-enhanced .menu-item-text{flex:1}.slash-menu-enhanced .menu-item-label{font-weight:500;color:var(--theme-text-primary)}.slash-menu-enhanced .menu-item-description{font-size:.75rem;color:var(--theme-text-secondary);margin-top:2px}.editor-status-bar{display:flex;justify-content:space-between;align-items:center;padding:.625rem 1rem;background:var(--theme-surface);border-top:1px solid var(--theme-border);font-size:var(--font-size-caption,.75rem);color:var(--theme-text-secondary);font-family:var(--font-family-sans)}.status-left,.status-right{display:flex;gap:1.5rem;align-items:center}.status-item{display:flex;align-items:center;gap:.375rem}.status-item.clickable{cursor:pointer;transition:color var(--transition-speed)}.status-item.clickable:hover{color:var(--theme-text-primary)}.editor-content-wrapper .editor-content.dragover,.editor-wrapper .editor-content.dragover{background:var(--theme-bg);outline:2px dashed var(--theme-accent);outline-offset:-4px;border-radius:var(--border-radius)}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.floating-toolbar,.slash-menu-enhanced{animation:fadeIn .2s ease-out}@media (max-width:768px){.editor-content-wrapper{padding:1rem}.syntax-indicator{display:none}.editor-toolbar-container{overflow-x:auto}}@media print{.code-header,.editor-status-bar,.editor-toolbar-container,.syntax-indicator,.table-controls{display:none!important}.editor-content-wrapper{padding:0}.editor-block-wrapper{break-inside:avoid}}