/* Local preview layer: preserve upstream structure and interactions. */
:root:not(.dark){--primary:#2563eb;--primary-foreground:#fff;--selection:#2563eb;--success:#059669;--warning:#d97706;--destructive:#dc2626;--info:#0891b2;--ring:#2563eb;--chart-1:#2563eb;--chart-2:#0891b2;--chart-3:#7c3aed;--chart-4:#d97706;--chart-5:#e11d48;--signal-1:#059669;--signal-2:#22c55e;--signal-3:#84cc16;--signal-4:#d97706;--signal-5:#dc2626;}
#transit-info-bar{position:relative;z-index:80;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:10px 24px;background:#142d54;color:#dbeafe;font:12px/1.5 system-ui,'Microsoft YaHei',sans-serif;}
#transit-info-bar b{color:#fff;margin-right:14px;font-weight:700;}
#transit-info-bar small{margin-left:14px;color:#a9c2e3;font-size:11px;}
#transit-info-bar a{color:#67e8f9;white-space:nowrap;text-decoration:none;}
#transit-info-bar a:hover{text-decoration:underline;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(1){background:#e8f8f0;box-shadow:inset 0 3px #059669;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(2){background:#f1edff;box-shadow:inset 0 3px #7c3aed;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(3){background:#eaf0ff;box-shadow:inset 0 3px #2563eb;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(4){background:#e5f6fb;box-shadow:inset 0 3px #0891b2;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(5){background:#fff4df;box-shadow:inset 0 3px #b7790a;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(6){background:#ebf3ff;box-shadow:inset 0 3px #2563eb;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item strong{font-size:15px;font-weight:750;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item>span{font-size:12px;}
:root:not(.dark) .transit-node-card{border-color:#cbd5e1;box-shadow:0 3px 14px -8px #3249694d,inset 0 1px #fff;}
:root:not(.dark) .transit-node-card:hover{border-color:#93b4f0;}
:root:not(.dark) [data-node-network-cell]{background:#f0f6ff;border-color:#c6d9f2;}
:root:not(.dark) [data-node-network-grid]>:nth-child(1){color:#0891b2;}
:root:not(.dark) [data-node-network-grid]>:nth-child(2)>div:last-child{color:#2563eb;font-weight:700;}
:root:not(.dark) [data-node-network-grid]>:nth-child(1)>div:last-child{color:#087d90;font-weight:700;}
:root:not(.dark) [data-node-traffic-value]{color:#036b86;font-weight:700;}
:root:not(.dark) [data-node-insight-panel]{background:#f8fafc;border-color:#d7e0ea;}
:root:not(.dark) [data-node-tag-row]>span{color:#425e8b;background:#edf3fd;border-color:#d4dfef;}
:root:not(.dark) [data-node-resource-grid]>:nth-child(1){color:#1d4ed8;--success:#2563eb;}
:root:not(.dark) [data-node-resource-grid]>:nth-child(2){color:#7c3aed;--success:#7c3aed;}
:root:not(.dark) [data-node-resource-grid]>:nth-child(3){color:#0e7490;--success:#0891b2;}
:root:not(.dark) [data-node-custom-ping-row]>strong:first-of-type{color:#175fb6;font-weight:700;}
@media(min-width:1024px){[data-node-resource-value]{font-size:11px!important;}[data-node-insight-panel]{font-size:12px!important;}.transit-node-card [data-node-name]{font-size:15px;}}
@media(min-width:1024px){
  button:is([aria-label^="对比："],[aria-label^="服务器："],[aria-label^="网络："],[aria-label^="性价比："],[aria-label^="健康："],[aria-label^="导出："],[aria-label^="日志："],[aria-label^="诊断："],[aria-label^="配置："]){width:auto!important;min-width:58px;padding-inline:10px;gap:5px;font-size:12px;}
  button[aria-label^="对比："]::after{content:"对比";}button[aria-label^="服务器："]::after{content:"服务器";}button[aria-label^="网络："]::after{content:"网络";}
  button[aria-label^="性价比："]::after{content:"费用";}button[aria-label^="健康："]::after{content:"健康";}button[aria-label^="导出："]::after{content:"导出";}
  button[aria-label^="日志："]::after{content:"日志";}button[aria-label^="诊断："]::after{content:"诊断";}button[aria-label^="配置："]::after{content:"配置";}
  :root:not(.dark) button:is([aria-label^="对比："],[aria-label^="服务器："],[aria-label^="网络："],[aria-label^="性价比："],[aria-label^="健康："],[aria-label^="导出："],[aria-label^="日志："],[aria-label^="诊断："],[aria-label^="配置："])[aria-pressed="true"]{background:#2563eb;color:white;box-shadow:0 3px 8px #2563eb33;}
}

/* 2026-10-12: colorful semantic entries, without changing Transit layout/data. */
:root:not(.dark) {
  --entry-blue:#1d4ed8; --entry-blue-soft:#e8f0ff;
  --entry-purple:#6d28d9; --entry-purple-soft:#f0e7ff;
  --entry-teal:#08796c; --entry-teal-soft:#dcf8f0;
  --entry-sky:#0369a1; --entry-sky-soft:#e0f3ff;
  --entry-gold:#925b08; --entry-gold-soft:#fff2cd;
  --entry-pink:#a21caf; --entry-pink-soft:#fbe4ff;
  --entry-indigo:#4338ca; --entry-indigo-soft:#eae9ff;
}
:root:not(.dark) .transit-node-card {
  border-color:transparent;
  background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(248,251,255,.97)) padding-box,
    linear-gradient(135deg,#9ec6ff,#c5b5ff 50%,#97e4d2) border-box;
  box-shadow:0 5px 18px -12px #4f46e56b,inset 0 1px #fff;
}
:root:not(.dark) .transit-node-card:hover {
  border-color:transparent;
  box-shadow:0 8px 24px -12px #6d28d970,0 0 0 1px #a5b4fc;
}
:root:not(.dark) .transit-node-card h3 {color:#243d80;font-weight:750;}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(1){--entry-color:var(--entry-teal);--entry-soft:var(--entry-teal-soft);}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(2){--entry-color:var(--entry-purple);--entry-soft:var(--entry-purple-soft);}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(3){--entry-color:var(--entry-gold);--entry-soft:var(--entry-gold-soft);}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(4){--entry-color:var(--entry-sky);--entry-soft:var(--entry-sky-soft);}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(5){--entry-color:var(--entry-pink);--entry-soft:var(--entry-pink-soft);}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(6){--entry-color:var(--entry-blue);--entry-soft:var(--entry-blue-soft);}
:root:not(.dark) .transit-telemetry-grid .telemetry-item:nth-child(n) {
  background:linear-gradient(120deg,var(--entry-soft),#ffffffd9);
  box-shadow:inset 0 4px var(--entry-color);
}
:root:not(.dark) .transit-telemetry-grid .telemetry-item>span {
  color:var(--entry-color);font-weight:750;
}
:root:not(.dark) .transit-telemetry-grid .telemetry-item strong {color:var(--entry-color);}
:root:not(.dark) [data-node-resource-grid]>div:nth-child(1){--entry-color:var(--entry-blue);--entry-soft:var(--entry-blue-soft);--success:#2563eb;}
:root:not(.dark) [data-node-resource-grid]>div:nth-child(2){--entry-color:var(--entry-purple);--entry-soft:var(--entry-purple-soft);--success:#8b5cf6;}
:root:not(.dark) [data-node-resource-grid]>div:nth-child(3){--entry-color:var(--entry-gold);--entry-soft:var(--entry-gold-soft);--success:#c99724;}
:root:not(.dark) [data-node-resource-grid]>div {
  background:linear-gradient(145deg,var(--entry-soft),#ffffff90);
  border:1px solid color-mix(in srgb,var(--entry-color) 16%,white);
  border-radius:8px;padding:7px 6px;
}
:root:not(.dark) [data-node-resource-grid]>div>div:first-child>span,
:root:not(.dark) [data-node-resource-grid]>div>div:first-child>strong {color:var(--entry-color);font-weight:750;}
/* Resource thresholds still win over decorative category colors. */
:root:not(.dark) [data-node-resource-grid]>div:has(.bg-warning)>div:first-child>strong {color:#b45309;}
:root:not(.dark) [data-node-resource-grid]>div:has(.bg-destructive)>div:first-child>strong {color:#b91c1c;}
:root:not(.dark) [data-node-price] {color:var(--entry-pink);background:var(--entry-pink-soft);padding:2px 6px;border-radius:5px;font-weight:700;}
:root:not(.dark) [data-node-network-cell]>div:first-child {color:var(--entry-sky);background:#dff3ff;font-weight:750;border-bottom:1px solid #c9e7f6;}
:root:not(.dark) [data-node-network-grid]>div:nth-child(1){--entry-color:var(--entry-teal);--entry-soft:var(--entry-teal-soft);}
:root:not(.dark) [data-node-network-grid]>div:nth-child(2){--entry-color:var(--entry-blue);--entry-soft:var(--entry-blue-soft);}
:root:not(.dark) [data-node-network-grid]>div:nth-child(3){--entry-color:var(--entry-indigo);--entry-soft:var(--entry-indigo-soft);}
:root:not(.dark) [data-node-network-grid]>div:nth-child(4){--entry-color:var(--entry-gold);--entry-soft:var(--entry-gold-soft);}
:root:not(.dark) [data-node-network-grid]>div {background:linear-gradient(180deg,var(--entry-soft),#ffffffad);}
:root:not(.dark) [data-node-network-grid]>div>div:first-child {color:var(--entry-color);font-weight:750;}
:root:not(.dark) [data-node-network-grid]>div>div:nth-child(2) {color:var(--entry-color);font-weight:650;}
:root:not(.dark) [data-node-insight-panel]>div:first-child {color:var(--entry-purple);font-weight:700;}
:root:not(.dark) [data-node-custom-ping-row]:nth-child(3n+1){--entry-color:var(--entry-blue);--entry-soft:var(--entry-blue-soft);}
:root:not(.dark) [data-node-custom-ping-row]:nth-child(3n+2){--entry-color:var(--entry-purple);--entry-soft:var(--entry-purple-soft);}
:root:not(.dark) [data-node-custom-ping-row]:nth-child(3n+3){--entry-color:var(--entry-teal);--entry-soft:var(--entry-teal-soft);}
:root:not(.dark) [data-node-custom-ping-row] {background:var(--entry-soft);border-inline-start:3px solid var(--entry-color);border-radius:5px;padding:5px 6px;}
:root:not(.dark) [data-node-custom-ping-row]>span,
:root:not(.dark) [data-node-custom-ping-row]>strong:first-of-type {color:var(--entry-color);font-weight:650;}
/* Last strong is the failure percentage: preserve upstream warning/error colors. */
:root:not(.dark) [data-node-custom-ping-row]>strong:last-child.text-rose-600 {color:#be123c;}
:root:not(.dark) [data-node-custom-ping-row]>strong:last-child.text-amber-700 {color:#92400e;}
:root:not(.dark) [data-node-tag-row]>span:nth-child(4n+1){color:var(--entry-blue);background:var(--entry-blue-soft);border-color:#b9d2ff;}
:root:not(.dark) [data-node-tag-row]>span:nth-child(4n+2){color:var(--entry-purple);background:var(--entry-purple-soft);border-color:#d7bfff;}
:root:not(.dark) [data-node-tag-row]>span:nth-child(4n+3){color:var(--entry-teal);background:var(--entry-teal-soft);border-color:#a4e4cd;}
:root:not(.dark) [data-node-tag-row]>span:nth-child(4n+4){color:var(--entry-pink);background:var(--entry-pink-soft);border-color:#edbaf0;}
:root:not(.dark) [data-node-tag-row]>span {font-weight:650;box-shadow:0 1px 2px #64748b0d;}
:root:not(.dark) [data-node-insight-mode="system"]>div:nth-child(2)>div:nth-child(1){color:var(--entry-blue);background:var(--entry-blue-soft);}
:root:not(.dark) [data-node-insight-mode="system"]>div:nth-child(2)>div:nth-child(2){color:var(--entry-gold);background:var(--entry-gold-soft);}
:root:not(.dark) [data-node-insight-mode="system"]>div:nth-child(2)>div:nth-child(3){color:var(--entry-purple);background:var(--entry-purple-soft);}
:root:not(.dark) [data-node-insight-mode="system"]>div:nth-child(2)>div>span {color:inherit;font-weight:650;}
:root:not(.dark) button[aria-label^="对比："]{--entry-color:var(--entry-blue);--entry-soft:var(--entry-blue-soft);}
:root:not(.dark) button[aria-label^="服务器："]{--entry-color:var(--entry-indigo);--entry-soft:var(--entry-indigo-soft);}
:root:not(.dark) button[aria-label^="网络："]{--entry-color:var(--entry-teal);--entry-soft:var(--entry-teal-soft);}
:root:not(.dark) button[aria-label^="性价比："]{--entry-color:var(--entry-pink);--entry-soft:var(--entry-pink-soft);}
:root:not(.dark) button[aria-label^="健康："]{--entry-color:var(--entry-teal);--entry-soft:var(--entry-teal-soft);}
:root:not(.dark) button[aria-label^="导出："]{--entry-color:var(--entry-purple);--entry-soft:var(--entry-purple-soft);}
:root:not(.dark) button[aria-label^="日志："]{--entry-color:#475569;--entry-soft:#e9eef5;}
:root:not(.dark) button[aria-label^="诊断："]{--entry-color:var(--entry-gold);--entry-soft:var(--entry-gold-soft);}
:root:not(.dark) button[aria-label^="配置："]{--entry-color:var(--entry-pink);--entry-soft:var(--entry-pink-soft);}
:root:not(.dark) button:is([aria-label^="对比："],[aria-label^="服务器："],[aria-label^="网络："],[aria-label^="性价比："],[aria-label^="健康："],[aria-label^="导出："],[aria-label^="日志："],[aria-label^="诊断："],[aria-label^="配置："]) {
  color:var(--entry-color);background:var(--entry-soft);border:1px solid color-mix(in srgb,var(--entry-color) 18%,white);font-weight:650;
}
:root:not(.dark) button:is([aria-label^="对比："],[aria-label^="服务器："],[aria-label^="网络："],[aria-label^="性价比："],[aria-label^="健康："],[aria-label^="导出："],[aria-label^="日志："],[aria-label^="诊断："],[aria-label^="配置："])[aria-pressed="true"] {
  color:white!important;background:var(--entry-color)!important;box-shadow:0 3px 9px color-mix(in srgb,var(--entry-color) 24%,transparent);
}
/* Upstream selected controls use Tailwind ! utilities. Important declarations
   inside that same layer outrank the upstream class by selector specificity. */
@layer utilities {
  :root:not(.dark) button:is([aria-label^="对比："],[aria-label^="服务器："],[aria-label^="网络："],[aria-label^="性价比："],[aria-label^="健康："],[aria-label^="导出："],[aria-label^="日志："],[aria-label^="诊断："],[aria-label^="配置："])[aria-pressed="true"] {
    color:#fff!important;
    background-color:var(--entry-color)!important;
  }
}
