/* ── Sign-in prompt ──────────────────────────────────────── */
.rc-msg-signin {
    text-align: center; padding: 80px 20px;
    font-family: "Josefin Sans", sans-serif;
}
.rc-msg-signin i { font-size: 3rem; color: rgba(255,255,255,0.12); margin-bottom: 16px; display: block; }
.rc-msg-signin h2 { font-size: 1.2rem; color: #fff; font-weight: 700; margin-bottom: 8px; }
.rc-msg-signin p { font-size: 0.86rem; color: rgba(255,255,255,0.4); margin-bottom: 20px; }
.rc-msg-signin-btn {
    background: #f5c518; color: #000; border: none; border-radius: 50px;
    padding: 10px 24px; font-weight: 700; font-size: 0.86rem; cursor: pointer;
    font-family: "Josefin Sans", sans-serif;
}
.rc-msg-signin-btn:hover { opacity: 0.85; }

/* ── List panel header ───────────────────────────────────── */
.rc-msg-list-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.rc-msg-list-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.92rem; font-weight: 700; color: #fff;
}
.rc-msg-compose-icon {
    background: none; border: none;
    color: rgba(255,255,255,0.45); font-size: 0.92rem;
    cursor: pointer; padding: 6px;
    border-radius: 50%; transition: color 0.12s, background 0.12s;
}
.rc-msg-compose-icon:hover {
    color: #f5c518; background: rgba(255,255,255,0.06);
}

/* ── Two-panel layout ────────────────────────────────────── */
#rc-msg-panels {
    display: flex; gap: 0; height: calc(100vh - 120px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; overflow: hidden;
}
#rc-msg-list-panel {
    width: 340px; flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    background: rgba(255,255,255,0.02);
}
#rc-msg-thread-panel {
    flex: 1; display: flex; flex-direction: column;
    background: #1a1a1a; overflow: hidden;
}

/* ── Conversation cards ──────────────────────────────────── */
.rc-msg-conv-card {
    display: flex; flex-direction: row; align-items: center;
    padding: 14px 16px; cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.12s;
    gap: 12px;
}
.rc-msg-conv-card:hover { background: rgba(255,255,255,0.05); }
.rc-msg-conv-active {
    border-left: 3px solid #f5c518;
    background: rgba(245,197,24,0.08);
    padding-left: 13px;
}
.rc-msg-avatar-wrap {
    position: relative; flex-shrink: 0;
    width: 40px; height: 40px;
}
.rc-msg-conv-text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.rc-msg-conv-name {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.84rem; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-msg-conv-preview {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.78rem; color: rgba(255,255,255,0.4);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-msg-preview-unread {
    font-weight: 600; color: #fff;
}
.rc-msg-conv-top {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.rc-msg-conv-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.rc-msg-conv-meta {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 6px; flex-shrink: 0;
}
.rc-msg-conv-time {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.68rem; color: rgba(255,255,255,0.25);
    white-space: nowrap;
}
.rc-msg-unread-badge {
    background: #f5c518; color: #000;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.68rem; font-weight: 700;
    min-width: 18px; height: 18px; line-height: 18px;
    border-radius: 9px; text-align: center;
    padding: 0 5px;
}

/* ── Avatar ──────────────────────────────────────────────── */
.rc-msg-avatar {
    width: 40px; height: 40px;
    border-radius: 50%; object-fit: cover;
}
.rc-msg-avatar-sm { width: 32px; height: 32px; }
.rc-msg-avatar-xs { width: 24px; height: 24px; }

/* ── Online dot ──────────────────────────────────────────── */
.rc-msg-online-dot {
    width: 8px; height: 8px;
    background: #2ecc71;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    position: absolute; bottom: 0; right: 0;
}

/* ── Thread header ───────────────────────────────────────── */
.rc-msg-thread-header {
    display: flex; flex-direction: row; justify-content: space-between;
    align-items: center; padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.rc-msg-thread-partner-wrap {
    position: relative; flex-shrink: 0;
    width: 36px; height: 36px;
}
.rc-msg-thread-partner-wrap .rc-msg-avatar {
    width: 36px; height: 36px;
}
.rc-msg-partner-link {
    display: flex; align-items: center; gap: 9px;
    text-decoration: none; color: inherit;
    transition: opacity 0.15s; min-width: 0;
}
.rc-msg-partner-link:hover { opacity: 0.8; }
.rc-msg-partner-link:hover .rc-msg-partner-name { color: #f5c518; }
.rc-msg-partner-info {
    display: flex; flex-direction: column; gap: 1px; min-width: 0;
}
.rc-msg-partner-name {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.86rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.15s;
}
.rc-msg-partner-handle {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.72rem; color: rgba(255,255,255,0.38);
    white-space: nowrap;
}
.rc-msg-partner-status {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.68rem; color: rgba(255,255,255,0.35);
    white-space: nowrap;
}
.rc-msg-status-online { color: #2ecc71; }
.rc-msg-thread-name {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; font-weight: 700; color: #fff;
}
.rc-msg-thread-actions {
    display: flex; align-items: center; gap: 4px;
}
.rc-msg-thread-action-btn {
    background: none; border: none; color: rgba(255,255,255,0.35);
    font-size: 0.88rem; cursor: pointer; padding: 6px;
    border-radius: 50%; transition: color 0.12s, background 0.12s;
}
.rc-msg-thread-action-btn:hover {
    color: #f5c518; background: rgba(255,255,255,0.06);
}
.rc-msg-back-btn {
    display: none; background: none; border: none;
    color: rgba(255,255,255,0.5); font-size: 1rem;
    cursor: pointer; padding: 6px; margin-right: 4px;
}

/* ── Messages / bubbles container ────────────────────────── */
.rc-msg-bubbles {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    min-height: 0; /* allow flex shrink for overflow scroll */
}
.rc-msg-load-older {
    text-align: center; padding: 8px 0; color: rgba(255,255,255,0.3); font-size: 0.8rem;
}
.rc-msg-load-older .fa-spin { font-size: 0.9rem; }

/* ── Message bubble ──────────────────────────────────────── */
.rc-msg-bubble-wrap {
    display: flex; flex-direction: column;
    max-width: 75%; position: relative;
}
.rc-msg-bubble {
    padding: 10px 14px; border-radius: 16px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; color: #fff;
    line-height: 1.45; word-break: break-word;
    position: relative;
}
.rc-msg-sent {
    align-self: flex-end;
}
.rc-msg-sent .rc-msg-bubble {
    background: rgba(37,99,235,0.3);
    border: 1px solid rgba(59,130,246,0.45);
    border-bottom-right-radius: 4px;
}
.rc-msg-received {
    align-self: flex-start;
}
.rc-msg-received .rc-msg-bubble {
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(59,130,246,0.25);
    border-bottom-left-radius: 4px;
}
.rc-msg-bubble-meta {
    display: flex; align-items: center; gap: 8px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.68rem; color: rgba(255,255,255,0.25);
    margin-top: 4px; padding: 0 4px;
}
.rc-msg-sent .rc-msg-bubble-meta { justify-content: flex-end; }
.rc-msg-received .rc-msg-bubble-meta { justify-content: flex-start; }

/* Read receipt icons */
.rc-msg-read-check { font-size: 0.62rem; color: rgba(255,255,255,0.3); }
.rc-msg-read-check.rc-msg-read { color: #3b82f6; }
.rc-msg-inbox-check { font-size: 0.58rem; vertical-align: middle; margin-right: 3px; }

/* React button on bubble */
.rc-msg-react-btn {
    background: none; border: none; font-size: 0.7rem;
    color: rgba(255,255,255,0.25); cursor: pointer;
    opacity: 0; transition: opacity 0.12s, color 0.12s;
    padding: 2px 4px; border-radius: 4px;
}
.rc-msg-bubble-wrap:hover .rc-msg-react-btn { opacity: 1; }
.rc-msg-react-btn:hover { color: #f5c518; background: rgba(255,255,255,0.06); }

/* Delete button on bubble */
.rc-msg-delete-btn {
    background: none; border: none; font-size: 0.68rem;
    color: rgba(255,255,255,0.2); cursor: pointer;
    opacity: 0; transition: opacity 0.12s, color 0.12s;
    padding: 2px 4px; border-radius: 4px;
}
.rc-msg-bubble-wrap:hover .rc-msg-delete-btn { opacity: 1; }
.rc-msg-delete-btn:hover { color: #e74c3c; }

/* ── Date dividers ───────────────────────────────────────── */
.rc-msg-date-divider {
    display: flex; flex-direction: row; align-items: center;
    gap: 12px; margin: 12px 0;
}
.rc-msg-date-divider::before,
.rc-msg-date-divider::after {
    content: ""; flex: 1;
    height: 1px; background: rgba(255,255,255,0.08);
}
.rc-msg-date-divider span {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.72rem; color: rgba(255,255,255,0.25);
    white-space: nowrap;
}

/* ── Episode card (inline in message) ────────────────────── */
.rc-msg-episode-card {
    display: flex; flex-direction: row; gap: 10px;
    padding: 8px; margin-top: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; text-decoration: none;
    transition: border-color 0.12s;
}
.rc-msg-episode-card:hover { border-color: rgba(245,197,24,0.3); }
.rc-msg-episode-thumb {
    width: 120px; height: 68px; flex-shrink: 0;
    border-radius: 6px; object-fit: cover;
    background: rgba(255,255,255,0.04);
}
.rc-msg-episode-info {
    display: flex; flex-direction: column; justify-content: center;
    min-width: 0;
}
.rc-msg-episode-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.82rem; color: #fff; font-weight: 600;
    line-height: 1.3; margin: 0 0 4px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.rc-msg-episode-link {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.72rem; color: #f5c518; text-transform: uppercase;
    font-weight: 700; text-decoration: none;
    letter-spacing: 0.5px;
}
.rc-msg-episode-link:hover { opacity: 0.8; }

/* ── Reactions ───────────────────────────────────────────── */
.rc-msg-reactions {
    display: flex; flex-direction: row; gap: 4px;
    margin-top: 4px; flex-wrap: wrap;
}
.rc-msg-reaction {
    font-size: 0.72rem; padding: 2px 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid transparent;
    border-radius: 10px; cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    font-family: "Josefin Sans", sans-serif;
    color: rgba(255,255,255,0.6);
}
.rc-msg-reaction:hover { background: rgba(255,255,255,0.12); }
.rc-msg-reaction-mine {
    background: rgba(245,197,24,0.15);
    border-color: rgba(245,197,24,0.3);
    color: #f5c518;
}

/* ── Reaction picker ─────────────────────────────────────── */
.rc-msg-react-picker {
    position: absolute; bottom: 100%; margin-bottom: 4px;
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px; padding: 4px 8px;
    display: flex; flex-direction: row; gap: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 100;
}
.rc-msg-react-picker button {
    width: 28px; height: 28px; border: none; background: transparent;
    border-radius: 50%; font-size: 0.92rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.1s;
}
.rc-msg-react-picker button:hover { background: rgba(245,197,24,0.2); }

/* ── Compose bar ─────────────────────────────────────────── */
.rc-msg-compose {
    display: flex; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    flex-shrink: 0; position: relative;
}
.rc-msg-compose-row {
    display: flex; flex-direction: row; gap: 8px;
    padding: 12px 16px; align-items: flex-end;
}
.rc-msg-input {
    flex: 1; border: none; outline: none; resize: none;
    background: rgba(255,255,255,0.07);
    border-radius: 20px; padding: 9px 16px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; color: #fff;
    max-height: 120px; line-height: 1.4;
    min-height: 38px;
}
.rc-msg-input::placeholder { color: rgba(255,255,255,0.3); }
.rc-msg-input:focus { background: rgba(255,255,255,0.1); }
.rc-msg-send-btn {
    width: 38px; height: 38px; flex-shrink: 0;
    background: #f5c518; color: #000; border: none;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.88rem; transition: opacity 0.12s;
}
.rc-msg-send-btn:hover { opacity: 0.85; }
.rc-msg-send-btn:disabled { opacity: 0.4; cursor: default; }
.rc-msg-emoji-btn,
.rc-msg-ep-btn {
    width: 34px; height: 34px; flex-shrink: 0;
    background: transparent; border: none;
    color: rgba(255,255,255,0.35); font-size: 0.92rem;
    cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.12s, background 0.12s;
}
.rc-msg-emoji-btn:hover,
.rc-msg-ep-btn:hover {
    color: #f5c518; background: rgba(255,255,255,0.06);
}

/* ── Emoji picker ────────────────────────────────────────── */
.rc-msg-emoji-picker {
    position: absolute; bottom: 100%; left: 0; margin-bottom: 4px;
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px; padding: 10px;
    max-height: 280px; overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 100; width: 320px;
}
.rc-msg-emoji-grid {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
}
.rc-msg-emoji-grid .rc-msg-emoji-cat {
    grid-column: 1 / -1; font-size: 0.7rem; color: rgba(255,255,255,0.35);
    padding: 6px 2px 2px; text-transform: uppercase; letter-spacing: 0.5px;
}
.rc-msg-emoji-grid .rc-msg-emoji-cat:first-child { padding-top: 0; }
.rc-msg-emoji-grid button {
    width: 34px; height: 34px; border: none; background: transparent;
    border-radius: 6px; font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.1s; padding: 0;
}
.rc-msg-emoji-grid button:hover { background: rgba(255,255,255,0.1); }

/* ── Episode search (in compose) ─────────────────────────── */
.rc-msg-ep-search {
    position: absolute; bottom: 100%; margin-bottom: 4px;
    left: 16px; right: 16px;
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px; padding: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 100;
}
.rc-msg-ep-search-input {
    width: 100%; border: none; outline: none;
    background: rgba(255,255,255,0.07);
    border-radius: 8px; padding: 8px 12px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.82rem; color: #fff;
    margin-bottom: 6px; box-sizing: border-box;
}
.rc-msg-ep-search-input::placeholder { color: rgba(255,255,255,0.3); }
.rc-msg-ep-results {
    max-height: 200px; overflow-y: auto;
}
.rc-msg-ep-result {
    display: flex; flex-direction: row; align-items: center;
    gap: 10px; padding: 6px 8px; border-radius: 6px;
    cursor: pointer; transition: background 0.1s;
}
.rc-msg-ep-result:hover { background: rgba(255,255,255,0.06); }
.rc-msg-ep-result-thumb {
    width: 64px; height: 36px; flex-shrink: 0;
    border-radius: 4px; object-fit: cover;
    background: rgba(255,255,255,0.04);
}
.rc-msg-ep-result-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.78rem; color: #fff; font-weight: 500;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Episode preview (attached above compose) ────────────── */
.rc-msg-ep-preview {
    display: flex; flex-direction: row; align-items: center;
    gap: 10px; padding: 8px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}
.rc-msg-ep-preview-thumb {
    width: 60px; height: 34px; flex-shrink: 0;
    border-radius: 4px; object-fit: cover;
}
.rc-msg-ep-preview-title {
    flex: 1; font-family: "Josefin Sans", sans-serif;
    font-size: 0.78rem; color: rgba(255,255,255,0.6);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc-msg-ep-preview-close {
    background: none; border: none; color: rgba(255,255,255,0.3);
    font-size: 0.82rem; cursor: pointer; padding: 4px;
    transition: color 0.12s;
}
.rc-msg-ep-preview-close:hover { color: #e74c3c; }

/* ── Inline new-message compose (in thread panel) ────────── */
.rc-msg-compose-recipient {
    display: flex; align-items: center; gap: 0;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
    flex-shrink: 0; position: relative;
}
.rc-msg-compose-recipient-label {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.84rem; font-weight: 600;
    color: rgba(255,255,255,0.4); margin-right: 8px;
    flex-shrink: 0;
}
.rc-msg-compose-recipient-at {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; color: rgba(255,255,255,0.35);
    flex-shrink: 0;
}
.rc-msg-compose-recipient-input {
    flex: 1; border: none; outline: none;
    background: transparent; padding: 6px 8px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; color: #fff;
}
.rc-msg-compose-recipient-input::placeholder { color: rgba(255,255,255,0.3); }
.rc-msg-compose-placeholder {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 20px; text-align: center;
}
.rc-msg-compose-placeholder i {
    font-size: 2rem; color: rgba(255,255,255,0.1);
    margin-bottom: 12px;
}
.rc-msg-compose-placeholder p {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.84rem; color: rgba(255,255,255,0.25);
    margin: 0; line-height: 1.5;
}

/* ── Inbox / Archive pillbox ─────────────────────────────── */
.rc-msg-pillbox {
    display: flex; gap: 0;
    margin: 10px 16px; padding: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
}
.rc-msg-pill {
    flex: 1; padding: 6px 0; border: none;
    background: transparent; cursor: pointer;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.76rem; font-weight: 600;
    color: rgba(255,255,255,0.35);
    border-radius: 6px; transition: background 0.15s, color 0.15s;
    text-align: center;
}
.rc-msg-pill:hover { color: rgba(255,255,255,0.55); }
.rc-msg-pill-active {
    background: rgba(245,197,24,0.15); color: #f5c518;
}
.rc-msg-pill-active:hover { color: #f5c518; }

/* ── Empty states ────────────────────────────────────────── */
.rc-msg-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 20px; text-align: center;
}
.rc-msg-empty i {
    font-size: 2.5rem; color: rgba(255,255,255,0.15);
    margin-bottom: 12px;
}
.rc-msg-empty p {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; color: rgba(255,255,255,0.35);
    margin: 0; line-height: 1.5;
}

/* ── Toast notification ──────────────────────────────────── */
.rc-toast {
    position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
    background: #1c1c1c; color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; padding: 10px 20px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.82rem; z-index: 10001;
    transition: bottom 0.25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.rc-toast-show { bottom: 24px; }

/* ── Blocked users section ───────────────────────────────── */
.rc-msg-blocked-section {
    padding: 16px;
}
.rc-msg-blocked-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.82rem; font-weight: 700;
    color: rgba(255,255,255,0.5); margin: 0 0 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.rc-msg-blocked-item {
    display: flex; flex-direction: row; align-items: center;
    gap: 10px; padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rc-msg-blocked-name {
    flex: 1; font-family: "Josefin Sans", sans-serif;
    font-size: 0.82rem; color: rgba(255,255,255,0.6);
}
.rc-msg-unblock-btn {
    background: none; border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.4); border-radius: 50px;
    padding: 4px 12px; font-family: "Josefin Sans", sans-serif;
    font-size: 0.72rem; font-weight: 600; cursor: pointer;
    transition: border-color 0.12s, color 0.12s;
}
.rc-msg-unblock-btn:hover { border-color: #f5c518; color: #f5c518; }

/* ── Scrollbar styling ───────────────────────────────────── */
#rc-msg-list-panel::-webkit-scrollbar,
.rc-msg-bubbles::-webkit-scrollbar,
.rc-msg-emoji-picker::-webkit-scrollbar,
.rc-msg-ep-results::-webkit-scrollbar {
    width: 4px;
}
#rc-msg-list-panel::-webkit-scrollbar-track,
.rc-msg-bubbles::-webkit-scrollbar-track,
.rc-msg-emoji-picker::-webkit-scrollbar-track,
.rc-msg-ep-results::-webkit-scrollbar-track {
    background: transparent;
}
#rc-msg-list-panel::-webkit-scrollbar-thumb,
.rc-msg-bubbles::-webkit-scrollbar-thumb,
.rc-msg-emoji-picker::-webkit-scrollbar-thumb,
.rc-msg-ep-results::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* ── Responsive (mobile) ─────────────────────────────────── */
@media (max-width: 768px) {
    #rc-msg-panels { flex-direction: column; height: calc(100vh - 100px); }
    #rc-msg-list-panel { width: 100%; border-right: none; }
    #rc-msg-thread-panel { display: none; }
    #rc-msg-panels.rc-thread-open #rc-msg-list-panel { display: none; }
    #rc-msg-panels.rc-thread-open #rc-msg-thread-panel { display: flex; }
    .rc-msg-back-btn { display: inline-flex !important; }
    .rc-msg-bubble-wrap { max-width: 85%; }
}
