/* MiniEditor — WYSIWYG styles */
.me-wrap {
    border: 1.5px solid var(--border, #E2E2EA);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card, #fff);
    transition: border-color .2s;
}
.me-wrap:focus-within {
    border-color: var(--primary, #6C5CE7);
}
.me-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: var(--bg-muted, #F4F4F6);
    border-bottom: 1px solid var(--border, #E2E2EA);
    flex-wrap: wrap;
}
.me-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text, #1A1A2E);
    transition: background .15s;
    font-family: inherit;
}
.me-btn:hover {
    background: rgba(0,0,0,.08);
}
.me-sep {
    width: 1px; height: 20px;
    background: var(--border, #E2E2EA);
    margin: 0 4px;
}
.me-editor {
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    overflow-y: auto;
    word-wrap: break-word;
}
.me-editor:empty:before {
    content: attr(data-placeholder);
    color: var(--text-light, #B5B5BE);
    pointer-events: none;
}
.me-editor img.me-inline-img {
    max-width: 100%;
    border-radius: 6px;
    margin: 8px 0;
    display: block;
}
.me-img-loading {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-muted, #F4F4F6);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted, #7C7C8A);
    margin: 4px 0;
}

/* Rendered HTML in comments */
.comment-html img {
    max-width: 100%;
    border-radius: 6px;
    margin: 6px 0;
}
.comment-html a {
    color: var(--primary, #6C5CE7);
    text-decoration: underline;
}
.comment-html ul, .comment-html ol {
    padding-left: 20px;
    margin: 4px 0;
}
