.comment-markdown-editor{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.dark .comment-markdown-editor{background-color:var(--accent);border-color:#374151}.comment-markdown-editor .tabs-header{border-bottom:1px solid hsl(var(--border));background-color:hsl(var(--muted)/50);justify-content:space-between;align-items:center;padding:8px;display:flex}.comment-markdown-editor .tab-button{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:6px 10px;font-size:13px;font-weight:500;transition:all .2s}.comment-markdown-editor .tab-button:hover{color:var(--ranoku-primary);background-color:#0000}.comment-markdown-editor .tab-button.active{color:#111827;background-color:#e5e7eb;border-bottom:none;font-weight:600}.dark .comment-markdown-editor .tab-button{color:#9ca3af}.dark .comment-markdown-editor .tab-button:hover{color:var(--ranoku-primary);background-color:#0000}.dark .comment-markdown-editor .tab-button.active{color:var(--ranoku-primary);border-bottom:2px solid var(--ranoku-primary);background-color:#0000;font-weight:600}.comment-markdown-editor .toolbar{align-items:center;gap:6px;padding:0 8px;display:flex}.comment-markdown-editor .toolbar-button{background:hsl(var(--background));border:1px solid hsl(var(--border));cursor:pointer;width:32px;height:32px;color:hsl(var(--foreground));border-radius:6px;justify-content:center;align-items:center;padding:0;transition:background-color .2s,border-color .2s;display:flex}.comment-markdown-editor .toolbar-button:hover{background-color:hsl(var(--muted));border-color:hsl(var(--border))}.dark .comment-markdown-editor .toolbar-button:hover{background-color:hsl(var(--muted))}.comment-markdown-editor .toolbar-button:disabled{opacity:.5;cursor:not-allowed}.comment-markdown-editor .toolbar-divider{background-color:hsl(var(--border));width:1px;height:16px;margin:0 4px}.comment-markdown-editor .editor-content{background-color:#fff;border:none;border-radius:0;margin:0;transition:border-color .2s;position:relative}.comment-markdown-editor .editor-content:focus-within{outline:none}.comment-markdown-editor .editor-textarea{width:100%;height:var(--editor-height,120px);min-height:var(--editor-height,120px);max-height:var(--editor-height,120px);resize:none;color:#111827;background:#fff;border:none;border-radius:0;padding:12px;font-family:inherit;font-size:14px;line-height:1.5;overflow-y:auto;box-shadow:none!important;outline:none!important}.comment-markdown-editor .editor-textarea:focus{box-shadow:none!important;border:none!important;outline:none!important}.comment-markdown-editor .editor-textarea::placeholder{color:#9ca3af}.dark .comment-markdown-editor .editor-content{background-color:var(--accent)}.dark .comment-markdown-editor .editor-content:focus-within{border-color:var(--ranoku-primary);outline:none}.dark .comment-markdown-editor .editor-textarea{background:var(--accent);color:#fff}.comment-markdown-editor .editor-textarea::-webkit-scrollbar{width:8px}.comment-markdown-editor .editor-textarea::-webkit-scrollbar-track{background:#e5e7eb;border-radius:4px}.comment-markdown-editor .editor-textarea::-webkit-scrollbar-thumb{background:#9ca3af;border-radius:4px}.comment-markdown-editor .editor-textarea::-webkit-scrollbar-thumb:hover{background:#6b7280}.dark .comment-markdown-editor .editor-textarea::-webkit-scrollbar-track{background:#374151;border-radius:4px}.dark .comment-markdown-editor .editor-textarea::-webkit-scrollbar-thumb{background:#6b7280;border-radius:4px}.dark .comment-markdown-editor .editor-textarea::-webkit-scrollbar-thumb:hover{background:#9ca3af}.dark .comment-markdown-editor .editor-textarea:focus{box-shadow:none!important;border:none!important;outline:none!important}.dark .comment-markdown-editor .editor-textarea::placeholder{color:#6b7280}.comment-markdown-editor .character-count{color:#6b7280;font-size:12px;position:absolute;bottom:12px;right:12px}.dark .comment-markdown-editor .character-count{color:#9ca3af}.comment-markdown-editor .preview-content{height:var(--editor-height,120px);min-height:var(--editor-height,120px);max-height:var(--editor-height,120px);color:#111827;background-color:#fff;border:1px solid #e5e7eb;border-radius:0;margin:4px;padding:12px;overflow-y:auto}.comment-markdown-editor .preview-empty{color:#9ca3af;font-style:italic}.dark .comment-markdown-editor .preview-content{background-color:var(--accent);color:#fff}.comment-markdown-editor .preview-content::-webkit-scrollbar{width:8px}.comment-markdown-editor .preview-content::-webkit-scrollbar-track{background:#e5e7eb;border-radius:4px}.comment-markdown-editor .preview-content::-webkit-scrollbar-thumb{background:#9ca3af;border-radius:4px}.comment-markdown-editor .preview-content::-webkit-scrollbar-thumb:hover{background:#6b7280}.dark .comment-markdown-editor .preview-content::-webkit-scrollbar-track{background:#374151;border-radius:4px}.dark .comment-markdown-editor .preview-content::-webkit-scrollbar-thumb{background:#6b7280;border-radius:4px}.dark .comment-markdown-editor .preview-content::-webkit-scrollbar-thumb:hover{background:#9ca3af}.dark .comment-markdown-editor .preview-empty{color:#6b7280}.comment-markdown-editor .markdown-content{font-size:14px;line-height:1.6}.comment-markdown-editor .markdown-content h1,.comment-markdown-editor .markdown-content h2,.comment-markdown-editor .markdown-content h3,.comment-markdown-editor .markdown-content h4,.comment-markdown-editor .markdown-content h5,.comment-markdown-editor .markdown-content h6{margin:16px 0 8px;font-weight:600}.comment-markdown-editor .markdown-content p{margin:8px 0}.comment-markdown-editor .markdown-content strong{font-weight:600}.comment-markdown-editor .markdown-content em{font-style:italic}.comment-markdown-editor .markdown-content del{text-decoration:line-through}.comment-markdown-editor .markdown-content code{background-color:#f3f4f6;border-radius:3px;padding:2px 4px;font-family:Courier New,monospace;font-size:13px}.dark .comment-markdown-editor .markdown-content code{background-color:#374151}.comment-markdown-editor .markdown-content pre{background-color:#f3f4f6;border-radius:6px;margin:12px 0;padding:12px;overflow-x:auto}.dark .comment-markdown-editor .markdown-content pre{background-color:#374151}.comment-markdown-editor .markdown-content blockquote{color:#6b7280;border-left:4px solid #d1d5db;margin:12px 0;padding-left:12px}.dark .comment-markdown-editor .markdown-content blockquote{color:#9ca3af;border-left-color:#4b5563}.comment-markdown-editor .markdown-content ul,.comment-markdown-editor .markdown-content ol{margin:8px 0;padding-left:20px}.comment-markdown-editor .markdown-content li{margin:4px 0}.comment-markdown-editor .markdown-content a{color:#3b82f6;text-decoration:underline}.comment-markdown-editor .markdown-content a:hover{color:#2563eb}.dark .comment-markdown-editor .markdown-content a{color:#60a5fa}.dark .comment-markdown-editor .markdown-content a:hover{color:#93c5fd}@media (max-width:640px){.comment-markdown-editor .tab-button{padding:6px 12px;font-size:12px}.comment-markdown-editor .toolbar{flex-wrap:wrap;gap:2px;padding:4px}.comment-markdown-editor .toolbar-button{width:28px;height:28px}.comment-markdown-editor .editor-textarea{height:min(var(--editor-height,120px),45vh);min-height:min(var(--editor-height,120px),45vh);max-height:min(var(--editor-height,120px),45vh);padding:8px;font-size:16px}.comment-markdown-editor .preview-content{height:min(var(--editor-height,120px),45vh);min-height:min(var(--editor-height,120px),45vh);max-height:min(var(--editor-height,120px),45vh)}}@media (max-width:480px){.comment-markdown-editor .tab-button{padding:6px 10px;font-size:11px}}@media (max-width:1023px) and (min-width:641px){.comment-markdown-editor .editor-textarea,.comment-markdown-editor .preview-content{height:min(var(--editor-height,120px),50vh);min-height:min(var(--editor-height,120px),50vh);max-height:min(var(--editor-height,120px),50vh)}}
