.global-sos-alert {
    position: fixed;
    top: 4.25rem;
    right: 1rem;
    z-index: 6200;
    width: min(34rem, calc(100vw - 2rem));
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #991b1b, #dc2626);
    border: 2px solid rgba(254, 226, 226, 0.92);
    border-radius: 1rem;
    box-shadow: 0 22px 55px rgba(127, 29, 29, 0.42);
    animation: global-sos-emphasis 1.8s ease-in-out infinite alternate;
}

.global-sos-alert[hidden] {
    display: none !important;
}

.global-sos-alert--checking,
.global-sos-alert--unavailable {
    color: #422006;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    box-shadow: 0 18px 45px rgba(146, 64, 14, 0.28);
    animation: none;
}

.global-sos-alert--unavailable.global-sos-alert--has-incidents {
    color: #fff;
    background: linear-gradient(135deg, #7f1d1d, #b91c1c);
    border-color: #fecaca;
}

.global-sos-alert__signal {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #991b1b;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: #fff;
    border-radius: 999px;
}

.global-sos-alert--checking .global-sos-alert__signal,
.global-sos-alert--unavailable:not(.global-sos-alert--has-incidents) .global-sos-alert__signal {
    color: #92400e;
}

.global-sos-alert__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.global-sos-alert__content strong {
    font-size: 0.98rem;
    line-height: 1.25;
}

.global-sos-alert__content > span {
    font-size: 0.78rem;
    line-height: 1.35;
}

#global-sos-alert-meta {
    opacity: 0.86;
    font-size: 0.7rem;
}

.global-sos-alert__link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.8rem;
    color: #7f1d1d;
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 0.75rem;
}

.global-sos-alert__link:hover {
    background: #fef2f2;
}

.global-sos-alert__link:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

.global-sos-alert__live {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@keyframes global-sos-emphasis {
    from { box-shadow: 0 18px 42px rgba(127, 29, 29, 0.35); }
    to { box-shadow: 0 25px 62px rgba(220, 38, 38, 0.62); }
}

@media (max-width: 720px) {
    .global-sos-alert {
        top: 3.9rem;
        right: 0.65rem;
        width: calc(100vw - 1.3rem);
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.75rem;
    }

    .global-sos-alert__signal {
        width: 2.75rem;
        height: 2.75rem;
    }

    .global-sos-alert__link {
        grid-column: 2;
        justify-self: start;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .global-sos-alert {
        animation: none !important;
        transition: none !important;
    }
}

@media (forced-colors: active) {
    .global-sos-alert {
        border: 3px solid CanvasText;
    }

    .global-sos-alert__link {
        border-color: LinkText;
    }
}
