.support-chat-link {
    position: fixed;
    inset-inline-end: max(1rem, env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1041;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid #a7f2e3;
    border-radius: 50%;
    background: linear-gradient(145deg, #a7f2e3, #57cabc);
    color: #05201d;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 30px #031b23a3, 0 0 0 4px #79e4d12b;
}

.support-chat-link:hover { color: #05201d; background: #a7f2e3; text-decoration: none; }
.support-chat-link:focus-visible, .support-dialog-close:focus-visible {
    outline: 2px solid #a7f2e3;
    outline-offset: 3px;
}

.support-chat-dialog {
    position: fixed;
    inset: auto max(1rem, env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) auto;
    width: min(26rem, calc(100% - 2rem));
    max-width: none;
    max-height: none;
    height: min(37rem, calc(100dvh - 2rem - env(safe-area-inset-bottom)));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #416271;
    border-radius: 1.15rem;
    background: #0b1420;
    color: #f0f6ff;
    box-shadow: 0 26px 70px #03080dbc;
}

.support-chat-dialog::backdrop { background: #050d17ab; }
.support-chat-dialog[open] { display: flex; flex-direction: column; }
.support-chat-dialog iframe { flex: 1; min-height: 0; width: 100%; border: 0; }

.support-dialog-header, .support-dialog-title { display: flex; align-items: center; gap: .75rem; }
.support-dialog-header {
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid #2b4052;
    background: linear-gradient(110deg, #1a3841, #111e2c 72%);
}

.support-dialog-title h2 { margin: 0; color: #f0f6ff; font-size: 1.03rem; font-weight: 700; letter-spacing: -.01em; }
.support-dialog-title span, .support-dialog-close {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #3e6570;
    border-radius: .7rem;
    background: #142b37;
    color: #a7f2e3;
    font-size: 1.2rem;
}

.support-dialog-close { background: transparent; color: #d4e4f4; }
.support-dialog-close:hover { background: #203848; color: #fff; }

@media (max-width: 480px) {
    .support-chat-dialog {
        inset-inline-end: max(.55rem, env(safe-area-inset-right));
        bottom: calc(.55rem + env(safe-area-inset-bottom));
        width: calc(100% - 1.1rem);
        height: min(37rem, calc(100dvh - 1.1rem - env(safe-area-inset-bottom)));
    }
}
