.conn-summary {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin: 16px 0 20px;
        }
        .conn-stat {
            background: #fff;
            border-radius: 8px;
            padding: 16px 18px;
            box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
            text-align: center;
        }
        .conn-stat-label { font-size: 0.82rem; color: #64748b; margin-bottom: 6px; }
        .conn-stat-value { font-size: 1.65rem; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }
        .conn-stat-value.ok { color: #059669; }
        .conn-stat-value.warn { color: #d97706; }
        .conn-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            width: 100%;
            margin-bottom: 16px;
        }
        .conn-btn {
            padding: 10px 22px;
            font-size: 0.92rem;
            font-weight: 600;
            background: var(--primary-blue);
            color: #fff;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s, opacity 0.2s;
            flex-shrink: 0;
        }
        .conn-btn:hover { background: rgba(0, 47, 255, 0.82); }
        .conn-btn:disabled { opacity: 0.55; cursor: not-allowed; }
        .conn-filters {
            flex: 1;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .conn-filter {
            padding: 6px 14px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 500;
            border: 1px solid #e2e8f0;
            background: #fff;
            color: #475569;
            cursor: pointer;
            transition: all 0.15s;
            white-space: nowrap;
        }
        .conn-filter:hover { border-color: #c9d3ff; color: var(--primary-blue); }
        .conn-filter.active {
            background: #eff6ff;
            border-color: #93c5fd;
            color: var(--primary-blue);
        }
        .conn-progress-wrap {
            flex: 0 0 220px;
            width: 220px;
            flex-shrink: 0;
        }
        .conn-progress-bar {
            height: 8px;
            background: #e2e8f0;
            border-radius: 999px;
            overflow: hidden;
        }
        .conn-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #3b82f6, #059669);
            border-radius: 999px;
            transition: width 0.35s ease;
        }
        .conn-progress-text {
            font-size: 0.78rem;
            color: #64748b;
            margin-top: 4px;
            text-align: right;
        }
        .conn-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 12px;
        }
        .conn-card {
            background: #fff;
            border-radius: 16px;
            padding: 14px 16px;
            box-shadow: 0 2px 10px rgb(0 0 0 / 7%);
            border: 1px solid #f1f5f9;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: box-shadow 0.2s, border-color 0.2s;
        }
        .conn-card.testing { border-color: #bfdbfe; box-shadow: 0 4px 16px rgb(59 130 246 / 12%); }
        .conn-card.ok { border-color: #bbf7d0; }
        .conn-card.fail { border-color: #fecaca; }
        .conn-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: #f8fafc;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .conn-icon img { width: 24px; height: 24px; object-fit: contain; }
        .conn-body { flex: 1; min-width: 0; }
        .conn-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: #0f172a;
            margin-bottom: 4px;
        }
        .conn-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            font-size: 0.78rem;
        }
        .conn-cat {
            padding: 2px 8px;
            border-radius: 6px;
            font-weight: 600;
            background: #f1f5f9;
            color: #475569;
        }
        .conn-cat-cn { background: #dcfce7; color: #166534; }
        .conn-cat-global { background: #dbeafe; color: #1d4ed8; }
        .conn-cat-ai { background: #f3e8ff; color: #6b21a8; }
        .conn-cat-shop { background: #ffedd5; color: #c2410c; }
        .conn-cat-tech { background: #e0f2fe; color: #0369a1; }
        .conn-domain { color: #94a3b8; }
        .conn-status {
            flex-shrink: 0;
            text-align: right;
            min-width: 72px;
        }
        .conn-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        .conn-badge-pending { background: #f1f5f9; color: #94a3b8; }
        .conn-badge-testing { background: #dbeafe; color: #1d4ed8; }
        .conn-badge-ok { background: #dcfce7; color: #166534; }
        .conn-badge-fail { background: #fee2e2; color: #991b1b; }
        .conn-latency {
            font-size: 0.82rem;
            font-weight: 600;
            margin-top: 4px;
            font-variant-numeric: tabular-nums;
        }
        .lat-fast { color: #059669; }
        .lat-mid { color: #d97706; }
        .lat-slow { color: #dc2626; }
        .lat-none { color: #94a3b8; }
        .conn-note {
            margin-top: 20px;
            padding: 16px 18px;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
            font-size: 0.88rem;
            color: #64748b;
            line-height: 1.7;
        }
@media (max-width: 768px) {
            .conn-summary { grid-template-columns: repeat(2, 1fr); }
            .conn-toolbar { flex-direction: column; align-items: stretch; }
            .conn-progress-wrap { width: 100%; flex: none; }
        }
