.chat-floating-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1045;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #ffcf2d 0%, #ffb700 100%);
    color: #111;
    box-shadow: 0 16px 30px rgba(17, 24, 39, .18);
    font-weight: 700;
    line-height: 1;
}

.chat-floating-launcher:hover {
    color: #111;
    
}

.chat-floating-launcher-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .55);
    flex: 0 0 auto;
}

.chat-floating-launcher-label {
    font-size: 14px;
}

.chat-floating-launcher-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #d97706;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(255, 255, 255, .28);
}

.chat-popup-dialog {
    max-width: 1120px;
    margin: 0 0 0 auto;
    height: 100vh;
    width: min(1120px, 100vw);
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
}

.chat-popup-content {
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .22);
    background: linear-gradient(180deg, #fffef8 0%, #ffffff 42%);
    min-height: 100vh;
}

.chat-popup-header {
    padding: 6px 18px 6px 22px;


    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}



.chat-popup-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.chat-popup-action {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(17, 24, 39, .12);
    background: #fff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;

}

.chat-popup-action:hover {
    background: #f7f8fa;
    border-color: rgba(17, 24, 39, .18);
    color: #111827;
}

.chat-popup-action i,
.chat-popup-action span {
    font-size: 16px;
}

.chat-popup-modal.is-expanded .chat-popup-dialog {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
}


.chat-popup-body {
    padding: 0;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.chat-popup-view {
    width: 100%;
    height: calc(100vh - 37px);
    overflow: hidden;
}

.chat-popup-view-frame {
    background: #fff;
}

.chat-popup-frame {
    border: 0;
    width: 100%;
    height: 100vh;
    display: block;
    background: #fff;
}

.chat-screen {
    min-height: calc(100vh - 37px);
}

.chat-screen.chat-frame-shell {
    height: calc(100vh - 37px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-screen.chat-frame-shell > div {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.chat-screen.chat-frame-shell > div > .row.g-0 {
    flex: 1 1 auto;
    min-height: 0;
}

.chat-screen-shell {
    gap: 0;
    align-items: stretch;
}

.chat-screen>.col-md-9 {
    display: flex;
    min-width: 0;
    min-height: 0;
}

.chat-screen>.col-md-9>.right_member {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.chat-screen>.col-md-9>.right_member>.row.g-0.h-100 {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
}

.chat-screen-shell>.col-md-3,
.chat-screen-shell>.col-lg-4 {
    flex: 0 0 318px;
    max-width: 318px;
}

.chat-screen-shell>.col-md-9,
.chat-screen-shell>.col-lg-8,
.chat-screen-shell>.col-12 {
    flex: 1 1 auto;
    max-width: none;
}

.chat-screen>.col-md-9>.right_member>.row.g-0.h-100>.col-lg-8 {
    display: flex;
    min-height: 0;
    height: 100%;
}


.chat-conversation-panel{
    height: calc(100vh - 37px);
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-page-header {
    flex: 0 0 auto;
}

.chat-sidebar-title {
    color: #ff5a1f;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
}

.chat-sidebar-subtitle,
.chat-conversation-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.chat-conversation-name {
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
}

.chat-search-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background: #fff;
}

.chat-search-input,
.chat-filter-select {
    height: 38px;
    border-radius: 8px;
    border: 1px solid #d8dce2;
    background: #fff;
    font-size: 14px;
    color: #111827;
    box-shadow: none;
}

.chat-search-input {
    padding: 0 14px;
}

.chat-filter-select {
    padding: 0 10px;
    min-width: 82px;
}

.chat-inbox-list {
    border-radius: 0;
    overflow: auto;
    background: #fff;
    border: 0;
    box-shadow: none;
    min-height: calc(100vh - 252px);
    max-height: calc(100vh - 252px);
}

.chat-inbox-list .js-chat-room {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 12px 14px;
    background: #fff;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.chat-inbox-list .js-chat-room:hover {
    background: #f7f8fa;
    box-shadow: inset 3px 0 0 #ffcc00;
}

.chat-inbox-list .js-chat-room.active {
    background: #f3f4f6;
    box-shadow: inset 3px 0 0 #ffcc00;
}

.chat-inbox-list .js-chat-room .fw-bold {
    font-size: 15px;
    color: #1f2937;
    line-height: 1.2;
}

.chat-inbox-list .js-chat-room-preview {
    max-width: 100%;
    color: #6b7280;
    line-height: 1.35;
}

.chat-inbox-list .js-chat-room-unread {
    min-width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 1px solid rgba(17, 24, 39, .06);
    box-shadow: 0 8px 18px rgba(255, 193, 7, .20);
}

.chat-inbox-list .js-chat-room-meta {
    width: 100%;
}

.chat-room-row {
    width: 100%;
    align-items: center;
    gap: 12px !important;
}

.chat-room-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff4db 0%, #ffe8b3 100%);
    color: #f97316;
    font-size: 14px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .08);
}

.chat-room-avatar-image,
.post-chat-peer-avatar-image,
.post-chat-message-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-room-avatar-fallback,
.post-chat-peer-avatar-fallback,
.post-chat-message-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 700;
}

.chat-room-body {
    min-width: 0;
    flex: 1 1 auto;
}

.chat-room-body .fw-bold {
    font-size: 14px;
    color: #30343b;
    line-height: 1.2;
    margin-bottom: 3px;
}

.chat-room-body .js-chat-room-preview {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.3;
}

.title_info h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #111827;
}

.js-chat-unread-total {
    border: 1px solid rgba(17, 24, 39, .06);
    box-shadow: 0 8px 18px rgba(255, 193, 7, .18);
}

.post-chat-widget {
    border-radius: 0;
    border: 0;
    padding: 0;

    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.post-chat-panel {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
    height: 100%;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}



.chat-footer {
    flex-shrink: 0;
    background: #f7f7f7;
}

.chat-message-back {
    display: none;
}

.post-chat-reply-preview {
    margin: 10px 16px 0;
    padding: 8px 38px 8px 10px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 8px;
    background: #eff6ff;
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.post-chat-reply-preview-bar {
    width: 3px;
    border-radius: 999px;
    background: #1677ff;
    flex: 0 0 auto;
}

.post-chat-reply-preview-content {
    min-width: 0;
}

.post-chat-reply-preview-author {
    color: #1f3b68;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.post-chat-reply-preview-text {
    color: #4b6384;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-chat-reply-preview-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
}

.post-chat-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 18px 12px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background: #fff;
}

.post-chat-panel-peer {
    flex: 0 0 auto;
}

.post-chat-peer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff4db 0%, #ffe8b3 100%);
}

.post-chat-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;

}

.post-chat-status {
    font-size: 12px;

    color: #6b7280;
}

.post-chat-typing {
    font-size: 12px;
    color: #6b7280;
    display: none;
}

.post-chat-typing.is-visible {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-chat-typing .typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.post-chat-typing .typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    animation: chatTypingPulse 1s infinite ease-in-out;
}

.post-chat-typing .typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.post-chat-typing .typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chatTypingPulse {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: .35;
    }

    40% {
        transform: translateY(-2px);
        opacity: 1;
    }
}

.post-chat-close {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.chat-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    overflow-anchor: none;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px 12px;
    background:
        linear-gradient(180deg, rgba(250, 250, 250, .98), rgba(247, 247, 247, .98)),
        radial-gradient(circle at top right, rgba(255, 204, 0, .08), transparent 30%);
}

.chat-history-load {
    align-self: center;
    flex: 0 0 auto;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 7px 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.chat-history-load:hover,
.chat-history-load:focus {
    border-color: rgba(37, 99, 235, .28);
    color: #1d4ed8;
}

.chat-history-load:disabled {
    cursor: default;
    opacity: .72;
}

.chat-footer .post-chat-form {
    margin-top: 0;
}

.post-chat-message {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.post-chat-message-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: min(100%, 620px);
}

.post-chat-message-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff4db 0%, #ffe8b3 100%);
    margin-top: 2px;
}

.post-chat-message.is-own {
    align-items: flex-end;
}

.post-chat-message.is-own .post-chat-message-content {
    justify-content: flex-end;
}

.post-chat-message .post-chat-message-body {
    max-width: min(100%, 540px);
    background: #fff;
    border-radius: 6px 6px 6px 0px;
    padding: 4px 12px;
    color: #1f2937;
    /* line-height: 1.42; */
    word-break: break-word;
    border: 1px solid rgba(17, 24, 39, .08);
    margin-bottom: 4px;
}

.post-chat-message-reply {
    margin: 2px 0 8px;
    padding: 9px 10px 9px 10px;
    border-left: 3px solid #1677ff;
    border-radius: 3px;
    background: rgba(168, 221, 209, .4);
}

.post-chat-message-reply-author {
    color: #1f3b68;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.post-chat-message-reply-text {
    color: #4b6384;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-chat-message-text {
    line-height: 1.42;
}

.post-chat-message-image-link {
    display: block;
}

.post-chat-message-image-grid {
    display: grid;
    gap: 4px;
}

.post-chat-message-image-grid.has-multiple {
    grid-template-columns: repeat(3, 90px);
}

.post-chat-message-image {
    display: block;
    max-width: min(180px, 52vw);
    max-height: 180px;
    
    object-fit: cover;
}

.post-chat-message-image-grid.has-multiple .post-chat-message-image {
    width: 90px;
    height: 90px;
    max-width: 90px;
    max-height: 90px;
}

.post-chat-message-actions {
    position: relative;
    flex: 0 0 auto;
    align-self: flex-end;
    display: flex;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    margin-bottom: 8px;
    transform: translateY(3px);
    transition: opacity .14s ease, transform .14s ease;
}

.post-chat-message:hover .post-chat-message-actions,
.post-chat-message:focus-within .post-chat-message-actions,
.post-chat-message-actions.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.post-chat-message-action-quick,
.post-chat-message-action-toggle {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.post-chat-message-action-quick:hover,
.post-chat-message-action-quick:focus,
.post-chat-message-action-toggle:hover,
.post-chat-message-action-toggle:focus {
    color: #111827;
    background: #f9fafb;
}

.post-chat-message-action-menu {
    position: absolute;
    top: 34px;
    left: 0;
    z-index: 10;
    min-width: 124px;
    padding: 8px 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
    display: none;
}

.post-chat-message-actions.is-own .post-chat-message-action-menu {
    left: auto;
    right: 0;
}

.post-chat-message-actions.is-open .post-chat-message-action-menu {
    display: block;
}

.post-chat-message-action-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.post-chat-message-action-item:hover,
.post-chat-message-action-item:focus {
    background: #f3f4f6;
    color: #111827;
}

.post-chat-message.is-own .post-chat-message-body{
    margin-left: auto;
    background:  rgba(168, 221, 209, .4);
    border-color: #a8ddd1;
    border-radius: 6px 6px 0 6px;
}

.post-chat-message.is-emoji-only .post-chat-message-body,
.post-chat-message.is-own.is-emoji-only .post-chat-message-body {
    background: transparent;
    border-color: transparent;
    padding: 0;
    box-shadow: none;
}

.post-chat-message.is-emoji-only .post-chat-message-text {
    font-size: 48px;
    line-height: 1.1;
}

.post-chat-message.is-image-message .post-chat-message-body,
.post-chat-message.is-own.is-image-message .post-chat-message-body {
    background: transparent;
    border-color: rgba(17, 24, 39, .14);
    padding: 3px;
    border-radius: 0;
}

.post-chat-message-meta {
    font-size: 12px;
    color: rgba(17, 24, 39, .52);
    margin-bottom: 6px;
    margin-left: 56px;
}

.post-chat-message.is-own .post-chat-message-meta {
    color: rgba(17, 24, 39, .58);
    margin-left: auto;
    text-align: right;
}

.post-chat-empty {
    margin: auto;
    padding: 18px;
    border-radius: 12px;
    background: #fff;
    border: 1px dashed rgba(17, 24, 39, .12);
    text-align: center;
}

.post-chat-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 0;
    border-top: 1px solid rgba(17, 24, 39, .08);
    background: #fff;
    position: static;
    z-index: 2;
    flex: 0 0 auto;
}

.post-chat-compose-tools {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(17, 24, 39, .08);
}

.post-chat-tool {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

.post-chat-tool:hover,
.post-chat-tool:focus {
    color: #0d6efd;
}

.post-chat-emoji-panel {
    position: absolute;
    left: 12px;
    bottom: calc(100% + 8px);
    z-index: 12;
    width: 238px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(17, 24, 39, .08);
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.post-chat-emoji {
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    padding: 7px 0;
}

.post-chat-emoji:hover,
.post-chat-emoji:focus {
    background: #f3f4f6;
}

.post-chat-compose-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
}

.post-chat-compose-row .post-chat-compose {
    border: 0;
    box-shadow: none;
    padding-left: 0;
}

.post-chat-compose-row .post-chat-compose:focus {
    box-shadow: none;
}


/* .post-chat-submit {
    min-height: 44px;
    white-space: nowrap;
    border-radius: 999px;
    padding-inline: 18px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(255, 193, 7, .18);
    transition: transform .18s ease, box-shadow .18s ease;
}

.post-chat-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(255, 193, 7, .24);
} */

.post-chat-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #a855f7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.post-chat-input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    color: #6b7280;
    font-size: 14px;
}

.post-chat-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffcc00;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    min-width: 52px;
    padding: 10px 14px;
}

.chat-frame-shell {
    margin: 0;
}

.chat-frame-shell .right_member {
    border-radius: 0 !important;
    min-height: 100vh;
}

.chat-safety-tip {
    margin: 12px 16px 0;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid #f0e1aa;
    background: #fff6d9;
    color: #6f5b10;
    font-size: 12.5px;
    line-height: 1.4;
}

.chat-safety-tip a {
    color: #1d4ed8;
    font-weight: 700;
}

.chat-date-divider {
    position: relative;
    margin: 8px 0;
    padding: 0 16px;
}

.chat-date-divider::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    border-top: 1px solid rgba(17, 24, 39, .04);

}

.chat-date-chip {
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 0 auto;
    padding: 5px 11px;
    color: #7a7f87;
    background: #fff;
    font-size: 12px;
}

@media (max-width: 991.98px) {

    .chat-screen-shell>.col-md-3,
    .chat-screen-shell>.col-lg-4 {
        flex-basis: 100%;
        max-width: 100%;
    }

    .chat-sidebar-panel {
        border-radius: 20px 20px 0 0;
        min-height: auto;
    }

    .chat-conversation-panel {
        border-radius: 0 0 20px 20px;
        min-height: 60vh;
    }

    .chat-inbox-list {
        min-height: 320px;
        max-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .chat-floating-launcher {
        right: 12px;
        bottom: 18px;
        padding: 10px 12px;
    }

    .chat-floating-launcher-label {
        display: none;
    }

    .chat-popup-dialog {
        margin: 0;
        max-width: 100vw;
        width: 100vw;
        height: 100vh;
    }

    .chat-popup-content {
        border-radius: 0;
    }

    .chat-popup-header,
    .chat-popup-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .chat-popup-view {
        min-height: calc(100vh - 64px);
    }

    .chat-popup-frame {
        height: calc(100vh - 64px);
    }

    .chat-screen {
        min-height: 100dvh;
    }

    .chat-screen.chat-frame-shell {
        height: 100dvh;
        min-height: 100dvh;
    }

    .chat-screen.chat-frame-shell > div,
    .chat-screen.chat-frame-shell > div > .row.g-0 {
        height: 100%;
        min-height: 0;
    }

    .chat-room-column,
    .chat-message-column {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 0;
    }

    .chat-screen:not(.is-chat-open) .chat-message-column {
        display: none !important;
    }

    .chat-screen.is-chat-open .chat-room-column {
        display: none !important;
    }

    .chat-screen.is-chat-open .chat-message-column {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .chat-sidebar-panel,
    .chat-conversation-panel {
        height: 100dvh;
        min-height: 0;
        border-radius: 0;
    }

    .chat-sidebar-panel {
        display: flex;
        flex-direction: column;
    }

    .chat-search-bar {
        padding: 8px 12px;
        grid-template-columns: 1fr auto;
    }

    .chat-inbox-list {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
    }

    .post-chat-panel-head {
        align-items: center;
        min-height: 58px;
        padding: 8px 12px;
    }

    .chat-message-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #111827;
        font-size: 34px;
        line-height: 1;
    }

    .chat-message-back:focus,
    .chat-message-back:hover {
        background: #f3f4f6;
        color: #0f172a;
    }

    .post-chat-panel-title {
        font-size: 18px;
    }

    .post-chat-status {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

   

    .post-chat-form {
        position: static;
        padding: 0;
    }

    .post-chat-submit {
        width: auto;
    }
}

.chat-room-avatar,
.post-chat-peer-avatar {
    position: relative;
}

.chat-room-avatar.is-online::after,
.post-chat-peer-avatar.is-online::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
}

.post-chat-block-toggle {
    border: 1px solid #dc3545;
    border-radius: 6px;
    background: transparent;
    color: #dc3545;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
}

.post-chat-block-toggle:hover,
.post-chat-block-toggle:focus {
    background: #dc3545;
    color: #fff;
}

.post-chat-widget.is-communication-blocked .chat-footer {
    opacity: .65;
}

.post-chat-widget.is-communication-blocked .post-chat-compose {
    cursor: not-allowed;
}
