/* Neutral text selection for the Clarify action. */
::selection,
::-moz-selection {
    background: #7f8791 !important;
    color: #f4f5f7 !important;
}

.message-text::selection,
.message-text *::selection {
    background: #7f8791 !important;
    color: #f4f5f7 !important;
}

.text-highlight-rounded,
.message-text .text-highlight-rounded {
    background: #7f8791 !important;
    color: #f4f5f7 !important;
    border: 0 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.text-highlight-rounded::before,
.text-highlight-rounded::after {
    content: none !important;
    display: none !important;
}

/* Compact, quiet Clarify trigger with a neutral icon instead of the old arrow. */
.text-selection-popup .popup-ai-btn,
.text-selection-popup .popup-ai-btn:hover,
.text-selection-popup .popup-ai-btn:focus,
.text-selection-popup .popup-ai-btn:focus-visible,
.text-selection-popup .popup-ai-btn:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.text-selection-popup .popup-ai-icon {
    width: 15px !important;
    height: 15px !important;
    filter: none !important;
}

/* Selection paint must leave the assistant message DOM untouched. */
::highlight(logicum-clarification) {
    background-color: #7f8791;
    color: #f4f5f7;
}
