.country-flag {
            width: 22px;
            height: 16px;
            object-fit: cover;
            vertical-align: middle;
            margin-right: 6px;
            border-radius: 2px;
            box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
            background: #f1f5f9;
        }

        .dns-item { display: inline-flex; align-items: center; margin-right: 14px; margin-bottom: 4px; }

        .dg-panel {
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
            border: 1px solid #eef2f7;
            overflow: hidden;
            margin-bottom: 20px;
        }
        .dg-panel-head {
            padding: 28px 32px 24px;
            background: linear-gradient(135deg, #f8fafc 0%, #fff 55%, #f0f9ff 100%);
            border-bottom: 1px solid #eef2f7;
        }
        .dg-head-inner {
            display: flex;
            align-items: center;
            gap: 32px;
            flex-wrap: wrap;
        }
        .dg-score-block { flex-shrink: 0; text-align: center; min-width: 150px; }
        .dg-score-ring {
            width: 132px;
            height: 132px;
            margin: 0 auto 10px;
            border-radius: 50%;
            background: conic-gradient(var(--ring-color, #94a3b8) calc(var(--pct, 0) * 1%), #e2e8f0 0);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            box-shadow: inset 0 0 0 6px rgb(255 255 255 / 80%);
        }
        .dg-score-ring::before {
            content: '';
            width: 100px;
            height: 100px;
            background: #fff;
            border-radius: 50%;
            position: absolute;
            box-shadow: 0 2px 12px rgb(15 23 42 / 6%);
            z-index: 1;
        }
        .dg-score-num {
            position: relative;
            z-index: 3;
            font-size: 1.85rem;
            font-weight: 800;
            color: #0f172a;
            letter-spacing: -0.02em;
        }
        .dg-score-num.dg-score-loading {
            font-size: 0.92rem;
            font-weight: 700;
            letter-spacing: 0;
            white-space: nowrap;
        }
        .dg-score-label { font-size: 0.82rem; color: #64748b; letter-spacing: 0.04em; }
        .dg-verdict { margin-top: 8px; font-size: 0.95rem; font-weight: 600; color: #059669; }

        .dg-layers { flex: 1; min-width: 260px; }
        .dg-layers-title {
            font-size: 0.78rem;
            font-weight: 600;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 14px;
        }
        .dg-layer-row {
            display: grid;
            grid-template-columns: 118px 1fr 44px;
            gap: 12px;
            align-items: center;
            margin-bottom: 11px;
        }
        .dg-layer-row:last-child { margin-bottom: 0; }
        .dg-layer-name { font-size: 0.86rem; color: #334155; font-weight: 500; }
        .dg-bar-wrap { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; position: relative; }
        .dg-bar-fill { height: 100%; border-radius: 999px; transition: width 0.55s cubic-bezier(.4,0,.2,1), background 0.35s ease; }
        .dg-bar-wrap.dg-bar-track-loading .dg-bar-fill {
            opacity: 1;
            background: linear-gradient(90deg, #e2e8f0 0%, #94a3b8 48%, #cbd5e1 100%);
            background-size: 220% 100%;
            animation: dgBarShimmer 1.8s ease-in-out infinite;
        }
        .dg-layer-row[data-key="network"] .dg-bar-wrap.dg-bar-track-loading .dg-bar-fill { width: 68%; animation-delay: 0s; }
        .dg-layer-row[data-key="hardware"] .dg-bar-wrap.dg-bar-track-loading .dg-bar-fill { width: 74%; animation-delay: 0.15s; }
        .dg-layer-row[data-key="logic"] .dg-bar-wrap.dg-bar-track-loading .dg-bar-fill { width: 70%; animation-delay: 0.3s; }
        .dg-layer-row[data-key="isolation"] .dg-bar-wrap.dg-bar-track-loading .dg-bar-fill { width: 76%; animation-delay: 0.45s; }
@keyframes dgBarShimmer {
            0% { background-position: 100% 0; }
            100% { background-position: -100% 0; }
        }
        .dg-layer-row.dg-layer-loading .dg-layer-pct { color: #94a3b8; }
        .dg-score-ring.dg-ring-loading {
            background: conic-gradient(var(--ring-color, #93c5fd) calc(var(--pct, 68) * 1%), #e2e8f0 0) !important;
            box-shadow: inset 0 0 0 6px rgb(255 255 255 / 80%);
            animation: dgRingBreath 2s ease-in-out infinite;
        }
@keyframes dgRingBreath {
            0%, 100% { opacity: 0.92; }
            50% { opacity: 1; }
        }
        .dg-score-ring.dg-ring-loading .dg-ring-spinner {
            opacity: 0.35;
            border-color: #e2e8f0;
            border-top-color: #3b82f6;
        }
        .dg-score-ring.dg-ring-loading .dg-score-num { color: #64748b; }
        .dg-score-ring.dg-ring-loading + .dg-score-label + .dg-verdict,
        .dg-verdict.dg-verdict-loading { color: #64748b !important; font-weight: 600; }
@keyframes dgSpin {
            to { transform: rotate(360deg); }
        }
        .dg-ring-spinner {
            position: absolute;
            inset: 3px;
            border-radius: 50%;
            border: 3px solid #e2e8f0;
            border-top-color: #3b82f6;
            border-right-color: #93c5fd;
            animation: dgSpin 2.2s linear infinite;
            z-index: 2;
        }
        .dg-consistency-hint {
            display: block;
            margin-top: 3px;
            font-size: 0.78rem;
            color: #64748b;
            line-height: 1.4;
        }
        .dg-consistency-hint.ok { color: #059669; }
        .dg-consistency-hint.bad { color: #dc2626; }
        .dg-consistency-hint a,
        .dg-dns-tip a { color: #2563eb; text-decoration: none; font-weight: 500; }
        .dg-consistency-hint a:hover,
        .dg-dns-tip a:hover { text-decoration: underline; }
        .dg-webrtc-line {
            display: inline-flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
        }
        .dg-webrtc-ip {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 0.86rem;
            font-weight: 600;
        }
        .dg-webrtc-leak { color: #dc2626; }
        .dg-webrtc-safe { color: #059669; }
        .dg-webrtc-muted { color: #64748b; }
        .dg-webrtc-detail {
            color: #2563eb;
            text-decoration: none;
            font-size: 0.84rem;
            font-weight: 500;
        }
        .dg-webrtc-detail:hover { text-decoration: underline; }
        .dg-loading-inline {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #64748b;
        }
        .dg-spinner {
            flex-shrink: 0;
            width: 14px;
            height: 14px;
            border: 2px solid #e2e8f0;
            border-top-color: #3b82f6;
            border-radius: 50%;
            animation: dgSpin 2.2s linear infinite;
        }
        .dg-table tr.dg-row-loading td:last-child { visibility: hidden; }
        .dg-layer-pct { text-align: right; font-weight: 700; font-size: 0.84rem; font-variant-numeric: tabular-nums; color: #0f172a; }

        .dg-panel-body { padding: 8px 0 0; }
        .dg-layer-group { border-bottom: 1px solid #f1f5f9; }
        .dg-layer-group:last-child { border-bottom: none; }
        .dg-layer-header {
            display: flex;
            align-items: center;
            padding: 16px 32px 10px;
            gap: 12px;
        }
        .dg-layer-header-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .dg-layer-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .dg-layer-icon svg { width: 20px; height: 20px; }
        .ic-net { background: #eff6ff; color: #2563eb; }
        .ic-hw { background: #f5f3ff; color: #7c3aed; }
        .ic-logic { background: #ecfeff; color: #0891b2; }
        .ic-iso { background: #ecfdf5; color: #059669; }
        .dg-layer-title { font-weight: 600; font-size: 0.98rem; color: #0f172a; }
        .dg-layer-sub { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }

        .dg-table { width: 100%; border-collapse: collapse; }
        .dg-table td {
            padding: 9px 32px;
            text-align: left;
            border-top: 1px solid #f8fafc;
            font-size: 0.87rem;
            vertical-align: middle;
        }
        .dg-table tr:first-child td { border-top: none; }
        .dg-table td:first-child { width: 26%; color: #64748b; font-weight: 500; }
        .dg-table td:last-child {
            width: 108px;
            text-align: right;
            white-space: nowrap;
        }
        .dg-status-cell {
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
            flex-wrap: nowrap;
        }
        .dg-tag {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 0.72rem;
            font-weight: 600;
        }
        .dg-ok { background: #dcfce7; color: #166534; }
        .dg-warn { background: #fef3c7; color: #92400e; }
        .dg-bad { background: #fee2e2; color: #991b1b; }
        .dg-info { background: #e0f2fe; color: #075985; }
        .dg-deduct {
            display: inline-block;
            margin-right: 0;
            font-size: 0.78rem;
            font-weight: 600;
            color: #dc2626;
            font-variant-numeric: tabular-nums;
        }
        .dg-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.8rem; word-break: break-all; }

        .dg-deduct-block {
            margin: 0;
            padding: 20px 32px;
            background: #fffbeb;
            border-top: 1px solid #fde68a;
        }
        .dg-deduct-title {
            font-size: 0.88rem;
            font-weight: 600;
            color: #92400e;
            margin-bottom: 10px;
        }
        .dg-deduct-list { list-style: none; margin: 0; padding: 0; }
        .dg-deduct-list li {
            font-size: 0.86rem;
            color: #78350f;
            padding: 5px 0;
            display: flex;
            gap: 10px;
            align-items: baseline;
        }
        .dg-deduct-list .pts {
            font-weight: 700;
            color: #dc2626;
            min-width: 52px;
            font-variant-numeric: tabular-nums;
        }
        .dg-deduct-empty { color: #64748b; font-size: 0.86rem; }

        .dg-foot {
            padding: 22px 32px 28px;
        }
        .dg-foot-title {
            font-size: 0.88rem;
            font-weight: 600;
            color: #475569;
            margin-bottom: 12px;
        }
        .dg-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 18px;
        }
        .dg-legend-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.84rem;
            color: #475569;
        }

        .dg-client-card {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
            padding: 20px;
            background: #fff;
            margin: 15px 0 0;
        }
        .dg-client-card-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 1.05rem;
            margin-bottom: 12px;
        }
        .dg-client-h3 {
            font-size: 0.95rem;
            font-weight: 600;
            color: #334155;
            margin: 20px 0 10px;
        }
        .dg-client-h3:first-of-type { margin-top: 0; }
        .dg-client-p {
            margin: 0 0 10px;
            color: #64748b;
            font-size: 0.88rem;
            line-height: 1.75;
        }
        .dg-client-ul {
            margin: 0 0 12px;
            padding-left: 1.25rem;
            color: #64748b;
            font-size: 0.88rem;
            line-height: 1.75;
        }
        .dg-client-ul li { margin-bottom: 6px; }
        .dg-client-ul li:last-child { margin-bottom: 0; }
        .dg-client-ul a { color: #3794f8; text-decoration: none; }
        .dg-client-ul a:hover { text-decoration: underline; }
        .dg-risk-box {
            margin-top: 4px;
            padding: 14px 16px;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            border-radius: 8px;
        }
        .dg-risk-box .dg-client-p:last-child { margin-bottom: 0; }
        .dg-legend-item span:last-child { color: #64748b; }

@media (max-width: 768px) {
            .dg-head-inner { flex-direction: column; align-items: stretch; }
            .dg-score-block { margin: 0 auto; }
            .dg-layer-row { grid-template-columns: 1fr 44px; }
            .dg-layer-name { grid-column: 1 / -1; }
            .dg-layer-header, .dg-table td, .dg-deduct-block, .dg-foot { padding-left: 18px; padding-right: 18px; }
        }
