
    .rrc-fab {
        position: fixed;
        right: 20px; bottom: 20px;
        width: 52px; height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ffd24a 0%, #ff8c1a 100%);
        color: #1a1a1a;
        border: 0;
        cursor: pointer;
        display: none;
        align-items: center; justify-content: center;
        box-shadow: 0 12px 28px rgba(255,140,26,0.45),
                    inset 0 1px 0 rgba(255,255,255,0.30);
        z-index: 9990;
        transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
    }
    .rrc-fab:hover  { filter: brightness(1.06); transform: translateY(-1px); }
    .rrc-fab:active { transform: translateY(1px); }
    .rrc-fab svg { width: 22px; height: 22px; }
    .rrc-fab__dot {
        position: absolute;
        top: -3px; right: -3px;
        min-width: 18px; height: 18px;
        padding: 0 5px;
        border-radius: 9px;
        background: #ff4757;
        color: #fff;
        font: 800 11px/18px 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        text-align: center;
        box-shadow: 0 0 0 2px #15161D;
        display: none;
    }
    .rrc-fab.has-unread .rrc-fab__dot { display: block; }
    body.rrc-show-fab .rrc-fab { display: inline-flex; }

    .rrc-preview {
        position: fixed;
        right: 20px; bottom: 84px;
        max-width: min(300px, calc(100vw - 40px));
        display: none;
        text-align: left;
        background: #15161D;
        color: #fff;
        border: 1px solid rgba(255,140,26,0.55);
        border-radius: 12px;
        padding: 10px 14px;
        box-shadow: 0 12px 28px rgba(0,0,0,0.45);
        cursor: pointer;
        z-index: 9990;
        font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        animation: rrcFade .2s ease;
    }
    body.rrc-show-fab .rrc-preview.is-on { display: block; }
    .rrc-preview__who {
        display: block;
        font-size: 11px; font-weight: 800;
        color: #ffd24a;
        margin-bottom: 2px;
    }
    .rrc-preview__text {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 13px; line-height: 1.4;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .rrc-panel {
        position: fixed;
        right: 20px; bottom: 20px;
        width: min(360px, calc(100vw - 24px));
        height: min(560px, calc(100vh - 48px));
        background: #15161D;
        border: 1px solid rgba(255,140,26,0.55);
        border-radius: 16px;
        box-shadow: 0 22px 48px rgba(0,0,0,0.55),
                    0 0 0 1px rgba(255,140,26,0.18),
                    0 0 26px rgba(255,140,26,0.18);
        display: none;
        flex-direction: column;
        overflow: hidden;
        z-index: 9991;
        font-family: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    .rrc-panel.is-open { display: flex; }

    .rrc-head {
        display: flex; align-items: center; gap: 12px;
        padding: 14px 16px;
        background:
            linear-gradient(135deg, rgba(255,210,74,0.08) 0%, rgba(255,140,26,0.04) 100%),
            rgba(0,0,0,0.20);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .rrc-head__icon {
        width: 36px; height: 36px;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffd24a 0%, #ff8c1a 100%);
        color: #1a1a1a;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(255,140,26,0.30), inset 0 1px 0 rgba(255,255,255,0.30);
    }
    .rrc-head__icon svg { width: 18px; height: 18px; }
    .rrc-head__copy { flex: 1; min-width: 0; }
    .rrc-head__title {
        font-size: 13px; font-weight: 800;
        color: #fff;
        letter-spacing: -0.01em;
        line-height: 1.1;
    }
    .rrc-head__sub {
        font-size: 11px; font-weight: 600;
        color: rgba(255,255,255,0.55);
        margin-top: 2px;
        display: flex; align-items: center; gap: 6px;
    }
    .rrc-head__sub-dot {
        width: 7px; height: 7px;
        border-radius: 50%;
        background: #00e701;
        box-shadow: 0 0 8px rgba(0,231,1,0.55);
    }
    .rrc-head__close {
        background: transparent; border: 0;
        color: rgba(255,255,255,0.55);
        font-size: 22px; line-height: 1;
        cursor: pointer;
        width: 30px; height: 30px;
        border-radius: 6px;
        display: flex; align-items: center; justify-content: center;
        transition: background .12s ease, color .12s ease;
    }
    .rrc-head__close:hover {
        background: rgba(255,255,255,0.08);
        color: #fff;
    }

    .rrc-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding: 14px 14px 8px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: #15161D;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,140,26,0.35) transparent;
    }
    .rrc-body::-webkit-scrollbar { width: 6px; }
    .rrc-body::-webkit-scrollbar-thumb { background: rgba(255,140,26,0.35); border-radius: 6px; }

    .rrc-msg {
        max-width: 78%;
        padding: 8px 12px;
        border-radius: 12px;
        font-size: 13px; line-height: 1.4;
        font-weight: 500;
        word-wrap: break-word;
        white-space: pre-wrap;
        animation: rrcFade .2s ease;
    }
    @keyframes rrcFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
    .rrc-msg--user {
        align-self: flex-end;
        background: linear-gradient(135deg, #ffd24a 0%, #ff8c1a 100%);
        color: #1a1a1a;
        font-weight: 700;
        border-bottom-right-radius: 4px;
        box-shadow: 0 4px 12px rgba(255,140,26,0.25);
    }
    .rrc-msg--staff {
        align-self: flex-start;
        background: rgba(255,255,255,0.04);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.06);
        border-bottom-left-radius: 4px;
    }
    .rrc-msg--system {
        align-self: center;
        background: transparent;
        color: rgba(255,255,255,0.50);
        font-size: 11px;
        font-style: italic;
        padding: 2px 8px;
    }
    .rrc-msg__time {
        display: block;
        font-size: 10px; font-weight: 600;
        opacity: 0.65;
        margin-top: 3px;
        text-align: right;
    }
    .rrc-msg--staff .rrc-msg__time { text-align: left; }

    .rrc-msg__img {
        display: block;
        max-width: 100%;
        max-height: 220px;
        border-radius: 8px;
        margin-top: 4px;
        cursor: zoom-in;
        background: rgba(0,0,0,0.20);
    }
    .rrc-msg--user .rrc-msg__img { background: rgba(0,0,0,0.10); }

    .rrc-typing {
        align-self: flex-start;
        display: none;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 12px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.06);
        border-bottom-left-radius: 4px;
        margin-top: 2px;
    }
    .rrc-typing.is-on { display: inline-flex; }
    .rrc-typing__dot {
        width: 6px; height: 6px;
        border-radius: 50%;
        background: rgba(255,210,74,0.85);
        animation: rrcDot 1.2s infinite ease-in-out;
    }
    .rrc-typing__dot:nth-child(2) { animation-delay: .15s; }
    .rrc-typing__dot:nth-child(3) { animation-delay: .30s; }
    @keyframes rrcDot {
        0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
        40%           { transform: translateY(-3px); opacity: 1; }
    }

    .rrc-empty {
        margin: auto;
        text-align: center;
        padding: 20px;
    }
    .rrc-empty__icon {
        width: 56px; height: 56px;
        margin: 0 auto 10px;
        border-radius: 50%;
        background: rgba(255,140,26,0.10);
        color: #ffd24a;
        display: flex; align-items: center; justify-content: center;
    }
    .rrc-empty__icon svg { width: 26px; height: 26px; }
    .rrc-empty strong { display: block; color: #fff; font-weight: 800; margin-bottom: 4px; font-size: 14px; }
    .rrc-empty span { color: rgba(255,255,255,0.55); font-size: 12.5px; line-height: 1.5; }

    .rrc-foot {
        flex: 0 0 auto;
        padding: 10px 12px 12px;
        border-top: 1px solid rgba(255,255,255,0.06);
        background: rgba(0,0,0,0.20);
    }
    .rrc-form {
        display: flex; align-items: flex-end; gap: 8px;
    }
    .rrc-input {
        flex: 1 1 auto;
        min-height: 40px;
        max-height: 110px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px;
        padding: 9px 12px;
        color: #fff;
        font-family: inherit;
        font-size: 13.5px;
        font-weight: 500;
        line-height: 1.4;
        resize: none;
        outline: 0;
        transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
    }
    .rrc-input:focus {
        border-color: rgba(255,140,26,0.55);
        background: rgba(255,255,255,0.06);
        box-shadow: 0 0 0 3px rgba(255,140,26,0.12);
    }
    .rrc-input::placeholder { color: rgba(255,255,255,0.40); }

    .rrc-attach {
        flex: 0 0 auto;
        width: 40px; height: 40px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px;
        color: rgba(255,255,255,0.70);
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: background .12s ease, border-color .12s ease, color .12s ease;
        padding: 0;
    }
    .rrc-attach:hover {
        background: rgba(255,140,26,0.10);
        border-color: rgba(255,140,26,0.30);
        color: #ffd24a;
    }
    .rrc-attach svg { width: 16px; height: 16px; }
    .rrc-attach input { display: none; }
    .rrc-foot__hint {
        font-size: 10px;
        color: rgba(255,255,255,0.45);
        margin: 6px 4px 0;
        line-height: 1.4;
    }
    .rrc-head__sub.is-offline { color: rgba(255,180,90,0.90); }
    .rrc-head__sub.is-offline .rrc-head__sub-dot {
        background: #ff8c1a;
        box-shadow: 0 0 8px rgba(255,140,26,0.55);
    }

    .rrc-send {
        flex: 0 0 auto;
        width: 40px; height: 40px;
        border: 0;
        border-radius: 10px;
        background: linear-gradient(135deg, #ffd24a 0%, #ff8c1a 100%);
        color: #1a1a1a;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 12px rgba(255,140,26,0.30), inset 0 1px 0 rgba(255,255,255,0.30);
        transition: filter .12s ease, transform .08s ease;
    }
    .rrc-send:hover  { filter: brightness(1.06); }
    .rrc-send:active { transform: translateY(1px); }
    .rrc-send:disabled { opacity: .55; cursor: not-allowed; }
    .rrc-send svg { width: 16px; height: 16px; }

    @media (max-width: 480px) {
        .rrc-panel {
            right: 10px; bottom: 10px; left: 10px;
            width: auto;
        }
    }
