/* 嵌入 GSVPS 时，覆盖 probe/style.css 对站点 chrome 的污染（加载顺序在 style.css 之后） */

body:has(.probe-report-embed) {
  overflow: auto !important;
  margin: 0 !important;
  background: var(--background) !important;
  color: var(--foreground) !important;
  font-family: var(--font-sans) !important;
}

/* 保留滚动能力，隐藏滚动条（html 类由 ProbeReportEmbed 挂载时添加，比 :has 更可靠） */
html.probe-report-active {
  scrollbar-gutter: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html.probe-report-active body {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html.probe-report-active::-webkit-scrollbar,
html.probe-report-active body::-webkit-scrollbar,
html.probe-report-active *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html:has(.probe-report-embed),
body:has(.probe-report-embed) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(.probe-report-embed)::-webkit-scrollbar,
body:has(.probe-report-embed)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.probe-report-embed :is(
  .report-viewport,
  main.report-viewport,
  .col-body,
  .probe-table-scroll,
  .table-scroll,
  .province-matrix-wrap,
  .route-map
) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.probe-report-embed :is(
  .report-viewport,
  main.report-viewport,
  .col-body,
  .probe-table-scroll,
  .table-scroll,
  .province-matrix-wrap,
  .route-map
)::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body:has(.probe-report-embed) > div > header.site-chrome {
  height: auto !important;
  min-height: unset !important;
  padding: 0 !important;
  background: color-mix(in oklab, var(--background) 80%, transparent) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border) !important;
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  align-items: unset !important;
  justify-content: unset !important;
  color: inherit !important;
  font: inherit !important;
  isolation: isolate;
  pointer-events: auto;
}

body:has(.probe-report-embed) > div > footer.site-chrome {
  display: block !important;
  border-top: 1px solid var(--border) !important;
  padding: 0 !important;
  text-align: start !important;
  color: inherit !important;
  font-size: inherit !important;
  background: color-mix(in oklab, var(--card) 40%, transparent) !important;
}

body:has(.probe-report-embed) #main-content {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font: inherit !important;
  color: inherit !important;
}

/* probe 全局 button{} 在 style.css 中晚于 Tailwind 加载，需强制还原 */
body:has(.probe-report-embed) .site-chrome button {
  border: unset;
  border-radius: unset;
  background: unset;
  color: unset;
  font-weight: unset;
  padding: unset;
  cursor: unset;
}

body:has(.probe-report-embed) .site-chrome input {
  border: unset;
  border-radius: unset;
  background: unset;
  color: unset;
  font: unset;
  padding: unset;
}

/* probe .grid 与 Tailwind .grid 类名冲突，破坏 footer 五列布局 */
body:has(.probe-report-embed) footer.site-chrome .grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 2rem !important;
  row-gap: 2.5rem !important;
}

@media (min-width: 768px) {
  body:has(.probe-report-embed) footer.site-chrome .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: start !important;
  }
}

/* 报告容器：probe 主题变量与样式仅作用于证书区域 */
.probe-report-page {
  --probe-canvas-max-h: calc(100dvh - 4rem - 7rem - 5.5rem);
  --bg: #071014;
  --panel: #0d191e;
  --panel2: #122229;
  --text: #edfaff;
  --muted: #8da8b2;
  --line: #20353d;
  --accent: #20d3d6;
  --good: #47df8c;
  --warn: #ffc857;
  --bad: #ff6b78;
  --shadow: 0 18px 60px #0006;
  width: 100%;
  max-width: 100%;
  background: radial-gradient(circle at 15% 0, #103139 0, transparent 35%), var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  margin-bottom: 0.5rem;
}

/* 桌面缩放：宽度锁定视口内，高度可超出并随页面纵向滚动 */
.probe-report-embed.fit-active:not(.embed-scroll) {
  width: 100% !important;
  max-width: 100% !important;
}

body:has(.probe-report-embed.fit-active:not(.embed-scroll)) {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.probe-report-page[data-theme="light"] {
  --bg: #eef6f7;
  --panel: #fff;
  --panel2: #e7f0f2;
  --text: #0b1d23;
  --muted: #54717b;
  --line: #cedde1;
  --shadow: 0 18px 50px #29515c1c;
}

.probe-report-page[data-theme="light"] .certificate {
  background: linear-gradient(135deg, #fffef8, #f5f0df);
  color: #14252b;
  box-shadow: 0 30px 80px #29434d24;
}

.probe-report-page[data-theme="light"] .certificate .card {
  background: #fffdf8;
}

.probe-report-page[data-theme="light"] .certificate .metric {
  background: #f3efe4;
}

.probe-report-page[data-theme="light"] .certificate-seal {
  background: radial-gradient(circle, #fffdf5, #e9dfbf);
  box-shadow: inset 0 0 0 6px #fffaf0, inset 0 0 0 8px #b88c3066, 0 12px 30px #6c55252b;
}

.probe-report-page[data-theme="light"] .certificate .status {
  background: #fffdf8;
}

.probe-report-page[data-theme="light"] .certificate .metrics {
  background: #f3efe4;
}

.probe-report-page[data-theme="light"] .report-section .summary {
  background: #e9e4d488;
}

.probe-report-embed header.col-head,
.probe-report-embed .report-group > header {
  height: auto !important;
  min-height: 0 !important;
  position: static !important;
  top: auto !important;
  backdrop-filter: none !important;
  z-index: auto !important;
  color: inherit !important;
  font: inherit !important;
}

.probe-report-embed header.col-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 6px 8px 8px !important;
  margin: 0 0 4px !important;
  border-bottom: 1px solid #b99a4c55 !important;
  background: linear-gradient(180deg, rgba(217, 184, 93, 0.11) 0%, transparent 100%) !important;
}

.probe-report-embed header.col-head small {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d9b85d !important;
  font: 700 7px/1 ui-monospace, SFMono-Regular, Menlo, monospace !important;
  letter-spacing: 0.2em !important;
  opacity: 0.92 !important;
}

.probe-report-embed header.col-head h2 {
  margin: 0 !important;
  width: 100% !important;
  font: 700 11px/1.15 ui-serif, Georgia, "Noto Serif SC", serif !important;
  color: #f5f0df !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
}

.probe-report-embed.fit-active:not(.embed-scroll) header.col-head {
  padding: 5px 6px 6px !important;
  margin-bottom: 3px !important;
}

.probe-report-embed.fit-active:not(.embed-scroll) header.col-head h2 {
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.probe-report-embed[data-theme="light"] header.col-head {
  background: linear-gradient(180deg, rgba(185, 154, 76, 0.12) 0%, transparent 100%) !important;
}

.probe-report-embed[data-theme="light"] header.col-head h2 {
  color: #14252b !important;
}

/* 手机滚动布局（embed-scroll）：style.css 的表格 border 仅在 fit-active 下定义 */
.probe-report-embed.embed-scroll .kv-table,
.probe-report-embed.embed-scroll .ip-label-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 8px;
  font-size: var(--probe-mobile-text, 12px);
  line-height: var(--probe-mobile-line, 1.45);
}

.probe-report-embed.embed-scroll .kv-table th,
.probe-report-embed.embed-scroll .kv-table td,
.probe-report-embed.embed-scroll .ip-label-table th,
.probe-report-embed.embed-scroll .ip-label-table td {
  padding: 6px 8px;
  border: 1px solid var(--line) !important;
  text-align: left;
  vertical-align: top;
}

.probe-report-embed.embed-scroll .kv-table th,
.probe-report-embed.embed-scroll .ip-label-table th {
  width: 34%;
  max-width: 34%;
  color: var(--muted);
  font-weight: 600;
}

.probe-report-embed.embed-scroll .ip-matrix th,
.probe-report-embed.embed-scroll .ip-matrix td,
.probe-report-embed.embed-scroll .ping-matrix th,
.probe-report-embed.embed-scroll .ping-matrix td,
.probe-report-embed.embed-scroll .route-table th,
.probe-report-embed.embed-scroll .route-table td,
.probe-report-embed.embed-scroll .route-return-matrix th,
.probe-report-embed.embed-scroll .route-return-matrix td,
.probe-report-embed.embed-scroll .ip-risk-score th,
.probe-report-embed.embed-scroll .ip-risk-score td {
  padding: 5px 7px;
  border: 1px solid var(--line) !important;
  vertical-align: top;
  font-size: var(--probe-mobile-text, 12px);
  line-height: var(--probe-mobile-line, 1.45);
}

.probe-report-embed.embed-scroll .ip-matrix tbody th,
.probe-report-embed.embed-scroll .ping-matrix tbody th,
.probe-report-embed.embed-scroll .route-table tbody th,
.probe-report-embed.embed-scroll .route-return-matrix tbody th,
.probe-report-embed.embed-scroll .svc-table tbody th {
  color: var(--muted);
  font-weight: 600;
}

.probe-report-embed > main.report-viewport {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 8px clamp(8px, 1vw, 16px) 16px !important;
  overflow: hidden !important;
  box-sizing: border-box;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* 覆盖 style.css 的 100dvh 固定高度；勿用 overflow-x:hidden + overflow-y:visible（会被算成 auto 出滚动条） */
.probe-report-embed.fit-active .report-viewport,
.probe-report-embed.fit-active > main.report-viewport,
html.probe-report-active .report-viewport,
html.probe-report-active main.report-viewport {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

/* 非手机：按视口宽度缩放证书，高度由 viewer.js 按内容写入 */
.probe-report-embed.fit-active:not(.embed-scroll) > main.report-viewport {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
}

/* body 无 fit-active 时，style.css 的 body:not(.fit-active) 仍会污染 embed（勿改 viewport 高度，否则缩放基准错误） */
body:not(.fit-active) .probe-report-embed.fit-active .report-viewport {
  padding: 8px clamp(8px, 1vw, 16px) 16px !important;
}

body:not(.fit-active) .probe-report-embed.fit-active .report-canvas {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  filter: drop-shadow(0 20px 50px #0008) !important;
  flex: 0 0 auto !important;
}

.probe-report-embed.fit-active:not(.embed-scroll) .report-canvas {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) > main.report-viewport,
.probe-report-embed.embed-export > main.report-viewport {
  overflow: hidden !important;
  max-height: none !important;
}

.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .certificate-fit,
.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) #certificateFit,
.probe-report-embed.embed-export .certificate-fit,
.probe-report-embed.embed-export #certificateFit {
  height: auto !important;
  overflow: visible !important;
}

.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .certificate,
.probe-report-embed.embed-export .certificate {
  height: auto !important;
  min-height: 1080px !important;
  overflow: visible !important;
}

.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .cert-body,
.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .cert-body-scale,
.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .cert-body-inner,
.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .report-body,
.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .report-columns,
.probe-report-embed.embed-export .cert-body,
.probe-report-embed.embed-export .cert-body-scale,
.probe-report-embed.embed-export .cert-body-inner,
.probe-report-embed.embed-export .report-body,
.probe-report-embed.embed-export .report-columns {
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .report-col,
.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .col-body,
.probe-report-embed.embed-export .report-col,
.probe-report-embed.embed-export .col-body {
  height: auto !important;
  overflow: visible !important;
}

.probe-report-embed.fit-active.embed-expand:not(.embed-scroll) .province-matrix-wrap,
.probe-report-embed.embed-export .province-matrix-wrap {
  max-height: none !important;
  overflow: visible !important;
}

body:not(.fit-active) .probe-report-embed.fit-active:not(.embed-expand):not(.embed-export) .certificate-fit,
body:not(.fit-active) .probe-report-embed.fit-active:not(.embed-expand):not(.embed-export) #certificateFit,
.probe-report-embed.fit-active:not(.embed-scroll):not(.embed-expand):not(.embed-export) .certificate-fit,
.probe-report-embed.fit-active:not(.embed-scroll):not(.embed-expand):not(.embed-export) #certificateFit {
  position: absolute !important;
  inset: unset !important;
  right: auto !important;
  bottom: auto !important;
  /* 勿用 left/top/transform 的 !important，否则会覆盖 JS 居中缩放 */
  width: 1920px !important;
  height: 1080px !important;
  overflow: hidden !important;
  visibility: visible !important;
}

body:not(.fit-active) .probe-report-embed.fit-active:not(.embed-expand):not(.embed-export) .certificate {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1920px !important;
  height: 1080px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform-origin: top left !important;
  box-sizing: border-box !important;
  padding: 14px 16px 10px !important;
}

/* embed 模式下 body 无 fit-active，需覆盖 body:not(.fit-active) 对证书的 static 定位 */
.probe-report-embed.fit-active:not(.embed-expand):not(.embed-export) #certificateFit,
.probe-report-embed.fit-active:not(.embed-expand):not(.embed-export) .certificate-fit {
  position: absolute !important;
  inset: unset !important;
  right: auto !important;
  bottom: auto !important;
  width: 1920px !important;
  height: 1080px !important;
  overflow: hidden !important;
}

/* 覆盖 style.css 的 inset:0，但不锁定 left/top（由 viewer.js 写入 inline） */

.probe-report-embed.fit-active:not(.embed-expand):not(.embed-export) .certificate {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 1920px !important;
  height: 1080px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  transform-origin: top left !important;
  box-sizing: border-box !important;
  padding: 14px 16px 10px !important;
}

.probe-report-embed.fit-active:not(.embed-expand):not(.embed-export) .report-canvas {
  position: relative !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
}

.probe-report-embed.fit-active .report-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  height: auto !important;
}

.probe-report-embed.fit-active .report-col {
  border-right: 1px solid #b99a4c38 !important;
  border-bottom: 0 !important;
  padding: 0 5px !important;
}

/* 手机滚动布局：仅 JS 添加 embed-scroll 时生效，不影响桌面 fit-active 缩放 */
body:has(.probe-report-embed.embed-scroll) {
  overflow-x: hidden !important;
}

.probe-report-embed.embed-scroll {
  overflow: visible !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.probe-report-embed.embed-scroll > main.report-viewport {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 12px 28px !important;
  overflow: visible !important;
}

.probe-report-embed.embed-scroll .report-canvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 auto !important;
  overflow: visible !important;
  filter: none !important;
}

.probe-report-embed.embed-scroll .certificate-fit {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
}

.probe-report-embed.embed-scroll .certificate {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  transform: none !important;
  overflow: visible !important;
  padding: 20px 14px 24px !important;
  box-sizing: border-box !important;
}

.probe-report-embed.embed-scroll .cert-body,
.probe-report-embed.embed-scroll .cert-body-scale,
.probe-report-embed.embed-scroll .cert-body-inner,
.probe-report-embed.embed-scroll .report-body,
.probe-report-embed.embed-scroll .col-body {
  display: block !important;
  flex: none !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
}

.probe-report-embed.embed-scroll .report-col {
  display: block !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
  border-right: 0 !important;
  border-bottom: 1px solid #b99a4c38 !important;
  padding: 0 0 12px !important;
}

.probe-report-embed.embed-scroll .report-col:last-child {
  border-bottom: 0 !important;
}

.probe-report-embed.embed-scroll .certificate-head {
  display: block !important;
  text-align: center !important;
  padding-bottom: 16px !important;
}

.probe-report-embed.embed-scroll .certificate-head-side {
  display: block !important;
  margin-top: 12px !important;
}

.probe-report-embed.embed-scroll .certificate-seal {
  margin: 16px auto 0 !important;
}

.probe-report-embed.embed-scroll .certificate-meta-inline {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  text-align: left !important;
}

.probe-report-embed.embed-scroll .report-columns {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

.probe-report-embed.embed-scroll .col-head h2 {
  font-size: 16px !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.probe-report-embed.embed-scroll header.col-head {
  padding: 10px 12px 12px !important;
  margin-bottom: 8px !important;
}

.probe-report-embed.embed-scroll header.col-head small {
  display: none !important;
}

.probe-report-embed.embed-scroll .col-body {
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-width: 100% !important;
}

.probe-report-embed.embed-scroll .col-panel {
  overflow: visible !important;
  --probe-mobile-text: 12px;
  --probe-mobile-line: 1.45;
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
}

.probe-report-embed.embed-scroll .col-panel h3 {
  margin: 16px 0 10px !important;
  font-size: var(--probe-mobile-text) !important;
  font-weight: 700 !important;
  line-height: var(--probe-mobile-line) !important;
  color: var(--accent) !important;
  letter-spacing: 0.04em !important;
}

.probe-report-embed.embed-scroll .col-panel h3:first-child {
  margin-top: 0 !important;
}

.probe-report-embed.embed-scroll .province-matrix-wrap {
  max-height: none !important;
  overflow: visible !important;
}

.probe-report-embed.embed-scroll .probe-table-scroll,
.probe-report-embed.embed-scroll .province-matrix-wrap,
.probe-report-embed.embed-scroll .table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.probe-report-embed.embed-scroll .kv-table,
.probe-report-embed.embed-scroll .ip-label-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
}

.probe-report-embed.embed-scroll .ip-matrix,
.probe-report-embed.embed-scroll .ping-matrix,
.probe-report-embed.embed-scroll .route-table,
.probe-report-embed.embed-scroll .route-return-matrix,
.probe-report-embed.embed-scroll .svc-table,
.probe-report-embed.embed-scroll .ip-risk-score {
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  table-layout: auto !important;
  border-collapse: collapse;
}

.probe-report-embed.embed-scroll .ip-matrix th,
.probe-report-embed.embed-scroll .ip-matrix td,
.probe-report-embed.embed-scroll .ping-matrix th,
.probe-report-embed.embed-scroll .ping-matrix td,
.probe-report-embed.embed-scroll .route-table th,
.probe-report-embed.embed-scroll .route-table td,
.probe-report-embed.embed-scroll .svc-table th,
.probe-report-embed.embed-scroll .svc-table td {
  padding: 5px 7px !important;
  border: 1px solid var(--line) !important;
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  vertical-align: top !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.probe-report-embed.embed-scroll .ip-matrix thead th,
.probe-report-embed.embed-scroll .ping-matrix thead th,
.probe-report-embed.embed-scroll .route-table thead th,
.probe-report-embed.embed-scroll .route-return-matrix th,
.probe-report-embed.embed-scroll .svc-table thead th,
.probe-report-embed.embed-scroll .ip-risk-score th {
  font-weight: 600 !important;
  color: var(--muted) !important;
}

.probe-report-embed.embed-scroll .route-table .route-line,
.probe-report-embed.embed-scroll .route-table .route-hops {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.probe-report-embed.embed-scroll .ping-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 0 12px !important;
}

.probe-report-embed.embed-scroll .svc-table tbody th {
  width: 28%;
  max-width: none;
  text-align: left;
  white-space: normal;
  font-weight: 600;
  color: var(--muted);
}

.probe-report-embed.embed-scroll .svc-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.probe-report-embed.embed-scroll .svc-table .ip-tag {
  font-size: inherit !important;
  line-height: inherit !important;
  padding: 0 3px !important;
}

.probe-report-embed.embed-scroll .ip-cat {
  justify-content: center !important;
  padding: 6px 8px !important;
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
}

.probe-report-embed.embed-scroll .ip-mail-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
}

.probe-report-embed.embed-scroll .ip-mail-row > span {
  color: var(--muted) !important;
  font-weight: 600;
}

.probe-report-embed.embed-scroll .mail-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin: 8px 0 12px !important;
}

.probe-report-embed.embed-scroll .mail-grid .ip-tag {
  display: block !important;
  padding: 8px 10px !important;
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  border: 1px solid transparent !important;
}

.probe-report-embed.embed-scroll .ip-mail-tags,
.probe-report-embed.embed-scroll .mail-bl-listed {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 8px 0 12px !important;
}

.probe-report-embed.embed-scroll .ip-mail-tags .ip-tag,
.probe-report-embed.embed-scroll .mail-bl-listed .ip-tag {
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
  padding: 4px 8px !important;
}

.probe-report-embed.embed-scroll .route-map .ip-tag {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: inherit !important;
  line-height: inherit !important;
  font-family: ui-monospace, monospace;
  font-weight: 600 !important;
  padding: 0 2px !important;
  border-radius: 2px !important;
}

.probe-report-embed.embed-scroll #report-col-route {
  --probe-route-text: 11px;
  --probe-route-line: 1.35;
}

.probe-report-embed.embed-scroll #report-col-route .route-table,
.probe-report-embed.embed-scroll #report-col-route .route-return-matrix,
.probe-report-embed.embed-scroll #report-col-route .route-table th,
.probe-report-embed.embed-scroll #report-col-route .route-table td,
.probe-report-embed.embed-scroll #report-col-route .route-return-matrix th,
.probe-report-embed.embed-scroll #report-col-route .route-return-matrix td {
  font-size: var(--probe-route-text) !important;
  line-height: var(--probe-route-line) !important;
}

.probe-report-embed.embed-scroll #report-col-route .route-map,
.probe-report-embed.embed-scroll #report-col-route .route-map i,
.probe-report-embed.embed-scroll #report-col-route .route-table .ip-tag,
.probe-report-embed.embed-scroll #report-col-route .route-return-matrix .ip-tag {
  font-size: var(--probe-route-text) !important;
  line-height: var(--probe-route-line) !important;
}

/* 手机端：参数名/表头与系统报告 kv-table th 对齐 */
.probe-report-embed.embed-scroll .col-panel :is(
  .kv-table th,
  .ip-label-table th,
  .ip-matrix tbody th,
  .ping-matrix tbody th,
  .route-table tbody th,
  .route-return-matrix tbody th,
  .svc-table tbody th,
  .ping-item > small,
  .ip-mail-row > span,
  .hw-score-item > small,
  .dc-location-title,
  .route-carrier-head,
  .latency-legend > span
) {
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}

/* 手机端：检测结果/数值与系统报告 kv-table td 对齐（不含状态色标签） */
.probe-report-embed.embed-scroll .col-panel :is(
  .kv-table td,
  table td,
  .ping-item,
  .ping-item > span:not([class*="latency"]):not([class*="loss"]),
  .hw-score-item > strong,
  .dc-location-body,
  .dc-location-meta,
  .speed-value,
  .prov-short,
  .route-note,
  .ip-highlight,
  .route-hop-ip,
  .route-map,
  .route-map i
) {
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
}

.probe-report-embed.embed-scroll .ip-cat-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 0 12px !important;
}

.probe-report-embed.embed-scroll .certificate .metrics {
  grid-template-columns: 1fr !important;
}

.probe-report-embed.embed-scroll .route-map {
  flex-wrap: wrap !important;
  overflow: visible !important;
}

/* 手机端：绿/红/黄状态色（style.css 多数仅在 fit-active 下定义） */
.probe-report-embed.embed-scroll .latency-good,
.probe-report-embed.embed-scroll .loss-good {
  color: #47df8c !important;
}

.probe-report-embed.embed-scroll .latency-medium,
.probe-report-embed.embed-scroll .loss-medium {
  color: #ffc857 !important;
}

.probe-report-embed.embed-scroll .latency-high,
.probe-report-embed.embed-scroll .loss-high {
  color: #ff9f43 !important;
}

.probe-report-embed.embed-scroll .latency-bad,
.probe-report-embed.embed-scroll .latency-timeout,
.probe-report-embed.embed-scroll .loss-bad {
  color: #ff6b78 !important;
}

.probe-report-embed.embed-scroll .latency-unknown,
.probe-report-embed.embed-scroll .loss-unknown {
  color: var(--muted) !important;
}

.probe-report-embed.embed-scroll .ip-tag-ok,
.probe-report-embed.embed-scroll .ip-tag-premium {
  color: var(--good) !important;
  background: #47df8c18 !important;
  border: 1px solid #47df8c44 !important;
}

.probe-report-embed.embed-scroll .ip-tag-bad {
  color: var(--bad) !important;
  background: #ff6b7818 !important;
  border: 1px solid #ff6b7844 !important;
}

.probe-report-embed.embed-scroll .ip-tag-warn {
  color: var(--warn) !important;
  background: #ffc85718 !important;
  border: 1px solid #ffc85744 !important;
}

.probe-report-embed.embed-scroll .ip-tag-muted {
  color: var(--muted) !important;
  background: #8da8b212 !important;
  border: 1px solid #8da8b233 !important;
}

.probe-report-embed.embed-scroll .ip-tag-telecom {
  color: #ff9f43 !important;
  background: #ff9f4318 !important;
  border: 1px solid #ff9f4344 !important;
}

.probe-report-embed.embed-scroll .ip-tag-unicom {
  color: #ffc857 !important;
  background: #ffc85718 !important;
  border: 1px solid #ffc85744 !important;
}

.probe-report-embed.embed-scroll .ip-tag-cmi {
  color: #b48cff !important;
  background: #b48cff18 !important;
  border: 1px solid #b48cff44 !important;
}

.probe-report-embed.embed-scroll .ip-tag-mobile {
  color: #7ec8e3 !important;
  background: #7ec8e318 !important;
  border: 1px solid #7ec8e344 !important;
}

.probe-report-embed.embed-scroll .ip-tag-transit {
  color: #e879c5 !important;
  background: #e879c518 !important;
  border: 1px solid #e879c544 !important;
}

.probe-report-embed.embed-scroll .hw-flag-ok {
  color: var(--good) !important;
  background: #47df8c12 !important;
  border-color: currentColor !important;
}

.probe-report-embed.embed-scroll .hw-flag-bad {
  color: var(--bad) !important;
  background: #ff6b7812 !important;
  border-color: currentColor !important;
}

.probe-report-embed.embed-scroll .ip-cat-on.ip-cat-ok {
  color: var(--good) !important;
  border-color: var(--good) !important;
  background: #47df8c12 !important;
}

.probe-report-embed.embed-scroll .ip-cat-on.ip-cat-warn {
  color: var(--warn) !important;
  border-color: var(--warn) !important;
  background: #ffc85712 !important;
}

.probe-report-embed.embed-scroll .ip-cat-on.ip-cat-bad {
  color: var(--bad) !important;
  border-color: var(--bad) !important;
  background: #ff6b7812 !important;
}

.probe-report-embed.embed-scroll .ip-cat-off {
  color: var(--muted) !important;
  opacity: 0.45 !important;
}

.probe-report-embed.embed-scroll .prov-loss-dot.loss-good {
  background: #47df8c !important;
}

.probe-report-embed.embed-scroll .prov-loss-dot.loss-medium {
  background: #ffc857 !important;
}

.probe-report-embed.embed-scroll .prov-loss-dot.loss-high {
  background: #ff9f43 !important;
}

.probe-report-embed.embed-scroll .prov-loss-dot.loss-bad {
  background: #ff6b78 !important;
}

.probe-report-embed.embed-scroll .latency-legend i.loss-good {
  background: #47df8c !important;
}

.probe-report-embed.embed-scroll .latency-legend i.loss-medium {
  background: #ffc857 !important;
}

.probe-report-embed.embed-scroll .latency-legend i.loss-high {
  background: #ff9f43 !important;
}

.probe-report-embed.embed-scroll .latency-legend i.loss-bad {
  background: #ff6b78 !important;
}

.probe-report-embed.embed-scroll .ip-tag-origin {
  color: #58a6ff !important;
  background: #58a6ff18 !important;
  border-color: #58a6ff44 !important;
}

.probe-report-embed.embed-scroll .ip-tag {
  display: inline-block;
  border-radius: 4px;
  font-weight: 700;
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
}

.probe-report-embed.embed-scroll .latency {
  font-size: var(--probe-mobile-text) !important;
  line-height: var(--probe-mobile-line) !important;
  font-weight: 700;
}
