/*
 * AI_FLOAT_AUTHENTICATED_CONVERSATION_UI_V1
 *
 * Presentation only.
 * Existing RMW/AI-Float visual vocabulary remains authoritative.
 */

.ai-float-conversation {
    position: relative;
}

.ai-float-conversation-transcript {
    display: grid;
    gap: 11px;
    max-height: 330px;
    overflow-y: auto;
    margin-top: 16px;
    padding-right: 4px;
    scrollbar-width: thin;
}

.ai-float-conversation-transcript:empty {
    display: none;
}

.ai-float-conversation-message {
    display: grid;
    gap: 4px;
    padding: 11px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: rgba(255,255,255,.055);
}

.ai-float-conversation-message[data-role="user"] {
    margin-left: min(44px, 8%);
}

.ai-float-conversation-message[data-role="assistant"] {
    margin-right: min(44px, 8%);
    border-color: rgba(138,218,255,.22);
}

.ai-float-conversation-message strong {
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ai-float-conversation-message p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: .88rem;
    line-height: 1.58;
}

@media(max-width:520px) {

    .ai-float-conversation-message[data-role="user"],
    .ai-float-conversation-message[data-role="assistant"] {
        margin-inline: 0;
    }

    .ai-float-conversation-transcript {
        max-height: 390px;
    }
}
