/* =========================================================
   DYNAMIC CAREER MESSENGER
   PREMIUM RESPONSIVE UI

   File:
   /public_html/chat/assets/chat.css

   Version:
   5.5.0

   Compatible:
   ---------------------------------------------------------
   - chat.js 3.2.0+
   - chat-media.js 3.4.0+
   - chat-call.js
   - Profile Runtime UI
   - Message-side avatars
   - IndexedDB P2P media
   - VisualViewport mobile keyboard system
   - Android Chrome
   - Samsung Internet
   - iPhone Safari
   - iPad
   - Tablet
   - Desktop
========================================================= */


/* =========================================================
   ROOT / THEME
========================================================= */

:root{

    /* APP */

    --dc-app-bg:#dde7ea;

    --dc-panel:#ffffff;

    --dc-panel-soft:#f7fafb;

    --dc-panel-muted:#edf3f4;


    /* CHAT */

    --dc-chat-bg:#efeae3;

    --dc-chat-bg-top:#f7f4ef;

    --dc-chat-pattern:
        rgba(54,82,75,.055);


    /* TEXT */

    --dc-ink:#172f38;

    --dc-ink-soft:#36515a;

    --dc-muted:#71858c;

    --dc-muted-soft:#93a3a8;


    /* LINES */

    --dc-line:#dbe5e7;

    --dc-line-soft:#edf2f3;


    /* BRAND */

    --dc-primary:#087e70;

    --dc-primary-dark:#05695f;

    --dc-primary-deep:#04584f;

    --dc-primary-light:#0aa78d;

    --dc-primary-bright:#10b899;

    --dc-primary-soft:#def4ed;

    --dc-primary-softer:#edf9f5;


    /* OTHER COLORS */

    --dc-blue:#1685c7;

    --dc-blue-soft:#e8f4fb;

    --dc-danger:#c8333e;

    --dc-danger-dark:#a7232d;

    --dc-danger-soft:#fff0f1;

    --dc-warning:#b87813;

    --dc-success:#15956a;


    /* MESSAGES */

    --dc-own:#d9f6e8;

    --dc-own-top:#e9faf2;

    --dc-other:#ffffff;

    --dc-message-text:#17333c;


    /* SHADOW */

    --dc-shadow-xs:
        0 1px 3px
        rgba(13,39,48,.065);

    --dc-shadow-sm:
        0 5px 18px
        rgba(13,39,48,.075);

    --dc-shadow:
        0 18px 55px
        rgba(13,39,48,.13);

    --dc-shadow-pop:
        0 25px 80px
        rgba(7,28,37,.23);


    /* RADIUS */

    --dc-radius-xs:8px;

    --dc-radius-sm:11px;

    --dc-radius-md:14px;

    --dc-radius-lg:18px;

    --dc-radius-xl:24px;


    /* LAYOUT */

    --dc-sidebar-width:375px;

    --dc-header-height:67px;


    /* VisualViewport values are updated by chat.js */

    --dc-visual-viewport-height:100dvh;

    --dc-keyboard-height:0px;


    /* SAFE AREA */

    --dc-safe-top:
        env(
            safe-area-inset-top,
            0px
        );

    --dc-safe-right:
        env(
            safe-area-inset-right,
            0px
        );

    --dc-safe-bottom:
        env(
            safe-area-inset-bottom,
            0px
        );

    --dc-safe-left:
        env(
            safe-area-inset-left,
            0px
        );
}


/* =========================================================
   RESET
========================================================= */

[hidden]{
    display:none !important;
}


*,
*::before,
*::after{
    box-sizing:border-box;
}


html,
body{
    width:100%;

    min-width:0;
    max-width:100%;

    height:100%;

    margin:0;
    padding:0;
}


html{
    overflow:hidden;

    background:
        var(--dc-app-bg);

    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;

    overscroll-behavior:none;
}


body{
    overflow:hidden;

    color:
        var(--dc-ink);

    background:
        linear-gradient(
            135deg,
            #dfe9eb,
            #f7fafb
        );

    font-family:
        "Noto Sans Bengali",
        "Hind Siliguri",
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        Arial,
        sans-serif;

    font-size:15px;

    line-height:1.5;

    -webkit-font-smoothing:antialiased;

    -moz-osx-font-smoothing:grayscale;

    overscroll-behavior:none;
}


body.dc-modal-open,
body.dc-call-open,
body.dc-media-viewer-open{
    overflow:hidden !important;
}


button,
input,
textarea,
select{
    font:inherit;
}


button{
    cursor:pointer;
}


button:disabled{
    cursor:not-allowed;

    opacity:.48;
}


button,
input,
textarea,
select{
    -webkit-tap-highlight-color:
        transparent;
}


button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{

    outline:
        3px solid
        rgba(8,126,112,.16);

    outline-offset:2px;
}


img,
video,
iframe,
canvas{
    max-width:100%;
}


svg{
    display:block;
}


/* =========================================================
   ICON SYSTEM
========================================================= */

.dc-icon-btn svg,
.dc-back-btn svg,
.dc-attach-btn svg,
.dc-send-btn svg,
.dc-message-menu svg,
.dc-conversation-menu svg,
.dc-attachment-menu svg,
.dc-context-close svg,
.dc-media-preview-remove svg{

    width:19px;

    height:19px;

    flex:
        0
        0
        19px;

    pointer-events:none;
}


.dc-attach-btn svg{

    width:22px;

    height:22px;
}


.dc-send-btn svg{

    width:20px;

    height:20px;
}


.dc-back-btn svg{

    width:21px;

    height:21px;
}


/* =========================================================
   APP
========================================================= */

.dc-app{

    position:relative;

    width:100%;

    height:100vh;

    height:100dvh;

    min-width:0;

    min-height:0;

    display:grid;

    grid-template-columns:
        var(--dc-sidebar-width)
        minmax(0,1fr);

    overflow:hidden;

    background:
        #fff;

    isolation:isolate;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.dc-conversation-list,
.dc-message-area,
.dc-modal,
.dc-profile-scroll,
.dc-conversation-menu,
.dc-attachment-menu,
.dc-reaction-picker,
.dc-composer textarea{

    scrollbar-width:thin;

    scrollbar-color:
        #b7c7cb
        transparent;
}


.dc-conversation-list::-webkit-scrollbar,
.dc-message-area::-webkit-scrollbar,
.dc-modal::-webkit-scrollbar,
.dc-profile-scroll::-webkit-scrollbar,
.dc-conversation-menu::-webkit-scrollbar,
.dc-attachment-menu::-webkit-scrollbar,
.dc-reaction-picker::-webkit-scrollbar,
.dc-composer textarea::-webkit-scrollbar{

    width:5px;

    height:5px;
}


.dc-conversation-list::-webkit-scrollbar-thumb,
.dc-message-area::-webkit-scrollbar-thumb,
.dc-modal::-webkit-scrollbar-thumb,
.dc-profile-scroll::-webkit-scrollbar-thumb,
.dc-conversation-menu::-webkit-scrollbar-thumb,
.dc-attachment-menu::-webkit-scrollbar-thumb,
.dc-reaction-picker::-webkit-scrollbar-thumb,
.dc-composer textarea::-webkit-scrollbar-thumb{

    border-radius:999px;

    background:
        #b7c7cb;
}


/* =========================================================
   SIDEBAR
========================================================= */

.dc-sidebar{

    position:relative;

    z-index:20;

    min-width:0;

    min-height:0;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    border-right:
        1px solid
        var(--dc-line);

    background:#fff;
}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.dc-sidebar-header{

    position:relative;

    z-index:10;

    min-height:72px;

    flex:
        0
        0
        auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:10px;

    padding:
        10px
        12px;

    border-bottom:
        1px solid
        var(--dc-line);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8fbfb
        );

    box-shadow:
        0 1px 5px
        rgba(24,50,61,.035);
}


.dc-brand{

    min-width:0;

    display:flex;

    align-items:center;

    gap:10px;

    border-radius:14px;

    cursor:pointer;
}


.dc-brand-logo{

    position:relative;

    width:48px;

    height:48px;

    flex:
        0
        0
        48px;

    display:grid;

    place-items:center;

    overflow:hidden;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #0cac91,
            #05675c
        );

    color:#fff;

    font-size:15px;

    font-weight:900;

    box-shadow:
        0 8px 24px
        rgba(8,126,112,.22);
}


.dc-brand-logo img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    display:block;

    object-fit:cover;

    border-radius:inherit;
}


.dc-brand-copy{

    min-width:0;
}


.dc-brand strong,
.dc-brand small{

    display:block;
}


.dc-brand strong{

    overflow:hidden;

    color:
        var(--dc-ink);

    font-size:15.5px;

    font-weight:850;

    line-height:1.25;

    white-space:nowrap;

    text-overflow:ellipsis;
}


.dc-brand small{

    margin-top:2px;

    overflow:hidden;

    color:
        var(--dc-muted);

    font-size:9.7px;

    white-space:nowrap;

    text-overflow:ellipsis;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.dc-header-actions,
.dc-chat-actions{

    flex:
        0
        0
        auto;

    display:flex;

    align-items:center;

    gap:2px;
}


.dc-icon-btn{

    width:41px;

    height:41px;

    flex:
        0
        0
        41px;

    display:grid;

    place-items:center;

    padding:0;

    border:0;

    border-radius:50%;

    background:
        transparent;

    color:#50676f;

    line-height:1;

    transition:
        background .14s ease,
        color .14s ease,
        transform .12s ease;
}


.dc-icon-btn:hover{

    background:
        #eaf3f3;

    color:
        var(--dc-primary);
}


.dc-icon-btn:active{

    transform:
        scale(.93);
}


.dc-chat-menu-trigger{

    font-size:21px;
}


/* =========================================================
   SEARCH
========================================================= */

.dc-search-wrap{

    flex:
        0
        0
        auto;

    padding:
        9px
        11px
        7px;

    background:#fff;
}


.dc-search-wrap input{

    width:100%;

    height:43px;

    padding:
        0
        14px;

    border:
        1px solid
        transparent;

    outline:none;

    border-radius:14px;

    background:
        #edf3f4;

    color:
        var(--dc-ink);

    font-size:13.5px;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}


.dc-search-wrap input::placeholder{

    color:#82949a;
}


.dc-search-wrap input:focus{

    background:#fff;

    border-color:#8bc9bd;

    box-shadow:
        0 0 0
        3px
        rgba(8,126,112,.065);
}


/* =========================================================
   CONNECTION
========================================================= */

.dc-connection{

    min-height:27px;

    flex:
        0
        0
        auto;

    display:flex;

    align-items:center;

    gap:7px;

    padding:
        0
        14px
        8px;

    color:
        var(--dc-muted);

    font-size:10px;
}


.dc-connection-dot{

    width:8px;

    height:8px;

    flex:
        0
        0
        8px;

    border-radius:50%;

    background:
        #b5c1c5;
}


.dc-connection.is-online
.dc-connection-dot{

    background:
        var(--dc-success);

    box-shadow:
        0 0 0
        3px
        rgba(21,149,106,.11);
}


.dc-connection.is-error
.dc-connection-dot{

    background:#dc3b46;

    box-shadow:
        0 0 0
        3px
        rgba(220,59,70,.11);
}


/* =========================================================
   CONVERSATION LIST
========================================================= */

.dc-conversation-list{

    flex:
        1
        1
        auto;

    min-height:0;

    overflow-y:auto;

    overflow-x:hidden;

    overscroll-behavior:
        contain;

    -webkit-overflow-scrolling:
        touch;

    background:#fff;
}


.dc-conversation{

    width:100%;

    min-height:76px;

    display:flex;

    align-items:center;

    gap:11px;

    padding:
        9px
        11px;

    border:0;

    border-bottom:
        1px solid
        var(--dc-line-soft);

    background:
        transparent;

    color:
        inherit;

    text-align:left;

    transition:
        background .13s ease,
        box-shadow .13s ease,
        transform .13s ease;
}


.dc-conversation:hover{

    background:
        #f4f9f9;
}


.dc-conversation.is-active{

    background:
        linear-gradient(
            90deg,
            #e2f5ef,
            #f5fcf9
        );

    box-shadow:
        inset
        3px
        0
        0
        var(--dc-primary);
}


/* =========================================================
   CONVERSATION AVATAR
========================================================= */

.dc-conversation-avatar{

    position:relative;

    width:52px;

    height:52px;

    flex:
        0
        0
        52px;

    display:grid;

    place-items:center;

    overflow:hidden;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #dcecef,
            #c8e0e3
        );

    color:#0c6670;

    font-size:15px;

    font-weight:900;

    box-shadow:
        inset
        0 0 0
        1px
        rgba(25,75,85,.045);
}


.dc-conversation-avatar img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    display:block;

    object-fit:cover;

    border-radius:inherit;
}


/* =========================================================
   CONVERSATION COPY
========================================================= */

.dc-conversation-body{

    flex:1;

    min-width:0;
}


.dc-conversation-top,
.dc-conversation-bottom{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:8px;
}


.dc-conversation-name{

    min-width:0;

    overflow:hidden;

    color:
        var(--dc-ink);

    font-size:14px;

    font-weight:800;

    white-space:nowrap;

    text-overflow:ellipsis;
}


.dc-conversation-time{

    flex:
        0
        0
        auto;

    color:
        var(--dc-muted);

    font-size:9.4px;
}


.dc-conversation-bottom{

    margin-top:4px;
}


.dc-conversation-preview{

    flex:1;

    min-width:0;

    overflow:hidden;

    color:#63787f;

    font-size:11.8px;

    line-height:1.35;

    white-space:nowrap;

    text-overflow:ellipsis;
}


.dc-conversation-meta{

    flex:
        0
        0
        auto;

    display:flex;

    align-items:center;

    gap:5px;
}


.dc-unread-badge{

    min-width:21px;

    height:21px;

    padding:
        0
        6px;

    display:grid;

    place-items:center;

    border-radius:999px;

    background:
        linear-gradient(
            145deg,
            #19ad7f,
            #0b8d68
        );

    color:#fff;

    font-size:9px;

    font-weight:900;
}


/* =========================================================
   CHAT PANEL
========================================================= */

.dc-chat-panel{

    position:relative;

    min-width:0;

    min-height:0;

    height:100%;

    overflow:hidden;

    background:
        linear-gradient(
            180deg,
            var(--dc-chat-bg-top),
            var(--dc-chat-bg)
        );
}


.dc-chat-panel::before{

    content:"";

    position:absolute;

    inset:0;

    pointer-events:none;

    opacity:.18;

    background-image:

        radial-gradient(
            circle,
            var(--dc-chat-pattern)
            1px,
            transparent
            1px
        ),

        radial-gradient(
            circle,
            rgba(58,85,77,.035)
            1px,
            transparent
            1px
        );

    background-size:
        22px 22px,
        34px 34px;

    background-position:
        0 0,
        10px 13px;
}


/* =========================================================
   EMPTY CHAT
========================================================= */

.dc-chat-empty{

    position:relative;

    z-index:1;

    width:100%;

    height:100%;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    padding:32px;

    text-align:center;
}


.dc-empty-logo{

    width:100px;

    height:100px;

    display:grid;

    place-items:center;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #0aaa8e,
            #05685e
        );

    color:#fff;

    font-size:29px;

    font-weight:900;

    box-shadow:
        0 20px 55px
        rgba(8,126,112,.23);
}


.dc-chat-empty h1{

    margin:
        22px
        0
        7px;

    color:#18333c;

    font-size:27px;

    font-weight:850;
}


.dc-chat-empty p{

    max-width:470px;

    margin:0;

    color:
        var(--dc-muted);

    font-size:13.5px;

    line-height:1.7;
}


/* =========================================================
   ACTIVE CHAT
========================================================= */

.dc-chat-active{

    position:relative;

    z-index:2;

    width:100%;

    height:100%;

    min-width:0;

    min-height:0;

    display:flex;

    flex-direction:column;

    overflow:hidden;
}


/* =========================================================
   CHAT HEADER
========================================================= */

.dc-chat-header{

    position:relative;

    z-index:80;

    flex:
        0
        0
        var(--dc-header-height);

    min-width:0;

    min-height:
        var(--dc-header-height);

    display:flex;

    align-items:center;

    gap:8px;

    padding:
        7px
        11px;

    border-bottom:
        1px solid
        var(--dc-line);

    background:
        rgba(249,252,252,.97);

    backdrop-filter:
        blur(17px);

    -webkit-backdrop-filter:
        blur(17px);

    box-shadow:
        0 1px 4px
        rgba(16,42,50,.045);

    transform:
        translateZ(0);
}


.dc-back-btn{

    display:none;

    width:39px;

    height:39px;

    flex:
        0
        0
        39px;

    padding:0;

    border:0;

    border-radius:50%;

    background:
        transparent;

    color:#405962;

    font-size:21px;
}


.dc-back-btn:hover{

    background:
        #e8eff1;
}


/* =========================================================
   CHAT AVATAR
========================================================= */

.dc-chat-avatar{

    position:relative;

    width:45px;

    height:45px;

    flex:
        0
        0
        45px;

    display:grid;

    place-items:center;

    overflow:hidden;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #dcecef,
            #c9e1e4
        );

    color:#11636d;

    font-size:13px;

    font-weight:900;

    cursor:pointer;

    box-shadow:
        inset
        0 0 0
        1px
        rgba(20,75,85,.04);
}


.dc-chat-avatar img{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    display:block;

    object-fit:cover;

    border-radius:inherit;
}


.dc-chat-avatar:hover{

    box-shadow:
        0 0 0
        3px
        rgba(8,126,112,.08);
}


/* =========================================================
   CHAT USER
========================================================= */

.dc-chat-person{

    flex:1;

    min-width:0;

    cursor:pointer;
}


.dc-chat-person strong,
.dc-chat-person span{

    display:block;
}


.dc-chat-person strong{

    overflow:hidden;

    color:
        var(--dc-ink);

    font-size:14.8px;

    font-weight:850;

    line-height:1.25;

    white-space:nowrap;

    text-overflow:ellipsis;
}


.dc-chat-person span{

    margin-top:2px;

    overflow:hidden;

    color:
        var(--dc-muted);

    font-size:9.7px;

    line-height:1.3;

    white-space:nowrap;

    text-overflow:ellipsis;
}


.dc-chat-person span.is-online{

    color:
        var(--dc-success);

    font-weight:750;
}


.dc-chat-person span.is-typing{

    color:
        var(--dc-primary);

    font-weight:750;
}


.dc-chat-person span.is-away{

    color:
        var(--dc-warning);
}


/* =========================================================
   MESSAGE AREA
========================================================= */

.dc-message-area{

    position:relative;

    z-index:1;

    flex:
        1
        1
        0;

    width:100%;

    min-width:0;

    min-height:0;

    overflow-y:auto;

    overflow-x:hidden;

    overscroll-behavior-y:
        contain;

    -webkit-overflow-scrolling:
        touch;

    padding:
        18px
        clamp(14px,4vw,68px)
        20px;

    touch-action:
        pan-y;
}


.dc-message-list{

    width:100%;

    min-width:0;

    max-width:100%;

    display:flex;

    flex-direction:column;

    gap:3px;

    overflow:visible;
}


.dc-loading-state,
.dc-empty-state{

    padding:
        30px
        18px;

    color:
        var(--dc-muted);

    font-size:13px;

    line-height:1.7;

    text-align:center;
}


.dc-load-older{

    display:block;

    margin:
        0
        auto
        16px;

    padding:
        8px
        13px;

    border:
        1px solid
        #cad8dc;

    border-radius:999px;

    background:
        rgba(255,255,255,.97);

    color:#455e67;

    font-size:10.3px;

    font-weight:800;

    box-shadow:
        var(--dc-shadow-xs);
}


/* =========================================================
   MESSAGE ROW
========================================================= */

body .dc-message-row{

    width:100% !important;

    max-width:100% !important;

    min-width:0 !important;

    display:flex !important;

    align-items:flex-end !important;

    gap:7px !important;

    margin:
        2px
        0 !important;

    overflow:visible !important;
}


body .dc-message-row.is-mine{

    justify-content:flex-end !important;
}


body .dc-message-row.is-other{

    justify-content:flex-start !important;
}


/* =========================================================
   MESSAGE AVATARS
========================================================= */

body .dc-message-avatar-slot{

    width:32px !important;

    min-width:32px !important;

    max-width:32px !important;

    height:32px !important;

    flex:
        0
        0
        32px !important;

    align-self:flex-end !important;

    display:block !important;

    overflow:visible !important;

    visibility:visible !important;
}


body .dc-message-avatar{

    width:32px !important;

    height:32px !important;

    display:grid !important;

    place-items:center !important;

    visibility:visible !important;

    opacity:1 !important;

    overflow:hidden !important;

    border-radius:50% !important;

    background:
        linear-gradient(
            145deg,
            #dcecea,
            #c9e0dc
        ) !important;

    color:
        var(--dc-primary) !important;

    font-size:9px !important;

    font-weight:900 !important;

    cursor:pointer !important;

    border:
        2px solid
        rgba(255,255,255,.92) !important;

    box-shadow:
        0 2px 7px
        rgba(18,48,58,.13) !important;
}


body .dc-message-avatar img{

    width:100% !important;

    height:100% !important;

    display:block !important;

    object-fit:cover !important;

    border-radius:50% !important;
}


/*
 * v5.0:
 * Repeated messages also retain the avatar.
 * This directly fixes the report that message-side
 * profile photos are not visible.
 */

body .dc-message-row.is-grouped
.dc-message-avatar{

    visibility:visible !important;

    opacity:1 !important;
}


body .dc-message-row.is-grouped
.dc-message-avatar-slot{

    visibility:visible !important;

    display:block !important;
}


body .dc-message-row.is-grouped{

    margin-top:0 !important;
}


body .dc-message-row.is-grouped
.dc-message-sender{

    display:none !important;
}


body .dc-message-row.is-other
.dc-message-avatar-slot{

    order:1 !important;
}


body .dc-message-row.is-other
.dc-message-bubble{

    order:2 !important;
}


body .dc-message-row.is-mine
.dc-message-bubble{

    order:1 !important;
}


body .dc-message-row.is-mine
.dc-message-avatar-slot{

    order:2 !important;
}


/* =========================================================
   MESSAGE BUBBLE
========================================================= */

body .dc-message-bubble{

    position:relative;

    max-width:
        min(
            70%,
            690px
        ) !important;

    min-width:65px;

    padding:
        8px
        10px
        6px;

    border-radius:13px;

    color:
        var(--dc-message-text);

    overflow-wrap:anywhere;

    word-break:break-word;

    box-shadow:
        0 1px 2px
        rgba(0,0,0,.075);

    transition:
        box-shadow .14s ease;
}


body .dc-message-row.is-mine
.dc-message-bubble{

    border-top-right-radius:4px;

    background:
        linear-gradient(
            180deg,
            var(--dc-own-top),
            var(--dc-own)
        );
}


body .dc-message-row.is-other
.dc-message-bubble{

    border-top-left-radius:4px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fefefe
        );
}


.dc-message-bubble.is-selected{

    box-shadow:
        0 0 0
        3px
        rgba(8,126,112,.13),
        0 8px 24px
        rgba(18,48,60,.11);
}


/* =========================================================
   MESSAGE COPY
========================================================= */

.dc-message-sender{

    margin-bottom:3px;

    color:
        var(--dc-primary-dark);

    font-size:10px;

    font-weight:850;
}


.dc-message-text{

    color:
        var(--dc-message-text);

    font-size:15px;

    font-weight:400;

    line-height:1.56;

    letter-spacing:0;

    white-space:pre-wrap;

    overflow-wrap:anywhere;

    word-break:break-word;
}


.dc-message-text a{

    color:#0875b1;

    text-decoration:none;
}


.dc-message-text a:hover{

    text-decoration:underline;
}


.dc-message-media-slot{

    width:100%;

    max-width:100%;

    min-width:0;

    overflow:hidden;
}


.dc-message-media-slot:empty{

    display:none;
}


/* =========================================================
   MESSAGE FOOTER
========================================================= */

.dc-message-footer{

    min-height:15px;

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:5px;

    margin-top:3px;

    padding-left:18px;

    color:#6f8288;

    font-size:8.8px;

    line-height:1;

    font-variant-numeric:
        tabular-nums;
}


.dc-message-edited{

    font-size:8.4px;

    color:#77898f;
}


.dc-message-tick,
.dc-list-tick{

    font-size:11px;

    font-weight:900;

    letter-spacing:-3px;
}


.dc-message-tick.is-read,
.dc-list-tick.is-read{

    color:
        var(--dc-blue);
}


.dc-message-tick.is-sent,
.dc-message-tick.is-delivered,
.dc-list-tick.is-sent,
.dc-list-tick.is-delivered{

    color:#6b8088;
}


.dc-message-tick.is-queued,
.dc-list-tick.is-queued{

    color:#87969b;
}


.dc-message-bubble.is-deleted
.dc-message-text{

    color:#83949a;

    font-style:italic;
}


/* =========================================================
   REPLY
========================================================= */

.dc-reply-quote{

    margin-bottom:6px;

    padding:
        7px
        8px;

    overflow:hidden;

    border-left:
        3px solid
        var(--dc-primary);

    border-radius:
        4px
        9px
        9px
        4px;

    background:
        rgba(8,126,112,.07);
}


.dc-reply-quote strong{

    display:block;

    margin-bottom:2px;

    color:
        var(--dc-primary-dark);

    font-size:9.5px;

    font-weight:850;
}


.dc-reply-quote span{

    display:block;

    max-width:340px;

    overflow:hidden;

    color:#5e7279;

    font-size:10.5px;

    white-space:nowrap;

    text-overflow:ellipsis;
}


/* =========================================================
   REACTIONS
========================================================= */

.dc-message-reactions{

    display:flex;

    flex-wrap:wrap;

    gap:4px;

    margin-top:5px;
}


.dc-reaction-chip{

    min-height:23px;

    display:inline-flex;

    align-items:center;

    gap:4px;

    padding:
        2px
        7px;

    border:
        1px solid
        #d5e0e3;

    border-radius:999px;

    background:#fff;

    color:#455d67;

    font-size:10.5px;
}


.dc-reaction-chip.is-mine{

    border-color:#7bc7b8;

    background:#e8f8f3;

    color:#126c60;
}


/* =========================================================
   P2P MEDIA
   IMPORTANT:
   Strong selectors override chat-media.js runtime CSS
========================================================= */

body .dc-message-area
.dc-device-media-row{

    width:100% !important;

    max-width:100% !important;

    min-width:0 !important;

    display:flex !important;

    overflow:visible !important;

    padding:
        2px
        36px !important;

    margin:
        2px
        0 !important;

    box-sizing:border-box !important;
}


body .dc-message-area
.dc-device-media-row.is-mine{

    justify-content:flex-end !important;
}


body .dc-message-area
.dc-device-media-row.is-other{

    justify-content:flex-start !important;
}


/* =========================================================
   MEDIA BUBBLE
========================================================= */

body .dc-message-area
.dc-device-media-row
.dc-device-media-bubble{

    position:relative !important;

    width:auto !important;

    min-width:
        min(
            190px,
            65vw
        ) !important;

    max-width:
        min(
            340px,
            calc(
                100% - 6px
            )
        ) !important;

    overflow:visible !important;

    border:
        1px solid
        rgba(20,53,62,.075) !important;

    border-radius:15px !important;

    box-shadow:
        0 2px 8px
        rgba(19,45,52,.065) !important;

    box-sizing:border-box !important;
}


body .dc-message-area
.dc-device-media-row.is-mine
.dc-device-media-bubble{

    background:
        linear-gradient(
            180deg,
            #e8faf2,
            #dcf5e9
        ) !important;

    border-bottom-right-radius:5px !important;
}


body .dc-message-area
.dc-device-media-row.is-other
.dc-device-media-bubble{

    background:#fff !important;

    border-bottom-left-radius:5px !important;
}


/* =========================================================
   IMAGE WRAPPER
========================================================= */

body .dc-message-area
.dc-device-media-image-wrap{

    position:relative !important;

    width:100% !important;

    max-width:100% !important;

    min-height:0 !important;

    max-height:
        min(
            320px,
            48vh
        ) !important;

    display:flex !important;

    align-items:center !important;

    justify-content:center !important;

    overflow:hidden !important;

    border-radius:
        13px
        13px
        8px
        8px !important;

    background:
        #e9eff0 !important;
}


/* =========================================================
   IMAGE
   FULL IMAGE MUST FIT INSIDE CHAT
========================================================= */

body .dc-message-area
img.dc-device-media-image{

    display:block !important;

    width:auto !important;

    height:auto !important;

    max-width:100% !important;

    max-height:
        min(
            320px,
            48vh
        ) !important;

    min-width:0 !important;

    object-fit:contain !important;

    object-position:center !important;

    margin:auto !important;

    border-radius:
        13px
        13px
        8px
        8px !important;

    background:
        #e9eff0 !important;
}


/* =========================================================
   VIDEO
========================================================= */

body .dc-message-area
.dc-device-media-video-wrap{

    width:100% !important;

    max-width:100% !important;

    max-height:
        min(
            300px,
            46vh
        ) !important;

    overflow:hidden !important;

    border-radius:
        13px
        13px
        8px
        8px !important;

    background:#080e11 !important;
}


body .dc-message-area
video.dc-device-media-video{

    display:block !important;

    width:100% !important;

    height:auto !important;

    max-width:100% !important;

    max-height:
        min(
            300px,
            46vh
        ) !important;

    object-fit:contain !important;

    margin:auto !important;

    background:#000 !important;
}


/* =========================================================
   AUDIO
========================================================= */

body .dc-message-area
.dc-device-media-audio-wrap{

    width:100% !important;

    max-width:100% !important;

    padding:
        10px
        9px
        5px !important;

    overflow:hidden !important;
}


body .dc-message-area
audio.dc-device-media-audio{

    display:block !important;

    width:100% !important;

    min-width:0 !important;

    max-width:100% !important;

    height:38px !important;
}


body .dc-message-area
.dc-device-media-audio-open{

    min-height:33px !important;

    margin-top:6px !important;

    border-radius:9px !important;

    font-size:10px !important;
}


/* =========================================================
   DOCUMENT
========================================================= */

body .dc-message-area
.dc-device-doc{

    width:100% !important;

    min-width:0 !important;

    max-width:100% !important;

    min-height:60px !important;

    display:flex !important;

    align-items:center !important;

    gap:8px !important;

    padding:
        8px
        9px !important;

    overflow:hidden !important;

    box-sizing:border-box !important;
}


body .dc-message-area
.dc-device-doc-icon{

    width:38px !important;

    height:38px !important;

    flex:
        0
        0
        38px !important;

    border-radius:10px !important;
}


body .dc-message-area
.dc-device-doc-icon svg{

    width:19px !important;

    height:19px !important;
}


body .dc-message-area
.dc-device-doc-copy{

    flex:1 !important;

    min-width:0 !important;

    overflow:hidden !important;
}


body .dc-message-area
.dc-device-doc-copy strong{

    display:block !important;

    max-width:100% !important;

    overflow:hidden !important;

    white-space:nowrap !important;

    text-overflow:ellipsis !important;

    font-size:11px !important;
}


body .dc-message-area
.dc-device-doc-copy span{

    display:block !important;

    max-width:100% !important;

    overflow:hidden !important;

    white-space:nowrap !important;

    text-overflow:ellipsis !important;

    font-size:8.7px !important;
}


body .dc-message-area
.dc-device-doc-view{

    width:32px !important;

    height:32px !important;

    flex:
        0
        0
        32px !important;
}


/* =========================================================
   MEDIA BODY
========================================================= */

body .dc-message-area
.dc-device-media-body{

    width:100% !important;

    max-width:100% !important;

    overflow:hidden !important;

    padding:
        5px
        8px
        6px !important;

    box-sizing:border-box !important;
}


body .dc-message-area
.dc-device-media-caption{

    max-width:100% !important;

    margin:
        1px
        0
        5px !important;

    color:
        var(--dc-message-text) !important;

    font-size:11.5px !important;

    line-height:1.45 !important;

    overflow-wrap:anywhere !important;

    word-break:break-word !important;
}


body .dc-message-area
.dc-device-media-footer{

    min-width:0 !important;

    max-width:100% !important;

    font-size:8.2px !important;
}


body .dc-message-area
.dc-device-media-state{

    min-width:0 !important;

    max-width:65% !important;

    overflow:hidden !important;

    white-space:nowrap !important;

    text-overflow:ellipsis !important;
}


/* =========================================================
   MEDIA TOOLBAR
========================================================= */

body .dc-message-area
.dc-device-media-toolbar{

    width:100% !important;

    max-width:100% !important;

    min-height:34px !important;

    display:flex !important;

    align-items:center !important;

    gap:1px !important;

    padding:
        2px
        5px !important;

    overflow:hidden !important;
}


body .dc-message-area
button.dc-device-media-action{

    width:30px !important;

    height:30px !important;

    min-width:30px !important;

    max-width:30px !important;

    flex:
        0
        0
        30px !important;

    padding:0 !important;

    border-radius:50% !important;
}


body .dc-message-area
.dc-device-media-action svg{

    width:15px !important;

    height:15px !important;
}


/* =========================================================
   MEDIA MISSING
========================================================= */

body .dc-message-area
.dc-device-media-missing{

    width:100% !important;

    max-width:100% !important;

    min-height:76px !important;

    padding:
        12px
        10px !important;

    overflow:hidden !important;
}


body .dc-message-area
.dc-device-media-missing b{

    width:100% !important;

    max-width:100% !important;

    overflow:hidden !important;

    white-space:nowrap !important;

    text-overflow:ellipsis !important;

    font-size:10.5px !important;
}


body .dc-message-area
.dc-device-media-missing span{

    font-size:8.5px !important;
}


/* =========================================================
   MEDIA REACTION
========================================================= */

body .dc-message-area
.dc-device-media-reaction{

    min-width:27px !important;

    height:23px !important;

    padding:
        0
        6px !important;

    font-size:13px !important;
}


/* =========================================================
   MEDIA VIEWER
========================================================= */

body .dc-media-viewer{

    width:100vw !important;

    max-width:100vw !important;

    height:100vh !important;

    height:100dvh !important;

    max-height:100dvh !important;

    overflow:hidden !important;
}


body .dc-media-viewer-body{

    min-width:0 !important;

    min-height:0 !important;

    max-width:100vw !important;

    overflow:auto !important;
}


body .dc-media-viewer-body img{

    width:auto !important;

    height:auto !important;

    max-width:
        calc(
            100vw - 20px
        ) !important;

    max-height:
        calc(
            100dvh - 90px
        ) !important;

    object-fit:contain !important;
}


body .dc-media-viewer-body video{

    width:auto !important;

    height:auto !important;

    max-width:
        calc(
            100vw - 12px
        ) !important;

    max-height:
        calc(
            100dvh - 80px
        ) !important;

    object-fit:contain !important;
}


/* =========================================================
   NEW MESSAGE
========================================================= */

.dc-new-message-indicator{

    position:sticky;

    bottom:10px;

    z-index:20;

    width:max-content;

    max-width:
        calc(
            100vw - 20px
        );

    margin:
        12px
        auto
        0;

    padding:
        7px
        12px;

    border:0;

    border-radius:999px;

    background:#fff;

    color:
        var(--dc-primary);

    font-size:10px;

    font-weight:850;

    box-shadow:
        0 10px 28px
        rgba(18,52,65,.14);
}


/* =========================================================
   MEDIA PREVIEW BEFORE SEND
========================================================= */

.dc-media-preview{

    position:relative;

    z-index:40;

    flex:
        0
        0
        auto;

    min-height:60px;

    display:flex;

    align-items:center;

    gap:9px;

    padding:
        7px
        10px;

    border-top:
        1px solid
        var(--dc-line);

    background:
        rgba(250,252,253,.985);
}


.dc-media-preview-icon{

    width:41px;

    height:41px;

    flex:
        0
        0
        41px;

    display:grid;

    place-items:center;

    border-radius:11px;

    background:
        var(--dc-blue-soft);

    color:#0d6da8;
}


.dc-media-preview-icon svg{

    width:20px;

    height:20px;
}


.dc-media-preview-body{

    flex:1;

    min-width:0;
}


.dc-media-preview-body strong,
.dc-media-preview-body > span{

    display:block;
}


.dc-media-preview-body strong{

    overflow:hidden;

    color:
        var(--dc-ink);

    font-size:11px;

    white-space:nowrap;

    text-overflow:ellipsis;
}


.dc-media-preview-body > span{

    margin-top:2px;

    overflow:hidden;

    color:
        var(--dc-muted);

    font-size:8.7px;

    white-space:nowrap;

    text-overflow:ellipsis;
}


.dc-media-preview-remove{

    width:35px;

    height:35px;

    flex:
        0
        0
        35px;

    display:grid;

    place-items:center;

    padding:0;

    border:0;

    border-radius:50%;

    background:#edf2f4;

    color:#60747c;

    font-size:19px;
}


/* =========================================================
   COMPOSER CONTEXT
========================================================= */

.dc-composer-context{

    position:relative;

    z-index:45;

    flex:
        0
        0
        auto;

    min-height:56px;

    display:flex;

    align-items:center;

    gap:9px;

    padding:
        7px
        10px;

    border-top:
        1px solid
        var(--dc-line);

    background:
        rgba(249,252,252,.985);
}


.dc-composer-context-bar{

    width:4px;

    height:37px;

    flex:
        0
        0
        4px;

    border-radius:999px;

    background:
        var(--dc-primary);
}


.dc-composer-context-copy{

    flex:1;

    min-width:0;
}


.dc-composer-context-copy strong,
.dc-composer-context-copy span{

    display:block;
}


.dc-composer-context-copy strong{

    color:
        var(--dc-primary);

    font-size:9.8px;

    font-weight:850;
}


.dc-composer-context-copy span{

    margin-top:2px;

    overflow:hidden;

    color:#697f86;

    font-size:10.3px;

    white-space:nowrap;

    text-overflow:ellipsis;
}


.dc-context-close{

    width:35px;

    height:35px;

    flex:
        0
        0
        35px;

    display:grid;

    place-items:center;

    padding:0;

    border:0;

    border-radius:50%;

    background:
        transparent;

    color:#647980;

    font-size:19px;
}


/* =========================================================
   COMPOSER
========================================================= */

.dc-composer{

    position:relative;

    z-index:50;

    flex:
        0
        0
        auto;

    width:100%;

    min-width:0;

    display:flex;

    align-items:flex-end;

    gap:6px;

    padding:
        7px
        9px
        calc(
            7px +
            var(--dc-safe-bottom)
        );

    border-top:
        1px solid
        var(--dc-line);

    background:
        rgba(247,250,250,.99);

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    transform:
        translateZ(0);
}


.dc-attach-btn{

    width:43px;

    height:43px;

    flex:
        0
        0
        43px;

    display:grid;

    place-items:center;

    padding:0;

    border:0;

    border-radius:50%;

    background:
        transparent;

    color:#60757d;

    transition:
        background .14s ease,
        color .14s ease,
        transform .14s ease;
}


.dc-attach-btn:hover{

    background:#e7f2f1;

    color:
        var(--dc-primary);
}


.dc-attach-btn.is-active{

    background:
        var(--dc-primary-soft);

    color:
        var(--dc-primary-dark);
}


.dc-composer textarea{

    flex:1;

    min-width:0;

    min-height:43px;

    max-height:135px;

    resize:none;

    overflow-y:auto;

    padding:
        10px
        14px;

    border:
        1px solid
        #d4e0e2;

    outline:none;

    border-radius:22px;

    background:#fff;

    color:
        var(--dc-ink);

    caret-color:
        var(--dc-primary);

    font-size:15px;

    line-height:21px;

    box-shadow:
        0 2px 7px
        rgba(20,50,70,.035);

    transition:
        border-color .14s ease,
        box-shadow .14s ease,
        background .14s ease;
}


.dc-composer textarea::placeholder{

    color:#87989e;
}


.dc-composer textarea:focus{

    border-color:#8bc9bd;

    background:#fff;

    box-shadow:
        0 0 0
        3px
        rgba(8,126,112,.06);
}


.dc-send-btn{

    width:45px;

    height:45px;

    flex:
        0
        0
        45px;

    display:grid;

    place-items:center;

    padding:0;

    border:0;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #0aa58a,
            #05675d
        );

    color:#fff;

    box-shadow:
        0 8px 18px
        rgba(8,126,112,.22);

    transition:
        transform .12s ease,
        box-shadow .12s ease;
}


.dc-send-btn:hover{

    box-shadow:
        0 11px 24px
        rgba(8,126,112,.28);
}


.dc-send-btn:active{

    transform:
        scale(.93);
}


/* =========================================================
   ATTACHMENT MENU
========================================================= */

.dc-attachment-menu{

    position:fixed;

    z-index:3250;

    width:225px;

    padding:7px;

    border:
        1px solid
        var(--dc-line);

    border-radius:16px;

    background:
        rgba(255,255,255,.99);

    box-shadow:
        var(--dc-shadow-pop);

    backdrop-filter:
        blur(14px);
}


.dc-attachment-option{

    width:100%;

    min-height:48px;

    display:flex;

    align-items:center;

    gap:9px;

    padding:
        7px
        9px;

    border:0;

    border-radius:11px;

    background:
        transparent;

    color:
        var(--dc-ink-soft);

    text-align:left;

    font-size:11.8px;

    font-weight:750;
}


.dc-attachment-option:hover{

    background:
        #eff5f6;
}


.dc-attachment-option-icon{

    width:35px;

    height:35px;

    flex:
        0
        0
        35px;

    display:grid;

    place-items:center;

    border-radius:10px;
}


.dc-attachment-option-icon svg{

    width:18px;

    height:18px;
}


.dc-attachment-option-icon.is-image{

    color:#168457;

    background:#e7f7ed;
}


.dc-attachment-option-icon.is-video{

    color:#7852a8;

    background:#f3eafb;
}


.dc-attachment-option-icon.is-audio{

    color:#2877a9;

    background:#e9f3fb;
}


.dc-attachment-option-icon.is-document{

    color:#a2670d;

    background:#fff3df;
}


/* =========================================================
   MESSAGE MENU
========================================================= */

.dc-message-menu{

    position:fixed;

    z-index:3000;

    min-width:164px;

    padding:6px;

    border:
        1px solid
        var(--dc-line);

    border-radius:14px;

    background:
        rgba(255,255,255,.99);

    box-shadow:
        var(--dc-shadow-pop);
}


.dc-message-menu button{

    width:100%;

    min-height:41px;

    display:flex;

    align-items:center;

    gap:9px;

    padding:
        8px
        10px;

    border:0;

    border-radius:9px;

    background:
        transparent;

    color:#29434d;

    text-align:left;

    font-size:11.8px;
}


.dc-message-menu button:hover{

    background:
        #eff5f6;
}


.dc-message-menu button.is-danger{

    color:
        var(--dc-danger);
}


/* =========================================================
   REACTION PICKER
========================================================= */

.dc-reaction-picker{

    position:fixed;

    z-index:3100;

    display:flex;

    align-items:center;

    gap:2px;

    max-width:
        calc(
            100vw - 14px
        );

    overflow-x:auto;

    padding:
        5px
        6px;

    border:
        1px solid
        var(--dc-line);

    border-radius:999px;

    background:
        rgba(255,255,255,.99);

    box-shadow:
        var(--dc-shadow-pop);
}


.dc-reaction-picker button{

    width:38px;

    height:38px;

    flex:
        0
        0
        38px;

    display:grid;

    place-items:center;

    border:0;

    border-radius:50%;

    background:
        transparent;

    font-size:20px;
}


/* =========================================================
   CONVERSATION MENU
========================================================= */

.dc-conversation-menu{

    position:fixed;

    z-index:3200;

    width:
        min(
            300px,
            calc(
                100vw - 18px
            )
        );

    max-height:
        min(
            520px,
            calc(
                100dvh - 20px
            )
        );

    overflow-y:auto;

    padding:7px;

    border:
        1px solid
        var(--dc-line);

    border-radius:16px;

    background:
        rgba(255,255,255,.99);

    box-shadow:
        var(--dc-shadow-pop);
}


.dc-conversation-menu-item{

    width:100%;

    min-height:56px;

    display:flex;

    align-items:center;

    gap:10px;

    padding:
        9px
        10px;

    border:0;

    border-radius:11px;

    background:
        transparent;

    color:
        var(--dc-ink-soft);

    text-align:left;
}


.dc-conversation-menu-item:hover{

    background:#f1f6f7;
}


.dc-conversation-menu-item.is-danger{

    color:
        var(--dc-danger);
}


.dc-menu-icon{

    width:35px;

    height:35px;

    flex:
        0
        0
        35px;

    display:grid;

    place-items:center;

    border-radius:10px;

    background:#edf4f5;
}


.dc-menu-icon svg{

    width:18px;

    height:18px;
}


.dc-conversation-menu-item.is-danger
.dc-menu-icon{

    background:
        var(--dc-danger-soft);
}


.dc-menu-copy{

    flex:1;

    min-width:0;
}


.dc-menu-copy strong,
.dc-menu-copy small{

    display:block;
}


.dc-menu-copy strong{

    font-size:11.8px;

    font-weight:800;
}


.dc-menu-copy small{

    margin-top:2px;

    color:
        var(--dc-muted);

    font-size:8.8px;

    line-height:1.4;
}


.dc-conversation-menu-divider{

    height:1px;

    margin:
        5px
        7px;

    background:
        var(--dc-line-soft);
}


/* =========================================================
   SHEET
========================================================= */

.dc-sheet-backdrop{

    position:fixed;

    inset:0;

    z-index:4000;

    display:flex;

    align-items:flex-end;

    justify-content:center;

    padding:14px;

    background:
        rgba(5,22,30,.50);

    backdrop-filter:
        blur(5px);
}


.dc-sheet{

    width:
        min(
            440px,
            100%
        );

    padding:
        10px
        14px
        calc(
            14px +
            var(--dc-safe-bottom)
        );

    border:
        1px solid
        rgba(255,255,255,.7);

    border-radius:
        22px
        22px
        16px
        16px;

    background:#fff;

    box-shadow:
        0 28px 90px
        rgba(0,0,0,.28);
}


.dc-sheet-handle{

    width:43px;

    height:4px;

    margin:
        2px
        auto
        14px;

    border-radius:999px;

    background:#ccd6d9;
}


.dc-sheet h3{

    margin:
        0
        0
        5px;

    color:#1b3540;

    font-size:17px;
}


.dc-sheet p{

    margin:
        0
        0
        13px;

    color:
        var(--dc-muted);

    font-size:11.3px;

    line-height:1.6;
}


.dc-sheet-btn{

    width:100%;

    margin-top:7px;

    padding:
        12px
        14px;

    border:
        1px solid
        #e0e8ea;

    border-radius:12px;

    background:#fff;

    color:#28424c;

    font-size:12px;

    font-weight:800;
}


.dc-sheet-btn.is-danger{

    border-color:#f0c4c8;

    background:
        var(--dc-danger-soft);

    color:
        var(--dc-danger);
}


.dc-sheet-btn.is-cancel{

    background:#eef3f4;
}


.dc-sheet-btn[aria-current="true"]{

    border-color:#89cabe;

    background:
        var(--dc-primary-soft);

    color:
        var(--dc-primary-dark);
}


/* =========================================================
   MODAL
========================================================= */

.dc-modal-backdrop{

    position:fixed;

    inset:0;

    z-index:5000;

    display:grid;

    place-items:center;

    padding:18px;

    background:
        rgba(8,26,35,.64);

    backdrop-filter:
        blur(6px);
}


.dc-modal{

    width:
        min(
            540px,
            100%
        );

    max-height:
        calc(
            100dvh - 36px
        );

    overflow-y:auto;

    padding:22px;

    border:
        1px solid
        rgba(255,255,255,.8);

    border-radius:20px;

    background:#fff;

    box-shadow:
        0 30px 90px
        rgba(0,0,0,.28);
}


/* =========================================================
   USER SEARCH
========================================================= */

.dc-user-result{

    display:flex;

    align-items:center;

    gap:10px;

    padding:
        9px
        7px;

    border-bottom:
        1px solid
        var(--dc-line-soft);
}


.dc-user-result-avatar{

    position:relative;

    width:47px;

    height:47px;

    flex:
        0
        0
        47px;

    display:grid;

    place-items:center;

    overflow:hidden;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #dcecef,
            #cce3e6
        );

    color:#12616c;

    font-weight:900;
}


.dc-user-result-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;
}


.dc-user-result-copy{

    flex:1;

    min-width:0;
}


.dc-user-result-copy strong,
.dc-user-result-copy span,
.dc-user-result-copy small{

    display:block;

    overflow:hidden;

    white-space:nowrap;

    text-overflow:ellipsis;
}


/* =========================================================
   PROFILE PANEL
   STRONG OVERRIDES FOR chat.js RUNTIME CSS
========================================================= */

body .dc-profile-backdrop{

    position:fixed !important;

    inset:0 !important;

    z-index:9000 !important;

    display:flex !important;

    align-items:stretch !important;

    justify-content:flex-end !important;

    overflow:hidden !important;

    background:
        rgba(7,24,31,.46) !important;

    backdrop-filter:
        blur(6px) !important;

    -webkit-backdrop-filter:
        blur(6px) !important;
}


body .dc-profile-backdrop[hidden]{

    display:none !important;
}


body .dc-profile-panel{

    position:relative !important;

    width:
        min(
            430px,
            100%
        ) !important;

    max-width:100vw !important;

    height:100vh !important;

    height:100dvh !important;

    max-height:100dvh !important;

    min-height:0 !important;

    display:flex !important;

    flex-direction:column !important;

    overflow:hidden !important;

    background:
        linear-gradient(
            180deg,
            #f8fbfb,
            #f1f6f6
        ) !important;

    box-shadow:
        -24px
        0
        70px
        rgba(0,0,0,.20) !important;
}


body .dc-profile-head{

    position:relative !important;

    z-index:5 !important;

    flex:
        0
        0
        auto !important;

    min-height:
        calc(
            64px +
            var(--dc-safe-top)
        ) !important;

    display:flex !important;

    align-items:center !important;

    gap:12px !important;

    padding:
        calc(
            8px +
            var(--dc-safe-top)
        )
        12px
        8px !important;

    background:
        linear-gradient(
            135deg,
            #087e70,
            #05675d
        ) !important;

    color:#fff !important;

    box-shadow:
        0 3px 14px
        rgba(4,78,70,.16) !important;
}


body .dc-profile-back{

    width:40px !important;

    height:40px !important;

    flex:
        0
        0
        40px !important;

    display:grid !important;

    place-items:center !important;

    padding:0 !important;

    border:0 !important;

    border-radius:50% !important;

    background:
        rgba(255,255,255,.12) !important;

    color:#fff !important;

    font-size:23px !important;
}


body .dc-profile-scroll{

    flex:
        1
        1
        0 !important;

    min-height:0 !important;

    width:100% !important;

    overflow-y:auto !important;

    overflow-x:hidden !important;

    -webkit-overflow-scrolling:
        touch !important;

    overscroll-behavior:
        contain !important;

    padding:
        20px
        15px
        calc(
            26px +
            var(--dc-safe-bottom)
        ) !important;

    scroll-padding-bottom:
        120px !important;
}


body .dc-profile-hero{

    padding:
        5px
        0
        20px !important;

    text-align:center !important;
}


body .dc-profile-avatar-wrap{

    position:relative !important;

    width:128px !important;

    height:128px !important;

    margin:
        0
        auto
        13px !important;
}


body .dc-profile-avatar{

    width:128px !important;

    height:128px !important;

    display:grid !important;

    place-items:center !important;

    overflow:hidden !important;

    border-radius:50% !important;

    background:
        linear-gradient(
            145deg,
            #d9efec,
            #b9ded8
        ) !important;

    color:
        var(--dc-primary) !important;

    font-size:34px !important;

    font-weight:900 !important;

    border:
        4px solid
        rgba(255,255,255,.9) !important;

    box-shadow:
        0 12px 32px
        rgba(8,126,112,.16) !important;
}


body .dc-profile-avatar img{

    width:100% !important;

    height:100% !important;

    display:block !important;

    object-fit:cover !important;
}


body .dc-profile-camera{

    right:0 !important;

    bottom:5px !important;

    width:42px !important;

    height:42px !important;

    display:grid !important;

    place-items:center !important;

    border:
        4px solid
        #f4f8f8 !important;

    border-radius:50% !important;

    background:
        var(--dc-primary) !important;

    color:#fff !important;

    font-size:16px !important;

    box-shadow:
        0 4px 14px
        rgba(8,126,112,.22) !important;
}


body .dc-profile-hero h2{

    margin:0 !important;

    color:#16333d !important;

    font-size:22px !important;

    line-height:1.3 !important;

    font-weight:900 !important;
}


body .dc-profile-hero p{

    margin:
        4px
        0
        0 !important;

    color:#698087 !important;

    font-size:12px !important;
}


body .dc-profile-presence{

    margin-top:9px !important;

    padding:
        5px
        9px !important;

    border-radius:999px !important;

    background:#e5f4f0 !important;

    color:
        var(--dc-primary) !important;

    font-size:10px !important;
}


body .dc-profile-card{

    width:100% !important;

    margin-bottom:12px !important;

    overflow:hidden !important;

    border:
        1px solid
        #dee8e9 !important;

    border-radius:16px !important;

    background:#fff !important;

    box-shadow:
        0 4px 14px
        rgba(20,48,58,.035) !important;
}


body .dc-profile-row{

    padding:
        12px
        14px !important;
}


body .dc-profile-label{

    font-size:9px !important;
}


body .dc-profile-value{

    font-size:13px !important;

    line-height:1.5 !important;
}


body .dc-profile-edit{

    width:100% !important;

    margin-top:14px !important;

    padding:
        14px !important;

    border:
        1px solid
        #dfe8e9 !important;

    border-radius:16px !important;

    background:#fff !important;

    box-shadow:
        0 4px 14px
        rgba(20,48,58,.035) !important;
}


body .dc-profile-field{

    margin-bottom:12px !important;
}


body .dc-profile-field label{

    margin-bottom:6px !important;

    color:#536a72 !important;

    font-size:10.5px !important;

    font-weight:800 !important;
}


body .dc-profile-field input,
body .dc-profile-field textarea{

    width:100% !important;

    max-width:100% !important;

    box-sizing:border-box !important;

    border:
        1px solid
        #ccdadd !important;

    outline:none !important;

    border-radius:12px !important;

    background:#fff !important;

    color:#16333d !important;

    font-size:15px !important;

    transition:
        border-color .14s ease,
        box-shadow .14s ease !important;
}


body .dc-profile-field input{

    min-height:46px !important;

    padding:
        10px
        11px !important;
}


body .dc-profile-field textarea{

    min-height:90px !important;

    max-height:180px !important;

    resize:vertical !important;

    padding:
        10px
        11px !important;
}


body .dc-profile-field input:focus,
body .dc-profile-field textarea:focus{

    border-color:#7fc6b9 !important;

    box-shadow:
        0 0 0
        3px
        rgba(8,126,112,.07) !important;
}


body .dc-profile-actions{

    display:grid !important;

    grid-template-columns:
        1fr
        1fr !important;

    gap:8px !important;

    margin-top:13px !important;
}


body .dc-profile-btn{

    min-height:44px !important;

    width:100% !important;

    border:0 !important;

    border-radius:12px !important;

    padding:
        8px
        10px !important;

    font-size:11px !important;

    font-weight:900 !important;
}


body .dc-profile-btn.is-primary{

    background:
        linear-gradient(
            145deg,
            #0a9f86,
            #05685e
        ) !important;

    color:#fff !important;
}


body .dc-profile-btn.is-danger{

    background:
        var(--dc-danger-soft) !important;

    color:
        var(--dc-danger) !important;
}


/* =========================================================
   MEDIA / DELETE / VIEWER POPUPS
========================================================= */

body .dc-media-delete-backdrop{

    max-width:100vw !important;

    overflow:hidden !important;
}


body .dc-media-delete-sheet{

    max-width:
        calc(
            100vw - 20px
        ) !important;
}


body .dc-media-reaction-picker{

    max-width:
        calc(
            100vw - 14px
        ) !important;

    overflow-x:auto !important;

    overflow-y:hidden !important;
}


/* =========================================================
   TOAST
========================================================= */

.dc-toast-container{

    position:fixed;

    right:14px;

    bottom:14px;

    z-index:110000;

    display:flex;

    flex-direction:column;

    gap:7px;

    pointer-events:none;
}


.dc-toast{

    width:
        min(
            345px,
            calc(
                100vw - 24px
            )
        );

    padding:
        11px
        13px;

    border-radius:12px;

    background:#172e36;

    color:#fff;

    font-size:11.3px;

    line-height:1.5;

    box-shadow:
        var(--dc-shadow);

    pointer-events:auto;
}


.dc-toast.is-error{

    background:#a62a33;
}


/* =========================================================
   CALL
========================================================= */

.dc-call-overlay{

    position:fixed;

    inset:0;

    z-index:7000;

    display:grid;

    place-items:center;

    padding:
        max(
            18px,
            var(--dc-safe-top)
        )
        18px
        max(
            18px,
            var(--dc-safe-bottom)
        );

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(23,130,116,.34),
            transparent 36%
        ),
        rgba(4,18,24,.88);

    backdrop-filter:
        blur(17px);
}


.dc-call-screen{

    position:fixed;

    inset:0;

    z-index:7100;

    overflow:hidden;

    background:
        radial-gradient(
            circle at 25% 10%,
            rgba(12,136,117,.25),
            transparent 34%
        ),
        linear-gradient(
            160deg,
            #07171d,
            #0a242c 48%,
            #07171d
        );

    color:#fff;
}


.dc-call-stage{

    position:absolute;

    inset:0;

    overflow:hidden;
}


.dc-call-remote-video{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    background:#07171d;
}


.dc-call-avatar{

    display:grid;

    place-items:center;

    overflow:hidden;

    border-radius:50%;

    background:
        linear-gradient(
            145deg,
            #1aaf96,
            #087164
        );

    color:#fff;

    font-weight:900;
}


.dc-call-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;
}


.dc-call-avatar-large{

    width:100px;

    height:100px;

    margin:auto;
}


.dc-call-avatar-xl{

    width:128px;

    height:128px;

    margin:auto;
}


.dc-call-user-fallback{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    padding:
        100px
        20px
        130px;

    text-align:center;
}


.dc-call-screen.has-remote-video
.dc-call-user-fallback{

    opacity:0;

    pointer-events:none;
}


.dc-call-screen.is-audio-call
.dc-call-remote-video,

.dc-call-screen.is-audio-call
.dc-local-video-wrap{

    display:none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:1100px){

    :root{

        --dc-sidebar-width:
            330px;
    }


    .dc-message-area{

        padding-left:18px;

        padding-right:18px;
    }


    body .dc-message-bubble{

        max-width:
            78% !important;
    }


    body .dc-message-area
    .dc-device-media-row
    .dc-device-media-bubble{

        max-width:
            min(
                320px,
                calc(
                    100% - 6px
                )
            ) !important;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:760px){

    html,
    body{

        width:100%;

        height:100%;

        overflow:hidden;

        overscroll-behavior:none;
    }


    /*
     * Do NOT fix body.
     * position:fixed on body is one of the common reasons
     * Android/iOS keyboard hides the composer.
     */

    body{

        position:relative;
    }


    /* =====================================================
       APP MOBILE HEIGHT
    ===================================================== */

    .dc-app{

        position:relative;

        display:block;

        width:100%;

        height:
            var(
                --dc-visual-viewport-height,
                100dvh
            );

        min-height:0;

        max-height:
            var(
                --dc-visual-viewport-height,
                100dvh
            );

        overflow:hidden;
    }


    /* =====================================================
       SIDEBAR
    ===================================================== */

    .dc-sidebar{

        position:absolute;

        inset:0;

        z-index:10;

        width:100%;

        height:100%;

        border-right:0;

        transform:
            translate3d(
                0,
                0,
                0
            );

        visibility:visible;

        transition:
            transform .20s ease,
            visibility .20s ease;

        will-change:
            transform;
    }


    /* =====================================================
       CHAT PANEL
    ===================================================== */

    .dc-chat-panel{

        position:absolute;

        inset:0;

        z-index:20;

        width:100%;

        height:100%;

        min-height:0;

        transform:
            translate3d(
                100%,
                0,
                0
            );

        visibility:hidden;

        pointer-events:none;

        transition:
            transform .20s ease,
            visibility .20s ease;

        will-change:
            transform;
    }


    .dc-app.is-chat-open
    .dc-chat-panel{

        transform:
            translate3d(
                0,
                0,
                0
            );

        visibility:visible;

        pointer-events:auto;
    }


    .dc-app.is-chat-open
    .dc-sidebar{

        transform:
            translate3d(
                -100%,
                0,
                0
            );

        visibility:hidden;

        pointer-events:none;
    }


    /* =====================================================
       ACTIVE CHAT
    ===================================================== */

    .dc-chat-active{

        position:absolute;

        inset:0;

        width:100%;

        height:100%;

        min-height:0;

        display:flex;

        flex-direction:column;

        overflow:hidden;
    }


    /* =====================================================
       FIXED-IN-LAYOUT HEADER
    ===================================================== */

    .dc-chat-header{

        position:relative;

        z-index:100;

        flex:
            0
            0
            auto;

        min-height:
            calc(
                55px +
                var(--dc-safe-top)
            );

        padding:
            calc(
                5px +
                var(--dc-safe-top)
            )
            max(
                3px,
                var(--dc-safe-right)
            )
            5px
            max(
                3px,
                var(--dc-safe-left)
            );

        gap:4px;

        background:
            rgba(249,252,252,.985);

        transform:
            translateZ(0);
    }


    .dc-back-btn{

        display:grid;

        place-items:center;

        width:37px;

        height:37px;

        flex:
            0
            0
            37px;
    }


    .dc-chat-avatar{

        width:39px;

        height:39px;

        flex:
            0
            0
            39px;

        font-size:11px;
    }


    .dc-chat-person strong{

        font-size:13.6px;
    }


    .dc-chat-person span{

        font-size:9px;
    }


    .dc-chat-actions{

        gap:0;
    }


    .dc-chat-actions
    .dc-icon-btn{

        width:34px;

        height:34px;

        flex:
            0
            0
            34px;
    }


    .dc-chat-actions
    .dc-icon-btn svg{

        width:17px;

        height:17px;
    }


    /* =====================================================
       MOBILE MESSAGE AREA
    ===================================================== */

    .dc-message-area{

        flex:
            1
            1
            0;

        width:100%;

        min-height:0;

        height:auto;

        overflow-y:auto;

        overflow-x:hidden;

        padding:
            10px
            5px
            10px;

        scroll-padding-bottom:
            12px;
    }


    .dc-message-list{

        width:100%;

        max-width:100%;

        min-width:0;

        gap:2px;
    }


    /* =====================================================
       MOBILE MESSAGE AVATAR
    ===================================================== */

    body .dc-message-row{

        width:100% !important;

        max-width:100% !important;

        gap:5px !important;
    }


    body .dc-message-avatar-slot{

        width:28px !important;

        height:28px !important;

        min-width:28px !important;

        max-width:28px !important;

        flex:
            0
            0
            28px !important;

        display:block !important;

        visibility:visible !important;
    }


    body .dc-message-avatar{

        width:28px !important;

        height:28px !important;

        display:grid !important;

        visibility:visible !important;

        opacity:1 !important;

        font-size:8px !important;
    }


    body .dc-message-row.is-grouped
    .dc-message-avatar{

        visibility:visible !important;

        opacity:1 !important;
    }


    /* =====================================================
       MOBILE MESSAGE BUBBLES
    ===================================================== */

    body .dc-message-bubble{

        max-width:
            calc(
                100% - 40px
            ) !important;

        padding:
            7px
            9px
            5px;

        border-radius:11px;
    }


    .dc-message-text{

        font-size:14.6px;

        line-height:1.52;
    }


    .dc-message-sender{

        font-size:9.4px;
    }


    .dc-message-footer{

        font-size:8.4px;
    }


    /* =====================================================
       MOBILE MEDIA ROW
    ===================================================== */

    body .dc-message-area
    .dc-device-media-row{

        width:100% !important;

        max-width:100% !important;

        min-width:0 !important;

        padding:
            2px
            4px !important;

        overflow:hidden !important;
    }


    /* =====================================================
       MOBILE MEDIA BUBBLE
    ===================================================== */

    body .dc-message-area
    .dc-device-media-row
    .dc-device-media-bubble{

        width:auto !important;

        min-width:
            min(
                165px,
                58vw
            ) !important;

        max-width:
            min(
                285px,
                78vw
            ) !important;

        overflow:visible !important;

        border-radius:13px !important;
    }


    /* =====================================================
       MOBILE IMAGE
    ===================================================== */

    body .dc-message-area
    .dc-device-media-image-wrap{

        width:100% !important;

        max-width:100% !important;

        min-height:0 !important;

        max-height:
            min(
                230px,
                39vh
            ) !important;

        overflow:hidden !important;
    }


    body .dc-message-area
    img.dc-device-media-image{

        width:auto !important;

        height:auto !important;

        max-width:100% !important;

        max-height:
            min(
                230px,
                39vh
            ) !important;

        object-fit:contain !important;

        object-position:center !important;

        margin:auto !important;
    }


    /* =====================================================
       MOBILE VIDEO
    ===================================================== */

    body .dc-message-area
    .dc-device-media-video-wrap{

        max-height:
            min(
                225px,
                38vh
            ) !important;
    }


    body .dc-message-area
    video.dc-device-media-video{

        width:100% !important;

        height:auto !important;

        max-height:
            min(
                225px,
                38vh
            ) !important;

        object-fit:contain !important;
    }


    /* =====================================================
       MOBILE MEDIA ACTIONS
    ===================================================== */

    body .dc-message-area
    .dc-device-media-toolbar{

        min-height:32px !important;

        padding:
            1px
            4px !important;
    }


    body .dc-message-area
    button.dc-device-media-action{

        width:28px !important;

        height:28px !important;

        min-width:28px !important;

        max-width:28px !important;

        flex:
            0
            0
            28px !important;
    }


    body .dc-message-area
    .dc-device-media-action svg{

        width:14px !important;

        height:14px !important;
    }


    body .dc-message-area
    .dc-device-doc{

        min-height:55px !important;

        padding:
            7px
            8px !important;
    }


    body .dc-message-area
    .dc-device-doc-icon{

        width:34px !important;

        height:34px !important;

        flex:
            0
            0
            34px !important;
    }


    body .dc-message-area
    .dc-device-media-body{

        padding:
            4px
            7px
            5px !important;
    }


    body .dc-message-area
    .dc-device-media-caption{

        font-size:10.8px !important;
    }


    /* =====================================================
       COMPOSER MOBILE
    ===================================================== */

    .dc-media-preview,
    .dc-composer-context{

        flex:
            0
            0
            auto;
    }


    .dc-composer{

        position:relative;

        bottom:auto;

        flex:
            0
            0
            auto;

        width:100%;

        min-height:
            calc(
                52px +
                var(--dc-safe-bottom)
            );

        gap:3px;

        padding:
            5px
            max(
                4px,
                var(--dc-safe-right)
            )
            calc(
                5px +
                var(--dc-safe-bottom)
            )
            max(
                4px,
                var(--dc-safe-left)
            );

        transform:
            translateZ(0);
    }


    .dc-attach-btn{

        width:38px;

        height:38px;

        flex:
            0
            0
            38px;
    }


    .dc-attach-btn svg{

        width:20px;

        height:20px;
    }


    .dc-composer textarea{

        min-height:41px;

        max-height:105px;

        padding:
            9px
            12px;

        border-radius:21px;

        /*
         * 16px avoids Safari input zoom.
         */

        font-size:16px;

        line-height:21px;
    }


    .dc-send-btn{

        width:41px;

        height:41px;

        flex:
            0
            0
            41px;
    }


    /* =====================================================
       KEYBOARD OPEN
    ===================================================== */

    html.dc-keyboard-open,
    body.dc-keyboard-open{

        overflow:hidden !important;

        overscroll-behavior:none !important;
    }


    body.dc-keyboard-open
    .dc-app{

        height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;

        max-height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;
    }


    body.dc-keyboard-open
    .dc-chat-panel,

    body.dc-keyboard-open
    .dc-chat-active{

        height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;

        max-height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;
    }


    body.dc-keyboard-open
    .dc-chat-header{

        flex-shrink:0 !important;

        transform:
            translateZ(0) !important;
    }


    body.dc-keyboard-open
    .dc-composer{

        flex-shrink:0 !important;

        padding-bottom:
            4px !important;

        transform:
            translateZ(0) !important;
    }


    body.dc-keyboard-open
    .dc-message-area{

        flex:
            1
            1
            0 !important;

        min-height:0 !important;

        padding-bottom:
            5px !important;
    }


    /* =====================================================
       PROFILE MOBILE
    ===================================================== */

    body .dc-profile-backdrop{

        width:100vw !important;

        max-width:100vw !important;

        height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;

        max-height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;

        display:block !important;

        overflow:hidden !important;

        background:
            #f4f8f8 !important;
    }


    body .dc-profile-backdrop[hidden]{

        display:none !important;
    }


    body .dc-profile-panel{

        position:absolute !important;

        inset:0 !important;

        width:100% !important;

        max-width:100% !important;

        height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;

        max-height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;

        min-height:0 !important;

        border-radius:0 !important;

        box-shadow:none !important;
    }


    body .dc-profile-head{

        position:relative !important;

        top:auto !important;

        z-index:20 !important;

        flex:
            0
            0
            auto !important;

        min-height:
            calc(
                56px +
                var(--dc-safe-top)
            ) !important;

        padding:
            calc(
                5px +
                var(--dc-safe-top)
            )
            8px
            5px !important;
    }


    body .dc-profile-scroll{

        flex:
            1
            1
            0 !important;

        min-height:0 !important;

        height:auto !important;

        overflow-y:auto !important;

        overflow-x:hidden !important;

        padding:
            14px
            10px
            calc(
                35px +
                var(--dc-safe-bottom)
            ) !important;

        scroll-padding-bottom:
            180px !important;
    }


    body .dc-profile-avatar-wrap{

        width:108px !important;

        height:108px !important;

        margin-bottom:
            11px !important;
    }


    body .dc-profile-avatar{

        width:108px !important;

        height:108px !important;

        font-size:29px !important;
    }


    body .dc-profile-camera{

        width:39px !important;

        height:39px !important;

        right:-1px !important;

        bottom:1px !important;
    }


    body .dc-profile-hero{

        padding:
            2px
            0
            15px !important;
    }


    body .dc-profile-hero h2{

        font-size:19px !important;
    }


    body .dc-profile-edit{

        margin-top:
            10px !important;

        padding:
            11px !important;

        border-radius:
            14px !important;
    }


    body .dc-profile-field input,
    body .dc-profile-field textarea{

        font-size:16px !important;
    }


    body .dc-profile-field input{

        min-height:
            44px !important;
    }


    body .dc-profile-field textarea{

        min-height:
            84px !important;
    }


    body .dc-profile-actions{

        grid-template-columns:
            1fr !important;

        gap:7px !important;
    }


    body .dc-profile-btn{

        min-height:
            44px !important;
    }


    /*
     * Profile edit keyboard handling
     */

    body.dc-keyboard-open
    .dc-profile-backdrop,

    body.dc-keyboard-open
    .dc-profile-panel{

        height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;

        max-height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;
    }


    body.dc-keyboard-open
    .dc-profile-scroll{

        min-height:0 !important;

        padding-bottom:
            25px !important;

        scroll-padding-bottom:
            160px !important;
    }


    /* =====================================================
       SIDEBAR MOBILE
    ===================================================== */

    .dc-sidebar-header{

        min-height:
            calc(
                59px +
                var(--dc-safe-top)
            );

        padding:
            calc(
                6px +
                var(--dc-safe-top)
            )
            7px
            6px;
    }


    .dc-brand{

        gap:8px;
    }


    .dc-brand-logo{

        width:41px;

        height:41px;

        flex:
            0
            0
            41px;

        font-size:13px;
    }


    .dc-brand strong{

        font-size:13.8px;
    }


    .dc-brand small{

        font-size:8.8px;
    }


    .dc-header-actions
    .dc-icon-btn{

        width:36px;

        height:36px;

        flex:
            0
            0
            36px;
    }


    .dc-search-wrap{

        padding:
            7px;
    }


    .dc-search-wrap input{

        height:40px;

        border-radius:13px;

        font-size:16px;
    }


    .dc-conversation{

        min-height:69px;

        padding:
            7px
            8px;
    }


    .dc-conversation-avatar{

        width:46px;

        height:46px;

        flex:
            0
            0
            46px;
    }


    .dc-conversation-name{

        font-size:13.5px;
    }


    .dc-conversation-preview{

        font-size:11.3px;
    }


    /* =====================================================
       MOBILE MODAL
    ===================================================== */

    .dc-modal-backdrop{

        padding:
            calc(
                7px +
                var(--dc-safe-top)
            )
            7px
            calc(
                7px +
                var(--dc-safe-bottom)
            );
    }


    .dc-modal{

        width:100%;

        max-width:100%;

        max-height:
            calc(
                var(
                    --dc-visual-viewport-height,
                    100dvh
                )
                - 14px
            );

        padding:16px;

        border-radius:16px;
    }


    .dc-conversation-menu{

        width:
            calc(
                100vw - 12px
            );

        max-height:
            calc(
                var(
                    --dc-visual-viewport-height,
                    100dvh
                )
                - 14px
            );
    }


    /* =====================================================
       MOBILE VIEWER
    ===================================================== */

    body .dc-media-viewer{

        height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;

        max-height:
            var(
                --dc-visual-viewport-height,
                100dvh
            ) !important;
    }


    body .dc-media-viewer-body{

        padding:
            4px !important;
    }


    body .dc-media-viewer-body img{

        max-width:
            calc(
                100vw - 8px
            ) !important;

        max-height:
            calc(
                var(
                    --dc-visual-viewport-height,
                    100dvh
                )
                - 64px
            ) !important;
    }


    body .dc-media-viewer-body video{

        max-width:
            calc(
                100vw - 8px
            ) !important;

        max-height:
            calc(
                var(
                    --dc-visual-viewport-height,
                    100dvh
                )
                - 64px
            ) !important;
    }


    /* =====================================================
       TOAST
    ===================================================== */

    .dc-toast-container{

        right:7px;

        bottom:
            calc(
                7px +
                var(--dc-safe-bottom)
            );
    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media(max-width:480px){

    .dc-message-area{

        padding-left:3px;

        padding-right:3px;
    }


    body .dc-message-bubble{

        max-width:
            calc(
                100% - 37px
            ) !important;
    }


    body .dc-message-area
    .dc-device-media-row
    .dc-device-media-bubble{

        max-width:
            min(
                270px,
                80vw
            ) !important;
    }


    body .dc-message-area
    .dc-device-media-image-wrap,

    body .dc-message-area
    img.dc-device-media-image{

        max-height:
            min(
                215px,
                37vh
            ) !important;
    }


    body .dc-message-area
    .dc-device-media-video-wrap,

    body .dc-message-area
    video.dc-device-media-video{

        max-height:
            min(
                210px,
                36vh
            ) !important;
    }


    .dc-composer{

        gap:2px;

        padding-left:
            max(
                3px,
                var(--dc-safe-left)
            );

        padding-right:
            max(
                3px,
                var(--dc-safe-right)
            );
    }


    .dc-attach-btn{

        width:37px;

        height:37px;

        flex-basis:37px;
    }


    .dc-send-btn{

        width:40px;

        height:40px;

        flex-basis:40px;
    }

}


/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media(max-width:360px){

    .dc-brand small{

        display:none;
    }


    .dc-brand strong{

        font-size:12.7px;
    }


    .dc-conversation-name{

        font-size:12.7px;
    }


    .dc-conversation-preview{

        font-size:10.7px;
    }


    body .dc-message-avatar-slot{

        width:26px !important;

        height:26px !important;

        min-width:26px !important;

        max-width:26px !important;

        flex-basis:26px !important;
    }


    body .dc-message-avatar{

        width:26px !important;

        height:26px !important;
    }


    body .dc-message-bubble{

        max-width:
            calc(
                100% - 34px
            ) !important;
    }


    .dc-message-text{

        font-size:14.2px;
    }


    body .dc-message-area
    .dc-device-media-row
    .dc-device-media-bubble{

        max-width:
            min(
                245px,
                79vw
            ) !important;

        min-width:
            145px !important;
    }


    .dc-chat-avatar{

        width:35px;

        height:35px;

        flex-basis:35px;
    }


    .dc-chat-actions
    .dc-icon-btn{

        width:31px;

        height:31px;

        flex-basis:31px;
    }


    .dc-menu-copy small{

        display:none;
    }

}


/* =========================================================
   MOBILE LANDSCAPE
========================================================= */

@media
(max-width:900px)
and
(orientation:landscape)
and
(max-height:500px){

    .dc-chat-header{

        min-height:
            calc(
                47px +
                var(--dc-safe-top)
            );

        padding-top:
            calc(
                3px +
                var(--dc-safe-top)
            );

        padding-bottom:
            3px;
    }


    .dc-chat-avatar{

        width:34px;

        height:34px;

        flex-basis:34px;
    }


    .dc-message-area{

        padding:
            4px
            5px;
    }


    .dc-composer{

        min-height:
            calc(
                46px +
                var(--dc-safe-bottom)
            );

        padding-top:
            3px;

        padding-bottom:
            calc(
                3px +
                var(--dc-safe-bottom)
            );
    }


    .dc-composer textarea{

        min-height:37px;

        max-height:70px;

        padding:
            7px
            11px;

        line-height:20px;
    }


    .dc-attach-btn{

        width:36px;

        height:36px;

        flex-basis:36px;
    }


    .dc-send-btn{

        width:38px;

        height:38px;

        flex-basis:38px;
    }


    body .dc-message-area
    .dc-device-media-image-wrap,

    body .dc-message-area
    img.dc-device-media-image,

    body .dc-message-area
    .dc-device-media-video-wrap,

    body .dc-message-area
    video.dc-device-media-video{

        max-height:
            55vh !important;
    }


    body .dc-profile-avatar-wrap{

        width:82px !important;

        height:82px !important;
    }


    body .dc-profile-avatar{

        width:82px !important;

        height:82px !important;
    }


    body .dc-profile-scroll{

        padding-top:
            8px !important;
    }

}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media(min-width:1400px){

    :root{

        --dc-sidebar-width:
            390px;
    }


    .dc-message-area{

        padding-left:
            clamp(
                50px,
                6vw,
                105px
            );

        padding-right:
            clamp(
                50px,
                6vw,
                105px
            );
    }


    body .dc-message-bubble{

        max-width:
            min(
                64%,
                720px
            ) !important;
    }


    body .dc-message-area
    .dc-device-media-row
    .dc-device-media-bubble{

        max-width:
            360px !important;
    }

}


/* =========================================================
   5.0.1 COMPONENT SAFETY LAYER
========================================================= */

.dc-brand-logo,
.dc-chat-avatar,
.dc-conversation-avatar,
.dc-user-result-avatar,
.dc-message-avatar,
.dc-profile-avatar{
    position:relative !important;
    overflow:hidden !important;
    flex-shrink:0 !important;
    background-clip:padding-box !important;
}

.dc-brand-logo > img,
.dc-chat-avatar > img,
.dc-conversation-avatar > img,
.dc-user-result-avatar > img,
.dc-message-avatar > img,
.dc-profile-avatar > img{
    width:100% !important;
    height:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    max-width:100% !important;
    max-height:100% !important;
    display:block !important;
    object-fit:cover !important;
    object-position:center !important;
    border-radius:inherit !important;
}

#dcProfileBackdrop[hidden],
#dcProfileLoading[hidden],
#dcProfileContent[hidden],
#dcProfileEditSection[hidden],
#dcProfileCamera[hidden],
#dcProfilePhoneRow[hidden],
#dcProfileEmailRow[hidden]{
    display:none !important;
}

#dcProfilePanel,
#dcProfilePanel *{
    box-sizing:border-box;
}

@media(max-width:700px){

    #dcProfileBackdrop{
        height:var(--dc-visual-viewport-height, 100dvh) !important;
        max-height:var(--dc-visual-viewport-height, 100dvh) !important;
    }

    #dcProfilePanel{
        height:100% !important;
        max-height:100% !important;
    }
}


/* =========================================================
   5.0.3 CENTERED WHATSAPP-STYLE PROFILE SURFACE
========================================================= */

body #dcProfileBackdrop{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    inset:0 !important;
    width:100vw !important;
    height:var(--dc-visual-viewport-height, 100dvh) !important;
    padding:24px !important;
    background:rgba(11, 30, 35, .52) !important;
    backdrop-filter:blur(3px) !important;
    -webkit-backdrop-filter:blur(3px) !important;
}

body #dcProfileBackdrop[hidden]{
    display:none !important;
}

body #dcProfilePanel{
    width:min(720px, calc(100vw - 48px)) !important;
    min-width:0 !important;
    max-width:720px !important;
    height:min(780px, calc(var(--dc-visual-viewport-height, 100dvh) - 48px)) !important;
    max-height:calc(var(--dc-visual-viewport-height, 100dvh) - 48px) !important;
    margin:0 !important;
    border:1px solid rgba(255, 255, 255, .72) !important;
    border-radius:26px !important;
    background:#f0f2f5 !important;
    box-shadow:0 28px 80px rgba(8, 29, 35, .30) !important;
    overflow:hidden !important;
}

body #dcProfilePanel .dc-profile-head{
    min-height:92px !important;
    padding:22px 26px !important;
    align-items:center !important;
    background:#008069 !important;
    color:#fff !important;
}

body #dcProfilePanel .dc-profile-back{
    width:42px !important;
    height:42px !important;
    flex:0 0 42px !important;
    border:0 !important;
    background:transparent !important;
    color:#fff !important;
    font-size:28px !important;
}

body #dcProfilePanel .dc-profile-head-copy strong{
    color:#fff !important;
    font-size:20px !important;
}

body #dcProfilePanel .dc-profile-head-copy span{
    color:rgba(255, 255, 255, .82) !important;
}

body #dcProfilePanel .dc-profile-scroll{
    height:calc(100% - 92px) !important;
    padding:0 0 28px !important;
    background:#f0f2f5 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
}

body #dcProfilePanel .dc-profile-loading{
    min-height:280px !important;
    display:grid !important;
    place-items:center !important;
    color:#667781 !important;
}

body #dcProfilePanel .dc-profile-loading[hidden]{
    display:none !important;
}

body #dcProfilePanel .dc-profile-hero{
    margin:0 0 10px !important;
    padding:30px 24px 26px !important;
    border-radius:0 !important;
    background:#fff !important;
    box-shadow:0 1px 2px rgba(11, 20, 26, .08) !important;
}

body #dcProfilePanel .dc-profile-avatar{
    width:164px !important;
    height:164px !important;
    border:0 !important;
    box-shadow:0 6px 22px rgba(11, 20, 26, .16) !important;
}

body #dcProfilePanel .dc-profile-card,
body #dcProfilePanel .dc-profile-edit{
    margin:10px 0 0 !important;
    padding:22px 28px !important;
    border:0 !important;
    border-radius:0 !important;
    background:#fff !important;
    box-shadow:0 1px 2px rgba(11, 20, 26, .08) !important;
}

body #dcProfilePanel .dc-profile-field input,
body #dcProfilePanel .dc-profile-field textarea{
    border:0 !important;
    border-bottom:2px solid #d8e1e5 !important;
    border-radius:0 !important;
    background:#fff !important;
    box-shadow:none !important;
}

body #dcProfilePanel .dc-profile-field input:focus,
body #dcProfilePanel .dc-profile-field textarea:focus{
    border-bottom-color:#008069 !important;
    outline:none !important;
}

body #dcProfilePanel .dc-profile-actions{
    position:sticky !important;
    bottom:0 !important;
    z-index:2 !important;
    padding:14px 0 max(14px, env(safe-area-inset-bottom)) !important;
    background:linear-gradient(to top, #fff 78%, rgba(255,255,255,0)) !important;
}

body #dcProfilePanel .dc-profile-btn.is-primary{
    background:#008069 !important;
    color:#fff !important;
}

@media(max-width:700px){

    body #dcProfileBackdrop{
        width:100% !important;
        padding:0 !important;
        background:#f0f2f5 !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
    }

    body #dcProfilePanel{
        width:100% !important;
        max-width:none !important;
        height:100% !important;
        max-height:100% !important;
        border:0 !important;
        border-radius:0 !important;
        box-shadow:none !important;
    }

    body #dcProfilePanel .dc-profile-head{
        min-height:72px !important;
        padding:max(12px, env(safe-area-inset-top)) 14px 12px !important;
        align-items:center !important;
    }

    body #dcProfilePanel .dc-profile-scroll{
        height:calc(100% - 72px) !important;
    }

    body #dcProfilePanel .dc-profile-avatar{
        width:136px !important;
        height:136px !important;
    }

    body #dcProfilePanel .dc-profile-card,
    body #dcProfilePanel .dc-profile-edit{
        padding:20px 18px !important;
    }
}


/* =========================================================
   5.0.4 PRESENCE / LAST ACTIVE
========================================================= */

.dc-conversation-avatar.is-online::after,
.dc-chat-avatar.is-online::after{
    content:"";
    position:absolute;
    right:2px;
    bottom:2px;
    z-index:3;
    width:12px;
    height:12px;
    border:2px solid #fff;
    border-radius:50%;
    background:#25d366;
    box-shadow:0 1px 5px rgba(12, 95, 64, .35);
    pointer-events:none;
}

.dc-chat-avatar.is-online::after{
    width:14px;
    height:14px;
}

.dc-conversation-preview{
    min-width:0;
}

.dc-conversation-activity{
    color:#667781;
    font-size:11px;
    font-weight:650;
    white-space:nowrap;
}

.dc-conversation-activity.is-online,
#dcChatPresence.is-online{
    color:#128c7e !important;
}

#dcChatPresence::before{
    content:"";
    display:inline-block;
    width:7px;
    height:7px;
    margin-right:6px;
    border-radius:50%;
    background:#94a3a8;
    vertical-align:1px;
}

#dcChatPresence.is-online::before,
#dcChatPresence.is-typing::before{
    background:#25d366;
    box-shadow:0 0 0 3px rgba(37, 211, 102, .14);
}

#dcChatPresence.is-away::before{
    background:#f5a623;
}

@media(max-width:480px){

    .dc-conversation-activity{
        font-size:10px;
    }
}


/* =========================================================
   5.0.5 STABLE ACTIVE-CALL CONTROLS
========================================================= */

#dcIncomingCallOverlay[hidden],
#dcCallScreen[hidden],
#dcCallMiniBar[hidden],
#dcLocalVideoWrap[hidden],
#dcCallErrorSheet[hidden]{
    display:none !important;
}

#dcCallScreen:not([hidden]){
    display:block !important;
}

#dcCallScreen .dc-call-stage{
    z-index:1;
}

#dcCallScreen .dc-call-topbar{
    position:absolute !important;
    inset:0 0 auto !important;
    z-index:20 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    min-height:78px !important;
    padding:max(18px, env(safe-area-inset-top)) 22px 16px !important;
    background:linear-gradient(to bottom, rgba(2,14,18,.78), transparent) !important;
    color:#fff !important;
    pointer-events:auto !important;
}

#dcCallScreen .dc-call-topbar-info{
    display:grid !important;
    gap:3px !important;
}

#dcCallScreen .dc-call-topbar-info strong{
    color:#fff !important;
    font-size:17px !important;
}

#dcCallScreen .dc-call-topbar-info span{
    color:rgba(255,255,255,.72) !important;
    font-size:12px !important;
}

#dcCallMinimizeButton{
    width:44px !important;
    height:44px !important;
    border:1px solid rgba(255,255,255,.20) !important;
    border-radius:50% !important;
    background:rgba(255,255,255,.14) !important;
    color:#fff !important;
    font-size:22px !important;
    cursor:pointer !important;
}

#dcCallScreen .dc-call-controls{
    position:absolute !important;
    left:50% !important;
    bottom:max(22px, env(safe-area-inset-bottom)) !important;
    z-index:50 !important;
    display:flex !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:14px !important;
    width:min(520px, calc(100vw - 24px)) !important;
    min-height:94px !important;
    padding:15px 14px !important;
    border:1px solid rgba(255,255,255,.18) !important;
    border-radius:28px !important;
    background:rgba(5,25,31,.78) !important;
    backdrop-filter:blur(18px) !important;
    -webkit-backdrop-filter:blur(18px) !important;
    box-shadow:0 18px 48px rgba(0,0,0,.34) !important;
    transform:translateX(-50%) !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
}

#dcCallScreen .dc-call-control{
    display:grid !important;
    justify-items:center !important;
    gap:7px !important;
    min-width:72px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#fff !important;
    cursor:pointer !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
    touch-action:manipulation !important;
}

#dcCallScreen .dc-call-control-icon{
    display:grid !important;
    place-items:center !important;
    width:58px !important;
    height:58px !important;
    border-radius:50% !important;
    background:rgba(255,255,255,.17) !important;
    color:#fff !important;
    font-size:23px !important;
    box-shadow:0 8px 22px rgba(0,0,0,.24) !important;
}

#dcCallScreen .dc-call-control[aria-pressed="true"] .dc-call-control-icon{
    background:#fff !important;
    color:#17343c !important;
}

#dcCallScreen #dcEndCallButton,
#dcCallScreen #dcEndCallButton *{
    visibility:visible !important;
    opacity:1 !important;
}

#dcCallScreen #dcEndCallButton .dc-call-control-icon{
    background:#ef4444 !important;
    color:#fff !important;
    transform:rotate(135deg) !important;
}

#dcCallScreen.is-recovered-call .dc-call-controls{
    width:min(340px, calc(100vw - 28px)) !important;
}

#dcCallScreen.is-recovered-call .dc-call-control:not(#dcEndCallButton):not(#dcCallReconnectButton){
    display:none !important;
}

#dcCallScreen:not(.is-recovered-call) #dcCallReconnectButton{
    display:none !important;
}

#dcCallScreen.is-recovered-call #dcCallReconnectButton{
    display:grid !important;
    min-width:120px !important;
}

#dcCallScreen.is-recovered-call #dcCallReconnectButton .dc-call-control-icon{
    background:#16a085 !important;
    color:#fff !important;
}

#dcCallScreen.is-recovered-call #dcEndCallButton{
    display:grid !important;
    min-width:120px !important;
}

#dcCallScreen.is-recovered-call #dcCallStatusText{
    max-width:420px !important;
    color:#ffd9d9 !important;
    line-height:1.5 !important;
}

#dcLocalVideoWrap{
    position:absolute !important;
    top:max(86px, calc(env(safe-area-inset-top) + 68px)) !important;
    right:16px !important;
    z-index:15 !important;
    width:min(180px, 28vw) !important;
    aspect-ratio:3/4 !important;
    overflow:hidden !important;
    border:2px solid rgba(255,255,255,.72) !important;
    border-radius:20px !important;
    background:#07171d !important;
    box-shadow:0 16px 38px rgba(0,0,0,.35) !important;
}

#dcLocalVideo{
    width:100% !important;
    height:100% !important;
    display:block !important;
    object-fit:cover !important;
    transform:scaleX(-1);
}

#dcLocalVideoWrap.is-rear-camera #dcLocalVideo{
    transform:none;
}

#dcCallSwitchCameraButton[hidden]{
    display:none !important;
}

.dc-incoming-call-card{
    width:min(400px, calc(100vw - 28px)) !important;
    padding:32px 26px 28px !important;
    border:1px solid rgba(255,255,255,.25) !important;
    border-radius:28px !important;
    background:linear-gradient(155deg, #123b43, #071d23) !important;
    color:#fff !important;
    text-align:center !important;
    box-shadow:0 28px 80px rgba(0,0,0,.42) !important;
}

.dc-incoming-call-actions{
    display:flex !important;
    justify-content:center !important;
    gap:48px !important;
    margin-top:30px !important;
}

.dc-call-round-btn{
    display:grid !important;
    justify-items:center !important;
    gap:8px !important;
    border:0 !important;
    background:transparent !important;
    color:#fff !important;
    cursor:pointer !important;
}

.dc-call-round-btn > span{
    display:grid !important;
    place-items:center !important;
    width:60px !important;
    height:60px !important;
    border-radius:50% !important;
    font-size:24px !important;
}

.dc-call-round-btn.is-answer > span{
    background:#25d366 !important;
}

.dc-call-round-btn.is-reject > span{
    background:#ef4444 !important;
    transform:rotate(135deg) !important;
}

@media(max-width:560px){
    #dcCallScreen .dc-call-controls{
        gap:5px !important;
        padding:13px 6px !important;
        border-radius:24px !important;
    }

    #dcCallScreen .dc-call-control{
        min-width:64px !important;
    }

    #dcCallScreen .dc-call-control-icon{
        width:52px !important;
        height:52px !important;
    }

    #dcLocalVideoWrap{
        right:10px !important;
        width:108px !important;
        border-radius:15px !important;
    }
}


/* =========================================================
   5.1.0 CALL HISTORY
========================================================= */

.dc-call-history-backdrop[hidden]{
    display:none !important;
}

.dc-call-history-backdrop{
    position:fixed;
    inset:0;
    z-index:7600;
    display:grid;
    place-items:center;
    padding:20px;
    background:rgba(5,25,31,.62);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
}

body.dc-call-history-open{
    overflow:hidden;
}

.dc-call-history-card{
    width:min(520px, 100%);
    max-height:min(760px, calc(100dvh - 40px));
    display:flex;
    flex-direction:column;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.65);
    border-radius:26px;
    background:#fff;
    box-shadow:0 30px 90px rgba(0,0,0,.32);
}

.dc-call-history-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:20px 22px;
    border-bottom:1px solid #e4ecee;
    background:linear-gradient(135deg,#078b7b,#075f59);
    color:#fff;
}

.dc-call-history-head h2,
.dc-call-history-head p{
    margin:0;
    color:inherit;
}

.dc-call-history-head h2{
    font-size:21px;
    font-weight:900;
}

.dc-call-history-head p{
    margin-top:4px;
    font-size:12px;
    opacity:.8;
}

#dcCallHistoryClose{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border:1px solid rgba(255,255,255,.25);
    border-radius:50%;
    background:rgba(255,255,255,.14);
    color:#fff;
    font-size:26px;
    cursor:pointer;
}

.dc-call-history-list{
    min-height:220px;
    overflow:auto;
    padding:8px 12px 16px;
    background:#f7faf9;
}

.dc-call-history-state{
    display:grid;
    place-items:center;
    min-height:220px;
    color:#71858c;
    text-align:center;
}

.dc-call-history-item{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:13px 10px;
    border-bottom:1px solid #e5ecee;
}

.dc-call-history-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e1f5ef;
    color:#087f72;
    font-size:20px;
}

.dc-call-history-item.is-missed .dc-call-history-icon{
    background:#fee9e9;
    color:#d43d47;
}

.dc-call-history-copy{
    min-width:0;
}

.dc-call-history-copy strong,
.dc-call-history-copy span{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.dc-call-history-copy strong{
    color:#18343d;
    font-size:14px;
}

.dc-call-history-copy span,
.dc-call-history-meta{
    margin-top:4px;
    color:#71858c;
    font-size:11px;
}

.dc-call-history-meta{
    text-align:right;
    white-space:nowrap;
}

@media(max-width:560px){
    .dc-call-history-backdrop{
        align-items:end;
        padding:0;
    }

    .dc-call-history-card{
        width:100%;
        max-height:88dvh;
        border-radius:26px 26px 0 0;
    }
}


/* =========================================================
   TOUCH
========================================================= */

@media(hover:none){

    .dc-icon-btn,
    .dc-back-btn,
    .dc-attach-btn,
    .dc-send-btn{

        min-width:38px;

        min-height:38px;
    }


    .dc-message-bubble:hover{

        box-shadow:
            0 1px 2px
            rgba(0,0,0,.075);
    }

}


/* =========================================================
   5.3.0 WHATSAPP-STYLE GROUP CREATION
========================================================= */

.dc-new-chat-wrap{gap:8px;}
.dc-new-group-btn{background:#e6f7f2;color:#087f72;}
.dc-group-modal[hidden]{display:none!important;}
.dc-group-modal{position:fixed;inset:0;z-index:7800;display:grid;place-items:center;padding:20px;background:rgba(5,25,31,.66);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);}
body.dc-group-open{overflow:hidden;}
.dc-group-card{width:min(600px,100%);max-height:min(820px,calc(100dvh - 40px));display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.55);border-radius:28px;background:#f7faf9;box-shadow:0 32px 100px rgba(0,0,0,.36);}
.dc-group-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;background:linear-gradient(135deg,#078b7b,#075f59);color:#fff;}
.dc-group-head h2,.dc-group-head p{margin:0;color:inherit;}.dc-group-head h2{font-size:22px;font-weight:900;}.dc-group-head p{margin-top:4px;font-size:12px;opacity:.82;}
#dcGroupClose{width:42px;height:42px;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:26px;cursor:pointer;}
.dc-group-body{display:flex;flex-direction:column;gap:13px;min-height:0;padding:18px 20px 20px;overflow:auto;}
.dc-group-field{display:grid;gap:6px;color:#39545c;font-size:12px;font-weight:800;}.dc-group-field small{font-weight:500;color:#71858c;}
.dc-group-field input,.dc-group-field textarea,.dc-group-search-row input{width:100%;box-sizing:border-box;border:1px solid #ccdadc;border-radius:14px;background:#fff;color:#18343d;font:inherit;font-size:14px;outline:none;}
.dc-group-field input,.dc-group-search-row input{height:48px;padding:0 14px;}.dc-group-field textarea{padding:12px 14px;resize:vertical;}
.dc-group-field input:focus,.dc-group-field textarea:focus,.dc-group-search-row input:focus{border-color:#139b89;box-shadow:0 0 0 3px rgba(19,155,137,.12);}
.dc-group-selected{display:flex;flex-wrap:wrap;gap:7px;min-height:8px;}.dc-group-chip{border:0;border-radius:999px;padding:8px 11px;background:#dff4ee;color:#087f72;font-size:12px;font-weight:800;cursor:pointer;}
.dc-group-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}.dc-group-search-row button,.dc-group-create{border:0;border-radius:14px;background:#0a8f80;color:#fff;font-weight:900;cursor:pointer;}.dc-group-search-row button{padding:0 18px;}.dc-group-create{min-height:50px;font-size:14px;}.dc-group-create:disabled{opacity:.5;cursor:not-allowed;}
.dc-group-state{color:#71858c;font-size:12px;}.dc-group-results{display:grid;max-height:310px;overflow:auto;border:1px solid #dce7e8;border-radius:16px;background:#fff;}
.dc-group-user{display:grid;grid-template-columns:44px minmax(0,1fr) 34px;align-items:center;gap:11px;padding:10px 12px;border:0;border-bottom:1px solid #edf1f2;background:#fff;text-align:left;cursor:pointer;}.dc-group-user:last-child{border-bottom:0;}.dc-group-user.is-selected{background:#edfaf6;}
.dc-group-user-avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#dceff0;color:#17646c;font-weight:900;}.dc-group-user-copy{min-width:0;}.dc-group-user-copy strong,.dc-group-user-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.dc-group-user-copy strong{color:#18343d;font-size:13px;}.dc-group-user-copy small{margin-top:3px;color:#71858c;font-size:11px;}.dc-group-user-mark{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#e7f3f0;color:#078b7b;font-weight:900;}
.dc-group-user-checkbox{width:19px;height:19px;margin:0;accent-color:#078b7b;cursor:pointer;}
.dc-group-photo-picker{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:14px;padding:12px;border:1px dashed #96cfc5;border-radius:17px;background:#edfaf6;color:#24464e;cursor:pointer;}
.dc-group-photo-picker strong,.dc-group-photo-picker small{display:block;}.dc-group-photo-picker small{margin-top:4px;color:#71858c;font-size:11px;}
.dc-group-photo-preview{width:70px;height:70px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#13a28f,#08766c);color:#fff;font-size:30px;box-shadow:0 7px 20px rgba(8,118,108,.22);}
.dc-group-photo-preview img{width:100%;height:100%;display:block;object-fit:cover;}
.dc-conversation.is-group-conversation{margin:7px 8px;width:calc(100% - 16px);border:1px solid #b9e2da;border-left:5px solid #0a8f80;border-radius:17px;background:linear-gradient(110deg,#e7f8f4 0%,#f8fcfb 72%);box-shadow:0 5px 14px rgba(7,112,101,.08);}
.dc-conversation.is-group-conversation:hover{background:linear-gradient(110deg,#dcf5ef,#f2fbf8);transform:translateY(-1px);}
.dc-conversation.is-group-conversation.is-active{border-color:#0a8f80;background:linear-gradient(110deg,#d5f2ec,#eefaf7);box-shadow:0 7px 20px rgba(7,112,101,.16);}
.dc-conversation.is-group-conversation .dc-group-list-badge{margin-left:8px;padding:3px 8px;background:#08796e;color:#fff;font-size:8px;box-shadow:0 2px 7px rgba(7,112,101,.2);}
.dc-chat-avatar.is-group-avatar{background:linear-gradient(135deg,#13a18f,#08746b);color:#fff;box-shadow:0 0 0 3px #d9f2ec;}
.dc-chat-avatar.is-group-avatar::after{display:none!important;}
.dc-conversation-avatar.is-group-avatar{display:grid!important;place-items:center!important;background:linear-gradient(135deg,#0fa18f,#086d67)!important;color:#fff!important;font-size:21px!important;}
.dc-conversation-avatar.is-group-avatar img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;}
.dc-group-list-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 6px;border-radius:999px;background:#dff5ef;color:#08776b;font-size:8px;font-weight:900;letter-spacing:.6px;vertical-align:middle;}
.dc-group-body > .dc-group-results{order:20!important;display:grid!important;visibility:visible!important;opacity:1!important;width:100%!important;min-height:72px!important;max-height:280px!important;overflow-y:auto!important;overflow-x:hidden!important;flex:0 0 auto!important;position:relative!important;z-index:2!important;}
.dc-group-body > .dc-group-results.has-results{min-height:76px!important;}
.dc-group-results > .dc-group-user{display:grid!important;visibility:visible!important;opacity:1!important;width:100%!important;min-height:68px!important;position:relative!important;z-index:3!important;pointer-events:auto!important;}
.dc-group-results .dc-group-user-copy,.dc-group-results .dc-group-user-avatar,.dc-group-results .dc-group-user-mark,.dc-group-results .dc-group-user-checkbox{visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
.dc-group-body > .dc-group-create{order:30!important;flex:0 0 50px!important;position:relative!important;z-index:1!important;margin-top:2px!important;}
@media(max-width:600px){.dc-group-modal{align-items:end;padding:0;}.dc-group-card{width:100%;max-height:94dvh;border-radius:26px 26px 0 0;}.dc-group-body{padding:15px;}}

/* Group profile and member management */
.dc-group-manage-card{width:min(620px,calc(100vw - 28px));}
.dc-group-manage-card .dc-group-body{display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;}
.dc-group-manage-card .dc-group-body>*{order:initial!important;flex:0 0 auto!important;position:static!important;inset:auto!important;}
.dc-group-manage-photo{display:flex;align-items:center;gap:16px;padding:14px;border:1px solid #dce8e8;border-radius:18px;background:#fff;}
.dc-group-manage-photo>img{width:82px;height:82px;flex:0 0 82px;display:block;object-fit:cover;border-radius:50%;background:linear-gradient(135deg,#12a08d,#08736a);color:#fff;}
.dc-group-manage-photo>div{display:flex;flex-wrap:wrap;gap:8px;}
.dc-group-action-file,.dc-group-manage-photo button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid #c8dddd;border-radius:12px;background:#f8fbfb;color:#24444b;font:inherit;font-size:12px;font-weight:800;cursor:pointer;}
.dc-group-manage-photo button{color:#b92c39;border-color:#f0c8cc;background:#fff7f8;}
.dc-group-manage-state{min-height:18px;color:#627d84;font-size:12px;}
.dc-group-members-title{display:flex;align-items:center;justify-content:space-between;color:#183840;font-size:13px;font-weight:900;}
.dc-group-members-title span{padding:3px 8px;border-radius:999px;background:#e4f5f1;color:#08796e;font-size:11px;}
.dc-group-members{display:grid!important;visibility:visible!important;opacity:1!important;min-height:68px!important;max-height:280px!important;overflow-y:auto!important;overflow-x:hidden!important;border:1px solid #dce8e8;border-radius:17px;background:#fff;position:relative!important;z-index:2!important;}
.dc-group-member{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:66px;padding:9px 12px;border-bottom:1px solid #edf2f2;}
.dc-group-member:last-child{border-bottom:0;}
.dc-group-member-avatar{width:46px;height:46px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#dff1ef;color:#116a69;font-weight:900;}
.dc-group-member-avatar img{width:100%;height:100%;display:block;object-fit:cover;}
.dc-group-member-copy{min-width:0;}.dc-group-member-copy strong,.dc-group-member-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.dc-group-member-copy strong{color:#17353d;font-size:13px;}.dc-group-member-copy small{margin-top:3px;color:#71858c;font-size:11px;text-transform:capitalize;}
.dc-group-member-remove{min-height:36px;padding:0 12px;border:1px solid #f0c8cc;border-radius:11px;background:#fff7f8;color:#b92c39;font:inherit;font-size:11px;font-weight:900;cursor:pointer;}
.dc-group-save,.dc-group-delete{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;position:static!important;flex:0 0 48px!important;border-radius:14px;font:inherit;font-weight:900;cursor:pointer;z-index:1!important;}
.dc-group-save{border:0;background:#0a8f80;color:#fff;}
.dc-group-save:disabled{opacity:.55;cursor:not-allowed;}
.dc-group-delete{border:1px solid #efbcc2;background:#fff5f6;color:#b51f31;}
.dc-group-add-members{display:grid;gap:9px;padding:13px;border:1px solid #cfe3df;border-radius:17px;background:#f2faf8;}
.dc-group-add-members[hidden]{display:none!important;}
.dc-group-add-members>strong{color:#173b41;font-size:13px;}
.dc-group-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}
.dc-group-add-row input{width:100%;height:44px;padding:0 13px;border:1px solid #c9dbdc;border-radius:12px;background:#fff;color:#18343d;font:inherit;font-size:13px;outline:none;}
.dc-group-add-row input:focus{border-color:#139b89;box-shadow:0 0 0 3px rgba(19,155,137,.12);}
.dc-group-add-row button,.dc-group-add-user>button{border:0;border-radius:12px;background:#0a8f80;color:#fff;font:inherit;font-size:12px;font-weight:900;cursor:pointer;}
.dc-group-add-row button{padding:0 16px;}.dc-group-add-row button:disabled,.dc-group-add-user>button:disabled{opacity:.55;}
.dc-group-add-results{display:grid;max-height:220px;overflow:auto;color:#6c8187;font-size:12px;}
.dc-group-add-user{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border-bottom:1px solid #deebe8;background:#fff;}.dc-group-add-user:last-child{border-bottom:0;}
.dc-group-add-user>span{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#dff1ed;color:#096c65;font-weight:900;}
.dc-group-add-user>div{min-width:0;}.dc-group-add-user strong,.dc-group-add-user small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.dc-group-add-user strong{color:#193840;font-size:12px;}.dc-group-add-user small{margin-top:2px;color:#71858c;font-size:10px;}
.dc-group-add-user>button{min-width:58px;min-height:36px;padding:0 12px;}
#dcManageGroupButton{border-radius:50%;}
@media(max-width:600px){.dc-group-manage-card{width:100%;}.dc-group-manage-photo>img{width:70px;height:70px;flex-basis:70px;}.dc-group-member{grid-template-columns:42px minmax(0,1fr) auto;padding-inline:9px;}.dc-group-member-avatar{width:42px;height:42px;}}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{

        scroll-behavior:
            auto !important;

        transition:
            none !important;

        animation:
            none !important;
    }

}
