/* dark-panel-fix.css — 深色模式面板对比度修复（反馈 51e18f65）
   问题：.rpv-selfchk 在深色主题下仍是白色半透明底，浅色文字压白底不可读；
        连通性面板 .rchp-* 仍是浅色主题的深蓝字 / 白底徽章。
   只改深色主题，浅色主题不动。 */
html[data-theme="dark"] .rpv-selfchk {
  background: rgba(18, 26, 42, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}
html[data-theme="dark"] .rpv-selfchk .rpv-sck,
html[data-theme="dark"] .rpv-selfchk .rpv-scv,
html[data-theme="dark"] .rpv-selfchk .rpv-scsub2,
html[data-theme="dark"] .rpv-selfchk .rpv-scnote {
  color: #dbe7fb !important;
}
html[data-theme="dark"] .rpv-selfchk .rpv-scv.ok { color: #6ee7a8 !important; }
html[data-theme="dark"] .rpv-selfchk .rpv-scv.bad { color: #fca5a5 !important; }

/* 连通性检测：整行摘要与平台名 */
html[data-theme="dark"] .rchp-sum,
html[data-theme="dark"] .rchp-sum *,
html[data-theme="dark"] .rchp-flag,
html[data-theme="dark"] .rchp-rname,
html[data-theme="dark"] .rchp-pname {
  color: #d7e5ff !important;
}
html[data-theme="dark"] .rchp-sep { color: #93a4c2 !important; }

/* 地区徽章：原来是白底浅蓝字，深色下改深底亮字 */
html[data-theme="dark"] .rchp-reg {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #a8c8ff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] .rchp-reg.on {
  background: rgba(96, 165, 250, 0.20) !important;
  color: #cfe3ff !important;
}
html[data-theme="dark"] .rchp-refi { color: #a8c8ff !important; }

/* 线路明细区 */
html[data-theme="dark"] .rpv-dcnodes-title { color: #e8f0ff !important; }
html[data-theme="dark"] .rpv-dcnodes-note { color: #c9d8f2 !important; }
html[data-theme="dark"] .rpv-dclines-toggle { color: #d8e6ff !important; }

/* 连通性面板「刷新」按钮：原来是白底浅蓝字，深色下几乎看不见 */
html[data-theme="dark"] .rchp-refresh {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #cfe3ff !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="dark"] .rchp-refresh .rchp-refi { color: #cfe3ff !important; }
