.chat-panel {
    overflow: hidden;
}

body.chat-page-active {
    overflow: hidden;
}

body.chat-page-active .header-area,
body.chat-page-active .footer-area,
body.chat-page-active .main-content > .flex-grow-1,
body.chat-page-active .chat-page-heading,
body.chat-page-active .theme-settings-btn,
body.chat-page-active #offcanvasScrolling,
body.chat-page-active .offcanvas-backdrop {
    display: none !important;
}

body.chat-page-active .container-fluid,
body.chat-page-active .main-content,
body.chat-page-active .app-shell,
body.chat-page-active .app-page-content {
    min-height: 0;
    height: 100vh;
}

body.chat-page-active .main-content {
    overflow: hidden;
}

body.chat-page-active [data-chat-page] {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    padding: 14px 12px;
}

body.chat-page-active .chat-layout-row {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 0;
}

body.chat-page-active .chat-layout-row > [class*="col-"] {
    display: flex;
    height: 100%;
    min-height: 0;
}

body.chat-page-active .chat-panel,
body.chat-page-active .chat-thread-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 0 !important;
    overflow: hidden;
}

body.chat-page-active .chat-thread-card > .chat-header,
body.chat-page-active .chat-thread-card > .chat-request-panel,
body.chat-page-active .chat-thread-card > .p-20 {
    flex: 0 0 auto;
}

body.chat-page-active .chat-panel .tab-content {
    flex: 1 1 auto;
    min-height: 0;
}

body.chat-page-active .chat-panel .tab-pane.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

body.chat-page-active .chat-side-scroll {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

body.chat-page-active .chat-thread-card .chat-body {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

body.chat-page-active .chat-thread-card .chat-details {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
}

.chat-main-tabs {
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
}

.chat-main-tabs::-webkit-scrollbar {
    display: none;
}

.chat-search-input {
    height: 55px;
    padding-left: 52px;
    background: #f5f7ff;
    border-color: #f5f7ff;
}

.chat-side-scroll {
    height: 630px;
    margin: 0 -1px;
    overflow-y: auto;
}

.chat-create-group {
    margin-left: -1px;
    margin-right: -1px;
}

.chat-list-item {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    border-bottom: 1px solid #eef1f6;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.chat-list-item:hover {
    background: #f8fbff;
}

.chat-list-item.is-active {
    background: #e8f1ff;
    box-shadow: inset 4px 0 0 #2f80ed;
}

.chat-list-item.is-blocked {
    background: #fff5f5;
    box-shadow: inset 4px 0 0 #ef4444;
}

.chat-list-item.is-blocked:hover,
.chat-list-item.is-blocked.is-active {
    background: #fee2e2;
    box-shadow: inset 4px 0 0 #dc2626;
}

.chat-list-item.is-blocked .chat-list-title,
.chat-list-item.is-blocked .chat-list-preview {
    color: #b91c1c;
}

.chat-list-item[disabled] {
    cursor: not-allowed;
    opacity: .62;
}

.chat-list-title {
    color: #4a5570;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
}

.chat-list-preview {
    display: block;
    max-width: 210px;
    margin-top: 5px;
    overflow: hidden;
    color: #8692a6;
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-list-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 54px;
    color: #8c97aa;
    font-size: 13px;
    text-align: right;
}

.chat-avatar {
    position: relative;
    display: inline-flex;
    width: 45px;
    height: 45px;
    min-width: 45px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #edf4ff;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-avatar-lg {
    width: 65px;
    height: 65px;
    min-width: 65px;
}

.chat-online-dot {
    position: absolute;
    right: 0;
    bottom: 0;
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #31ce7b;
}

.chat-offline-dot {
    background: #ef4d45;
}

.chat-unread {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.chat-section-label {
    padding: 16px 20px 8px;
    color: #8c97aa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.chat-empty-state,
.chat-empty-thread {
    padding: 28px 20px;
    color: #8c97aa;
    font-size: 15px;
    text-align: center;
}

.chat-empty-thread {
    display: grid;
    min-height: 380px;
    place-content: center;
}

.chat-empty-thread .material-symbols-outlined {
    margin: 0 auto 12px;
    color: #2f80ed;
    font-size: 48px;
}

.chat-empty-thread h4 {
    margin-bottom: 5px;
    color: #4a5570;
    font-size: 18px;
}

.chat-empty-thread p {
    max-width: 320px;
    margin: 0 auto;
    color: #8c97aa;
    font-size: 14px;
}

.chat-thread-card .chat-body {
    position: relative;
    height: 585px;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    direction: ltr !important;
    transform: none !important;
}

.chat-history-loader {
    position: sticky;
    top: 10px;
    z-index: 25;
    display: flex;
    justify-content: center;
    height: 0;
    pointer-events: none;
}

.chat-history-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(47, 128, 237, .18);
    border-top-color: #2f80ed;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
    animation: chat-history-spin .72s linear infinite;
}

@keyframes chat-history-spin {
    to {
        transform: rotate(360deg);
    }
}

.chat-thread-card .chat-details,
.chat-thread-card .chat-details li {
    direction: ltr !important;
    transform: none !important;
}

.chat-message-row {
    position: relative;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-bottom: 12px;
    overflow: visible;
}

.chat-block-notice-row {
    display: flex;
    justify-content: center;
    margin: 18px 0 8px;
}

.chat-block-notice {
    width: min(390px, 92%);
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff5f5;
    color: #991b1b;
    padding: 18px;
    text-align: center;
    box-shadow: 0 16px 42px rgba(153, 27, 27, .08);
}

.chat-block-notice .material-symbols-outlined {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 24px;
}

.chat-block-notice strong {
    display: block;
    color: #7f1d1d;
    font-size: 17px;
    line-height: 1.3;
}

.chat-block-notice p {
    margin: 6px 0 0;
    color: #b91c1c;
    font-size: 14px;
}

.chat-block-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.chat-message-bubble {
    display: inline-block;
    max-width: min(560px, 86%);
    padding: 10px 15px;
    border: 1px solid #e9eef8;
    border-radius: 12px 12px 12px 4px;
    background: #f4f6fb;
    color: #4a5570;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.chat-message-row.is-mine {
    justify-content: flex-end;
    text-align: right;
}

.chat-message-row.is-mine .chat-message-bubble {
    border-color: #2f80ed;
    border-radius: 12px 12px 4px 12px;
    background: #2f80ed;
    color: #fff;
}

.chat-message-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    margin-top: 4px;
    object-fit: cover;
}

.chat-message-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: min(620px, 82%);
}

.chat-message-row.is-mine .chat-message-stack {
    align-items: flex-end;
}

.chat-message-line {
    display: flex;
    gap: 7px;
    align-items: center;
}

.chat-message-row.is-mine .chat-message-line {
    justify-content: flex-end;
}

.chat-message-row.is-new .chat-message-bubble {
    animation: chat-message-pop .22s cubic-bezier(.2, 1.2, .3, 1) both;
}

.chat-message-row.is-pending .chat-message-bubble {
    opacity: .82;
}

.chat-message-row.is-failed .chat-message-bubble {
    border-color: #ef4444;
    background: #ef4444;
}

.chat-message-row.is-failed .chat-message-status {
    color: #ef4444;
}

@keyframes chat-message-pop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-message-tools {
    position: relative;
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transition: opacity .16s ease;
}

.chat-message-row:hover .chat-message-tools,
.chat-message-row.is-menu-open .chat-message-tools {
    opacity: 1;
}

.chat-message-action-toggle {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.chat-message-action-toggle .material-symbols-outlined {
    font-size: 17px;
}

.chat-message-menu {
    position: absolute;
    right: 0;
    bottom: 36px;
    z-index: 30;
    display: none;
    width: 210px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .18);
    text-align: left;
}

.chat-message-row.is-theirs .chat-message-menu {
    right: auto;
    left: 0;
}

.chat-message-row.is-menu-open .chat-message-menu {
    display: block;
}

.chat-message-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4a5570;
    padding: 8px 9px;
    font-size: 14px;
    line-height: 1.1;
    text-align: left;
}

.chat-message-menu button:hover {
    background: #f5f7ff;
}

.chat-message-menu .material-symbols-outlined {
    font-size: 18px;
}

.chat-reaction-picker {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 4px 2px 8px;
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 4px;
}

.chat-reaction-picker .chat-reaction-option {
    justify-content: center;
    padding: 6px 0;
    font-size: 16px;
}

.chat-reaction-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
    padding-left: 8px;
}

.chat-message-row.is-mine .chat-reaction-summary {
    justify-content: flex-end;
    padding-right: 8px;
    padding-left: 0;
}

.chat-message-status {
    margin-top: 3px;
    padding-right: 8px;
    color: #8c97aa;
    font-size: 11px;
    line-height: 1.2;
}

.chat-message-row.is-theirs .chat-message-status {
    display: none;
}

.chat-reaction-chip {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.chat-reaction-chip.is-mine {
    border-color: rgba(47, 128, 237, .35);
    background: #eff6ff;
}

.chat-reply-preview,
.chat-reply-target {
    border-left: 3px solid #2f80ed;
    background: #f5f7ff;
    color: #64748b;
}

.chat-reply-preview {
    max-width: 360px;
    margin-bottom: 5px;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
}

.chat-reply-preview span,
.chat-reply-target span {
    display: block;
    color: #2f80ed;
    font-weight: 700;
}

.chat-reply-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    padding: 9px 10px 9px 12px;
}

.chat-reply-target strong {
    display: block;
    max-width: 560px;
    overflow: hidden;
    color: #4a5570;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-reply-cancel {
    display: inline-flex;
    width: 30px;
    height: 30px;
    min-width: 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
}

.chat-info-panel {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .45);
}

.chat-info-panel.is-visible {
    display: flex;
}

.chat-info-card {
    position: relative;
    width: min(420px, 100%);
    border-radius: 14px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 28px 75px rgba(15, 23, 42, .28);
}

.chat-info-card h4 {
    margin-bottom: 16px;
    color: #4a5570;
    font-size: 20px;
}

.chat-profile-summary {
    margin-bottom: 18px;
    text-align: center;
}

.chat-profile-summary img {
    display: block;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-profile-summary h4 {
    margin-bottom: 3px;
}

.chat-profile-summary span {
    display: block;
    color: #8c97aa;
    font-size: 14px;
}

.chat-info-card p {
    margin-bottom: 12px;
}

.chat-info-card p:last-child {
    margin-bottom: 0;
}

.chat-info-card p span {
    display: block;
    color: #8c97aa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.chat-info-card p strong {
    display: block;
    margin-top: 3px;
    color: #4a5570;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.chat-action-card {
    text-align: center;
}

.chat-action-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2f80ed;
}

.chat-action-icon.is-danger {
    background: #fff1f2;
    color: #ef4444;
}

.chat-action-icon .material-symbols-outlined {
    font-size: 28px;
}

.global-call-dock.has-video.is-video-compact .global-call-control .material-symbols-outlined {
    font-size: 21px;
}

.global-call-dock.has-video.is-video-mini .global-call-control .material-symbols-outlined {
    font-size: 19px;
}

.chat-action-copy {
    margin: -6px 0 16px;
    color: #8c97aa;
    font-size: 14px;
    line-height: 1.45;
}

.chat-action-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    color: #4a5570;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.chat-action-check input {
    width: 16px;
    height: 16px;
    accent-color: #2f80ed;
}

.chat-report-input {
    margin-bottom: 18px;
    resize: none;
}

.chat-action-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.chat-info-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f5f7ff;
    color: #64748b;
}

.chat-request-panel {
    padding: 14px 20px;
    border-bottom: 1px solid #eef1f6;
    background: #fff7ed;
}

.chat-request-panel .btn {
    min-width: 92px;
}

.chat-thread-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
}

.chat-thread-menu-toggle {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6f6;
    border-radius: 999px;
    background: #f5f8ff;
    color: #2f80ed;
}

.chat-thread-menu-toggle .material-symbols-outlined {
    font-size: 18px;
}

.chat-thread-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    display: none;
    width: 205px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .16);
}

.chat-header.is-thread-menu-open .chat-thread-menu {
    display: block;
}

.chat-thread-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #4a5570;
    padding: 9px 10px;
    font-size: 14px;
    text-align: left;
}

.chat-thread-menu button:hover {
    background: #f5f7ff;
}

.chat-thread-menu .material-symbols-outlined {
    font-size: 18px;
}

.chat-typing-row {
    margin-top: 4px;
}

.chat-typing-label {
    margin-bottom: 4px;
    color: #8c97aa;
    font-size: 12px;
}

.chat-typing-bubble {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 34px;
    padding: 10px 13px;
    border: 1px solid #e9eef8;
    border-radius: 12px 12px 12px 4px;
    background: #f4f6fb;
}

.chat-typing-bubble span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8c97aa;
    animation: chat-typing-dot 1s ease-in-out infinite;
}

.chat-typing-bubble span:nth-child(2) {
    animation-delay: .15s;
}

.chat-typing-bubble span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes chat-typing-dot {
    0%,
    80%,
    100% {
        opacity: .35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.chat-composer-status {
    margin-top: 10px;
    color: #8c97aa;
    font-size: 13px;
}

.chat-send-btn {
    width: 55px;
    height: 55px;
    min-width: 55px;
}

.chat-send-btn .material-symbols-outlined {
    line-height: 55px;
}

.chat-group-candidates {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #eef1f6;
    border-radius: 10px;
}

.chat-group-candidate {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f6;
}

.chat-group-candidate:last-child {
    border-bottom: 0;
}

.chat-topbar-empty {
    padding: 18px;
    color: #8c97aa;
    font-size: 14px;
    text-align: center;
}

[data-theme='dark'] .chat-search-input,
[data-theme='dark'] .chat-list-item:hover {
    background: #172033;
}

[data-theme='dark'] .chat-list-item.is-active {
    background: #1e293b;
    box-shadow: inset 4px 0 0 #60a5fa;
}

[data-theme='dark'] .chat-list-item.is-blocked {
    background: #2b171a;
    box-shadow: inset 4px 0 0 #ef4444;
}

[data-theme='dark'] .chat-list-item.is-blocked:hover,
[data-theme='dark'] .chat-list-item.is-blocked.is-active {
    background: #3a1b20;
    box-shadow: inset 4px 0 0 #f87171;
}

[data-theme='dark'] .chat-list-item.is-blocked .chat-list-title,
[data-theme='dark'] .chat-list-item.is-blocked .chat-list-preview {
    color: #fca5a5;
}

[data-theme='dark'] .chat-search-input,
[data-theme='dark'] .chat-message-input {
    border-color: #263247 !important;
    background: #172033 !important;
    color: #e5eaf3 !important;
}

[data-theme='dark'] .chat-search-input::placeholder,
[data-theme='dark'] .chat-message-input::placeholder {
    color: #94a3b8 !important;
}

[data-theme='dark'] .chat-message-input:disabled {
    background: #111827 !important;
    color: #64748b !important;
    opacity: 1;
}

[data-theme='dark'] .chat-panel,
[data-theme='dark'] .chat-thread-card,
[data-theme='dark'] .chat-thread-card .chat-header {
    border-color: #263247 !important;
}

[data-theme='dark'] .chat-list-title,
[data-theme='dark'] .chat-empty-thread h4 {
    color: #e5eaf3;
}

[data-theme='dark'] .chat-list-preview,
[data-theme='dark'] .chat-list-meta,
[data-theme='dark'] .chat-empty-state,
[data-theme='dark'] .chat-empty-thread,
[data-theme='dark'] .chat-empty-thread p,
[data-theme='dark'] .chat-message-time,
[data-theme='dark'] .chat-message-status,
[data-theme='dark'] .chat-typing-label,
[data-theme='dark'] .chat-composer-status,
[data-theme='dark'] .chat-section-label {
    color: #94a3b8;
}

[data-theme='dark'] .chat-message-bubble {
    border-color: #1f2937;
    background: #080d17;
    color: #e5eaf3;
}

[data-theme='dark'] .chat-message-row.is-mine .chat-message-bubble {
    border-color: #2563eb;
    background: #1d4ed8;
    color: #fff;
}

[data-theme='dark'] .chat-message-action-toggle,
[data-theme='dark'] .chat-message-menu,
[data-theme='dark'] .chat-reaction-chip,
[data-theme='dark'] .chat-info-card,
[data-theme='dark'] .chat-info-close,
[data-theme='dark'] .chat-reply-cancel,
[data-theme='dark'] .chat-thread-menu,
[data-theme='dark'] .chat-thread-menu-toggle,
[data-theme='dark'] .chat-typing-bubble,
[data-theme='dark'] .chat-action-check,
[data-theme='dark'] .chat-report-input {
    border-color: #263247;
    background: #111827;
    color: #e5eaf3;
}

[data-theme='dark'] .chat-block-notice {
    border-color: #7f1d1d;
    background: #2b171a;
    color: #fca5a5;
}

[data-theme='dark'] .chat-block-notice .material-symbols-outlined {
    background: #3a1b20;
    color: #f87171;
}

[data-theme='dark'] .chat-block-notice strong {
    color: #fee2e2;
}

[data-theme='dark'] .chat-block-notice p {
    color: #fca5a5;
}

[data-theme='dark'] .chat-message-menu button,
[data-theme='dark'] .chat-thread-menu button {
    color: #e5eaf3;
}

[data-theme='dark'] .chat-message-menu button:hover,
[data-theme='dark'] .chat-thread-menu button:hover,
[data-theme='dark'] .chat-info-close:hover,
[data-theme='dark'] .chat-reply-cancel:hover {
    background: #172033;
}

[data-theme='dark'] .chat-reaction-picker {
    border-color: #263247;
}

[data-theme='dark'] .chat-reaction-chip.is-mine,
[data-theme='dark'] .chat-reply-preview,
[data-theme='dark'] .chat-reply-target {
    border-color: #2f80ed;
    background: #172033;
}

[data-theme='dark'] .chat-reply-target strong,
[data-theme='dark'] .chat-info-card h4,
[data-theme='dark'] .chat-info-card p strong {
    color: #e5eaf3;
}

[data-theme='dark'] .chat-info-card p span {
    color: #94a3b8;
}

[data-theme='dark'] .chat-profile-summary span {
    color: #94a3b8;
}

[data-theme='dark'] .chat-action-copy {
    color: #94a3b8;
}

[data-theme='dark'] .chat-action-icon {
    background: #172033;
    color: #60a5fa;
}

[data-theme='dark'] .chat-action-icon.is-danger {
    background: #2b171a;
    color: #fb7185;
}

[data-theme='dark'] .chat-report-input::placeholder {
    color: #94a3b8;
}

[data-theme='dark'] .chat-list-item,
[data-theme='dark'] .chat-request-panel,
[data-theme='dark'] .chat-group-candidate,
[data-theme='dark'] .chat-group-candidates {
    border-color: #263247;
}

[data-theme='dark'] .chat-request-panel {
    background: #2b2118;
    color: #e5eaf3;
}

[data-theme='dark'] .chat-request-panel .text-body,
[data-theme='dark'] .chat-request-panel .text-secondary {
    color: #e5eaf3 !important;
}

[data-theme='dark'] .chat-submit.bg-light {
    background: #111827 !important;
}

[data-theme='dark'] .chat-group-candidates {
    background: #111827;
}

[data-theme='dark'] .chat-group-candidate:hover {
    background: #172033;
}

[data-theme='dark'] .chat-group-candidate .text-secondary {
    color: #e5eaf3 !important;
}

[data-theme='dark'] .chat-group-candidate .text-body {
    color: #94a3b8 !important;
}

[data-theme='dark'] .chat-send-btn:disabled {
    background: #334155 !important;
    border-color: #334155 !important;
    opacity: 1;
}

[data-theme='dark'] .chat-request-panel .btn-light,
[data-theme='dark'] .modal [data-chat-group-form] .btn-light {
    background: #172033 !important;
    border-color: #263247 !important;
    color: #e5eaf3 !important;
}

@media (max-width: 575px) {
    .chat-side-scroll {
        height: 520px;
    }

    .chat-thread-card .chat-body {
        height: 500px;
    }

    .chat-list-preview {
        max-width: 160px;
    }
}

@media (max-width: 991px) {
    body.chat-page-active {
        overflow: auto;
    }

    body.chat-page-active .container-fluid,
    body.chat-page-active .main-content,
    body.chat-page-active .app-shell,
    body.chat-page-active .app-page-content,
    body.chat-page-active [data-chat-page] {
        height: auto;
        min-height: 100vh;
    }

    body.chat-page-active .chat-layout-row > [class*="col-"] {
        display: block;
    }

    body.chat-page-active .chat-panel {
        min-height: 420px;
    }

    body.chat-page-active .chat-thread-card {
        min-height: 620px;
    }
}

.chat-call-btn,
.chat-thread-menu-toggle {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #334155;
}

.chat-call-btn {
    background: #dcfce7;
    color: #15803d;
}

.chat-call-btn:hover {
    background: #bbf7d0;
}

.chat-call-panel {
    flex: 0 0 auto;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
}

.chat-call-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.chat-call-card.is-ringing .chat-call-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.chat-call-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #dcfce7;
    color: #15803d;
}

.chat-call-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.chat-call-copy strong,
.chat-call-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-call-copy strong {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

.chat-call-copy span {
    color: #64748b;
    font-size: 13px;
    margin-top: 2px;
}

.chat-call-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .chat-call-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .chat-call-copy {
        flex-basis: calc(100% - 54px);
    }

    .chat-call-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.chat-call-event-row {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.chat-call-event {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(92%, 520px);
    padding: 9px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #334155;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.chat-call-event .material-symbols-outlined {
    color: #2563eb;
    font-size: 20px;
}

.chat-call-event strong,
.chat-call-event small {
    display: block;
    line-height: 1.2;
}

.chat-call-event strong {
    font-size: 13px;
    color: #1f2937;
}

.chat-call-event small {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.global-call-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    width: min(360px, calc(100vw - 32px));
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.32);
}

.global-call-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
}

.global-call-inner img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex: 0 0 auto;
}

.global-call-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.global-call-copy strong,
.global-call-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-call-copy strong {
    font-size: 14px;
    font-weight: 700;
}

.global-call-copy span {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.global-call-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.global-call-control {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.global-call-control:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.32);
}

.global-call-control.is-mic.is-off,
.global-call-control.is-video.is-on,
.global-call-control.is-screen.is-on {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    box-shadow: 0 10px 22px rgba(20, 184, 166, 0.24);
}

.global-call-control.is-screen {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.24);
}

.global-call-control.is-fullscreen-toggle {
    background: linear-gradient(135deg, #334155, #1e293b);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.28);
}

.global-call-control.is-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.chat-remote-video {
    position: fixed;
    right: 20px;
    bottom: 96px;
    z-index: 2147482999;
    width: min(320px, calc(100vw - 32px));
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #020617;
    object-fit: cover;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.32);
}

@media (max-width: 575.98px) {
    .global-call-dock {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .chat-remote-video {
        right: 12px;
        bottom: 88px;
        width: calc(100vw - 24px);
    }

    .chat-call-event {
        border-radius: 12px;
        align-items: flex-start;
    }
}

.global-call-dock {
    touch-action: none;
    user-select: none;
}

.global-call-dock.is-dragging {
    cursor: grabbing;
}

.global-call-inner {
    cursor: grab;
}

.global-call-actions,
.global-call-actions * {
    cursor: auto;
}

.chat-remote-video {
    width: min(420px, calc(100vw - 32px));
    border: 3px solid rgba(255, 255, 255, 0.92);
}

.chat-local-video {
    position: fixed;
    right: 36px;
    bottom: 112px;
    z-index: 2147483000;
    width: min(132px, 32vw);
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    background: #020617;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.28);
}

@media (max-width: 575.98px) {
    .chat-local-video {
        right: 24px;
        bottom: 104px;
        width: 108px;
    }
}

.chat-remote-video.is-fullscreen {
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    border-radius: 0 !important;
    border: 0 !important;
    z-index: 2147482998;
}

.chat-remote-video.is-fullscreen + .chat-local-video,
.chat-local-video {
    transition: left 0.12s ease, top 0.12s ease, width 0.12s ease;
}

.global-call-dock .btn {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
}

/* Realtime call video shell */
.chat-video-stage {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 2147482999;
    width: min(840px, calc(100vw - 32px));
    min-width: min(200px, calc(100vw - 32px));
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    background: #020617;
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.34);
    touch-action: none;
    cursor: grab;
    --voice-1: 28%;
    --voice-2: 52%;
    --voice-3: 36%;
    --voice-4: 64%;
    --voice-5: 42%;
    --voice-6: 58%;
}

.chat-video-stage.is-fullscreen {
    left: 0 !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.chat-video-resize-handle {
    position: absolute;
    z-index: 6;
    display: block;
    background: transparent;
    touch-action: none;
}

.chat-video-resize-handle.is-n,
.chat-video-resize-handle.is-s {
    left: 20px;
    right: 20px;
    height: 14px;
    cursor: ns-resize;
}

.chat-video-resize-handle.is-n { top: 0; }
.chat-video-resize-handle.is-s { bottom: 0; }

.chat-video-resize-handle.is-e,
.chat-video-resize-handle.is-w {
    top: 20px;
    bottom: 20px;
    width: 14px;
    cursor: ew-resize;
}

.chat-video-resize-handle.is-e { right: 0; }
.chat-video-resize-handle.is-w { left: 0; }

.chat-video-resize-handle.is-ne,
.chat-video-resize-handle.is-se,
.chat-video-resize-handle.is-sw,
.chat-video-resize-handle.is-nw {
    width: 24px;
    height: 24px;
}

.chat-video-resize-handle.is-ne { top: 0; right: 0; cursor: nesw-resize; }
.chat-video-resize-handle.is-se { right: 0; bottom: 0; cursor: nwse-resize; }
.chat-video-resize-handle.is-sw { left: 0; bottom: 0; cursor: nesw-resize; }
.chat-video-resize-handle.is-nw { top: 0; left: 0; cursor: nwse-resize; }

.chat-video-resize-handle.is-se::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 13px;
    height: 13px;
    border-right: 2px solid rgba(255, 255, 255, 0.72);
    border-bottom: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 1px;
}

.chat-video-stage.is-resizing,
.chat-video-stage.is-resizing *,
.chat-video-stage.is-dragging,
.chat-video-stage.is-dragging * {
    user-select: none;
}

.chat-video-stage.is-dragging {
    cursor: grabbing;
}

.chat-video-stage.is-fullscreen .chat-video-resize-handle {
    display: none;
}

.chat-video-tile {
    position: absolute;
    overflow: hidden;
    border: 0;
    background: #020617;
    color: #fff;
    padding: 0;
}

.chat-video-tile.is-main {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    z-index: 1;
}

.chat-video-tile.is-pip {
    right: 14px;
    bottom: 14px;
    width: min(190px, 28%);
    aspect-ratio: 3 / 4;
    border: 3px solid rgba(255, 255, 255, 0.94);
    border-radius: 16px;
    z-index: 3;
    cursor: grab;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.32);
}

.chat-video-stage.is-fullscreen .chat-video-tile.is-pip {
    width: min(220px, 22vw);
    min-width: 132px;
}

.chat-video-stage .chat-remote-video,
.chat-video-stage .chat-local-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: #020617;
    object-fit: cover;
    box-shadow: none !important;
    z-index: 2;
}

.chat-video-backdrop {
    position: absolute;
    inset: -28px;
    width: calc(100% + 56px);
    height: calc(100% + 56px);
    object-fit: cover;
    opacity: 0.25;
    filter: blur(22px) saturate(1.1);
    transform: scale(1.08);
}

.chat-video-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.72), rgba(2, 6, 23, 0.96));
    text-align: center;
}

.chat-video-fallback img:not(.chat-video-backdrop) {
    width: clamp(78px, 14vw, 150px);
    height: clamp(78px, 14vw, 150px);
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

.chat-video-tile.is-pip .chat-video-fallback {
    gap: 5px;
}

.chat-video-tile.is-pip .chat-video-fallback img:not(.chat-video-backdrop) {
    width: 54px;
    height: 54px;
    border-width: 2px;
}

.chat-video-fallback strong {
    max-width: 86%;
    overflow: hidden;
    color: #fff;
    font-size: clamp(18px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-video-tile.is-pip .chat-video-fallback strong {
    font-size: 13px;
}

.chat-video-fallback span {
    color: rgba(226, 232, 240, 0.82);
    font-size: 14px;
    font-weight: 600;
}

.chat-video-tile.is-pip .chat-video-fallback span {
    display: none;
}

.chat-video-stage.is-tiny .chat-video-fallback {
    gap: 2px;
}

.chat-video-stage.is-tiny .chat-video-fallback img:not(.chat-video-backdrop) {
    width: 28px;
    height: 28px;
    border-width: 1px;
}

.chat-video-stage.is-tiny .chat-video-fallback strong,
.chat-video-stage.is-tiny .chat-video-fallback span,
.chat-video-stage.is-tiny .chat-voice-meter,
.chat-video-stage.is-tiny .chat-video-backdrop,
.chat-video-stage.is-tiny .chat-video-tile.is-pip {
    display: none !important;
}

.chat-video-stage.is-tiny .chat-video-resize-handle.is-se::after {
    right: 3px;
    bottom: 3px;
    width: 8px;
    height: 8px;
}

.chat-voice-meter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 46px;
    margin-top: 4px;
}

.chat-voice-meter span {
    display: block;
    width: 7px;
    height: var(--voice-1);
    min-height: 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa, #22c55e);
    animation: chatVoiceIdle 1.2s ease-in-out infinite;
}

.chat-voice-meter span:nth-child(2) { height: var(--voice-2); animation-delay: -0.2s; }
.chat-voice-meter span:nth-child(3) { height: var(--voice-3); animation-delay: -0.4s; }
.chat-voice-meter span:nth-child(4) { height: var(--voice-4); animation-delay: -0.6s; }
.chat-voice-meter span:nth-child(5) { height: var(--voice-5); animation-delay: -0.8s; }
.chat-voice-meter span:nth-child(6) { height: var(--voice-6); animation-delay: -1s; }

.chat-video-tile.is-pip .chat-voice-meter {
    display: none;
}

@keyframes chatVoiceIdle {
    0%, 100% { transform: scaleY(0.72); opacity: 0.72; }
    50% { transform: scaleY(1); opacity: 1; }
}

.global-call-dock.has-video {
    width: min(720px, calc(100vw - 32px));
    min-width: min(200px, calc(100vw - 32px));
    border-radius: 18px;
}

.global-call-dock.has-video .global-call-inner {
    padding: 14px 18px;
}

.global-call-dock.has-video.is-video-compact .global-call-inner {
    gap: 8px;
    justify-content: center;
    padding: 10px;
}

.global-call-dock.has-video.is-video-compact .global-call-copy {
    display: none;
}

.global-call-dock.has-video.is-video-compact .global-call-inner img {
    width: 38px;
    height: 38px;
}

.global-call-dock.has-video.is-video-mini .global-call-inner img {
    display: none;
}

.global-call-dock.has-video .global-call-inner img {
    width: 54px;
    height: 54px;
}

.global-call-dock.has-video .global-call-copy strong {
    font-size: 18px;
}

.global-call-dock.has-video .global-call-copy span {
    font-size: 14px;
}

.global-call-dock.has-video .global-call-control {
    width: 52px;
    height: 52px;
}

.global-call-dock.has-video.is-video-compact .global-call-control {
    width: 34px;
    height: 34px;
}

.global-call-dock.has-video.is-video-mini .global-call-control {
    width: 30px;
    height: 30px;
}

.global-call-dock.has-video .global-call-control .material-symbols-outlined {
    font-size: 28px;
}

.global-call-dock.is-call-fullscreen {
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 28px !important;
    transform: translateX(-50%);
    width: min(460px, calc(100vw - 32px));
    border-radius: 14px;
    z-index: 2147483001;
}

.global-call-dock.is-call-fullscreen .global-call-inner {
    padding: 10px 12px;
}

.global-call-dock.is-call-fullscreen .global-call-inner img {
    width: 42px;
    height: 42px;
}

.global-call-dock.is-call-fullscreen .global-call-copy strong {
    font-size: 14px;
}

.global-call-dock.is-call-fullscreen .global-call-copy span {
    font-size: 12px;
}

.global-call-dock.is-call-fullscreen .global-call-control {
    width: 38px;
    height: 38px;
}

.global-call-dock.is-call-fullscreen .global-call-control .material-symbols-outlined {
    font-size: 22px;
}

@media (max-width: 767.98px) {
    .chat-video-stage {
        width: calc(100vw - 24px);
    }

    .chat-video-stage .chat-video-tile.is-pip {
        width: min(128px, 34vw);
        border-radius: 14px;
        right: 10px;
        bottom: 10px;
    }

    .global-call-dock.has-video {
        width: calc(100vw - 24px);
    }

    .global-call-dock.has-video:not(.is-video-compact) .global-call-control {
        width: 42px;
        height: 42px;
    }
}

/* Clean call-state UI: no chat-top strip, floating controls only */
.chat-call-panel {
    display: none !important;
}

body.chat-page-active .global-call-dock:not(.is-call-fullscreen) {
    left: 50%;
    right: auto;
    bottom: 96px;
    transform: translateX(-50%);
}

.global-call-copy strong {
    display: flex;
    align-items: center;
    gap: 7px;
}

.global-call-copy strong .material-symbols-outlined {
    font-size: 18px;
    color: #60a5fa;
}

.global-call-actions {
    flex-wrap: nowrap;
}


.global-call-copy .global-call-recording {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    border: 1px solid rgba(239, 68, 68, 0.36);
    border-radius: 999px;
    padding: 3px 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    overflow: visible;
    white-space: nowrap;
}

.global-call-recording i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: chatRecordingPulse 1s infinite;
}

@keyframes chatRecordingPulse {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { opacity: .55; box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.global-call-dock.has-video.is-video-compact .global-call-recording,
.global-call-dock.has-video.is-video-mini .global-call-recording {
    justify-content: center;
    width: 26px;
    height: 20px;
    padding: 0;
    font-size: 0;
}

.global-call-control[title] {
    cursor: help;
}

.global-call-control:disabled,
.global-call-control.is-disabled {
    cursor: not-allowed;
    opacity: 0.52;
    filter: grayscale(0.25);
}

.chat-incoming-call {
    position: fixed;
    inset: 0;
    z-index: 2147483002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(6px);
}

.chat-incoming-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(420px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
}

.chat-incoming-card > img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.chat-incoming-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.chat-incoming-copy strong,
.chat-incoming-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-incoming-copy strong {
    font-size: 18px;
    font-weight: 800;
}

.chat-incoming-copy span {
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 14px;
}

.chat-incoming-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-incoming-actions button {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.chat-incoming-accept {
    background: #22c55e;
}

.chat-incoming-decline {
    background: #ef4444;
}

.chat-call-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2147483005;
    max-width: min(420px, calc(100vw - 32px));
    padding: 11px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
    transform: translateX(-50%);
}

.chat-call-toast.is-error {
    background: #7f1d1d;
}

.chat-call-toast.is-success {
    background: #064e3b;
}

@media (max-width: 575.98px) {
    body.chat-page-active .global-call-dock:not(.is-call-fullscreen) {
        bottom: 88px;
        width: calc(100vw - 24px);
    }

    .chat-incoming-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .chat-incoming-actions {
        width: 100%;
        justify-content: flex-end;
    }
}


.global-call-dock.has-video.is-video-compact .global-call-inner img {
    width: 38px;
    height: 38px;
}

.global-call-dock.has-video.is-video-mini .global-call-inner img,
.global-call-dock.has-video.is-video-mini .global-call-copy {
    display: none;
}

.global-call-dock.has-video.is-video-compact .global-call-control .material-symbols-outlined {
    font-size: 21px;
}

.global-call-dock.has-video.is-video-mini .global-call-control .material-symbols-outlined {
    font-size: 19px;
}
