.wk-conn-status {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    position: relative;
    user-select: none;
}

/* compact mode：NavRail 信号格，padding 更小 */
.wk-conn-status--compact {
    padding: 0 4px;
    gap: 2px;
}

.wk-conn-text {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.wk-conn-blink {
    animation: wk-conn-pulse 1.2s ease-in-out infinite;
}

.wk-conn-blink-wrap svg {
    animation: wk-conn-pulse 1.2s ease-in-out infinite;
}

@keyframes wk-conn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.wk-conn-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: var(--wk-bg-elevated);
    color: var(--wk-text-primary);
    border: 1px solid var(--wk-border-subtle);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: var(--wk-shadow-md);
}

.wk-conn-tooltip::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--wk-border-subtle);
}
