.jl-chat-call-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(31, 86, 160, 0.12);
    border-radius: 12px;
    background: #f2f7ff;
    color: #1268d4;
    font-size: 20px;
    line-height: 1;
}

.jl-chat-modal-header {
    grid-template-columns: 72px minmax(0, 1fr) 98px;
}

.jl-chat-header-actions {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 4px;
}

.jl-chat-header-actions .jl-chat-more-btn {
    padding-right: 6px;
    padding-left: 6px;
}

.jl-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 22%, rgba(115, 174, 255, 0.34), transparent 34%),
        linear-gradient(160deg, #13233d 0%, #07111f 70%, #050a12 100%);
    color: #fff;
}

.jl-call-overlay[hidden] {
    display: none;
}

.jl-call-panel {
    width: min(100%, 420px);
    text-align: center;
}

.jl-call-kicker {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    letter-spacing: 0.18em;
}

.jl-call-avatar {
    width: 116px;
    height: 116px;
    border: 4px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.jl-call-peer-name {
    margin: 22px 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.jl-call-status,
.jl-call-timer {
    min-height: 24px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.jl-call-timer {
    margin-top: 6px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.jl-call-actions {
    display: flex;
    justify-content: center;
    gap: clamp(52px, 18vw, 92px);
    margin-top: 72px;
}

.jl-call-actions[hidden] {
    display: none;
}

.jl-call-action {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #fff;
}

.jl-call-action span {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
    font-size: 28px;
    font-style: normal;
}

.jl-call-action em {
    font-size: 14px;
    font-style: normal;
}

.jl-call-action--accept span {
    background: #22c767;
}

.jl-call-action--reject span {
    background: #f04444;
}

.jl-call-action--mute.is-muted span {
    background: #fff;
    color: #172238;
}

.jl-call-action:disabled {
    cursor: wait;
    opacity: 0.42;
}

.jl-call-privacy {
    margin: 56px 0 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
}

.jl-call-history {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.jl-call-history-icon {
    color: #1677e8;
    font-size: 17px;
}

body.jl-call-open {
    overflow: hidden;
}

.global-jl-call-error {
    position: fixed;
    z-index: 3100;
    left: 50%;
    bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    font: 500 14px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
    transform: translateX(-50%);
}

@media (max-width: 575.98px) {
    .jl-chat-call-btn {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .jl-call-overlay {
        padding-top: max(24px, env(safe-area-inset-top));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}
