.comment-markdown-editor{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;background-color:var(--accent)}.dark .comment-markdown-editor{border-color:#374151;background-color:var(--accent)}.comment-markdown-editor .tabs-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7eb;background-color:var(--accent);padding:0}.dark .comment-markdown-editor .tabs-header{border-bottom-color:#374151;background-color:var(--accent)}.comment-markdown-editor .tab-button{padding:8px 16px;font-size:14px;font-weight:500;color:#6b7280;background:transparent;border:none;cursor:pointer;transition:all .2s}.comment-markdown-editor .tab-button.active,.comment-markdown-editor .tab-button:hover{color:var(--ranoku-primary);background-color:transparent}.comment-markdown-editor .tab-button.active{border-bottom:2px solid var(--ranoku-primary);font-weight:600}.dark .comment-markdown-editor .tab-button{color:#9ca3af}.dark .comment-markdown-editor .tab-button.active,.dark .comment-markdown-editor .tab-button:hover{color:var(--ranoku-primary);background-color:transparent}.dark .comment-markdown-editor .tab-button.active{border-bottom:2px solid var(--ranoku-primary);font-weight:600}.comment-markdown-editor .toolbar{display:flex;align-items:center;gap:4px;padding:0 8px}.comment-markdown-editor .toolbar-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent;border:none;border-radius:4px;cursor:pointer;transition:background-color .2s}.comment-markdown-editor .toolbar-button:hover{background-color:#f3f4f6}.dark .comment-markdown-editor .toolbar-button:hover{background-color:#374151}.comment-markdown-editor .toolbar-button:disabled{opacity:.5;cursor:not-allowed}.comment-markdown-editor .toolbar-divider{width:1px;height:16px;background-color:#d1d5db;margin:0 4px}.dark .comment-markdown-editor .toolbar-divider{background-color:#4b5563}.comment-markdown-editor .editor-content{position:relative;background-color:var(--accent);border:1px solid transparent;transition:border-color .2s ease;margin:0;border-radius:0}.comment-markdown-editor .editor-content:focus-within{border-color:var(--ranoku-primary);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);padding:12px;border:none;outline:none!important;resize:none;font-family:inherit;font-size:14px;line-height:1.5;background:var(--accent);color:#374151;border-radius:0;box-shadow:none!important;overflow-y:auto}.comment-markdown-editor .editor-textarea:focus{outline:none!important;border:none!important;box-shadow: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:#ffffff}.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{outline:none!important;border:none!important;box-shadow:none!important}.dark .comment-markdown-editor .editor-textarea::placeholder{color:#6b7280}.comment-markdown-editor .character-count{position:absolute;bottom:12px;right:12px;font-size:12px;color:#6b7280}.dark .comment-markdown-editor .character-count{color:#9ca3af}.comment-markdown-editor .preview-content{padding:12px;height:var(--editor-height,120px);min-height:var(--editor-height,120px);max-height:var(--editor-height,120px);background-color:var(--accent);color:#374151;margin:4px;border-radius:0;border:2px solid transparent;overflow-y:auto}.comment-markdown-editor .preview-empty{color:#9ca3af;font-style:italic}.dark .comment-markdown-editor .preview-content{background-color:var(--accent);color:#ffffff}.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;padding:2px 4px;border-radius:3px;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;padding:12px;border-radius:6px;overflow-x:auto;margin:12px 0}.dark .comment-markdown-editor .markdown-content pre{background-color:#374151}.comment-markdown-editor .markdown-content blockquote{border-left:4px solid #d1d5db;padding-left:12px;margin:12px 0;color:#6b7280}.dark .comment-markdown-editor .markdown-content blockquote{border-left-color:#4b5563;color:#9ca3af}.comment-markdown-editor .markdown-content ol,.comment-markdown-editor .markdown-content ul{padding-left:20px;margin:8px 0}.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{padding:8px;font-size:16px}.comment-markdown-editor .editor-textarea,.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)}}