.icoon-messaging {
    color: #18202a;
}

.icoon-conversation-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.icoon-messaging-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    min-height: 70vh;
}

.icoon-conversation-item {
    position: relative;
    min-height: 72px;
    border-left: 0;
    border-right: 0;
}

.icoon-conversation-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.icoon-conversation-actions {
    position: relative;
    z-index: 2;
}

.icoon-conversation-item.is-disabled {
    opacity: 0.72;
}

.icoon-conversation-item:first-child {
    border-top: 0;
}

.icoon-avatar {
    position: relative;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 50%;
    background: #edf2f7;
    color: #263447;
    font-weight: 700;
    font-size: 0.9rem;
}

.icoon-online-dot {
    position: absolute;
    right: 1px;
    bottom: 2px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.icoon-conversation-name,
.icoon-conversation-preview {
    display: block;
    min-width: 0;
}

.icoon-conversation-box {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.icoon-conversation-header {
    min-height: 64px;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.icoon-message-list {
    flex: 1 1 auto;
    min-height: 320px;
    max-height: 64vh;
    padding: 16px;
    overflow-y: auto;
    background: #f7f8fa;
}

.icoon-message-row {
    display: flex;
    margin-bottom: 10px;
}

.icoon-message-row.is-mine {
    justify-content: flex-end;
}

.icoon-message-row.is-theirs {
    justify-content: flex-start;
}

.icoon-message-bubble {
    max-width: min(72%, 620px);
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow-wrap: anywhere;
}

.icoon-message-row.is-mine .icoon-message-bubble {
    background: #1663d8;
    border-color: #1663d8;
    color: #fff;
}

.icoon-message-author {
    margin-bottom: 4px;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 700;
}

.icoon-message-body {
    line-height: 1.4;
    white-space: normal;
}

.icoon-message-time {
    margin-top: 4px;
    font-size: 0.72rem;
    opacity: 0.72;
    text-align: right;
}

.icoon-message-flag,
.icoon-report-button {
    font-size: 0.75rem;
}

.icoon-report-button {
    padding: 0;
}

.icoon-message-form {
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.icoon-message-form textarea {
    resize: none;
}

.icoon-unread-badge {
    min-width: 1.5rem;
}

.icoon-empty-state {
    background: #fff;
}

.icoon-new-message-toast {
    border-radius: 8px;
}

@media (max-width: 576px) {
    .icoon-messaging-layout {
        display: block;
    }

    .icoon-conversation-box {
        min-height: 70vh;
        border-radius: 0;
    }

    .icoon-message-list {
        max-height: none;
    }

    .icoon-message-bubble {
        max-width: 86%;
    }
}
