.messenger-wrap { display: flex; height: 600px; border: 0.5px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.messenger-sidebar { width: 280px; border-right: 0.5px solid #e5e7eb; overflow-y: auto; }
.conv-item { display: flex; gap: 10px; padding: 12px; cursor: pointer; }
.conv-item:hover, .conv-item.active { background: #f0f7ff; }
.msg-bubble { max-width: 68%; padding: 8px 12px; border-radius: 18px; font-size: 13px; }
.msg-row.admin .msg-bubble { background: #0a7cff; color: #fff; }
.msg-row.user .msg-bubble { background: #f3f4f6; }
.chat-wrap {
    display: flex; flex-direction: column; height: 480px;
    background: #fff;
}
.chat-header {
    padding: 12px 16px; border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: #dbeafe; color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 500;
}
.chat-name { font-size: 14px; font-weight: 500; }
.chat-paper { font-size: 11px; color: #6b7280; margin-top: 1px; }
.status-pill {
    font-size: 11px; padding: 3px 10px; border-radius: 10px;
    margin-left: auto;
}
.status-pending { background: #fef9c3; color: #a16207; }
.status-done    { background: #dcfce7; color: #15803d; }

.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.msg-row { display: flex; align-items: flex-end; gap: 6px; }
.msg-row.admin { flex-direction: row-reverse; }
.msg-av {
    width: 26px; height: 26px; border-radius: 50%;
    background: #dbeafe; color: #1d4ed8;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 500; flex-shrink: 0;
}
.msg-row.admin .msg-av { background: #ede9fe; color: #6d28d9; }
.msg-bubble {
    max-width: 70%; padding: 8px 12px;
    font-size: 13px; line-height: 1.5; word-break: break-word;
}
.msg-row.user  .msg-bubble { background: #f3f4f6; border-radius: 18px 18px 18px 4px; }
.msg-row.admin .msg-bubble { background: #0a7cff; color: #fff; border-radius: 18px 18px 4px 18px; }
.msg-time { font-size: 10px; color: #9ca3af; padding: 2px 4px; }
.msg-row.admin .msg-time { text-align: right; }

.chat-input-area {
    padding: 10px 12px; border-top: 1px solid #e5e7eb;
    display: flex; align-items: flex-end; gap: 8px;
}
.chat-input-wrap {
    flex: 1; background: #f3f4f6; border-radius: 20px;
    padding: 6px 14px; border: 1px solid #e5e7eb;
}
.chat-input-wrap textarea {
    width: 100%; background: none; border: none; outline: none;
    font-size: 13px; resize: none; max-height: 120px;
    line-height: 1.5; font-family: inherit;
}
.chat-send-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: #0a7cff; border: none; cursor: pointer;
    color: #fff; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.chat-send-btn:hover { opacity: .85; }