
        #channel-chat-widget {
            position: fixed;
            bottom: 90px;
            right: 20px;
            z-index: 9999;
        }

        #channel-chat-button {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: #2196F3;
            border: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s;
        }

        #channel-chat-button:hover {
            transform: scale(1.1);
        }

        #channel-chat-button img {
            width: 30px;
            height: 30px;
        }

        #channel-chat-container {
            display: none;
            position: fixed;
            bottom: 190px;
            right: 20px;
            width: 320px;
            height: 500px;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.08);
            flex-direction: column;
            transition: all 0.3s;
            z-index: 9998;
        }

        #channel-chat-container.show {
            display: flex;
        }

        #channel-chat-widget.hide {
            display: none;
        }

        #channel-chat-header {
            background: #2196F3;
            color: white;
            padding: 12px 16px;
            border-radius: 16px 16px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #channel-chat-header h3 {
            margin: 0;
            font-size: 16px;
        }

        #channel-chat-close {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 20px;
        }

        #channel-chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            background: #f7fafd;
        }

        #channel-chat-input-area {
            display: flex;
            padding: 12px;
            background: #f7fafd;
            border-top: 1px solid #e0e0e0;
            align-items: center;
        }

        #channel-chat-attach {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            transition: background-color 0.2s;
            color: #2196F3;
        }

        #channel-chat-attach:hover {
            background-color: rgba(33, 150, 243, 0.1);
        }

        #channel-chat-input {
            flex: 1;
            padding: 8px;
            border: 1px solid #cfd8dc;
            border-radius: 8px;
            font-size: 14px;
            outline: none;
            margin-right: 8px;
        }

        #channel-chat-send {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            transition: background-color 0.2s;
            color: #2196F3;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 20px;
            padding: 0;
        }

        #channel-chat-send:hover {
            background-color: rgba(33, 150, 243, 0.1);
        }

        .mdi {
            font-size: 24px;
            line-height: 1;
        }

        .channel-message {
            max-width: 75%;
            margin-bottom: 8px;
            padding: 8px 12px;
            border-radius: 16px;
            word-break: break-word;
            font-size: 14px;
        }

        .channel-sent {
            background: #d1eaff;
            margin-left: auto;
            border-bottom-right-radius: 4px;
        }

        .channel-received {
            background: #fff;
            margin-right: auto;
            border-bottom-left-radius: 4px;
            border: 1px solid #e3f2fd;
            box-shadow: 0 1px 2px rgba(33,150,243,0.06);
        }

        .channel-ack {
            font-size: 10px;
            color: #888;
            margin-left: 8px;
        }

        .channel-media {
            max-width: 200px;
            margin: 4px 0;
        }

        .channel-media img {
            width: 100%;
            border-radius: 8px;
            cursor: pointer;
        }

        .channel-media video {
            width: 100%;
            border-radius: 8px;
            cursor: pointer;
        }

        .channel-media audio {
            width: 100%;
        }

        .channel-media-document {
            display: flex;
            align-items: center;
            padding: 8px;
            background: #f5f5f5;
            border-radius: 8px;
            text-decoration: none;
            color: #333;
        }

        .channel-media-document i {
            margin-right: 8px;
            font-size: 24px;
        }

        .channel-media-caption {
            margin-top: 4px;
            font-size: 13px;
            color: #666;
            padding: 4px 8px;
            background: #f5f5f5;
            border-radius: 4px;
        }

        .channel-menu-wrapper {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .channel-menu-title {
            font-size: 13px;
            font-weight: 600;
            color: #1565c0;
            word-break: break-word;
        }
        .channel-menu-container {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .channel-menu-pill {
            border: 1px solid #2196F3;
            background: #ffffff;
            color: #2196F3;
            padding: 7px 10px;
            border-radius: 18px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
            max-width: 100%;
            word-break: break-word;
        }
        .channel-menu-pill:hover {
            background: #2196F3;
            color: #ffffff;
        }

        @media (max-width: 480px) {
            #channel-chat-container {
                width: 100%;
                height: 100vh;
                bottom: 0;
                right: 0;
                border-radius: 0;
            }
            #channel-chat-widget {
                right: 20px;
                bottom: 20px;
            }
        }