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