.connection-status-widget {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 12000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-family: "Manrope", system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.connection-status-widget__dot {
    position: relative;
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.connection-status-widget__core {
    position: relative;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.connection-status-widget[data-online="false"] .connection-status-widget__core {
    background: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.connection-status-widget__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #4ade80;
    opacity: 0.65;
    animation: connection-status-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes connection-status-ping {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    75%,
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}
