:root {
    --chat_dc_7291_c0: #05111a;
    --chat_dc_7291_c1: #00000f80;
    --chat_dc_7291_c2: #0f2235;
    --chat_dc_7291_c3: #162c42;
    --chat_dc_7291_c4: #1e3a54;
    --chat_dc_7291_acc: #4fa3d4;
    --chat_dc_7291_acc2: #6bbfe8;
    --chat_dc_7291_acc3: #2d7ab0;
    --chat_dc_7291_gn: #4caf72;
    --chat_dc_7291_rd: #d45252;
    --chat_dc_7291_gd: #c8972a;
    --chat_dc_7291_t1: #e8f2f9;
    --chat_dc_7291_t2: #a8c8df;
    --chat_dc_7291_t3: #6a9ab5;
    --chat_dc_7291_t4: #3d6680;
    --chat_dc_7291_r: 6px;
    --chat_dc_7291_r2: 10px;
}

.chat_dc_7291_wrap {
    display: flex;
    height: 440px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
    background: #00000f80;
    border-radius: var(--chat_dc_7291_r2);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(79, 163, 212, .15)
}

.chat_dc_7291_sidebar {
    width: 289px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #00000f80;
    border-right: 1px solid rgba(79, 163, 212, .1)
}

.chat_dc_7291_sb_backdrop {
    display: none
}

.chat_dc_7291_sb_head {
    padding: 12px 12px 12px;
    border-bottom: 1px solid rgba(79, 163, 212, .08);
    background: #00000f80
}

.chat_dc_7291_sb_tabs {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 3px;
    border-radius: 14px;
    background: rgba(5, 17, 26, .55);
    border: 1px solid rgba(79, 163, 212, .14);
    overflow: hidden
}

.chat_dc_7291_sb_tabs {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 10px 26px rgba(0, 0, 0, .25)
}

.chat_dc_7291_sb_tabs::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    bottom: 3px;
    width: calc(50% - 3px);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 163, 212, .26) 0%, rgba(79, 163, 212, .12) 55%, rgba(107, 191, 232, .16) 100%);
    border: 1px solid rgba(79, 163, 212, .22);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .40), 0 0 0 1px rgba(79, 163, 212, .07);
    transform: translateX(0);
    transition: transform .18s ease
}

.chat_dc_7291_sb_tabs.is_visitors::before {
    transform: translateX(100%)
}

.chat_dc_7291_tab {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 34px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: rgba(168, 200, 223, .75);
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .15s, transform .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 34px 0 10px
}

.chat_dc_7291_tab:active {
    transform: translateY(1px)
}

.chat_dc_7291_tab_ic {
    font-size: 12px;
    opacity: .85;
    transform: translateY(-.5px);
    transition: opacity .15s, transform .15s
}

.chat_dc_7291_tab_cnt {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(5, 17, 26, .55);
    border: 1px solid rgba(79, 163, 212, .18);
    color: rgba(168, 200, 223, .7);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0
}

.chat_dc_7291_tab.is_on .chat_dc_7291_tab_cnt {
    background: rgba(79, 163, 212, .12);
    border-color: rgba(79, 163, 212, .24);
    color: var(--chat_dc_7291_acc2)
}

.chat_dc_7291_tab:hover {
    color: var(--chat_dc_7291_acc2)
}

.chat_dc_7291_tab:hover .chat_dc_7291_tab_ic {
    opacity: 1
}

.chat_dc_7291_tab.is_on {
    color: var(--chat_dc_7291_t1)
}

.chat_dc_7291_tab.is_on .chat_dc_7291_tab_ic {
    opacity: 1;
    transform: translateY(-.5px) scale(1.02)
}

.chat_dc_7291_sb_sub {
    font-size: 10.5px;
    color: rgba(168, 200, 223, .62);
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 0
}

.chat_dc_7291_sb_sub span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(79, 163, 212, .10);
    border: 1px solid rgba(79, 163, 212, .16);
    color: var(--chat_dc_7291_acc2);
    font-weight: 900;
    margin-right: 6px
}

.chat_dc_7291_sb_ic {
    margin-right: 6px;
    font-size: 10px;
    opacity: .65;
    transform: translateY(-.5px)
}

.chat_dc_7291_sb_counts {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between
}

.chat_dc_7291_sb_count {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(5, 17, 26, .45);
    border: 1px solid rgba(79, 163, 212, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03)
}

.chat_dc_7291_sb_count_ic {
    color: rgba(107, 191, 232, .9);
    opacity: .95
}

.chat_dc_7291_sb_count_num {
    font-weight: 900;
    color: var(--chat_dc_7291_t1);
    font-size: 12px;
    line-height: 1
}

.chat_dc_7291_sb_count_txt {
    font-size: 10px;
    color: rgba(168, 200, 223, .62);
    letter-spacing: .2px
}

.chat_dc_7291_users_list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 8px;
    background: linear-gradient(180deg, rgba(5, 17, 26, .08) 0%, rgba(5, 17, 26, 0) 18%), linear-gradient(0deg, rgba(5, 17, 26, .10) 0%, rgba(5, 17, 26, 0) 22%)
}

.chat_dc_7291_users_list {
    display: none
}

.chat_dc_7291_users_list.is_on {
    display: block
}

.chat_dc_7291_users_list::-webkit-scrollbar {
    width: 3px
}

.chat_dc_7291_users_list::-webkit-scrollbar-track {
    background: transparent
}

.chat_dc_7291_users_list::-webkit-scrollbar-thumb {
    background: var(--chat_dc_7291_c4);
    border-radius: 2px
}

.chat_dc_7291_u_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    cursor: pointer;
    transition: background .15s, transform .15s;
    position: relative;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(79, 163, 212, .07);
    background: rgba(11, 28, 40, .25)
}

.chat_dc_7291_u_item+.chat_dc_7291_u_item {
    margin-top: 8px
}

.chat_dc_7291_u_item:hover {
    background: rgba(79, 163, 212, .07);
    border-color: rgba(79, 163, 212, .14);
    transform: translateY(-1px)
}

.chat_dc_7291_u_ava {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 34px
}

.chat_dc_7291_u_img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: block;
    border: 1px solid rgba(79, 163, 212, .16);
    object-fit: cover
}

.chat_dc_7291_u_dot {
    position: absolute !important;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(11, 28, 40, .95);
    background: rgba(168, 200, 223, .25);
    box-shadow: 0 0 8px rgba(0, 0, 0, .35);
    display: block !important
}

.chat_dc_7291_u_dot.is_on {
    background: var(--chat_dc_7291_gn);
    box-shadow: 0 0 10px rgba(76, 175, 114, .55);
    animation: chat_dc_7291_presence 1.8s ease-in-out infinite
}

.chat_dc_7291_u_info {
    flex: 1;
    min-width: 0
}

.chat_dc_7291_u_name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--chat_dc_7291_t1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.chat_dc_7291_u_role {
    font-size: 9.5px;
    color: var(--chat_dc_7291_t4);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}


.chat_dc_7291_chat_panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #00000f80;
    min-width: 0
}

.chat_dc_7291_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    background: #00000f80;
    border-bottom: 1px solid rgba(79, 163, 212, .1);
    flex-shrink: 0
}

.chat_dc_7291_head_left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.chat_dc_7291_head_icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(79, 163, 212, .1);
    border: 1px solid rgba(79, 163, 212, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chat_dc_7291_acc2);
    font-weight: 900
}

.chat_dc_7291_head_text {
    min-width: 0
}

.chat_dc_7291_head_label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.4px;
    color: var(--chat_dc_7291_t1);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.chat_dc_7291_head_sub {
    font-size: 10px;
    color: var(--chat_dc_7291_t4);
    margin-top: 1px
}

.chat_dc_7291_head_right {
    display: flex;
    align-items: center;
    gap: 8px
}

.chat_dc_7291_sb_toggle {
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(79, 163, 212, .18);
    background: rgba(5, 17, 26, .35);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s, transform .12s
}

.chat_dc_7291_sb_toggle_svg {
    width: 16px;
    height: 16px;
    fill: rgba(168, 200, 223, .70);
    transition: fill .15s, transform .15s
}

.chat_dc_7291_sb_toggle:hover {
    background: rgba(79, 163, 212, .14);
    border-color: rgba(79, 163, 212, .28)
}

.chat_dc_7291_sb_toggle:hover .chat_dc_7291_sb_toggle_svg {
    fill: rgba(107, 191, 232, .95);
    transform: translateY(-.5px)
}

.chat_dc_7291_sb_toggle:active {
    transform: translateY(1px)
}

.chat_dc_7291_reload {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(79, 163, 212, .18);
    background: rgba(5, 17, 26, .35);
    color: rgba(168, 200, 223, .75);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s, border-color .15s, transform .12s
}

.chat_dc_7291_reload_svg {
    width: 16px;
    height: 16px;
    fill: rgba(168, 200, 223, .70);
    transition: fill .15s, transform .15s
}

.chat_dc_7291_reload:hover {
    background: rgba(79, 163, 212, .14);
    color: var(--chat_dc_7291_acc2);
    border-color: rgba(79, 163, 212, .28)
}

.chat_dc_7291_reload:hover .chat_dc_7291_reload_svg {
    fill: rgba(107, 191, 232, .95);
    transform: translateY(-.5px)
}

.chat_dc_7291_reload:active {
    transform: translateY(1px)
}

.chat_dc_7291_reload.is_spin .chat_dc_7291_reload_svg {
    animation: chat_dc_7291_spin .7s linear
}

@keyframes chat_dc_7291_spin {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.chat_dc_7291_live {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--chat_dc_7291_t4);
    font-size: 10px
}

.chat_dc_7291_live_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--chat_dc_7291_gn);
    box-shadow: 0 0 6px rgba(76, 175, 114, .5);
    animation: chat_dc_7291_pulse 2s ease-in-out infinite
}

@keyframes chat_dc_7291_pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

.chat_dc_7291_pinned {
    display: none;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(79, 163, 212, .1);
    background: linear-gradient(135deg, rgba(79, 163, 212, .14), rgba(11, 28, 40, 0));
    padding: 10px 10px
}

.chat_dc_7291_pinned.is_on {
    display: block
}

.chat_dc_7291_pin_title {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    color: var(--chat_dc_7291_acc2);
    text-transform: uppercase;
    margin-bottom: 6px
}

.chat_dc_7291_pin_item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(5, 17, 26, .45);
    border: 1px solid rgba(79, 163, 212, .12)
}

.chat_dc_7291_pin_item.has_bg {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(5, 17, 26, .55);
    border-color: rgba(79, 163, 212, .16)
}

.chat_dc_7291_pin_item.has_bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--chat_dc_7291_bg);
    background-size: cover;
    background-position: center;
    opacity: .12;
    filter: saturate(.82) contrast(.88) blur(.2px);
    transform: scale(1.06);
    z-index: 0;
    border-radius: inherit;
}

.chat_dc_7291_pin_item.has_bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 17, 26, .78) 0%, rgba(5, 17, 26, .56) 35%, rgba(5, 17, 26, .82) 100%);
    z-index: 0;
    border-radius: inherit;
}

.chat_dc_7291_pin_item.has_bg>* {
    position: relative;
    z-index: 1
}

.chat_dc_7291_pin_txt {
    font-size: 12px;
    color: var(--chat_dc_7291_t2);
    line-height: 1.45;
    word-break: break-word
}

.chat_dc_7291_pin_meta {
    font-size: 10px;
    color: var(--chat_dc_7291_t4);
    margin-bottom: 2px
}

.chat_dc_7291_pin_badges {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle
}

.chat_dc_7291_msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #00000f80);
    position: relative
}

.chat_dc_7291_msgs::-webkit-scrollbar {
    width: 3px
}

.chat_dc_7291_msgs::-webkit-scrollbar-thumb {
    background: var(--chat_dc_7291_c4);
    border-radius: 2px
}

.chat_dc_7291_typing {
    display: none;
    align-items: center;
    gap: 8px;
    flex-basis: 100%;
    margin: 0 0 8px;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(5, 17, 26, .55);
    border: 1px solid rgba(200, 151, 42, .38);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03);
    backdrop-filter: blur(8px);
    color: rgba(232, 242, 249, .82);
    font-size: 11.5px;
    letter-spacing: .15px
}

.chat_dc_7291_typing.is_on {
    display: flex
}

.chat_dc_7291_typing_ic {
    color: rgba(200, 151, 42, .9);
    opacity: .95
}

.chat_dc_7291_typing_txt {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px
}

.chat_dc_7291_typing_dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto
}

.chat_dc_7291_typing_dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(200, 151, 42, .9);
    opacity: .35;
    animation: chat_dc_7291_dot 1.2s ease-in-out infinite
}

.chat_dc_7291_typing_dots span:nth-child(2) {
    animation-delay: .12s
}

.chat_dc_7291_typing_dots span:nth-child(3) {
    animation-delay: .24s
}

@keyframes chat_dc_7291_dot {

    0%,
    100% {
        opacity: .25;
        transform: translateY(0)
    }

    50% {
        opacity: .95;
        transform: translateY(-2px)
    }
}

.chat_dc_7291_msg {
    display: flex;
    gap: 9px;
    padding: 6px 6px;
    border-radius: 8px;
    transition: background .12s;
    position: relative
}

.chat_dc_7291_msg {
    animation: chat_dc_7291_pop .18s ease
}

.chat_dc_7291_msg.has_bg {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(5, 17, 26, .55);
    border: 1px solid rgba(79, 163, 212, .14);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .03);
    padding: 10px 10px;
    isolation: isolate
}

.chat_dc_7291_msg.has_bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--chat_dc_7291_bg);
    background-size: cover;
    background-position: center;
    opacity: .13;
    filter: saturate(.82) contrast(.88) blur(.2px);
    transform: scale(1.06);
    z-index: 0;
    border-radius: inherit;
}

.chat_dc_7291_msg.has_bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 17, 26, .78) 0%, rgba(5, 17, 26, .58) 35%, rgba(5, 17, 26, .82) 100%);
    z-index: 0;
    border-radius: inherit;
}

.chat_dc_7291_msg.has_bg>* {
    position: relative;
    z-index: 1
}

.chat_dc_7291_msg.has_bg .chat_dc_7291_msg_actions {
    z-index: 2
}

@keyframes chat_dc_7291_pop {
    from {
        transform: translateY(4px);
        opacity: .7
    }

    to {
        transform: none;
        opacity: 1
    }
}

.chat_dc_7291_msg:hover {
    background: rgba(79, 163, 212, .05)
}

.chat_dc_7291_msg:hover .chat_dc_7291_msg_actions {
    opacity: 1
}

.chat_dc_7291_m_ava {
    flex-shrink: 0;
    position: relative;
    width: 34px;
    height: 34px;
    margin-top: 1px
}

.chat_dc_7291_m_img {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1px solid rgba(79, 163, 212, .12);
    display: block;
    object-fit: cover
}

.chat_dc_7291_m_dot {
    position: absolute !important;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(11, 28, 40, .95);
    background: rgba(168, 200, 223, .25);
    box-shadow: 0 0 8px rgba(0, 0, 0, .35);
    display: block !important
}

.chat_dc_7291_m_dot.is_on {
    background: var(--chat_dc_7291_gn);
    box-shadow: 0 0 10px rgba(76, 175, 114, .55);
    animation: chat_dc_7291_presence 1.8s ease-in-out infinite
}

@keyframes chat_dc_7291_presence {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.14)
    }
}

.chat_dc_7291_m_body {
    flex: 1;
    min-width: 0
}

.chat_dc_7291_m_meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    flex-wrap: wrap
}

.chat_dc_7291_m_name {
    font-size: 12px;
    font-weight: 900;
    color: var(--chat_dc_7291_t1);
    letter-spacing: .2px
}

.chat_dc_7291_msg.is_mod .chat_dc_7291_m_name {
    color: #ff4d4d
}

.chat_dc_7291_m_you {
    font-size: 10px;
    font-weight: 900;
    color: var(--chat_dc_7291_gd);
    background: rgba(200, 151, 42, .15);
    border: 1px solid rgba(200, 151, 42, .3);
    border-radius: 4px;
    padding: 0 6px;
    line-height: 16px
}

.chat_dc_7291_m_mod {
    font-size: 10px;
    font-weight: 900;
    color: #ff4d4d;
    background: rgba(255, 77, 77, .10);
    border: 1px solid rgba(255, 77, 77, .22);
    border-radius: 4px;
    padding: 0 6px;
    line-height: 16px
}

.chat_dc_7291_m_time {
    font-size: 10px;
    color: var(--chat_dc_7291_t4)
}

.chat_dc_7291_m_badges {
    display: inline-flex;
    gap: 4px
}

.chat_dc_7291_badge_tip {
    position: relative;
    display: inline-flex
}

.chat_dc_7291_badge_img {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(79, 163, 212, .18);
    object-fit: cover
}

.chat_dc_7291_badge_tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s, transform .12s;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(5, 17, 26, .92);
    border: 1px solid rgba(79, 163, 212, .18);
    color: var(--chat_dc_7291_t2);
    font-size: 11px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    backdrop-filter: blur(8px);
}

.chat_dc_7291_badge_tip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 3px);
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(5, 17, 26, .92);
    border-left: 1px solid rgba(79, 163, 212, .18);
    border-top: 1px solid rgba(79, 163, 212, .18);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0;
    transition: opacity .12s;
}

.chat_dc_7291_badge_tip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px)
}

.chat_dc_7291_badge_tip:hover::before {
    opacity: 1
}

.chat_dc_7291_m_text {
    font-size: 12.5px;
    color: var(--chat_dc_7291_t2);
    line-height: 1.55;
    word-break: break-word;
    white-space: pre-wrap
}

.chat_dc_7291_m_text.is_deleted {
    color: rgba(168, 200, 223, .55);
    font-style: italic
}

.chat_dc_7291_m_edited {
    margin-left: 6px;
    font-size: 10px;
    color: rgba(168, 200, 223, .55)
}

.chat_dc_7291_msg_actions {
    position: absolute;
    right: 8px;
    top: 6px;
    display: flex;
    gap: 4px;
    align-items: center;
    opacity: 0;
    transition: opacity .15s;
    z-index: 2
}

.chat_dc_7291_a_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 10px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(79, 163, 212, .12);
    background: rgba(79, 163, 212, .08);
    color: var(--chat_dc_7291_t4);
    line-height: 22px;
    user-select: none
}

.chat_dc_7291_a_btn:hover {
    color: var(--chat_dc_7291_acc2);
    border-color: rgba(79, 163, 212, .25);
    background: rgba(79, 163, 212, .15)
}

.chat_dc_7291_a_btn.is_danger {
    border-color: rgba(212, 82, 82, .18);
    background: rgba(212, 82, 82, .06);
    color: rgba(212, 82, 82, .75)
}

.chat_dc_7291_a_btn.is_danger:hover {
    border-color: rgba(212, 82, 82, .3);
    background: rgba(212, 82, 82, .14);
    color: var(--chat_dc_7291_rd)
}

.chat_dc_7291_a_btn.is_gold {
    border-color: rgba(200, 151, 42, .25);
    background: rgba(200, 151, 42, .08);
    color: rgba(200, 151, 42, .9)
}

.chat_dc_7291_a_btn.is_gold:hover {
    border-color: rgba(200, 151, 42, .4);
    background: rgba(200, 151, 42, .15);
    color: var(--chat_dc_7291_gd)
}


.chat_dc_7291_input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #00000f80;
    border-top: 1px solid rgba(79, 163, 212, .1);
    flex-shrink: 0;
    flex-wrap: wrap
}

.chat_dc_7291_reply_bar {
    display: none;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(79, 163, 212, .08);
    border: 1px solid rgba(79, 163, 212, .18)
}

.chat_dc_7291_reply_bar {
    flex-basis: 100%
}

.chat_dc_7291_reply_bar.is_on {
    display: flex
}

.chat_dc_7291_reply_text {
    flex: 1;
    min-width: 0;
    color: var(--chat_dc_7291_t2);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.chat_dc_7291_reply_cancel {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(79, 163, 212, .18);
    background: rgba(5, 17, 26, .35);
    color: var(--chat_dc_7291_t2);
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    padding: 0
}

.chat_dc_7291_reply_cancel:hover {
    background: rgba(79, 163, 212, .15);
    color: var(--chat_dc_7291_acc2)
}

.chat_dc_7291_inp_wrap {
    flex: 1;
    position: relative;
    min-width: 0
}

.chat_dc_7291_inp {
    width: 100%;
    background: var(--chat_dc_7291_c0);
    border: 1px solid rgba(79, 163, 212, .15);
    border-radius: 8px;
    color: var(--chat_dc_7291_t1);
    font-size: 12.5px;
    padding: 8px 12px;
    outline: none;
    transition: border-color .2s, box-shadow .2s
}

.chat_dc_7291_inp::placeholder {
    color: var(--chat_dc_7291_t4)
}

.chat_dc_7291_inp:focus {
    border-color: rgba(79, 163, 212, .45);
    box-shadow: 0 0 0 3px rgba(79, 163, 212, .08)
}

.chat_dc_7291_send {
    width: 40px;
    height: 36px;
    border-radius: 8px;
    background: var(--chat_dc_7291_acc3);
    border: 1px solid rgba(79, 163, 212, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    color: #081018;
    font-weight: 900
}

.chat_dc_7291_send:hover {
    background: var(--chat_dc_7291_acc);
    box-shadow: 0 2px 12px rgba(79, 163, 212, .35)
}

.chat_dc_7291_send:active {
    transform: scale(.94)
}

.chat_dc_7291_notice {
    font-size: 12px;
    color: var(--chat_dc_7291_t4);
    text-align: center;
    width: 100%
}

.chat_dc_7291_notice a {
    color: var(--chat_dc_7291_acc2);
    text-decoration: none
}

.chat_dc_7291_notice a:hover {
    text-decoration: underline
}

.chat_dc_7291_editor {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    align-items: flex-start
}

.chat_dc_7291_editor textarea {
    flex: 1;
    min-width: 0;
    resize: vertical;
    min-height: 48px;
    max-height: 120px;
    background: var(--chat_dc_7291_c0);
    border: 1px solid rgba(79, 163, 212, .18);
    border-radius: 8px;
    color: var(--chat_dc_7291_t1);
    padding: 8px 10px;
    font-size: 12.5px;
    outline: none
}

.chat_dc_7291_editor_btn {
    height: 30px;
    border-radius: 8px;
    padding: 0 10px;
    border: 1px solid rgba(79, 163, 212, .18);
    background: rgba(79, 163, 212, .1);
    color: var(--chat_dc_7291_t2);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800
}

.chat_dc_7291_editor_btn:hover {
    background: rgba(79, 163, 212, .16)
}

.chat_dc_7291_editor_btn.is_danger {
    border-color: rgba(212, 82, 82, .2);
    background: rgba(212, 82, 82, .08);
    color: rgba(212, 82, 82, .85)
}

@media (max-width: 820px) {
    .chat_dc_7291_wrap {
        height: min(78vh, 720px);
        position: relative
    }

    .chat_dc_7291_sb_toggle {
        display: inline-flex
    }

    /* Sidebar becomes off-canvas */
    .chat_dc_7291_sidebar {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(84vw, 320px);
        z-index: 40;
        transform: translateX(-105%);
        transition: transform .2s ease;
        border-right: 1px solid rgba(79, 163, 212, .14);
        box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    }

    .chat_dc_7291_sb_backdrop {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 35;
        background: rgba(0, 0, 0, .35);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .chat_dc_7291_wrap.chat_dc_7291_sb_open .chat_dc_7291_sidebar {
        transform: none
    }

    .chat_dc_7291_wrap.chat_dc_7291_sb_open .chat_dc_7291_sb_backdrop {
        opacity: 1;
        pointer-events: auto
    }

    .chat_dc_7291_chat_panel {
        min-height: 0;
        height: 100%
    }

    .chat_dc_7291_msgs {
        min-height: 0;
        flex: 1
    }

    .chat_dc_7291_inp {
        font-size: 16px
    }
}

.chat_dc_7291_msg.is_mod .chat_dc_7291_m_name {
    color: #ff4d4d !important
}

.chat_dc_7291_palette {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0
}

.chat_dc_7291_palette_btn {
    width: 40px;
    height: 36px;
    border-radius: 999px;
    background: rgba(79, 163, 212, .10);
    border: 1px solid rgba(79, 163, 212, .18);
    cursor: pointer;
    transition: all .15s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.chat_dc_7291_palette_ic {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(168, 200, 223, .55);
    transition: color .15s, transform .15s, opacity .15s
}

.chat_dc_7291_palette_dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(168, 200, 223, .35);
    box-shadow: 0 0 0 2px rgba(5, 17, 26, .55), 0 0 0 1px rgba(79, 163, 212, .18) inset
}

.chat_dc_7291_palette_btn:hover {
    background: rgba(79, 163, 212, .16);
    border-color: rgba(79, 163, 212, .28);
    color: var(--chat_dc_7291_acc2)
}

.chat_dc_7291_palette_btn:hover .chat_dc_7291_palette_ic {
    color: rgba(107, 191, 232, .85);
    transform: translateY(-.5px)
}

.chat_dc_7291_palette_panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(11, 28, 40, .92);
    border: 1px solid rgba(79, 163, 212, .18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    backdrop-filter: blur(10px);
    z-index: 5
}

.chat_dc_7291_palette_panel.is_open {
    display: grid
}

.chat_dc_7291_sw {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--c, rgba(168, 200, 223, .0));
    position: relative;
    cursor: pointer
}

.chat_dc_7291_sw[data-chat-dc-color=""] {
    background: linear-gradient(135deg, rgba(168, 200, 223, .18), rgba(79, 163, 212, .06));
    border-color: rgba(79, 163, 212, .18)
}

.chat_dc_7291_sw.is_on {
    outline: 2px solid rgba(107, 191, 232, .75);
    outline-offset: 2px
}

.chat_dc_7291_sw::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s, transform .12s;
    padding: 5px 9px;
    border-radius: 10px;
    background: rgba(5, 17, 26, .92);
    border: 1px solid rgba(79, 163, 212, .18);
    color: var(--chat_dc_7291_t2);
    font-size: 10.5px;
}

.chat_dc_7291_sw:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px)
}

.chat_dc_7291_reply_ref {
    margin-bottom: 6px;
    padding: 6px 10px;
    border-left: 2px solid rgba(107, 191, 232, .9);
    background: rgba(79, 163, 212, .08);
    border-radius: 0 10px 10px 0;
    color: var(--chat_dc_7291_t2);
    font-size: 12px;
    cursor: pointer
}

.chat_dc_7291_reply_ref:hover {
    background: rgba(79, 163, 212, .12)
}

.chat_dc_7291_reply_arrow {
    color: var(--chat_dc_7291_acc2);
    font-weight: 900
}

.chat_dc_7291_text_main {
    display: block
}

.chat_dc_7291_link {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(79, 163, 212, .22);
    background: rgba(79, 163, 212, .08);
    color: var(--chat_dc_7291_acc2);
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: baseline
}

.chat_dc_7291_link:hover {
    background: rgba(79, 163, 212, .14);
    border-color: rgba(79, 163, 212, .32);
    text-decoration: none
}

.chat_dc_7291_pin_item {
    position: relative;
    padding-right: 110px
}

.chat_dc_7291_pin_unpin {
    position: absolute;
    right: 10px;
    top: 10px;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(79, 163, 212, .18);
    background: rgba(79, 163, 212, .10);
    color: var(--chat_dc_7291_t2);
    cursor: pointer;
    font-size: 11px;
    font-weight: 900
}

.chat_dc_7291_pin_unpin:hover {
    background: rgba(79, 163, 212, .16);
    color: var(--chat_dc_7291_acc2)
}