.chat-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.chat-editor-toolbar .btn {
    padding: 0.15rem 0.4rem;
    font-size: 0.85rem;
    line-height: 1;
}

.chat-editor-wrap {
    display: flex;
    align-items: stretch;
}

.chat-editor-wrap .chat-editor {
    border-radius: 0 0 0 0.375rem;
    border-top: none;
    min-height: 60px;
    max-height: 150px;
    overflow-y: auto;
    flex: 1;
    outline: none;
}

.chat-editor-wrap .chat-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--bs-secondary-color, #6c757d);
    pointer-events: none;
}

.chat-editor-wrap .btn-send {
    border-radius: 0 0 0.375rem 0;
    border-top: none;
}

.chat-editor-toolbar .btn-edit-mode {
    margin-left: auto;
}

.message-text a {
    color: inherit;
    text-decoration: underline;
}

.message-text b,
.message-text strong {
    font-weight: 700;
}

.message-text i,
.message-text em {
    font-style: italic;
}

.message-text u {
    text-decoration: underline;
}
