@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

@import url("https://fonts.googleapis.com/css?family=Lato:400,400i|Montserrat:400,400i&subset=latin-ext");

@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');

html {
    margin: 0em;
    padding: 0;
    height: 100%;
    width: 100%;
}
body {
    font-family: 'Lato', "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols", sans-serif !important;
}
body {
    background-color: white;
}
body {
    background: url("../default_images/backsystem.png") 0% 0% / contain repeat rgb(1, 83, 167);
    animation: przeplyw 13000s linear infinite;
}

/* Frame and general styling only - header uses system defaults */

/* Chat: Grid layout for proper RTL ordering and text wrap */
.ch_logs {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: start !important;
    line-height: 1.4 !important;
    gap: 3px !important;
}
.chat_avatar {
    grid-row: 1 / -1 !important;
    width: 20px !important;
}
.cavatar {
    width: 20px !important;
    height: 20px !important;
}
.chat_rank {
    height: 14px !important;
}
.my_text {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 3px !important;
    min-width: 0 !important;
}
.my_text .btable {
    display: contents !important;
}
.cname {
    order: 1 !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    flex-shrink: 0 !important;
}
.cname .username {
    font-size: 14px !important;
}
.log_content {
    order: 2 !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.chat_message {
    display: inline !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
    word-break: break-word !important;
    white-space: normal !important;
    font-size: 14px !important;
}
.mbubble {
    padding: 2px 6px !important;
    line-height: 1.4 !important;
    display: inline !important;
}
.cdate {
    order: 3 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-inline-start: 3px !important;
}
.cclear {
    order: 4 !important;
    flex-shrink: 0 !important;
    margin-inline-start: 3px !important;
}
.cclear .fa-ellipsis-h:before {
    content: "\f107" !important;
}

/* Desktop: Make all header icons much larger */
@media screen and (min-width: 769px) {
    .head_option {
        width: 60px !important;
        font-size: 28px !important;
    }
    .head_option i,
    .head_option .fa,
    .head_option .fa-solid,
    .head_option .fa-regular,
    .head_option .fa-bell,
    .head_option .fa-envelope,
    .head_option .fa-flag,
    .head_option .fa-users,
    .head_option .fa-user-friends {
        font-size: 28px !important;
    }
}

.top_background, .background_header, .chat_head, .chat_footer, .panel_top, .emo_head, .modal_top {
    background: hsl(210.43deg 99.24% 32.87%);
    color: #fff;
}
#main_logo {
    height: 60px;
    padding: 5px;
    width: auto;
}
#global_chat {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    border-left: 1px solid #FF6666;
    border-right: 1px solid #FF6666;
    border-bottom: 1px solid #FF6666;
    margin-left: 1%;
    border-top: 1px solid #FF6666;
    width: 98%;
}
::-webkit-scrollbar {
  width: 5px;
  height: 0px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
::-webkit-scrollbar-thumb {
  background: hsl(210.43deg 99.24% 32.87%); 
}

::-webkit-scrollbar-thumb:hover {
  background: #6DA7FF; 
}
.chat_head, .chat_footer {
    background: none;
}

.room_element3 {
    position: relative;
    display: table;
    padding: 5px 10px;
    padding-right: 15px;
    margin-left: 3px;
    table-layout: fixed;
    z-index: 13;
    float: left;
    cursor: pointer;
    margin-top: 2px!important;
    font-size: 14px;
    background-color: hsl(210.43deg 99.24% 32.87%);
    color: white;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.room_element3 {
    border: 1px solid #FF6666;
    top: 1px;
}

@media screen and (max-width: 768px) {
        #main_logo {
                height: 40px;
                padding: 0px;
                margin: 5px 0;
        }
        .head_option {
                font-size: 16px !important;
                min-width: 30px;
                height: 30px;
                padding: 0 5px !important;
        }
        #head_options {
                gap: 2px;
        }
        .cdate {
                font-size: 10px !important;
        }
        .cclear {
                margin-left: 4px !important;
                margin-right: 4px !important;
        }
}
.avatar_menu {
    width: 40px;
    height: 40px;
}
.top_status {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: 4px;
    left: 26px;
    border: 1px solid #fff;
    background: #fff;
}
#my_menu {
    width: 100%;
    height: 50px;
    display: table;
    table-layout: fixed;
}
.chat_head, .chat_footer {
    background: none;
}
.bfoot {
    background: none;
    color: #fff;
}

input, textarea, .post_input_container {
    background: #f2f2f2;
    border: 1px solid #e6e6e6;
    color: #666;
}
#content, #message_content {
    width: 100%;
    height: 100%;
    padding: 0;
    padding: 0 12px;
    float: left;
    font-size: 16px;
    border-radius: 5px;
}
textarea, input {
    resize: none;
    font-size: 14px;
    font-family: sans-serif, "trebuchet ms", "lucida grande",
    "lucida sans unicode", arial, helvetica, sans-serif;
}
.td_input {
    height: 100%;
    display: table-cell;
    padding: 0 3px;
}

.default_btn {
    background: hsl(210.43deg 99.24% 32.87%);
    color: #fff;
}
button {
    border: none;
    outline: none !important;
    cursor: pointer;
}
.back_input {
    background: #fff;
    border-top: 0;
}
#main_input {
    position: relative;
    width: calc(100% + 2px);
    background-color: white;
    border-top: 1px solid #ededed;
    padding-top: 8px;
    height: 45px;
}
#chat_main_menu, #status_menu, #report_menu, #notification_menu, #bank_menu, #friends_menu, #private_menu {
    top: 80px;
}
#chat_main_menu{
        left:0;
        right:none;
}
.right-toggle {
    position: absolute;
    top: 45%;
    right: 280px;
    width: 30px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 10;
    cursor: pointer;
    transform: translateY(-44%);
    background: #fff;
    color: silver;
    border: 1px solid #ededed;
    border-right: 0;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    box-shadow: rgba(0,0,0,.5) 0 0 0 , rgba(0,0,0,.1) 0 1px 6px;
}
#chat_right[style*="display: none"]+.right-toggle, #chat_right:not([style*=display])+.right-toggle {
    right: 0;
}
.toggler-wrapper {
        margin-top: -4px;
        display: inline-block;
        width: 45px;
        height: 25px;
        cursor: pointer;
        position: absolute;
}

.toggler-wrapper input[type="checkbox"] {
        display: none;
}

.toggler-wrapper input[type="checkbox"]:checked+.toggler-slider {
        background-color: #eb4f37;
}

.toggler-wrapper .toggler-slider {
        background-color: #ccc;
        position: absolute;
        border-radius: 100px;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-transition: all 300ms ease;
        transition: all 300ms ease;
}

.toggler-wrapper .toggler-knob {
        position: absolute;
        -webkit-transition: all 300ms ease;
        transition: all 300ms ease;
}

.toggler-wrapper.style-21 input[type="checkbox"]:checked+.toggler-slider .toggler-knob {
        left: calc(100% - 19px - 3px);
}

.toggler-wrapper.style-21 .toggler-slider {
        background-color: #44cc66;
}

.toggler-wrapper.style-21 .toggler-knob {
        width: calc(25px - 6px);
        height: calc(25px - 6px);
        border-radius: 50%;
        left: 3px;
        top: 3px;
        background-color: #fff;
        background-repeat: no-repeat;
        background-position: center;
}


.nightDay {
    position: relative;
    left: 10px;
    bottom: -15px;
    color: white;
    font-size: 12px;
    max-width: 40%;
}


/*custom_log*/

.ch_logs {
    padding: 7px;
    word-wrap: break-word;
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    cursor: pointer;
    line-height: 1.4 !important;
    align-items: start !important;
    gap: 3px !important;
}

.cavatar {
    height: 20px;
    width: 20px;
}
.chat_avatar {
    width: 20px;
    vertical-align: middle;
    position: relative;
    flex-shrink: 0 !important;
}
.cdate{
        width: auto;
        flex-shrink: 0;
}
.topic_log {
    border: 1px solid green;
    border-radius: 12px;
    background: #c5ffe3!important;
    color: #0d261a;
}
.tpicon {
    height: 20px;
    width: 20px;
}

#status_menu{
        left: 0;
}


.panel_bar {
    color: #fff !important;
    border-radius: 12px;
    border-bottom: 2px solid hsl(210.43deg 99.24% 32.87%)!important;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#user_count {
    background: #0C2D48;
}
.back_theme {
    background: hsl(210.43deg 99.24% 32.87%);
    color: #fff;
}
.custom_header{
        display: flex;align-items: stretch;justify-content: space-between;width: 51%;
}
@media screen and (min-width: 900px) {
    .custom_header {
        width: 28%;
    }
        #chat_main_menu, #status_menu, #report_menu, #notification_menu, #bank_menu, #friends_menu, #private_menu {
                top: 80px;
        }
        .head_option {
                font-size: 24px !important;
        }
        .head_notify {
                top: 0;
                left: 22px;
        }
}
.cmain_item{
        width: 65px;
}
@media only screen and (max-width: 4000px) and (min-width: 1701px) {


         .avstaty {
        width: 50%!important;
        margin-left: 8%!important;

    }}

    @media only screen and (max-width: 1700px) and (min-width: 1000px) {

      .zajawka {
        display: none;
        }

         .avstaty {
        width: 60%!important;
        margin-left: 8%!important;
       margin-top: 50px!important;
      -webkit-transform: scale(0.60);
      -webkit-transform-origin: 0 0;

    }}

    @media only screen and (max-width: 999px) and (min-width: 1px) {

      .zajawka {
        display: none;
        }

         .avstaty {
        display:none;
        width: 60%!important;
        margin-left: 0%!important;
       margin-top: 110px!important;
      -webkit-transform: scale(0.50);
      -webkit-transform-origin: 0 0;

    }}

  @media screen and (max-width: 700px) {
    .avnick {
      font-size: 9px;
      display: none;
    }
                                       
}
.bselected {
        padding: 1px 6px;
    display: table-cell;
    vertical-align: middle;
    width: auto;
    text-align: center;
    font-size: 15px;
    cursor: pointer;
    border-radius: 4px;
}
.emo_head .bselected{
        width: 40px;
        padding:0;
}
.customusername {
    font-size: 115%;
    margin-right: 4px;
}
.ch_logs, .other_logs {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-4px);
    }
}
.emo_chat{height: 20px;}
.log2 {
    background: #f8f8f8;
}
.cname {
    display: -webkit-box;
    vertical-align: middle;
    align-items: center;
}
.username{
        margin-right: 5px;
}
.back_ptop {
    background: hsl(210.43deg 99.24% 32.87%);
    color: #fff;
}
#private_send {
    width: 100%;
    height: 100% !important;
    cursor: pointer;
}
.pboxed, .pfull{
        bottom: 0;
}
.background_stream {
    background-color: hsl(210.43deg 99.24% 32.87%);
}
.iccam{
        width: 45px;
}

#left_panel_bar{
    justify-content: space-between;
    align-items: center;
}
.head_notify {
    position: absolute;
    top: 0;
    right: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50px;
    display: none;
}
 #bank_menu{
    left: 0;
}
.image-container {
    position: absolute;
    right: 20px;
    margin: 0px;
    z-index: 998;
    text-align: right;
    top: 14px;
}
.custom_rooms > span:only-child .close {
    display: none;
}
.active_room{
        background-color: rgb(255, 102, 102); display: block;
}
.room_element3 {
    flex-shrink: 0;
}
.room_list_custom {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 10px;
}
.room_list_custom::-webkit-scrollbar {
    height: 8px;
}
.room_list_custom::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    border-radius: 10px;
}

.room_list_custom::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}
#chat_right[style*="display: none"]+.right-toggle,#chat_right:not([style*=display])+.right-toggle {
    right: 0
}

#chat_right[style*="display: none"]+.right-toggle .fa::before,#chat_right:not([style*=display])+.right-toggle .fa::before {
    content: "\f060"
}
#room_list_custom {
    margin-left: 10px;
    margin-right: 10px;
    display: flex;
    overflow-x: auto;
    padding-bottom: 0;
    width: 100%;
}
#my_menu{
        margin-left: 12px;
}
@media screen and (min-width: 769px) {
        #chat_right {

        }
        .right-toggle {
                right: 415px;
        }
        #room_list_custom {
                margin-left: 26px;
        }
}
.panel_selected {
    border-radius: 4px;
}
.panel_bar_item, .panel_option, .side_bar_item {
    padding: 1px 6px;
    display: table-cell;
    vertical-align: middle;
    width: auto;
    text-align: center;
    font-size: 15px;
    cursor: pointer;
}


/* התאמת הפאנל הימני לגרסת נייד בלבד */
@media screen and (max-width: 768px) {

    #chat_right {
        position: fixed !important;  /* הצמדה למסך */
        right: 0 !important;         /* מוצמד לצד ימין */
        bottom: 0 !important;        /* עד החלק התחתון */
        width: 240px !important;     /* רוחב צר יותר */
        max-width: 80% !important;   /* התאמה למסכים קטנים מאוד */
        background: #ffffff;
        z-index: 9999 !important;
        overflow-y: auto;            /* גלילה פנימית */
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
        border-left: 1px solid #e6e6e6;
    }

    /* התאמת אזור הצ'אט כדי שלא יוסתר */
    #chat_left {
        margin-right: 240px; /* זהה לרוחב הפאנל */
    }
}
/* 2026-08-21: white chat and user list inside blue frame */
#show_chat { background: #ffffff !important; color: #1d2733 !important; }
#show_chat .chat_log, #show_chat .my_text { color: #1d2733 !important; }
#chat_right_data, #container_user { background: #ffffff !important; color: #1d2733 !important; }
#chat_right_data .user_item, #chat_right_data .user_item_data, #chat_right_data .offline_user, #chat_right_data .ag_user_meta { color: #1d2733 !important; }

/* 2026-08-21: visible default nicknames and white default profile */
#chat_right_data .username, #show_chat .username { color: #1d2733; }
#av_menu, #av_menu .back_menu, #av_menu .avtop, #av_menu .avstaff { background: #ffffff !important; }
#av_menu .avusername, #av_menu .gentext, #av_menu .avitem { color: #1d2733; }

/* 2026-08-21: blue default bubble; personal inline bubble colors stay unchanged */

/* White full profile and news modal */
#large_modal_in, #large_modal_content, #large_modal_content .modal_zone, #large_modal_content .profile_wrap, #large_modal_content .pro_menu_wrap, #large_modal_content .modal_menu, #large_modal_content .profile_background { background: #ffffff !important; color: #1d2733 !important; }
#large_modal_content .cover_text, #large_modal_content .proitem, #large_modal_content .prodata, #large_modal_content .modal_menu_item { color: #1d2733; }

/* 2026-08-21: white news panel only */
#chat_left:has(#container_news), #chat_left:has(#container_news) #chat_left_data, #chat_left:has(#container_news) #container_news, #chat_left:has(#container_news) .news_box { background: #ffffff !important; color: #1d2733 !important; }
#chat_left:has(#container_news) .post_content, #chat_left:has(#container_news) .post_info, #chat_left:has(#container_news) .username, #chat_left:has(#container_news) .sub_date { color: #1d2733; }
/* KIK_SEND_BUTTON_20260821 */ #submit_button.send_btn{min-width:72px!important;height:38px!important;padding:0 14px!important;border:0!important;border-radius:9px!important;background:#1976d2!important;color:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-weight:700!important;cursor:pointer} #submit_button.send_btn:hover{background:#1565c0!important} #submit_button .send_text{display:inline!important;color:#fff!important}

/* 2026-08-24: private LiveKit call embedded inside the private chat window */
#private_video_mount {
    display: none;
    min-width: 0;
    width: calc(100% - 20px);
    margin: 10px 10px 0;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(20, 16, 30, .98), rgba(7, 10, 20, 1));
    border: 1px solid rgba(34, 211, 238, .34);
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 28px rgba(0, 0, 0, .30), 0 0 18px rgba(168, 85, 247, .13);
}

#private_box.private_call_active {
    display: grid;
    grid-template-rows: 40px auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: linear-gradient(160deg, rgba(20, 16, 30, .98), rgba(10, 8, 18, .99));
    border: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 80, 120, .06), inset 0 1px 0 rgba(255, 255, 255, .08);
}

#private_center.private_call_active {
    z-index: 260 !important;
}

#private_box.private_call_active #private_top {
    background: linear-gradient(90deg, rgba(244, 63, 94, .16), rgba(168, 85, 247, .10));
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

#private_box.private_call_active #private_video_mount {
    display: block;
}

#private_box.private_call_active #private_wrap_content {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(5, 8, 18, .98));
}

#private_box.private_call_active #private_content,
#private_center.pboxed #private_box.private_call_active .pcontent {
    height: 100% !important;
    min-height: 0;
}

#private_box.private_call_active #priv_input {
    min-height: 48px;
    background: #fff;
}

#private_video_host {
    width: 100%;
    height: clamp(190px, 34vh, 270px);
    min-height: 0;
    transition: height .22s ease;
}

#container_call.private_call_embedded {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    margin: 0 !important;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(20, 16, 30, .98), rgba(7, 10, 20, 1));
}

#container_call.private_call_embedded .stream_header {
    display: table;
    width: 100%;
    height: 38px;
    color: #f8fafc;
    background: linear-gradient(90deg, rgba(244, 63, 94, .16), rgba(168, 85, 247, .10));
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

#container_call.private_call_embedded #move_cam {
    padding: 0 13px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: default;
}

#container_call.private_call_embedded #move_cam i {
    margin-left: 7px;
    color: #22d3ee;
}

#container_call.private_call_embedded .vidopt {
    width: auto;
    min-width: 78px;
    padding: 0 12px;
    color: #e9d5ff;
    border-right: 1px solid rgba(255, 255, 255, .08);
    background: rgba(168, 85, 247, .10);
}

#container_call.private_call_embedded .vidopt:hover {
    color: #fff;
    background: rgba(168, 85, 247, .22);
}

#container_call.private_call_embedded .private_call_toggle_text {
    margin-right: 7px;
    font-size: 12px;
    font-weight: 700;
}

#container_call.private_call_embedded .hide_call {
    display: none;
}

#container_call.private_call_embedded #wrap_call {
    position: relative;
    display: block;
    width: 100% !important;
    height: calc(100% - 38px) !important;
    max-height: none !important;
    overflow: hidden;
    opacity: 1;
    transition: height .22s ease, opacity .16s ease;
}

#private_call_video_toggle.private_call_video_toggle {
    position: absolute;
    top: 10px;
    left: 50%;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 88px;
    height: 34px;
    padding: 0 13px;
    color: #ffffff;
    direction: rtl;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(14, 165, 233, .96), rgba(124, 58, 237, .96));
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, .50), 0 0 16px rgba(34, 211, 238, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateX(-50%);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

#private_call_video_toggle.private_call_video_toggle:hover,
#private_call_video_toggle.private_call_video_toggle:focus-visible {
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(2, 6, 23, .58), 0 0 20px rgba(34, 211, 238, .40), inset 0 1px 0 rgba(255, 255, 255, .28);
    outline: none;
    transform: translateX(-50%) scale(1.03);
}

#private_call_video_toggle.private_call_video_toggle i {
    font-size: 14px;
}

#container_call.private_call_embedded #call_frame {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#private_center.private_call_active.pboxed {
    bottom: 10px !important;
    width: min(460px, calc(100vw - 20px)) !important;
    height: min(535px, calc(100% - 20px)) !important;
    border-radius: 16px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .40), 0 0 0 1px rgba(168, 85, 247, .20);
}

#private_center.private_call_active.ppanel {
    width: min(440px, 42vw);
}

#private_center.private_call_minimized #private_video_host {
    height: 38px;
}

#private_center.private_call_minimized #container_call.private_call_embedded #wrap_call {
    height: 0 !important;
    opacity: 0;
    pointer-events: none;
}

#private_center.private_call_minimized #container_call.private_call_embedded .stream_header {
    border-bottom: 0;
}

/* Second state: video fills the private conversation down to the input. */
#private_box.private_call_active.private_call_fullvideo {
    grid-template-rows: 40px minmax(0, 1fr) 0 48px;
}

#private_box.private_call_active.private_call_fullvideo > #private_wrap_content {
    display: none !important;
    height: 0 !important;
}

#private_box.private_call_active.private_call_fullvideo #private_video_mount {
    align-self: stretch;
    height: auto;
    min-height: 0;
}

#private_box.private_call_active.private_call_fullvideo #private_video_host,
#private_box.private_call_active.private_call_fullvideo #container_call.private_call_embedded {
    height: 100% !important;
    min-height: 0;
}

@media screen and (max-width: 640px) {
    #private_center.private_call_active,
    #private_center.private_call_active.pboxed,
    #private_center.private_call_active.pfull {
        right: 0 !important;
        top: 0 !important;
        bottom: 50px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 14px 14px 0 0;
    }

    #private_video_mount {
        width: calc(100% - 16px);
        margin: 8px 8px 0;
        border-radius: 13px;
    }

    #private_video_host {
        height: clamp(170px, 30dvh, 240px);
    }

    #container_call.private_call_embedded #move_cam {
        padding: 0 9px;
        font-size: 12px;
    }

    #container_call.private_call_embedded .vidopt {
        min-width: 70px;
        padding: 0 9px;
    }
}

/* 2026-08-26: mobile-only private call chat toggle and restore affordance.
   The LiveKit iframe is never moved or recreated; these rules only change
   presentation around the existing private call. */
#private_call_return_chip {
    display: none;
    align-items: center;
    gap: 7px;
    position: fixed;
    z-index: 2147481501;
    height: 42px;
    padding: 0 11px;
    color: #ecfeff;
    direction: rtl;
    font: inherit;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(3, 105, 161, .98), rgba(15, 118, 110, .98));
    border: 1px solid rgba(103, 232, 249, .70);
    border-radius: 13px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .42), 0 0 16px rgba(34, 211, 238, .24);
}

#private_call_return_chip i { color: #67e8f9; font-size: 15px; }
#private_call_return_chip span { font-size: 10px; font-weight: 700; white-space: nowrap; }
#private_call_return_chip strong { font-size: 11px; white-space: nowrap; }

@media screen and (max-width: 640px) {
    #private_call_return_chip.private_call_return_show {
        display: inline-flex;
        right: 8px;
        bottom: 215px;
    }

    /* Messages are closed by default so nicknames and video controls stay clear. */
    #private_box.private_call_active:not(.private_call_minimized) > #private_wrap_content,
    #private_box.private_call_active:not(.private_call_minimized) > #priv_input {
        display: none !important;
    }

    /* The chat bubble reveals the real CodyChat private log and composer inside
       the video surface, above (never over) the LiveKit control bar. */
    #private_box.private_call_active.private_call_chat_open:not(.private_call_minimized) > #private_wrap_content {
        display: block !important;
        position: absolute !important;
        z-index: 75 !important;
        top: 46px !important;
        right: 8px !important;
        bottom: 145px !important;
        left: auto !important;
        width: min(74%, 300px) !important;
        height: auto !important;
        max-height: none !important;
        min-height: 86px !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #f8fafc !important;
        background: rgba(3, 19, 45, .82) !important;
        border: 1px solid rgba(103, 232, 249, .42) !important;
        border-radius: 13px !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .38), 0 0 14px rgba(34, 211, 238, .14) !important;
        backdrop-filter: blur(9px) !important;
    }

    #private_box.private_call_active.private_call_chat_open:not(.private_call_minimized) > #priv_input {
        display: table !important;
        position: absolute !important;
        z-index: 76 !important;
        right: 8px !important;
        bottom: 86px !important;
        left: auto !important;
        width: min(74%, 300px) !important;
        height: 52px !important;
        min-height: 52px !important;
        color: #e2e8f0 !important;
        background: rgba(15, 23, 42, .96) !important;
        border: 1px solid rgba(103, 232, 249, .42) !important;
        border-radius: 13px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .34) !important;
        overflow: hidden !important;
    }

    #private_box.private_call_active.private_call_chat_open #private_input,
    #private_box.private_call_active.private_call_chat_open #message_content {
        color: #f8fafc !important;
        background: transparent !important;
    }

    #private_box.private_call_active.private_call_chat_open #message_content::placeholder { color: #94a3b8 !important; }
}

/* Private LiveKit call: keep the real private message list inside the video
   surface in the initial embedded state too. The regular private chat (when
   there is no active call) is intentionally untouched. */
#private_box.private_call_active:not(.private_call_fullvideo):not(.private_call_docked):not(.private_call_float_full) {
    grid-template-rows: 40px minmax(0, 1fr) 50px;
}

#private_box.private_call_active:not(.private_call_fullvideo):not(.private_call_docked):not(.private_call_float_full) > #private_video_mount {
    z-index: 1;
    display: block !important;
    grid-row: 2;
    grid-column: 1;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}

#private_box.private_call_active:not(.private_call_fullvideo):not(.private_call_docked):not(.private_call_float_full) #private_video_host,
#private_box.private_call_active:not(.private_call_fullvideo):not(.private_call_docked):not(.private_call_float_full) #container_call.private_call_embedded {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
}

#private_box.private_call_active:not(.private_call_fullvideo):not(.private_call_docked):not(.private_call_float_full) #container_call.private_call_embedded #wrap_call {
    height: calc(100% - 38px) !important;
}

#private_box.private_call_active:not(.private_call_fullvideo):not(.private_call_docked):not(.private_call_float_full) > #private_wrap_content {
    z-index: 4;
    display: block !important;
    grid-row: 2;
    grid-column: 1;
    justify-self: end;
    align-self: stretch;
    box-sizing: border-box;
    position: relative;
    width: min(46%, 255px);
    height: auto !important;
    min-height: 0 !important;
    margin: 8px 8px 96px 0;
    overflow: hidden !important;
}

#private_box.private_call_active:not(.private_call_fullvideo):not(.private_call_docked):not(.private_call_float_full) > #priv_input {
    z-index: 7;
    display: table !important;
    grid-row: 3;
    grid-column: 1;
    width: 100%;
    min-height: 50px;
}

/* Messages are drawn directly over the video. There is no second panel,
   stripe, frame or blurred card around them. */
#private_box.private_call_active > #private_wrap_content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

#private_box.private_call_active > #private_wrap_content #private_content,
#private_box.private_call_active > #private_wrap_content #inside_wrap_private,
#private_box.private_call_active > #private_wrap_content #show_private_wrap {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#private_box.private_call_active > #private_wrap_content #show_private {
    box-sizing: border-box;
    position: absolute !important;
    inset: 0 !important;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    padding: 10px 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media screen and (max-width: 640px) {
    #private_box.private_call_active:not(.private_call_fullvideo):not(.private_call_docked):not(.private_call_float_full) > #private_wrap_content {
        width: min(48%, 205px);
        margin: 6px 6px 104px 0;
    }
}

/* Private call ended notice: immediate feedback for the participant who remains. */
.private_call_end_notice {
    position: fixed;
    top: 92px;
    left: 50%;
    z-index: 2600;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(390px, calc(100vw - 24px));
    padding: 14px 16px;
    color: #f8fafc;
    direction: rtl;
    background: linear-gradient(135deg, rgba(17, 24, 39, .98), rgba(76, 29, 149, .97));
    border: 1px solid rgba(34, 211, 238, .55);
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .50), 0 0 22px rgba(34, 211, 238, .20), inset 0 1px 0 rgba(255, 255, 255, .10);
    opacity: 0;
    transform: translate(-50%, -14px) scale(.97);
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
}

.private_call_end_notice.private_call_end_notice_show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.private_call_end_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: #ffffff;
    font-size: 21px;
    background: linear-gradient(145deg, #ef4444, #be123c);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(244, 63, 94, .38);
}

.private_call_end_copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.private_call_end_copy strong {
    color: #ffffff;
    font-size: 15px;
}

.private_call_end_copy span {
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 13px;
}

@media screen and (max-width: 640px) {
    .private_call_end_notice {
        top: 88px;
        width: calc(100vw - 18px);
        padding: 12px 13px;
        border-radius: 14px;
    }
}

@media screen and (max-width: 420px) {
    #private_video_host {
        height: clamp(160px, 28dvh, 215px);
    }

    #container_call.private_call_embedded #move_cam span {
        font-size: 11px;
    }

    #private_call_video_toggle.private_call_video_toggle {
        top: 8px;
        min-width: 82px;
        height: 32px;
        padding: 0 11px;
        font-size: 11px;
    }
}

/* Private call: keep the original conversation close control visible. */
#private_box.private_call_active #private_top {
    padding-right: 6px;
    padding-left: 6px;
}

#private_box.private_call_active #private_av_wrap {
    width: 40px !important;
    min-width: 40px;
}

#private_box.private_call_active #private_name {
    width: auto;
    min-width: 0;
}

#private_box.private_call_active #private_close {
    display: table-cell !important;
    width: 38px !important;
    min-width: 38px;
    color: #ffffff;
    background: rgba(244, 63, 94, .22);
    border-radius: 9px;
    position: relative;
    z-index: 4;
}

#private_box.private_call_active #private_close:hover {
    background: rgba(244, 63, 94, .42);
}

/* Third state: dock the private camera as a clickable bar above the input. */
#private_center.private_call_active.private_call_docked,
#private_center.private_call_active.private_call_docked.pboxed,
#private_center.private_call_active.private_call_docked.pfull,
#private_center.private_call_active.private_call_docked.ppanel {
    top: auto !important;
    right: 10px !important;
    bottom: 62px !important;
    left: auto !important;
    width: min(330px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    height: min(245px, 42vh) !important;
    min-height: 190px !important;
    border-radius: 13px !important;
    overflow: visible;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .42), 0 0 0 1px rgba(34, 211, 238, .34);
}

#private_box.private_call_active.private_call_docked {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    overflow: visible;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(160deg, rgba(20, 16, 30, .99), rgba(7, 10, 20, 1));
    box-shadow: 0 14px 42px rgba(0, 0, 0, .55), 0 0 18px rgba(34, 211, 238, .18);
}

#private_box.private_call_active.private_call_docked > #private_top,
#private_box.private_call_active.private_call_docked > #private_wrap_content,
#private_box.private_call_active.private_call_docked > #priv_input {
    display: none !important;
}

#private_box.private_call_active.private_call_docked #private_video_mount {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 13px;
    border-color: rgba(34, 211, 238, .48);
}

#private_box.private_call_active.private_call_docked #private_video_host,
#private_box.private_call_active.private_call_docked #container_call.private_call_embedded {
    height: 100%;
    min-height: 190px;
    border-radius: 13px;
}

#private_box.private_call_active.private_call_docked #container_call.private_call_embedded .stream_header {
    height: 38px;
    border: 0;
    border-radius: 13px 13px 0 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .98), rgba(88, 28, 135, .96));
}

#private_box.private_call_active.private_call_docked #container_call.private_call_embedded #move_cam {
    cursor: pointer;
}

#private_box.private_call_active.private_call_docked #container_call.private_call_embedded #wrap_call {
    height: calc(100% - 38px) !important;
    opacity: 1;
    pointer-events: auto;
}

#private_box.private_call_active.private_call_docked #private_call_video_toggle {
    display: inline-flex !important;
}

/* 2026-08-25: the complete private conversation floats above the chat.
   The original message list and input remain live; the LiveKit iframe is never recreated. */
#private_call_video_toggle.private_call_video_toggle {
    display: none !important;
}

#private_center.private_call_active.private_call_float_full,
#private_center.private_call_active.private_call_float_full.pboxed,
#private_center.private_call_active.private_call_float_full.pfull,
#private_center.private_call_active.private_call_float_full.ppanel {
    position: fixed !important;
    z-index: 1650 !important;
    top: 76px !important;
    right: 14px !important;
    bottom: 14px !important;
    left: 14px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 360px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .58), 0 0 0 1px rgba(34, 211, 238, .32), 0 0 34px rgba(124, 58, 237, .24);
}

#private_center.private_call_active.private_call_docked,
#private_center.private_call_active.private_call_docked.pboxed,
#private_center.private_call_active.private_call_docked.pfull,
#private_center.private_call_active.private_call_docked.ppanel {
    position: fixed !important;
    z-index: 1650 !important;
    top: auto !important;
    right: 12px !important;
    bottom: 62px !important;
    left: auto !important;
    width: min(380px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    height: min(430px, calc(100dvh - 112px)) !important;
    min-height: 310px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .58), 0 0 0 1px rgba(34, 211, 238, .38), 0 0 24px rgba(124, 58, 237, .22);
}

#private_box.private_call_active.private_call_float_full,
#private_box.private_call_active.private_call_docked {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 40px minmax(0, 1fr) 50px;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, .36);
    border-radius: inherit;
    background: #050812;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

#private_box.private_call_active.private_call_float_full > #private_top,
#private_box.private_call_active.private_call_docked > #private_top {
    z-index: 6;
    display: table !important;
    grid-row: 1;
    grid-column: 1;
    width: 100%;
}

#private_box.private_call_active.private_call_float_full > #private_video_mount,
#private_box.private_call_active.private_call_docked > #private_video_mount {
    z-index: 1;
    display: block !important;
    grid-row: 2;
    grid-column: 1;
    align-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
}

#private_box.private_call_active.private_call_float_full #private_video_host,
#private_box.private_call_active.private_call_float_full #container_call.private_call_embedded,
#private_box.private_call_active.private_call_docked #private_video_host,
#private_box.private_call_active.private_call_docked #container_call.private_call_embedded {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0;
}

#private_box.private_call_active.private_call_float_full > #private_wrap_content,
#private_box.private_call_active.private_call_docked > #private_wrap_content {
    z-index: 4;
    display: block !important;
    grid-row: 2;
    grid-column: 1;
    justify-self: end;
    align-self: stretch;
    box-sizing: border-box;
    position: relative;
    width: min(46%, 255px);
    height: auto !important;
    min-height: 0 !important;
    margin: 8px 8px 96px 0;
    overflow: hidden !important;
    color: #f8fafc;
    background: linear-gradient(180deg, rgba(15, 23, 42, .18), rgba(15, 23, 42, .78)) !important;
    border: 1px solid rgba(34, 211, 238, .34);
    border-radius: 14px;
    box-shadow: -1px 0 0 rgba(34, 211, 238, .18), 0 10px 28px rgba(0, 0, 0, .24);
    backdrop-filter: blur(5px);
}

#private_box.private_call_active.private_call_float_full > #private_wrap_content #private_content,
#private_box.private_call_active.private_call_docked > #private_wrap_content #private_content {
    box-sizing: border-box;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
}

#private_box.private_call_active.private_call_float_full > #private_wrap_content #inside_wrap_private,
#private_box.private_call_active.private_call_float_full > #private_wrap_content #show_private_wrap,
#private_box.private_call_active.private_call_docked > #private_wrap_content #inside_wrap_private,
#private_box.private_call_active.private_call_docked > #private_wrap_content #show_private_wrap {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
}

#private_box.private_call_active.private_call_float_full > #private_wrap_content #show_private,
#private_box.private_call_active.private_call_docked > #private_wrap_content #show_private {
    box-sizing: border-box;
    position: absolute !important;
    inset: 0 !important;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    padding: 10px 8px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: transparent !important;
    border: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, .52) transparent;
}

#private_box.private_call_active.private_call_float_full > #priv_input,
#private_box.private_call_active.private_call_docked > #priv_input {
    z-index: 7;
    display: table !important;
    grid-row: 3;
    grid-column: 1;
    width: 100%;
    min-height: 50px;
    color: #e2e8f0;
    background: linear-gradient(90deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .96)) !important;
    border-top: 1px solid rgba(34, 211, 238, .28);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .22);
}

#private_box.private_call_active.private_call_float_full #container_call.private_call_embedded #wrap_call,
#private_box.private_call_active.private_call_docked #container_call.private_call_embedded #wrap_call {
    height: calc(100% - 38px) !important;
    opacity: 1;
    pointer-events: auto;
}

@media screen and (max-width: 640px) {
    #private_center.private_call_active.private_call_float_full,
    #private_center.private_call_active.private_call_float_full.pboxed,
    #private_center.private_call_active.private_call_float_full.pfull,
    #private_center.private_call_active.private_call_float_full.ppanel {
        top: 81px !important;
        right: 4px !important;
        bottom: 49px !important;
        left: 4px !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        border-radius: 15px !important;
    }

    #private_center.private_call_active.private_call_docked,
    #private_center.private_call_active.private_call_docked.pboxed,
    #private_center.private_call_active.private_call_docked.pfull,
    #private_center.private_call_active.private_call_docked.ppanel {
        right: 8px !important;
        bottom: 56px !important;
        left: auto !important;
        width: calc(100vw - 16px) !important;
        max-width: calc(100vw - 16px) !important;
        height: min(390px, calc(100dvh - 118px)) !important;
        min-height: 300px !important;
        border-radius: 15px !important;
    }

    #private_box.private_call_active.private_call_float_full > #private_wrap_content,
    #private_box.private_call_active.private_call_docked > #private_wrap_content {
        width: min(48%, 205px);
        height: auto !important;
        margin: 6px 6px 104px 0;
        border-radius: 12px;
    }
}

/* Final cascade guard: no card/frame around messages in any active call size. */
#private_box.private_call_active > #private_wrap_content,
#private_box.private_call_active.private_call_float_full > #private_wrap_content,
#private_box.private_call_active.private_call_docked > #private_wrap_content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* Keep the message scroller above the iframe control bar. A calculated
   height is used instead of a bottom margin because grid stretching on small
   mobile viewports otherwise lets the message list paint over the controls. */
#private_box.private_call_active > #private_wrap_content,
#private_box.private_call_active.private_call_float_full > #private_wrap_content,
#private_box.private_call_active.private_call_docked > #private_wrap_content {
    align-self: start !important;
    height: calc(100% - 96px) !important;
    max-height: calc(100% - 96px) !important;
    min-height: 0 !important;
    margin: 8px 8px 0 0 !important;
    overflow: hidden !important;
}

@media screen and (max-width: 640px) {
    #private_box.private_call_active > #private_wrap_content,
    #private_box.private_call_active.private_call_float_full > #private_wrap_content,
    #private_box.private_call_active.private_call_docked > #private_wrap_content {
        height: calc(100% - 120px) !important;
        max-height: calc(100% - 120px) !important;
        margin: 6px 6px 0 0 !important;
    }
}

/* The embedded private call already has its responsive float/resize control
   inside the iframe control bar. Hide only CodyChat's duplicate top toggle so
   it cannot collide with the participant name. */
#container_call.private_call_embedded > .stream_header > .vidopt:not(.hide_call) {
    display: none !important;
}

/* Third private-call state: retain the exact iframe/LiveKit connection while
   shrinking the private window into a live preview above the chat composer. */
#private_center.private_call_active.private_call_minimized,
#private_center.private_call_active.private_call_minimized.pboxed,
#private_center.private_call_active.private_call_minimized.pfull,
#private_center.private_call_active.private_call_minimized.ppanel {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: 62px !important;
    left: auto !important;
    z-index: 2147481500 !important;
    width: 260px !important;
    max-width: calc(100vw - 24px) !important;
    height: 180px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(34, 211, 238, .72) !important;
    border-radius: 14px !important;
    background: #07111f !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .48), 0 0 18px rgba(34, 211, 238, .22) !important;
}

#private_center.private_call_active.private_call_minimized #private_box,
#private_box.private_call_active.private_call_minimized {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: inherit !important;
}

#private_box.private_call_active.private_call_minimized > #private_top,
#private_box.private_call_active.private_call_minimized > #private_wrap_content,
#private_box.private_call_active.private_call_minimized > #priv_input,
#private_box.private_call_active.private_call_minimized > .private_top,
#private_box.private_call_active.private_call_minimized > .private_input {
    display: none !important;
}

#private_box.private_call_active.private_call_minimized #private_video_mount,
#private_box.private_call_active.private_call_minimized #private_video_host,
#private_box.private_call_active.private_call_minimized #container_call.private_call_embedded {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    border: 0 !important;
    border-radius: inherit !important;
}

#private_box.private_call_active.private_call_minimized #container_call.private_call_embedded > .stream_header {
    display: none !important;
}

#private_box.private_call_active.private_call_minimized #container_call.private_call_embedded #wrap_call,
#private_box.private_call_active.private_call_minimized #container_call.private_call_embedded #call_frame {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@media screen and (max-width: 640px) {
    #private_center.private_call_active.private_call_minimized,
    #private_center.private_call_active.private_call_minimized.pboxed,
    #private_center.private_call_active.private_call_minimized.pfull,
    #private_center.private_call_active.private_call_minimized.ppanel {
        right: 8px !important;
        bottom: 57px !important;
        left: auto !important;
        width: 210px !important;
        max-width: calc(100vw - 16px) !important;
        height: 150px !important;
        border-radius: 13px !important;
    }
}

/* Final mobile cascade for the private-call chat bubble. */
@media screen and (max-width: 640px) {
    #private_box.private_call_active:not(.private_call_minimized) > #private_wrap_content,
    #private_box.private_call_active:not(.private_call_minimized) > #priv_input {
        display: none !important;
    }

    #private_box.private_call_active.private_call_chat_open:not(.private_call_minimized) > #private_wrap_content {
        display: block !important;
        position: absolute !important;
        z-index: 75 !important;
        top: 46px !important;
        right: 8px !important;
        bottom: 145px !important;
        left: auto !important;
        width: min(74%, 300px) !important;
        height: auto !important;
        max-height: none !important;
        min-height: 86px !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #f8fafc !important;
        background: rgba(3, 19, 45, .82) !important;
        border: 1px solid rgba(103, 232, 249, .42) !important;
        border-radius: 13px !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .38), 0 0 14px rgba(34, 211, 238, .14) !important;
        backdrop-filter: blur(9px) !important;
    }

    #private_box.private_call_active.private_call_chat_open:not(.private_call_minimized) > #priv_input {
        display: table !important;
        position: absolute !important;
        z-index: 76 !important;
        right: 8px !important;
        bottom: 86px !important;
        left: auto !important;
        width: min(74%, 300px) !important;
        height: 52px !important;
        min-height: 52px !important;
        color: #e2e8f0 !important;
        background: rgba(15, 23, 42, .96) !important;
        border: 1px solid rgba(103, 232, 249, .42) !important;
        border-radius: 13px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .34) !important;
        overflow: hidden !important;
    }

    #private_box.private_call_active.private_call_chat_open #private_input,
    #private_box.private_call_active.private_call_chat_open #message_content {
        color: #f8fafc !important;
        background: transparent !important;
    }
}
