/* netscope.css — 由 scripts/sync-netscope-css.mjs 从 web-nuxt-v1/src/styles.css 生成。
 * 请勿直接手改本文件：改动会在下次同步时被覆盖，需要改样式请回源改 v1 再重新同步。
 * 与源文件的差异：移除 Google Fonts @import；为 button 选择器补 a 等价选择器；
 * 补一条 a 去下划线。 */

a { text-decoration: none; }

:root {
  --brand-primary: #08a6a6;
  --brand-primary-hover: #078f8f;
  --brand-primary-active: #057777;
  --brand-soft: #e8f8f7;
  --brand-line: #bde7e5;
  --ink: #163246;
  --muted: #668096;
  --line: #dce9ed;
  --surface: #ffffff;
  --page: #f7fbfb;
  --nav-bar: #062830;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --ad-triple-height: 80px;
  --lat-fast-a: #22d3a8;
  --lat-fast-b: #0e9f86;
  --lat-medium-a: #f2d074;
  --lat-medium-b: #dba53d;
  --lat-slow-a: #f4ab77;
  --lat-slow-b: #e07c3c;
  --lat-timeout-a: #f38a92;
  --lat-timeout-b: #dd5763;
  color: var(--ink);
  background: var(--page);
  font-family: "Noto Sans SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.wide-shell { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* Public-site header: light brand row, dark navline continuing into the hero. */
.topbar {
  position: relative;
  /* 须高于 .dns-type-select(6) / .batch-control-panel(8)，否则导航子菜单会被表单挡住 */
  z-index: 40;
  border-bottom: 0;
  background: var(--page);
  box-shadow: none;
}
.brandbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.brand img { width: 38px; height: 38px; border-radius: var(--radius-md); object-fit: cover; }
.brand span { display: grid; text-align: left; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 1.5px; }
.brandbar-actions { display: flex; align-items: center; gap: 8px; }
.account-actions { display: flex; gap: 8px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c5dce0;
  border-radius: var(--radius-sm);
  color: #355662;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.theme-toggle svg { width: 15px; height: 15px; color: var(--brand-primary); }
.theme-toggle:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #f4fbfb;
}
.theme-toggle[aria-pressed="true"] {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-soft);
}
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #c5dce0;
  border-radius: var(--radius-sm);
  color: #355662;
  background: #fff;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #f4fbfb;
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 24, 32, .46);
}
.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  box-shadow: -16px 0 40px rgba(9, 45, 52, .18);
  animation: mobile-nav-in .22s cubic-bezier(.16, 1, .3, 1);
}
.mobile-nav-head {
  display: flex;
  flex: none;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid #e3eff0;
}
.mobile-nav-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  color: #355662;
  background: transparent;
}
.mobile-nav-close svg { width: 20px; height: 20px; }
.mobile-nav-close:hover { color: var(--brand-primary); background: #f4fbfb; }
.mobile-nav-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0;
}
.mobile-nav-list > button,
.mobile-nav-group > button,
.mobile-nav-list > a,
.mobile-nav-group > a {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid #eef4f4;
  color: #294b5a;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.mobile-nav-list > button:hover,
.mobile-nav-group > button:hover,
.mobile-nav-list > a:hover,
.mobile-nav-group > a:hover {
  color: var(--brand-primary);
  background: #f7fcfc;
}
.mobile-nav-list > button.active,
.mobile-nav-group > button.active,
.mobile-nav-list > a.active,
.mobile-nav-group > a.active { color: var(--brand-primary); }
.mobile-nav-list svg,
.mobile-nav-group > button svg,
.mobile-nav-group > a svg { width: 16px; height: 16px; color: var(--brand-primary); }
.mobile-nav-group > button svg:last-child,
.mobile-nav-group > a svg:last-child {
  margin-left: auto;
  color: #8aa3ab;
  transition: transform .18s ease;
}
.mobile-nav-group.open > button svg:last-child,
.mobile-nav-group.open > a svg:last-child { transform: rotate(180deg); }
.mobile-nav-sub {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 44px;
  border: 0;
  color: #4f6b76;
  background: #fbfefe;
  font-size: 13.5px;
  text-align: left;
}
.mobile-nav-sub:hover { color: var(--brand-primary); background: #f2fafa; }
.mobile-nav-sub i {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 99px;
  color: #dd5763;
  background: #fff0f2;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
}
.mobile-nav-foot {
  display: grid;
  flex: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid #e3eff0;
}
.mobile-nav-foot .theme-toggle.is-mobile-foot {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
}
.mobile-nav-foot button,
.mobile-nav-foot a {
  min-height: 44px;
  border: 1px solid #c5dce0;
  border-radius: var(--radius-sm);
  color: #355662;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
}
.mobile-nav-foot .solid {
  border-color: var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
}
@keyframes mobile-nav-in {
  from { transform: translateX(18px); opacity: .64; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-drawer { animation: none; }
}
.account-actions button,
.account-actions a {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid #c5dce0;
  border-radius: var(--radius-sm);
  color: #355662;
  background: #fff;
  font-size: 13px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.account-actions button:hover,
.account-actions a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #f4fbfb;
}
.account-actions .solid {
  border-color: var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
  box-shadow: 0 5px 12px rgba(8, 166, 166, .16);
}
.account-actions .solid:hover {
  border-color: var(--brand-primary-hover);
  color: #fff;
  background: var(--brand-primary-hover);
}
.navline { border-top: 0; border-bottom: 1px solid #0a3840; background: var(--nav-bar); }
.nav-inner {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  overflow-x: auto;
}
.nav-inner > button,
.nav-inner > a {
  display: inline-flex;
  flex: none;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #b7d5d8;
  background: transparent;
  font-size: 13.5px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.nav-inner > a:first-child,
.nav-inner > button:first-child {
  padding-left: 0;
}
.nav-inner > a:last-child,
.nav-inner > button:last-child {
  padding-right: 0;
}
.nav-inner > button:hover,
.nav-inner > a:hover {
  border-bottom-color: transparent;
  color: #8ff0ea;
  background: transparent;
}
.nav-inner > button svg,
.nav-inner > a svg { width: 15px; height: 15px; flex: none; }
.nav-inner > button.active,
.nav-inner > a.active {
  border-bottom-color: transparent;
  color: #8ff0ea;
  font-weight: 600;
}
.nav-inner > button.mode,
.nav-inner > a.mode {
  min-height: 32px;
  height: 32px;
  margin-left: auto;
  margin-right: 2px;
  align-self: center;
  padding: 0 14px;
  border: 1px solid rgba(142, 214, 216, .45);
  border-radius: var(--radius-sm);
  color: #c7e6e8;
  background: transparent;
  font-size: 13px;
  letter-spacing: 0;
}
.nav-inner > button.mode:hover,
.nav-inner > a.mode:hover {
  border-color: var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
}
.nav-dropdown { position: relative; flex: none; }
.nav-dropdown > button,
.nav-dropdown > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #b7d5d8;
  background: transparent;
  font-size: 13.5px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.nav-inner > .nav-dropdown:first-child > button,
.nav-inner > .nav-dropdown:first-child > a {
  padding-left: 0;
}
.nav-inner > .nav-dropdown:last-child > button,
.nav-inner > .nav-dropdown:last-child > a {
  padding-right: 0;
}
.nav-dropdown > button:hover,
.nav-dropdown.open > button,
.nav-dropdown > a:hover,
.nav-dropdown.open > a {
  border-bottom-color: transparent;
  color: #8ff0ea;
  background: transparent;
}
.nav-dropdown > button svg,
.nav-dropdown > a svg { width: 15px; height: 15px; flex: none; }
.nav-dropdown > button.active,
.nav-dropdown > a.active {
  border-bottom-color: transparent;
  color: #8ff0ea;
  font-weight: 600;
}
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-inner { gap: 0; }
  .nav-inner > button,
  .nav-dropdown > button,
.nav-inner > a,
.nav-dropdown > a {
    gap: 6px;
    padding: 0 6px;
    font-size: 13px;
  }
  .nav-inner > a:first-child,
  .nav-inner > button:first-child,
  .nav-inner > .nav-dropdown:first-child > button,
  .nav-inner > .nav-dropdown:first-child > a {
    padding-left: 0;
  }
  .nav-inner > a:last-child,
  .nav-inner > button:last-child,
  .nav-inner > .nav-dropdown:last-child > button,
  .nav-inner > .nav-dropdown:last-child > a {
    padding-right: 0;
  }
  .nav-inner > button svg,
  .nav-dropdown > button svg,
.nav-inner > a svg,
.nav-dropdown > a svg { width: 14px; height: 14px; }
}
.nav-dropdown-menu { position: fixed; z-index: 40; width: 190px; padding: 6px; border: 1px solid #e3eff0; border-radius: var(--radius-md); background: #fff; box-shadow: 0 16px 32px rgba(10, 63, 72, .14); transform-origin: calc(var(--nav-caret-left, 18px) + 6px) 0; animation: dropdown-pop .16s cubic-bezier(.16, 1, .3, 1); }
.nav-dropdown-menu::before { position: absolute; top: -6px; left: var(--nav-caret-left, 18px); width: 12px; height: 12px; content: ""; border-top: 1px solid #e3eff0; border-left: 1px solid #e3eff0; border-radius: 2px 0 0; background: #fff; transform: rotate(45deg); pointer-events: none; }
.nav-dropdown-menu::after { position: absolute; top: -10px; left: 0; width: 100%; height: 10px; content: ""; }
.nav-dropdown-menu button,
.nav-dropdown-menu a { display: flex; width: 100%; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); color: #4b6b76; background: transparent; font-size: 13px; text-align: left; transition: background .16s ease, color .16s ease; }
.nav-dropdown-menu button:hover,
.nav-dropdown-menu a:hover { color: var(--brand-primary); background: #f2fafa; }
.nav-dropdown-menu button svg,
.nav-dropdown-menu a svg { width: 13px; height: 13px; flex: none; color: #a9c0c6; }
.nav-dropdown-menu button span,
.nav-dropdown-menu a span { flex: 1; }
.nav-dropdown-menu button i,
.nav-dropdown-menu a i { flex: none; padding: 1px 6px; border-radius: 99px; color: #dd5763; background: #fff0f2; font-size: 10.5px; font-style: normal; font-weight: 600; }
.nav-dropdown-menu.is-webmaster {
  width: 560px;
  padding: 12px 10px 10px;
}
.webmaster-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}
.webmaster-menu-col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 6px;
  color: #1d3c4f;
  font-size: 13px;
  font-weight: 700;
}
.webmaster-menu-col h4.is-spaced { margin-top: 14px; }
.webmaster-menu-col h4::before {
  content: "";
  width: 3px;
  height: 12px;
  border-radius: 99px;
  background: var(--brand-primary);
}
.mobile-nav-group-label {
  margin: 8px 18px 2px 44px;
  color: #8aa3ab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Hero: banner bg fills width; video contained in right rail column */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: auto;
  background: linear-gradient(90deg, #e6efef 0%, #dce8e8 48%, #d8e4e4 100%);
  color: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #031820;
}
.hero-field-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-radar-ring {
  transform-origin: 1128px 148px;
  animation: hero-radar 7.5s ease-in-out infinite;
}
.hero-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-pulse 2.8s ease-out infinite;
}
.hero-pulse-delay { animation-delay: 1.2s; }
.hero-node-live { filter: drop-shadow(0 0 5px rgba(143, 240, 234, .9)); }
@keyframes hero-radar {
  0%, 100% { opacity: .7; }
  50% { opacity: .12; }
}
@keyframes hero-pulse {
  0% { transform: scale(.35); opacity: .55; }
  100% { transform: scale(2.6); opacity: 0; }
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(230, 239, 239, .88) 0%, rgba(220, 232, 232, .58) 32%, rgba(216, 228, 228, .2) 54%, rgba(216, 228, 228, 0) 74%);
  pointer-events: none;
}
.hero-layout {
  position: relative;
  z-index: 2;
  display: block;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  min-height: inherit;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: left;
  padding: 22px 0 26px;
  min-width: 0;
  width: 100%;
  max-width: none;
}
.eyebrow { margin: 0 0 6px; color: var(--brand-primary); font: 500 11px "DM Mono", monospace; letter-spacing: 1.8px; }
.hero h1 { margin: 0; color: #102f43; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.16; letter-spacing: -.9px; }
.hero-copy { margin: 9px 0 16px; max-width: 520px; color: #587083; font-size: 14px; }
.hero-command { display: flex; width: 100%; height: 48px; align-items: stretch; overflow: hidden; border: 1px solid #bedee0; border-radius: var(--radius-md); color: #6d8491; background: #fff; box-shadow: 0 8px 20px rgba(20, 94, 101, .08); transition: border-color .2s ease, box-shadow .2s ease; }
.hero-command:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .14), 0 8px 20px rgba(20, 94, 101, .08); }
.hero-command-search { display: flex; flex: 1; min-width: 0; align-items: center; gap: 10px; padding: 0 14px 0 16px; }
.hero-command-search svg { flex: none; width: 16px; height: 16px; color: var(--brand-primary); }
.hero-command-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.hero-command-actions { display: flex; flex: none; align-items: stretch; }
.hero-command select { align-self: stretch; width: 116px; padding: 0 10px; border: 0; border-left: 1px solid var(--line); outline: 0; color: #557080; background: #fff; font-size: 13px; }
.hero-command button,
.hero-command a { display: inline-flex; min-width: 118px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; color: #fff; background: var(--brand-primary); font-size: 14px; font-weight: 600; transition: background .2s ease; }
.hero-command button:hover,
.hero-command a:hover { background: var(--brand-primary-hover); }
.hero-command button:active,
.hero-command a:active { background: var(--brand-primary-active); }
.quick-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 15px; margin-top: 12px; color: #668294; font-size: 12px; }
.quick-links span { color: #3e5d70; font-weight: 600; }
.quick-links button,
.quick-links a { padding: 0; border: 0; color: #4f7881; background: transparent; font-size: 12px; transition: color .2s ease; }
.quick-links button:hover,
.quick-links a:hover { color: var(--brand-primary); }

@media (prefers-reduced-motion: reduce) {
  .hero-radar-ring,
  .hero-pulse { animation: none; }
  .auth-tabs-indicator, .auth-panel, .auth-panels { transition: none !important; }
}

.filter-wrap { padding: 24px 0 18px; }
.filter-panel { display: flex; min-height: 62px; align-items: center; gap: 8px; padding: 10px; border: 1px solid #dfedef; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 5px 18px rgba(31, 89, 97, .05); }
.filter-panel button,
.filter-panel a { min-width: 92px; min-height: 36px; padding: 0 15px; border: 1px solid #cde3e5; border-radius: var(--radius-sm); color: #57717f; background: #fff; font-size: 13px; white-space: nowrap; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.filter-panel button:hover,
.filter-panel a:hover { border-color: #84cccf; color: var(--brand-primary); background: #f6fdfd; }
.filter-panel button.selected,
.filter-panel a.selected { border-color: var(--brand-primary); color: #fff; background: var(--brand-primary); box-shadow: 0 4px 10px rgba(8, 166, 166, .16); }

.tool-section { padding-bottom: 26px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid #dbecee; border-radius: var(--radius-lg); overflow: hidden; background: #e4eff0; box-shadow: 0 5px 18px rgba(31, 89, 97, .05); }
.tool-grid[data-count="1"] { grid-template-columns: 1fr; }
.tool-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-grid[data-count="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tool-grid[data-count="5"] .tool-card:nth-child(-n + 3) { grid-column: span 2; }
.tool-grid[data-count="5"] .tool-card:nth-child(n + 4) { grid-column: span 3; }
.tool-card { position: relative; display: flex; align-items: flex-start; gap: 16px; min-height: 125px; padding: 20px 44px 18px 20px; border: 0; color: inherit; background: #fff; text-align: left; transition: background .2s ease; }
.tool-card:hover { background: #f6fdfd; }
.tool-card:focus-visible, .content-list button:focus-visible, .sponsor-grid button:focus-visible, .friends button:focus-visible, .nav-inner button:focus-visible, .account-actions button:focus-visible, .filter-panel button:focus-visible, .hero-command button:focus-visible, .ping-action:focus-visible, .ping-section-heading button:focus-visible, .resolver-list button:focus-visible, .ping-filter-tabs button:focus-visible, .cn-legend-item:focus-visible, .region-table-row:focus-visible, .tcp-snapshot:focus-visible,
.content-list a:focus-visible,
.sponsor-grid a:focus-visible,
.friends a:focus-visible,
.nav-inner a:focus-visible,
.account-actions a:focus-visible,
.filter-panel a:focus-visible,
.hero-command a:focus-visible,
.ping-section-heading a:focus-visible,
.resolver-list a:focus-visible,
.ping-filter-tabs a:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: -2px; }
.tool-card .tool-icon {
  flex: none;
  display: grid;
  width: 46px;
  height: 46px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid rgba(191, 228, 229, .9);
  border-radius: var(--radius-md);
  color: var(--brand-primary);
  background: rgba(244, 252, 252, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 4px 12px rgba(8, 166, 166, .08);
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tool-icon svg { width: 22px; height: 22px; }
.tool-card:hover .tool-icon {
  border-color: var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 14px rgba(8, 166, 166, .2);
  transform: translateY(-1px);
}
.tool-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding-top: 2px; padding-right: 52px; }
.tool-copy strong { display: block; color: #213f53; font-size: 16px; font-weight: 600; line-height: 1.35; }
.tool-copy small { display: -webkit-box; overflow: hidden; margin: 0; color: #6c8495; font-size: 14px; line-height: 1.52; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tool-card em { position: absolute; top: 18px; right: 14px; padding: 2px 6px; border-radius: var(--radius-xs); color: #248c90; background: #eaf9f8; font-size: 12px; font-style: normal; line-height: 1.35; white-space: nowrap; }
.tool-card em.ipv6 { color: #df8d2e; background: #fff5e6; }
.tool-card em.batch { border: 1px solid #f3c4ca; color: #d45a66; background: #fff1f3; font-weight: 600; }
.card-arrow { position: absolute; right: 17px; bottom: 17px; color: var(--brand-primary); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.tool-card:hover .card-arrow { opacity: 1; transform: translateX(2px); }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 26px; }
.content-list, .sponsors, .friends { border: 1px solid #dcebed; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 5px 18px rgba(31, 89, 97, .05); }
.content-list { overflow: hidden; }
.section-heading { display: flex; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #e3eef0; }
.section-heading span { display: inline-flex; align-items: center; gap: 8px; color: #29475a; font-size: 16px; font-weight: 600; line-height: 1.4; }
.section-heading span b { color: var(--brand-primary); font: 500 12px "DM Mono", monospace; letter-spacing: .4px; }
.sponsors .section-heading span, .friends .section-heading span { padding-left: 10px; border-left: 3px solid var(--brand-primary); }
.section-heading button,
.section-heading a { display: flex; align-items: center; gap: 2px; padding: 5px 0; border: 0; color: #64808d; background: transparent; font-size: 13px; transition: color .2s ease; }
.section-heading button:hover,
.section-heading a:hover { color: var(--brand-primary); }
.section-heading button svg,
.section-heading a svg { width: 14px; }
.content-feature { position: relative; min-height: 112px; margin: 14px 16px 0; padding: 16px 18px 15px; border-left: 3px solid var(--brand-primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: #f1fbfa; }
.content-feature p { margin: 0 0 7px; color: #49a4a5; font: 500 11px "DM Mono", monospace; letter-spacing: .8px; text-transform: uppercase; }
.content-feature button,
.content-feature a { display: -webkit-box; overflow: hidden; padding: 0; border: 0; color: #24495c; background: transparent; font-size: 15px; font-weight: 600; line-height: 1.58; text-align: left; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.content-feature button:hover,
.content-feature a:hover { color: var(--brand-primary); }
.content-feature small { position: absolute; right: 17px; bottom: 13px; color: #8aa4ac; font: 11px "DM Mono", monospace; }
.content-list ul { margin: 7px 16px 11px; padding: 0; list-style: none; }
.content-list li { display: grid; min-height: 38px; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 4px; border-bottom: 1px solid #edf4f4; transition: background .2s ease; }
.content-list li:last-child { border-bottom: 0; }
.content-list li:hover { background: #f7fcfc; }
.content-list li > b { color: #a0b5bd; font: 11px "DM Mono", monospace; }
.content-list li button,
.content-list li a { overflow: hidden; padding: 0; border: 0; color: #557080; background: transparent; font-size: 14px; line-height: 1.5; text-align: left; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.content-list li button:hover,
.content-list li a:hover { color: var(--brand-primary); }
.content-list li small { color: #92a8b2; font: 11px "DM Mono", monospace; }

.history-section { margin: 0 auto 34px; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.history-shell { overflow: hidden; border: 1px solid #dcebed; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 8px 22px rgba(31, 89, 97, .05); }
.history-shell-head { display: flex; min-height: 58px; align-items: center; padding: 0 20px; border-bottom: 1px solid #e8f1f2; }
.history-shell-head h2 { margin: 0; color: #163246; font-size: 18px; font-weight: 700; line-height: 1.3; }
.history-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; }
.history-panel { min-width: 0; overflow: hidden; border: 0; border-right: 1px solid #e8f1f2; border-radius: 0; background: transparent; box-shadow: none; }
.history-panel:last-child { border-right: 0; }
.history-panel-title { position: relative; display: flex; min-height: 48px; align-items: center; overflow: hidden; padding: 0 16px; background: transparent; }
.history-panel-title h3 { position: relative; z-index: 1; margin: 0; color: #1d4054; font-size: 15px; font-weight: 700; }
.history-panel-title b { position: absolute; top: 4px; right: 10px; z-index: 0; color: #e4f4f3; font: 700 30px/1 "DM Mono", monospace; letter-spacing: -1.5px; pointer-events: none; user-select: none; }
.history-list { margin: 0; padding: 2px 0 12px; list-style: none; }
.history-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; align-items: start; min-height: 42px; padding: 7px 14px 6px; border-bottom: 0; }
.history-row:last-child { border-bottom: 0; }
.history-rank { padding-top: 1px; color: #9bb4bc; font: 500 11px/1.4 "DM Mono", monospace; }
.history-row-main { display: grid; gap: 5px; min-width: 0; }
.history-row-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.history-target { overflow: hidden; color: #466572; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.history-value { color: #314f5d; font: 500 12px/1.35 "DM Mono", monospace; white-space: nowrap; }
.history-row.is-danger .history-value { color: var(--lat-timeout-b); }
.history-row.is-warn .history-value { color: var(--lat-medium-b); }
.history-row.is-ok .history-value { color: var(--lat-fast-b); }
.history-row.is-muted .history-value { color: #5a7582; }
.history-bar { display: block; width: 100%; height: 3px; overflow: hidden; border-radius: 99px; background: #e8f1f2; }
.history-bar i { display: block; height: 100%; border-radius: inherit; background: #9bb4bc; }
.history-row.is-danger .history-bar i { background: var(--lat-timeout-b); }
.history-row.is-warn .history-bar i { background: var(--lat-medium-b); }
.history-row.is-ok .history-bar i { background: var(--lat-fast-b); }
.history-row.is-muted .history-bar i { background: #b7c9d0; }

.sponsors { margin-bottom: 24px; }
.ad-note { display: grid; height: 84px; margin: 16px 16px 0; place-items: center; border: 1px dashed #91d2d4; border-radius: var(--radius-sm); color: #67939a; background: #fbfefe; font-size: 14px; }
.sponsor-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.sponsor-grid button,
.sponsor-grid a { display: grid; min-height: 76px; align-content: center; place-items: center; gap: 4px; border: 1px dashed #a6d8da; border-radius: var(--radius-sm); color: #5f8790; background: #fff; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.sponsor-grid button:hover,
.sponsor-grid a:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: #f5fcfc; }
.sponsor-grid svg { width: 19px; color: #6bbfc2; }
.sponsor-grid span { font-size: 13px; }
.sponsor-grid small { color: #9aafb7; font: 11px "DM Mono", monospace; }
.friends { margin-bottom: 24px; }
.friends > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.friends button,
.friends a { padding: 4px 8px; border: 0; border-radius: var(--radius-xs); color: #3d888b; background: #eef9f8; font-size: 12px; transition: color .2s ease, background .2s ease; }
.friends button:hover,
.friends a:hover { color: #fff; background: var(--brand-primary); }
footer { padding: 23px 0; border-top: 1px solid #dcebed; color: #7a949e; background: #fff; font-size: 12px; }
footer .wide-shell { display: flex; justify-content: center; gap: 24px; }
footer .ns-footer-extra { display: block; }

/* 页脚「关闭全部广告」：横幅、赞助商、灯笼、表格赞助列一并隐藏，恢复时去掉此类即可。 */
html.ads-hidden .lead-ad-rail,
html.ads-hidden .mid-ad-rail,
html.ads-hidden .tool-map-ad-rail,
html.ads-hidden .gg_link,
html.ads-hidden .lantern,
html.ads-hidden .sponsors {
  display: none !important;
}
html.ads-hidden .ns-ads-label-off,
html.ads-visible .ns-ads-label-on { display: none !important; }
html.ads-hidden .ns-ads-label-on,
html.ads-visible .ns-ads-label-off { display: inline !important; }

@media (max-width: 900px) {
  html:not(.ads-visible) .lead-ad-rail,
  html:not(.ads-visible) .mid-ad-rail,
  html:not(.ads-visible) .tool-map-ad-rail,
  html:not(.ads-visible) .gg_link,
  html:not(.ads-visible) .lantern,
  html:not(.ads-visible) .sponsors {
    display: none !important;
  }
  html:not(.ads-visible) .ns-ads-label-off { display: none !important; }
  html:not(.ads-visible) .ns-ads-label-on { display: inline !important; }
}

/* Online Ping workspace */
.ping-page { min-height: calc(100vh - 118px); padding: 18px 0 32px; background: #f6fbfb; }
.ping-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #7b95a1; font-size: 13px; }
.ping-breadcrumb button,
.ping-breadcrumb a { padding: 0; border: 0; color: #4c7780; background: transparent; font-size: 13px; }
.ping-breadcrumb button:hover,
.ping-breadcrumb a:hover { color: var(--brand-primary); }
.ping-breadcrumb svg { width: 13px; height: 13px; color: #a6bdc4; }
.ping-breadcrumb strong { overflow: hidden; color: #42616f; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ping-control-panel { padding: 20px; border: 1px solid #d8eaec; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 5px 18px rgba(31, 89, 97, .05); overflow: visible; }
.ping-control-panel.ipv6-ping-control-panel {
  position: relative;
  padding-top: 42px;
}
.ipv6-edition-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-sm) 0;
  color: #fff;
  background: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  pointer-events: none;
}
.node-type-choice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.node-type-label {
  color: #55717f;
  font-size: 13px;
  white-space: nowrap;
}
.node-type-choice label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #55717f;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease;
}
.node-type-choice label:has(input:checked) { color: var(--brand-primary); font-weight: 600; }
.node-type-choice input[type="radio"] {
  appearance: none;
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  margin: 0;
  border: 1.5px solid #b7ccd2;
  border-radius: 50%;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.node-type-choice input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .16s ease;
}
.node-type-choice input[type="radio"]:hover { border-color: var(--brand-primary); }
.node-type-choice input[type="radio"]:checked { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .14); }
.node-type-choice input[type="radio"]:checked::after { transform: translate(-50%, -50%) scale(1); }
.node-type-choice input[type="radio"]:focus-visible { box-shadow: 0 0 0 3px rgba(8, 166, 166, .28); }
.node-type-help {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #9db0b7;
  background: transparent;
}
.node-type-help:hover { color: var(--brand-primary); }
.node-type-help svg { width: 14px; height: 14px; }
.ping-control-main { display: flex; align-items: stretch; gap: 10px; }
.ping-target { display: flex; min-width: 0; flex: 1; align-items: center; height: 46px; border: 1px solid #c5e0e1; border-radius: var(--radius-md); color: var(--brand-primary); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.ping-target:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.ping-target svg { flex: 0 0 auto; margin-left: 14px; }
.ping-target input { width: 100%; height: 100%; padding: 0 12px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.ping-action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ping-action svg { width: 16px; height: 16px; }
.ping-action.primary { color: #fff; background: var(--brand-primary); box-shadow: 0 5px 12px rgba(8, 166, 166, .16); }
.ping-action.primary:hover { background: var(--brand-primary-hover); }
.ping-action.continuous { border-color: #a7dada; color: #318287; background: #f5fcfc; }
.ping-action.continuous:hover, .ping-action.continuous.active { border-color: var(--brand-primary); color: #fff; background: var(--brand-primary); }
.ping-action.ghost { border-color: #d3e4e6; color: #587783; background: #fff; }
.ping-action.ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: #f5fcfc; }
.ping-action:disabled { cursor: wait; opacity: .68; }
.ping-control-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
input[type="checkbox"] {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #cddfe1;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
input[type="checkbox"]::after {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 8px;
  height: 5px;
  content: "";
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0);
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1);
}
input[type="checkbox"]:hover { border-color: var(--brand-primary); }
input[type="checkbox"]:checked { border-color: var(--brand-primary); background: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .14); }
input[type="checkbox"]:checked::after { transform: translate(-50%, -50%) rotate(-45deg) scale(1); }
input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px rgba(8, 166, 166, .28); }
input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .55; }

.region-checks, .dns-choice { display: flex; align-items: center; gap: 13px; }
.region-checks {
  flex-wrap: wrap;
  gap: 10px 16px;
}
.region-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #55717f;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: color .18s ease;
}
.region-checks label:hover {
  border-color: transparent;
  color: var(--brand-primary);
  background: transparent;
}
.region-checks label:has(input:checked) {
  border-color: transparent;
  color: var(--brand-primary);
  background: transparent;
  font-weight: 600;
  box-shadow: none;
}
.region-checks label:has(input:focus-visible) {
  box-shadow: none;
}
.region-checks input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border-width: 1.5px;
  border-radius: 4px;
}
.region-checks input[type="checkbox"]::after {
  top: 46%;
  width: 7px;
  height: 4px;
}
.region-checks input[type="checkbox"]:checked {
  box-shadow: 0 0 0 3px rgba(8, 166, 166, .12);
}
.dns-choice label { display: inline-flex; align-items: center; gap: 6px; color: #55717f; font-size: 13px; white-space: nowrap; cursor: pointer; transition: color .18s ease; }
.dns-choice label:has(input:checked) { color: var(--brand-primary); font-weight: 600; }
.dns-choice input[type="radio"] {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #cddfe1;
  border-radius: 50%;
  outline: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.dns-choice input[type="radio"]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--brand-primary);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1);
}
.dns-choice input[type="radio"]:hover { border-color: var(--brand-primary); }
.dns-choice input[type="radio"]:checked { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .14); }
.dns-choice input[type="radio"]:checked::after { transform: translate(-50%, -50%) scale(1); }
.dns-choice input[type="radio"]:focus-visible { box-shadow: 0 0 0 3px rgba(8, 166, 166, .28); }
.dns-choice > input { width: 154px; height: 32px; padding: 0 10px; border: 1px solid #cfe2e4; border-radius: var(--radius-sm); outline: 0; color: #51717d; background: #fff; font-size: 12px; }
.dns-choice > input:disabled { color: #a6b8be; background: #f2f6f7; }
.ping-validation { margin: 12px 0 0; color: #d95968; font-size: 13px; }
.ping-status-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 16px; overflow: hidden; border: 1px solid #d9eaec; border-radius: var(--radius-lg); background: #d9eaec; box-shadow: 0 4px 14px rgba(31, 89, 97, .04); }
.ping-status-row > div { display: grid; grid-template-columns: 22px auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; min-height: 64px; padding: 0 16px; background: #fff; }
.ping-status-row svg { color: var(--brand-primary); }
.ping-status-row span { color: #7b949f; font-size: 12px; white-space: nowrap; }
.ping-status-row strong { min-width: 0; justify-self: end; overflow: hidden; color: #294d5b; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.findping-status-row > div:first-child {
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 2px 8px;
  padding: 10px 16px;
}
.findping-status-row > div:first-child svg { grid-row: 1 / span 2; align-self: center; }
.findping-status-row > div:first-child strong { justify-self: start; font-size: 14px; }
.ping-status-row strong.is-good { color: #15936f; }.ping-status-row strong.is-bad { color: #d45a66; }.ping-status-row strong.is-running { color: var(--brand-primary); }
.ping-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); gap: 18px; margin-top: 18px; align-items: stretch; }
.tool-map-ad-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 5px;
  margin-top: 28px;
  margin-bottom: 28px;
}
.tool-map-ad-rail.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-map-ad-rail.is-full { grid-template-columns: 1fr; }
.ping-breadcrumb + .tool-map-ad-rail,
.mobile-core-tool-shell + .tool-map-ad-rail {
  margin-top: 2px;
}
.tool-map-ad-rail + .ping-card,
.tool-map-ad-rail + .wide-shell.ping-card,
.tool-map-ad-rail + .wide-shell.ping-overview-grid,
.tool-map-ad-rail + .ping-overview-grid,
.tool-map-ad-rail + .wide-shell.ping-status-row,
.tool-map-ad-rail + .ping-status-row,
.tool-map-ad-rail + .wide-shell.feedback-grid,
.tool-map-ad-rail + .feedback-grid,
.tool-map-ad-rail + .wide-shell.intercept-result-view,
.tool-map-ad-rail + .intercept-result-view,
.tool-map-ad-rail + #intercept-result-section,
.tool-map-ad-rail + #domain-result-section {
  margin-top: 0;
}
.tool-map-ad-slot {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #5f8790;
  background: #eef6f7;
  box-shadow: none;
  text-align: center;
  line-height: 0;
  transition: opacity .18s ease;
}
.tool-map-ad-slot:hover {
  opacity: .92;
}
.tool-map-ad-slot:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.tool-map-ad-slot svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--brand-primary);
}
.tool-map-ad-slot strong {
  color: #294b5a;
  font-size: 14px;
  font-weight: 650;
}
.tool-map-ad-slot small {
  color: #7b95a1;
  font-size: 11px;
}
.tool-map-ad-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  color: #6b8892;
  background: rgba(255, 255, 255, .88);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}
.ping-card { overflow: hidden; border: 1px solid #d9eaec; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 5px 18px rgba(31, 89, 97, .05); }
.coverage-card { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.regional-card { display: flex; flex-direction: column; min-width: 0; width: 100%; height: 100%; min-height: 0; }
.ping-section-heading { display: flex; flex: none; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid #e3eff0; }
.ping-section-heading > div:not(.coverage-heading-actions):not(.feedback-search):not(.view-toggle):not(.resolver-heading-actions) { display: grid; gap: 3px; min-width: 0; }
.ping-section-heading > .view-toggle { display: inline-flex; flex: none; flex-direction: row; align-items: center; align-self: center; }
.ping-section-heading span { color: #294b5a; font-size: 16px; font-weight: 600; }
.ping-section-heading small { color: #88a0a9; font-size: 12px; }
.ping-section-heading > button,
.ping-section-heading > a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; border: 0; color: #50858a; background: transparent; font-size: 13px; }
.ping-section-heading > button:hover,
.ping-section-heading > a:hover { color: var(--brand-primary); }
.ping-section-heading > button svg,
.ping-section-heading > a svg { width: 15px; height: 15px; }
.coverage-heading-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.heading-icon-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid #d5e8e9; border-radius: var(--radius-xs); color: #6b8892; background: #fff; font-size: 12.5px; white-space: nowrap; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.heading-icon-btn:hover { border-color: #9ed8d9; color: var(--brand-primary); background: #effafa; }
.heading-icon-btn.active { border-color: var(--brand-primary); color: #fff; background: var(--brand-primary); }
.heading-icon-btn svg { width: 14px; height: 14px; }
.coverage-marker-toggle { gap: 6px; }
.coverage-marker-toggle:hover {
  border-color: #f0c8cc;
  color: #c24a54;
  background: #fff7f8;
}
.coverage-marker-toggle.is-on {
  border-color: #f0c8cc;
  color: #c24a54;
  background: #fff0f2;
}
.coverage-marker-toggle.is-on:hover {
  border-color: #e8b4b8;
  background: #ffe8eb;
}
.coverage-map { position: relative; flex: 1 1 auto; width: 100%; min-height: 400px; aspect-ratio: 760 / 620; overflow: hidden; isolation: isolate; background: #fbfefe; }
.coverage-map::after { position: absolute; z-index: -1; inset: 0; content: ""; border-top: 1px solid rgba(208, 231, 232, .6); pointer-events: none; }
.cn-map-wrap { position: absolute; inset: 0; overflow: hidden; }
.cn-map-svg { display: block; width: 100%; height: 100%; overflow: hidden; }
.cn-province { cursor: pointer; outline: none; }
.cn-province-fill { stroke: #fff; stroke-width: .55; stroke-linejoin: round; fill: var(--lat-fast-b); transition: filter .2s ease, opacity .2s ease, stroke-width .2s ease; }
.cn-province.light .cn-province-fill { fill: var(--lat-fast-a); }
.cn-province.yellow .cn-province-fill { fill: var(--lat-medium-a); }
.cn-province.orange .cn-province-fill { fill: var(--lat-medium-b); }
.cn-province.timeout .cn-province-fill { fill: var(--lat-timeout-b); }
.cn-province:hover .cn-province-fill, .cn-province.is-hovered .cn-province-fill { filter: brightness(1.08) drop-shadow(0 6px 12px rgba(8, 54, 58, .22)); }
.cn-province.is-active .cn-province-fill { stroke: #fff; stroke-width: .55; filter: brightness(1.05) drop-shadow(0 6px 12px rgba(8, 54, 58, .22)); }
.cn-province.is-muted .cn-province-fill { opacity: .3; filter: saturate(.4); }
.cn-province.is-muted:hover .cn-province-fill, .cn-province.is-muted.is-active .cn-province-fill { opacity: 1; filter: saturate(1); }
.cn-province-label { display: none; }
.cn-node { pointer-events: none; }
.cn-node-halo,
.cn-node-core {
  transform-box: fill-box;
  transform-origin: center;
}
.cn-node-halo { fill: rgba(255,255,255,.45); stroke: rgba(255,255,255,.8); stroke-width: .55; }
.cn-node-core { fill: #fff; stroke: var(--brand-primary-active); stroke-width: 1.15; }
.cn-province.is-active .cn-node-halo, .cn-province.is-hovered .cn-node-halo { animation: map-node-pulse 1.8s ease-out infinite; }
@keyframes map-node-pulse { 0%, 100% { opacity: .5; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.35); } }

.cn-legend { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: grid; gap: 5px; padding: 10px 12px; border: 1px solid #dcedee; border-radius: var(--radius-md); background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(20, 90, 97, .07); backdrop-filter: blur(6px); }
.cn-legend-item { display: flex; align-items: center; gap: 7px; padding: 1px 2px; border: 0; border-radius: var(--radius-xs); color: #4a6b73; background: transparent; font-size: 11px; text-align: left; transition: color .15s ease, background .15s ease; }
.cn-legend-item:hover, .cn-legend-item.selected { color: #1c5257; background: #eef8f8; }
.cn-legend-item i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 2px; background: var(--lat-fast-b); }
.cn-legend-item.light i { background: var(--lat-fast-a); }
.cn-legend-item.yellow i { background: var(--lat-medium-a); }
.cn-legend-item.orange i { background: var(--lat-medium-b); }
.cn-legend-item.timeout i { background: var(--lat-timeout-b); }

.cn-inset { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 58px; opacity: .9; }
.cn-inset svg { width: 100%; height: auto; }
.cn-inset rect { fill: #fbfefe; stroke: #cfe6e6; stroke-width: 1; }
.cn-inset-shape { fill: var(--lat-fast-b); stroke: #fff; stroke-width: .8; }
.cn-inset circle:not(.cn-inset-shape) { fill: var(--lat-fast-a); }

.cn-tooltip { position: fixed; z-index: 60; min-width: 196px; overflow: hidden; border: 1px solid #dcedee; border-radius: var(--radius-md); background: #fff; box-shadow: 0 16px 34px rgba(20, 90, 97, .18); pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); animation: tooltip-in .15s ease; }
.cn-tooltip::after { position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; content: ""; border-right: 1px solid #dcedee; border-bottom: 1px solid #dcedee; border-radius: 0 0 2px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.cn-tooltip-head { padding: 9px 14px; border-bottom: 1px solid #eef6f6; color: var(--lat-fast-b); background: #eafaf6; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.cn-tooltip.light .cn-tooltip-head { color: #17957e; background: #e6f8f2; }
.cn-tooltip.yellow .cn-tooltip-head { color: #a17a1e; background: #fdf5e2; }
.cn-tooltip.orange .cn-tooltip-head { color: #b35e21; background: #fcede1; }
.cn-tooltip.timeout .cn-tooltip-head { color: #c23b48; background: #fdecee; }
.cn-tooltip-body { padding: 10px 14px 11px; color: var(--ink); background: #fff; font-size: 12px; line-height: 1.6; }
.cn-tooltip-fastest { margin: 0 0 6px; color: #5c7d87; }
.cn-tooltip-fastest b { color: var(--lat-fast-b); font: 700 14px "DM Mono", monospace; }
.cn-tooltip-row { margin: 0; color: #3d5a63; white-space: nowrap; }
.cn-carrier-tag { display: inline-block; min-width: 30px; margin-right: 6px; padding: 1px 5px; border-radius: 3px; font-size: 10.5px; font-weight: 600; text-align: center; }
.cn-carrier-tag.telecom { color: #b35e21; background: #fcede1; }
.cn-carrier-tag.unicom { color: #2f5fc7; background: #e8effd; }
.cn-carrier-tag.mobile { color: #0e9f86; background: #e6f8f2; }
.cn-tooltip em { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px solid #eef4f4; color: #9bb2b8; font-size: 10.5px; font-style: normal; }
@keyframes tooltip-in { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)); } to { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); } }
@keyframes dropdown-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.progress-label { padding: 4px 8px; border-radius: var(--radius-xs); color: var(--brand-primary); background: var(--brand-soft); font: 500 12px "DM Mono", monospace; }
.region-table { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 0 18px 14px; overflow: auto; }
.region-table-row { display: grid; width: 100%; flex: 1 1 0; grid-template-columns: 1.05fr 1.2fr 1.2fr .7fr; gap: 10px; min-height: 36px; align-items: center; padding: 0 10px; border: 0; border-left: 2.5px solid transparent; border-bottom: 1px solid #edf4f4; color: #58717e; background: transparent; font-size: 12px; text-align: left; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.region-table-row:not(.table-head) { cursor: pointer; }
.region-table-row:not(.table-head):hover { color: #247d82; background: #f4fbfb; }
.region-table-row.active { border-left-color: var(--brand-primary); color: #247d82; background: #edfafa; }
.region-table-row.active span:first-child { color: var(--brand-primary); font-weight: 700; }
.region-table-row:last-child { border-bottom: 0; }
.region-table-row > span:not(:first-child) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.region-table-row.table-head { flex: 0 0 auto; min-height: 34px; color: #8097a0; font-size: 12px; }
.region-table-row.table-head span { text-align: left; }
.region-table-row.table-head span:not(:first-child) { text-align: right; }

.regional-tab-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0;
  padding: 3px;
  border: 1px solid #d5e8e9;
  border-radius: 8px;
  background: #f2fafa;
}
.regional-tab-toggle button,
.regional-tab-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #6b8892;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.regional-tab-toggle button:hover,
.regional-tab-toggle a:hover { color: var(--brand-primary); }
.regional-tab-toggle button.active,
.regional-tab-toggle a.active {
  color: #fff;
  background: var(--brand-primary);
  box-shadow: 0 3px 8px rgba(8, 166, 166, .22);
}

.regional-card.is-overseas .region-table {
  justify-content: flex-start;
  gap: 0;
  padding: 8px 14px 12px;
}
.regional-card.is-overseas .region-table-row {
  flex: 0 0 auto;
  min-height: 44px;
  grid-template-columns: 1.05fr 1.2fr 1.2fr .72fr;
  gap: 10px;
  padding: 7px 12px;
  border-left-width: 2.5px;
  border-bottom: 1px solid #e8f2f3;
  border-radius: 0;
}
.regional-card.is-overseas .region-table-row.table-head {
  min-height: 32px;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  color: #7a949d;
  background: #f6fbfb;
  border-bottom-color: #e3eff0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.regional-card.is-overseas .region-table-row:not(.table-head) {
  border-top: 0;
  border-right: 0;
  background: #fff;
}
.regional-card.is-overseas .region-table-row:not(.table-head):nth-child(even) { background: #fbfefe; }
.regional-card.is-overseas .region-table-row:not(.table-head) + .region-table-row:not(.table-head) {
  margin-top: 0;
}
.regional-card.is-overseas .region-table-row:not(.table-head):hover {
  background: #f4fbfb;
}
.regional-card.is-overseas .region-table-row.active {
  border-left-color: var(--brand-primary);
  background: #edfafa;
  box-shadow: none;
}
.regional-card.is-overseas .region-table-row:last-child {
  border-bottom: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.regional-card.is-overseas .region-table-row > span:not(:first-child) {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}
.region-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  text-align: right;
}
.region-metric strong {
  color: #254255;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.region-metric small {
  overflow: hidden;
  max-width: 100%;
  color: #8097a0;
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.region-metric.is-empty strong { color: #a8b8bf; font-weight: 500; }
.region-metric.is-timeout strong { color: #dd5763; }
.region-metric.is-timeout small { color: #e08a92; }
.region-metric.is-avg-only { justify-content: center; }
.region-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #294b5a;
  font-size: 12.5px;
  font-weight: 650;
}
.region-name i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ed0d2;
}
.region-table-row.active .region-name { color: var(--brand-primary); }
.region-table-row.active .region-name i { background: var(--brand-primary); }
.resolver-card { margin-top: 18px; }
.resolver-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 18px;
}
.resolver-list button,
.resolver-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #dcebed;
  border-radius: var(--radius-sm);
  color: #466572;
  background: #fff;
  text-align: left;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.resolver-list button:hover,
.resolver-list a:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: #f5fcfc; }
.resolver-list .resolver-ip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px "DM Mono", monospace; }
.resolver-list .resolver-weight { flex: none; color: var(--brand-primary); font: 500 11px "DM Mono", monospace; }
.resolver-list button svg,
.resolver-list a svg { flex: none; width: 14px; height: 14px; margin-left: auto; color: #a9c0c6; opacity: 0; transition: opacity .15s ease; }
.resolver-list button:hover svg,
.resolver-list a:hover svg { opacity: 1; }
.resolver-heading-actions {
  display: inline-flex;
  flex: none;
  flex-direction: row;
  align-items: center;
  align-self: center;
  gap: 12px;
  white-space: nowrap;
}
.resolver-heading-actions .heading-icon-btn {
  height: 30px;
  padding: 0 12px;
}
.resolver-collapse-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  color: #50858a;
  background: transparent;
  font-size: 13px;
  white-space: nowrap;
}
.resolver-collapse-btn:hover { color: var(--brand-primary); }
.resolver-collapse-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.ipv6-resolver-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ping-section-heading svg.flip { transform: rotate(180deg); }
.trace-ip { color: #3d6d78; font: 500 12px "DM Mono", monospace; }
.quality-spark { display: block; width: 88px; height: 22px; margin: 0 auto; overflow: visible; }
.quality-spark polyline { fill: none; stroke: var(--lat-fast-b); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quality-spark.medium polyline { stroke: var(--brand-primary); }
.quality-spark.timeout polyline { stroke: var(--lat-timeout-b); }
.timeout-spark { display: inline-flex; height: 20px; width: 88px; align-items: center; justify-content: center; border-radius: var(--radius-xs); color: #dd5763; background: #fff0f2; font-size: 10.5px; }
#ipv6-ping-result-section table { min-width: 1280px; }
#ipv6-ping-result-section td:nth-child(2) { min-width: 210px; }
.ping-result-card { margin-top: 18px; }
.ping-card.flash { animation: card-flash 1.2s ease; }
@keyframes card-flash { 0% { box-shadow: 0 0 0 3px rgba(8, 166, 166, .35), 0 5px 18px rgba(31, 89, 97, .05); } 100% { box-shadow: 0 5px 18px rgba(31, 89, 97, .05); } }
.ping-result-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 64px; border-bottom: 1px solid #e3eff0; }
.ping-result-toolbar .ping-section-heading { min-width: 180px; min-height: 64px; border: 0; }.ping-filter-tabs { display: flex; gap: 7px; padding: 0 10px; overflow-x: auto; }
.ping-filter-tabs button,
.ping-filter-tabs a { min-height: 30px; padding: 0 10px; border: 1px solid #d5e7e8; border-radius: var(--radius-xs); color: #5b7580; background: #fff; font-size: 12px; white-space: nowrap; }.ping-filter-tabs button:hover,
.ping-filter-tabs a:hover { border-color: #8ed1d2; color: var(--brand-primary); }.ping-filter-tabs button.selected,
.ping-filter-tabs a.selected { border-color: var(--brand-primary); color: #fff; background: var(--brand-primary); }.ping-filter-tabs b { display: inline-grid; width: 15px; height: 15px; margin-left: 4px; place-items: center; border-radius: 50%; color: #e05d6b; background: #fff0f2; font-size: 10px; }.ping-filter-tabs button.selected b,
.ping-filter-tabs a.selected b { color: #e85b68; background: #fff; }
.result-count { padding-right: 18px; color: #819aa3; font-size: 12px; white-space: nowrap; }.result-count b { color: var(--brand-primary); }
.ping-result-scroll { overflow-x: auto; }.ping-result-scroll table { width: 100%; min-width: 1050px; border-collapse: collapse; }.ping-result-scroll th { height: 44px; padding: 0 12px; border-bottom: 1px solid #e3eff0; color: #77909a; background: #f8fcfc; font-size: 12px; font-weight: 500; text-align: center; white-space: nowrap; }.ping-result-scroll td { height: 47px; padding: 0 12px; border-bottom: 1px solid #edf4f4; color: #58717e; font-size: 12px; text-align: center; white-space: nowrap; }.ping-result-scroll tbody tr:hover { background: #f7fcfc; }.ping-result-scroll td:first-child { min-width: 128px; text-align: left; }.ping-result-scroll td:nth-child(3) { min-width: 140px; }.ping-result-scroll td:last-child { min-width: 100px; }.provider-tag { display: inline-flex; margin-right: 6px; padding: 3px 5px; border-radius: var(--radius-xs); color: #287d81; background: #e8f8f7; font-size: 11px; font-weight: 600; }.provider-tag.海外 { color: #667681; background: #edf1f3; }.ping-result-scroll .danger { color: #e05f6c; font-weight: 600; }.ping-result-scroll td b { color: #3b6472; font-weight: 600; }.quality { display: inline-flex; min-width: 48px; justify-content: center; padding: 3px 6px; border-radius: 99px; color: #168965; background: #e9f8f1; font-size: 11px; }.quality.超时 { color: #d85c68; background: #fff0f2; }

.quick-ip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}
.quick-ip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 500 12px/1.3 "DM Mono", ui-monospace, monospace;
}
.quick-ip-trigger {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-xs);
  color: var(--brand-primary);
  background: transparent;
  opacity: 0;
  transform: translateY(1px);
  transition: opacity .14s ease, background .14s ease, color .14s ease;
}
.quick-ip-trigger svg { width: 14px; height: 14px; stroke-width: 2; }
.quick-ip:hover .quick-ip-trigger,
.quick-ip.is-open .quick-ip-trigger,
.quick-ip-trigger:focus-visible {
  opacity: 1;
}
.quick-ip-trigger:hover,
.quick-ip-trigger:focus-visible,
.quick-ip.is-open .quick-ip-trigger {
  color: var(--brand-primary);
  background: transparent;
  outline: 0;
}
.quick-ip-menu {
  position: fixed;
  z-index: 70;
  min-width: 168px;
  padding: 6px;
  border: 1px solid #dcebed;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 14px 32px rgba(10, 63, 72, .16);
  animation: dropdown-pop .16s cubic-bezier(.16, 1, .3, 1);
}
.quick-ip-menu button,
.quick-ip-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #2c4b56;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  transition: color .14s ease, background .14s ease;
}
.quick-ip-menu button svg,
.quick-ip-menu a svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
}
.quick-ip-menu button:hover,
.quick-ip-menu button:focus-visible,
.quick-ip-menu a:hover,
.quick-ip-menu a:focus-visible {
  color: var(--brand-primary);
  background: #eef8f8;
  outline: 0;
}
@media (hover: none) {
  .quick-ip-trigger { opacity: .72; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-ip-menu { animation: none; }
  .quick-ip-trigger { transition: none; }
}

/* Online TCPing workspace */
.tcp-control-panel { padding: 18px 20px 16px; }
.tcp-control-main { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 10px; align-items: stretch; }
.tcp-target { min-width: 0; }.tcp-target svg { color: #279da0; }
.tcp-port-control { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #c5e0e1; border-radius: var(--radius-md); color: #4b7882; background: #f9fdfd; }
.tcp-port-control span { color: #73939c; font-size: 12px; white-space: nowrap; }.tcp-port-control input { width: 100%; min-width: 0; border: 0; outline: 0; color: #214c59; background: transparent; font: 600 15px "DM Mono", monospace; }
.tcp-port-control:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.tcp-control-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 15px; }
.tcp-dns-choice { display: flex; align-items: center; gap: 12px; }.tcp-dns-choice label { display: inline-flex; align-items: center; gap: 6px; color: #55717f; font-size: 13px; white-space: nowrap; cursor: pointer; transition: color .18s ease; }.tcp-dns-choice label:has(input:checked) { color: var(--brand-primary); font-weight: 600; }
.tcp-dns-choice input[type="radio"] {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #cddfe1;
  border-radius: 50%;
  outline: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tcp-dns-choice input[type="radio"]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--brand-primary);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1);
}
.tcp-dns-choice input[type="radio"]:hover { border-color: var(--brand-primary); }
.tcp-dns-choice input[type="radio"]:checked { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .14); }
.tcp-dns-choice input[type="radio"]:checked::after { transform: translate(-50%, -50%) scale(1); }
.tcp-dns-choice input[type="radio"]:focus-visible { box-shadow: 0 0 0 3px rgba(8, 166, 166, .28); }
.tcp-dns-choice > input { width: 118px; height: 32px; padding: 0 9px; border: 1px solid #cfe2e4; border-radius: var(--radius-sm); outline: 0; color: #51717d; background: #fff; font-size: 12px; }.tcp-dns-choice > input:disabled { color: #a6b8be; background: #f2f6f7; }
.tcp-snapshot { display: inline-flex; height: 32px; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid #cce2e4; border-radius: var(--radius-sm); color: #537c86; background: #fff; font-size: 12px; transition: color .2s ease, border-color .2s ease, background .2s ease; }.tcp-snapshot:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: #f4fbfb; }.tcp-snapshot svg { width: 14px; height: 14px; }
.tcp-status-row { grid-template-columns: 1.15fr .8fr 1fr 1fr; }.tcp-port-value { color: var(--brand-primary) !important; font-family: "DM Mono", monospace; }
.tcp-overview-grid { margin-top: 18px; }.tcp-summary-card .region-table-row.active { background: #edfafa; }
.tcp-endpoint-card { margin-top: 18px; }.tcp-result-card { margin-top: 18px; }.tcp-result-card .ping-result-toolbar { background: #fcfefe; }.tcp-result-card .quality { min-width: 56px; }

/* Website speed workspace */
.website-control-panel { padding: 18px 20px 18px; }.website-control-main { display: grid; grid-template-columns: minmax(300px, 1fr) auto auto auto auto; gap: 10px; align-items: stretch; }.website-target svg { color: #279da0; }.website-control-main .tcp-snapshot { height: auto; min-height: 46px; padding: 0 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; }.website-control-main .tcp-snapshot svg { width: 15px; height: 15px; }
.website-warm-button, .website-advanced { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }.website-warm-button { border: 1px solid #f2c985; color: #9b6b24; background: #fff9ee; }.website-warm-button:hover { border-color: #e7aa45; color: #fff; background: #e7aa45; }.website-advanced { border: 1px solid #c4dfe1; color: #527882; background: #fff; }.website-advanced:hover, .website-advanced.active { border-color: var(--brand-primary); color: var(--brand-primary); background: #f1fbfb; }.website-advanced svg { width: 15px; height: 15px; transition: transform .2s ease; }.website-advanced.active svg { transform: rotate(180deg); }
.website-advanced-panel {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  margin-bottom: 0;
  padding: 16px 18px;
  border: 1px solid #d4e8e9;
  border-radius: var(--radius-md);
  background: #f7fbfb;
}
.website-advanced-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
}
.website-advanced-label {
  color: #4f6f79;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.website-advanced-radios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.website-advanced-radios label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #55717f;
  font-size: 13px;
  cursor: pointer;
  transition: color .18s ease;
}
.website-advanced-radios label:has(input:checked) {
  color: var(--brand-primary);
  font-weight: 600;
}
.website-advanced-radios input[type="radio"] {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #cddfe1;
  border-radius: 50%;
  outline: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.website-advanced-radios input[type="radio"]::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--brand-primary);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .16s cubic-bezier(.34, 1.56, .64, 1);
}
.website-advanced-radios input[type="radio"]:hover { border-color: var(--brand-primary); }
.website-advanced-radios input[type="radio"]:checked {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(8, 166, 166, .14);
}
.website-advanced-radios input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}
.website-advanced-radios input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(8, 166, 166, .28);
}
.website-advanced-radios.is-compact { gap: 8px 20px; }
.website-advanced-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #c9e1e2;
  border-radius: var(--radius-sm);
  outline: 0;
  color: #214c59;
  background: #fff;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.website-advanced-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(8, 166, 166, .12);
}
.website-advanced-input.is-narrow {
  width: 88px;
  flex: none;
  text-align: center;
  font: 600 13px "DM Mono", monospace;
}
.website-advanced-redirect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.website-advanced-redirect p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #8299a2;
  font-size: 12px;
  line-height: 1.45;
}
.website-advanced-redirect svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: #7aa3aa;
}
.website-control-panel .tcp-control-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #e3eff0;
}
.website-status-row { grid-template-columns: 1.25fr 1fr 1fr .8fr; }.website-overview-grid { margin-top: 18px; }.website-resolver-card, .website-result-card { margin-top: 18px; }.website-resolver-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }.website-result-card .ping-result-toolbar { background: #fcfefe; }.web-total { color: #169c72 !important; font-weight: 600; }.web-head-button { border: 0; color: #39717b; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }.web-head-button:hover { color: var(--brand-primary); }

/* Traceroute / MTR workspace */
.trace-snapshot { position: relative; flex: none; }
.trace-snapshot-btn { display: inline-flex; min-height: 46px; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid #f2c985; border-radius: var(--radius-md); color: #9b6b24; background: #fff9ee; font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.trace-snapshot-btn:hover, .trace-snapshot-btn.open { border-color: #e7aa45; color: #fff; background: #e7aa45; }
@media (max-width: 900px) {
  .trace-snapshot-btn:hover,
  .trace-snapshot-btn.open,
  .trace-snapshot-btn:active {
    border-color: #f2c985;
    color: #9b6b24;
    background: #fff9ee;
  }
}
.trace-snapshot-btn svg:last-child { width: 13px; height: 13px; transition: transform .2s ease; }
.trace-snapshot-btn.open svg:last-child { transform: rotate(180deg); }
.trace-snapshot-menu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; min-width: 172px; padding: 6px; border: 1px solid #d8eaec; border-radius: var(--radius-md); background: #fff; box-shadow: 0 16px 34px rgba(20, 90, 97, .16); transform-origin: top right; animation: dropdown-pop .2s cubic-bezier(.16, 1, .3, 1); }
.trace-snapshot-menu button,
.trace-snapshot-menu a { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: var(--radius-sm); color: #3d5a63; background: transparent; font-size: 13px; text-align: left; white-space: nowrap; }
.trace-snapshot-menu button:hover,
.trace-snapshot-menu a:hover { color: var(--brand-primary); background: #f2fafa; }
.trace-snapshot-menu svg { width: 14px; height: 14px; }

.trace-control-options { position: relative; }
.trace-control-panel { overflow: visible; }
.trace-node-select { position: relative; z-index: 4; min-width: 280px; flex: 1; max-width: 420px; }
.trace-node-trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #c5e0e1;
  border-radius: var(--radius-md);
  color: #1d3c4f;
  background: #fff;
  font-size: 14px;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.trace-node-trigger:hover,
.trace-node-trigger.open { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.trace-node-trigger > svg:first-child { flex: none; width: 16px; height: 16px; color: #7ba3a8; }
.trace-node-trigger > svg:last-child { flex: none; width: 14px; height: 14px; margin-left: auto; color: #9db4bb; transition: transform .2s ease; }
.trace-node-trigger.open > svg:last-child { transform: rotate(180deg); color: var(--brand-primary); }
.trace-node-placeholder { flex: 1; min-width: 0; color: #9db4bb; font-size: 14px; font-weight: 500; }
.trace-node-picker { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 25; }
.trace-node-select .trace-node-chip { flex: 0 1 auto; max-width: calc(100% - 48px); }
.trace-result-card .trace-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 14px 18px;
  border-bottom: 1px solid #e3eff0;
  background: #fcfefe;
  color: #6b8892;
  font-size: 13px;
  line-height: 1.55;
}
.trace-summary-line b { color: #294d5b; font-weight: 600; }
.trace-summary-location { color: #d45a66 !important; }
.trace-node-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 8px; border-radius: 999px; color: var(--brand-primary); background: #eef9f9; font-size: 13px; font-weight: 600; cursor: pointer; }
.trace-node-chip button,
.trace-node-chip a { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; color: #6b8892; background: transparent; cursor: pointer; }
.trace-node-chip button:hover,
.trace-node-chip a:hover { color: #d45a66; background: #fff; }
.trace-location-head { white-space: normal; line-height: 1.25; }
.trace-location-head small { display: block; margin-top: 2px; color: #88a0a9; font-size: 11px; font-weight: 500; line-height: 1.2; }
.trace-location-ref { color: #d45a66; font-size: 13px; }
.as-tag.as-link { padding: 0; border: 0; background: transparent; cursor: pointer; text-decoration: none; }
.as-tag.as-link:hover { text-decoration: underline; }
.node-search { position: relative; z-index: 3; min-width: 240px; flex: 1; max-width: 360px; }
.node-search-input { display: flex; min-height: 46px; height: 46px; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #c5e0e1; border-radius: var(--radius-md); background: #fff; cursor: text; transition: border-color .2s ease, box-shadow .2s ease; }
.node-search.open .node-search-input, .node-search-input:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.node-search-input > svg:first-child { flex: 0 0 auto; width: 16px; height: 16px; color: #7ba3a8; }
.node-search-input input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; font-weight: 600; }
.node-search-input input::placeholder { color: #9db4bb; font-weight: 500; }
.node-search-input > svg:last-child { flex: 0 0 auto; width: 14px; height: 14px; color: #9db4bb; transition: transform .2s ease; }
.node-search.open .node-search-input > svg:last-child { transform: rotate(180deg); }
.node-search-dropdown { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 264px; overflow-y: auto; padding: 6px; border: 1px solid #d8eaec; border-radius: var(--radius-md); background: #fff; box-shadow: 0 16px 34px rgba(20, 90, 97, .16); transform-origin: top center; animation: dropdown-pop .2s cubic-bezier(.16, 1, .3, 1); }
.node-search-option { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 0; border-radius: var(--radius-sm); color: #3d5a63; background: transparent; font-size: 13px; text-align: left; }
.node-search-option:hover { background: #f2fafa; }
.node-search-option.selected { color: var(--brand-primary); background: var(--brand-soft); font-weight: 600; }
.node-search-empty { margin: 0; padding: 16px; color: #98adb4; font-size: 12px; text-align: center; }
.node-tag { flex: 0 0 auto; padding: 2px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 600; font-style: normal; }
.node-tag.telecom { color: #b35e21; background: #fcede1; }
.node-tag.unicom { color: #2f5fc7; background: #e8effd; }
.node-tag.mobile { color: #0e9f86; background: #e6f8f2; }
.node-tag.overseas { color: #667681; background: #edf1f3; }

.trace-path-card { margin-top: 18px; padding: 20px 20px 16px; }
.trace-path { display: flex; align-items: center; padding: 4px 2px 16px; overflow-x: auto; }
.trace-path-item { display: flex; flex: 0 0 auto; align-items: center; }
.trace-path-dot { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border: 2px solid var(--lat-fast-b); border-radius: 50%; color: #fff; background: var(--lat-fast-b); font: 700 11px "DM Mono", monospace; cursor: default; transition: transform .15s ease; }
.trace-path-dot:hover { transform: scale(1.18); }
.trace-path-dot.private { border-color: #c9dcdd; color: #7b969c; background: #eef6f6; }
.trace-path-dot.medium { border-color: var(--lat-medium-b); color: #7a5a12; background: var(--lat-medium-a); }
.trace-path-dot.slow { border-color: var(--lat-slow-b); color: #7a3f10; background: var(--lat-slow-a); }
.trace-path-dot.timeout { border-color: var(--lat-timeout-b); color: #fff; background: var(--lat-timeout-b); }
.trace-path-dot.is-target { box-shadow: 0 0 0 4px var(--brand-soft); }
.trace-path-line { width: 30px; height: 2px; flex: 0 0 auto; margin: 0 2px; background: #cfe6e6; }
.trace-path-line.medium { background: var(--lat-medium-a); }
.trace-path-line.slow { background: var(--lat-slow-a); }
.trace-path-line.timeout { background: var(--lat-timeout-a); }
.trace-path-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; border-top: 1px dashed #e3eff0; }
.trace-path-legend span { display: inline-flex; align-items: center; gap: 6px; color: #6b8892; font-size: 12px; }
.trace-path-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--lat-fast-b); }
.trace-path-legend .private i { background: #c9dcdd; }
.trace-path-legend .medium i { background: var(--lat-medium-a); }
.trace-path-legend .slow i { background: var(--lat-slow-a); }
.trace-path-legend .timeout i { background: var(--lat-timeout-a); }

.trace-result-scroll table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
  border-collapse: collapse;
}
.trace-result-toolbar { border-bottom: 1px solid #e3eff0; padding: 14px 18px; background: #fcfefe; }
.trace-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trace-result-title { display: grid; gap: 4px; min-width: 0; }
.trace-result-title > span { color: #294b5a; font-size: 16px; font-weight: 600; }
.trace-result-title > small { color: #88a0a9; font-size: 12px; line-height: 1.55; }
.trace-result-title > small b { color: var(--brand-primary); font-weight: 600; }
.trace-result-head .heading-icon-btn { flex: none; margin-top: 1px; }
.trace-result-card .trace-result-scroll th,
.trace-result-card .trace-result-scroll td {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.trace-result-card .trace-result-scroll th {
  height: auto;
  min-height: 44px;
  padding: 8px 10px;
}
.trace-result-card .trace-result-scroll td { padding: 0 10px; }
.trace-result-card .trace-result-scroll .trace-col-ttl { width: 56px; }
.trace-result-card .trace-result-scroll .trace-col-ip { width: 168px; }
.trace-result-card .trace-result-scroll .trace-col-ptr { width: 150px; }
.trace-result-card .trace-result-scroll .trace-col-loc { width: 200px; }
.trace-result-card .trace-result-scroll .trace-col-as,
.trace-result-card .trace-result-scroll .trace-col-loss { width: 88px; }
.trace-result-card .trace-result-scroll .trace-col-send { width: 56px; }
.trace-result-card .trace-result-scroll .trace-col-ms { width: 90px; }
.trace-result-card .trace-result-scroll th:nth-child(1),
.trace-result-card .trace-result-scroll td:nth-child(1) { width: 56px; text-align: center; }
.trace-result-card .trace-result-scroll th:nth-child(2),
.trace-result-card .trace-result-scroll td:nth-child(2) {
  width: 168px;
  text-align: left;
  font-family: "DM Mono", monospace;
}
.trace-result-card .trace-result-scroll .quick-ip { justify-content: flex-start; }
.trace-result-card .trace-result-scroll th:nth-child(3),
.trace-result-card .trace-result-scroll td:nth-child(3) { width: 150px; text-align: left; }
.trace-result-card .trace-result-scroll th:nth-child(4),
.trace-result-card .trace-result-scroll td:nth-child(4) { width: 200px; text-align: left; }
.trace-result-card .trace-result-scroll th:nth-child(5),
.trace-result-card .trace-result-scroll td:nth-child(5) { width: 88px; text-align: center; }
.trace-result-card .trace-result-scroll th:nth-child(6),
.trace-result-card .trace-result-scroll td:nth-child(6) { width: 88px; text-align: center; }
.trace-result-card .trace-result-scroll th:nth-child(7),
.trace-result-card .trace-result-scroll td:nth-child(7) { width: 56px; text-align: center; }
.trace-result-card .trace-result-scroll th:nth-child(n + 8),
.trace-result-card .trace-result-scroll td:nth-child(n + 8) { width: 90px; text-align: center; }
.trace-result-scroll tbody tr.is-target { background: #f4fbfb; }
.trace-result-scroll tbody tr.is-target td:first-child b { color: var(--brand-primary); }
.as-tag { color: #3d84c9; font: 500 12px "DM Mono", monospace; }
.loss-tag { display: inline-flex; min-width: 58px; justify-content: center; padding: 3px 6px; border-radius: 99px; color: #168965; background: #e9f8f1; font: 500 11px "DM Mono", monospace; }
.loss-tag.medium { color: #a17a1e; background: #fdf5e2; }
.loss-tag.slow { color: #b35e21; background: #fcede1; }
.loss-tag.timeout { color: #c23b48; background: #fdecee; }

/* DNS lookup workspace */
.dns-type-select { position: relative; z-index: 6; display: flex; flex: none; align-items: center; min-width: 112px; height: 46px; }
.dns-type-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-width: 112px;
  padding: 0 12px;
  border: 1px solid #c5e0e1;
  border-radius: var(--radius-md);
  color: #279da0;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.dns-type-select.open .dns-type-trigger,
.dns-type-trigger:focus-visible {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(8, 166, 166, .12);
  outline: 0;
}
.dns-type-trigger svg:first-child { flex: none; width: 16px; height: 16px; }
.dns-type-trigger b { flex: 1; min-width: 0; color: var(--ink); font-size: 14px; font-weight: 600; text-align: left; }
.dns-type-trigger svg:last-child { flex: none; width: 13px; height: 13px; color: #9db4bb; transition: transform .2s ease; }
.dns-type-select.open .dns-type-trigger svg:last-child { transform: rotate(180deg); color: var(--brand-primary); }
.dns-type-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  width: max-content;
  padding: 6px;
  border: 1px solid #d8eaec;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 90, 97, .16);
  transform-origin: top left;
  animation: dropdown-pop .2s cubic-bezier(.16, 1, .3, 1);
}
.dns-type-menu button,
.dns-type-menu a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 112px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #3d5a63;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: "DM Mono", monospace;
  text-align: left;
  white-space: nowrap;
}
.dns-type-menu button:hover,
.dns-type-menu a:hover {
  color: var(--brand-primary);
  background: #f2fafa;
}
.dns-type-menu button.selected,
.dns-type-menu a.selected {
  color: var(--brand-primary);
  background: var(--brand-soft);
}
.dns-type-menu button svg,
.dns-type-menu a svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.dns-distribution-card { margin-top: 18px; }
.dns-distribution-body { padding: 4px 18px 20px; }
.dns-bar { display: flex; height: 14px; overflow: hidden; border-radius: 99px; background: #eef6f6; }
.dns-bar-seg { height: 100%; min-width: 2px; transition: filter .15s ease; }
.dns-bar-seg:hover { filter: brightness(1.08); }
.dns-bar-seg + .dns-bar-seg { box-shadow: -1px 0 0 rgba(255, 255, 255, .7); }
.dns-legend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin-top: 10px; }
.dns-legend-grid.is-ipv6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dns-legend-item { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); color: #4b6b76; background: transparent; font-size: 12.5px; text-align: left; transition: border-color .2s ease, background .2s ease; }
.dns-legend-item:hover { border-color: #d8eaec; background: #f8fcfc; }
.dns-legend-item i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 3px; }
.dns-legend-ip { flex: 1 1 auto; min-width: 0; overflow: visible; color: var(--ink); text-overflow: unset; white-space: nowrap; font: 500 12.5px "DM Mono", monospace; }
.dns-legend-item b { flex: none; color: var(--brand-primary); font: 600 12px "DM Mono", monospace; }
.dns-legend-item svg { flex: none; width: 13px; height: 13px; color: #a9c0c6; opacity: 0; transition: opacity .15s ease; }
.dns-legend-item:hover svg { opacity: 1; }
.swatch-0 { background: var(--brand-primary); }
.swatch-1 { background: var(--lat-fast-b); }
.swatch-2 { background: var(--lat-medium-b); }
.swatch-3 { background: #2f5fc7; }
.swatch-4 { background: #7b8fa1; }

.findping-control-panel { padding: 18px 20px; }
.findping-search-block {
  width: min(100%, 720px);
  margin: 0 auto;
}
.findping-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.findping-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #c5e0e1;
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.findping-search input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(8, 166, 166, .12);
}
.findping-search-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 108px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--brand-primary);
  font-size: 14px;
  font-weight: 600;
}
.findping-search-btn:hover { background: var(--brand-primary-hover); }
.findping-search-btn:disabled { opacity: .7; cursor: wait; }
.findping-search-btn svg { width: 15px; height: 15px; }
.findping-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 12px 0 0;
  color: #7f97a0;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
}
.findping-hint svg { flex: none; width: 13px; height: 13px; margin-top: 2px; color: #9db4bb; }
.findping-control-panel .ping-validation { margin: 10px 0 0; text-align: left; }
.findping-card { margin-top: 18px; }
.view-toggle { display: inline-flex; flex: none; padding: 3px; border: 1px solid #d5e8e9; border-radius: var(--radius-xs); background: #f2fafa; }
.view-toggle button,
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border: 0; border-radius: 6px; color: #6b8892; background: transparent; font-size: 12.5px; white-space: nowrap; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.view-toggle button svg,
.view-toggle a svg { width: 13px; height: 13px; }
.view-toggle button:hover,
.view-toggle a:hover { color: var(--brand-primary); }
.view-toggle button.active,
.view-toggle a.active { color: #fff; background: var(--brand-primary); box-shadow: 0 3px 8px rgba(8, 166, 166, .28); }
.findping-body { display: flex; align-items: stretch; min-height: 320px; }
.findping-segment-list { display: flex; flex: none; flex-direction: column; gap: 4px; width: 200px; padding: 12px; border-right: 1px solid #e3eff0; overflow-y: auto; }
.findping-segment { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); color: #4b6b76; background: transparent; font: 600 12.5px "DM Mono", monospace; text-align: left; transition: background .18s ease, color .18s ease; }
.findping-segment:hover { background: #f4fbfb; color: #247d82; }
.findping-segment.active { color: #fff; background: var(--brand-primary); box-shadow: 0 4px 12px rgba(8, 166, 166, .25); }
.findping-segment b { padding: 1px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-primary); font: 600 11px "Inter", sans-serif; }
.findping-segment.active b { color: #fff; background: rgba(255, 255, 255, .26); }
.findping-segment-detail { flex: 1; min-width: 0; }
.findping-ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; padding: 16px; }
.findping-ip-chip { padding: 9px 10px; border: 1px solid #dcebed; border-radius: var(--radius-sm); color: #2c4b56; background: #fff; font: 500 12px "DM Mono", monospace; text-align: center; transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease; }
.findping-ip-chip:hover { color: var(--brand-primary); background: #f5fcfc; border-color: var(--brand-primary); transform: translateY(-1px); }
.findping-merged-group + .findping-merged-group { margin-top: 6px; border-top: 1px dashed #e3eff0; }
.findping-merged-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; color: #6b8892; font: 600 12.5px "DM Mono", monospace; }
.findping-merged-heading b { color: var(--brand-primary); font-weight: 600; }

.local-hero-card { margin-top: 18px; }
.local-identity-body { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; padding: 20px; }
.local-identity-panel { display: flex; flex: 1 1 240px; align-items: flex-start; gap: 13px; padding: 16px; border: 1px solid #e3eff0; border-radius: var(--radius-md); background: #fafefe; }
.local-identity-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: var(--radius-sm); font-size: 18px; }
.local-identity-icon.v4 { color: var(--brand-primary); background: var(--brand-soft); }
.local-identity-icon.v6 { color: #7b8fa1; background: #eef1f4; }
.local-identity-text { display: grid; gap: 5px; min-width: 0; }
.local-identity-text > span { color: #88a0a9; font-size: 12px; }
.local-identity-value { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; color: var(--ink); background: transparent; font: 700 19px "DM Mono", monospace; text-align: left; }
.local-identity-value svg { width: 13px; height: 13px; color: #a9c0c6; opacity: 0; transition: opacity .15s ease; }
.local-identity-value:hover { color: var(--brand-primary); }
.local-identity-value:hover svg { opacity: 1; }
.local-identity-empty { margin: 0; color: #9db0b7; font: 600 15px "DM Mono", monospace; }
.local-identity-text small { color: #8298a2; font-size: 12px; }
.local-priority-badge { display: inline-flex; flex: 1 1 100%; align-items: center; gap: 8px; padding: 12px 16px; border-radius: var(--radius-sm); color: #15936f; background: #e8f8f2; font-size: 13px; font-weight: 500; }
.local-priority-badge svg { width: 15px; height: 15px; }
.local-priority-badge b { font-weight: 700; }
.local-overview-grid { align-items: stretch; margin-top: 18px; grid-template-columns: 1fr 1fr; }
.local-cli-card, .local-leak-card { display: flex; flex-direction: column; }
.local-cli-list { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.local-cli-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e3eff0; border-radius: var(--radius-sm); background: #fff; text-align: left; transition: border-color .18s ease, background .18s ease; }
.local-cli-row:hover { border-color: #9ed8d9; background: #f7fcfc; }
.local-cli-row i { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: var(--radius-xs); color: var(--brand-primary); background: var(--brand-soft); }
.local-cli-row > div { display: grid; flex: 1; gap: 3px; min-width: 0; }
.local-cli-row span { color: #88a0a9; font-size: 11.5px; }
.local-cli-row code { color: var(--ink); font: 600 13.5px "DM Mono", monospace; }
.local-cli-row > svg { flex: none; width: 14px; height: 14px; color: #a9c0c6; }
.local-leak-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 14px 18px 18px; }
.local-leak-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e3eff0; border-radius: var(--radius-sm); background: #fafefe; }
.local-leak-row i { display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 50%; color: #7b8fa1; background: #eef1f4; }
.local-leak-row span { flex: 1; color: #4b6b76; font-size: 13px; }
.local-leak-row b { color: #9db0b7; font-size: 12.5px; font-weight: 600; }
.local-leak-row b.is-good { color: #15936f; }
.local-leak-btn { justify-content: center; width: 100%; margin-top: auto; }
.local-route-card { margin-top: 18px; }
.local-route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 18px 20px; }
.local-route-item { display: grid; gap: 9px; padding: 15px 16px; border: 1px solid #e3eff0; border-radius: var(--radius-md); background: #fafefe; }
.local-route-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.local-route-head span { color: var(--ink); font-size: 14px; font-weight: 600; }
.local-route-head i { padding: 2px 8px; border-radius: 99px; color: var(--brand-primary); background: var(--brand-soft); font-size: 11px; font-style: normal; font-weight: 600; }
.local-route-row { display: flex; align-items: center; gap: 10px; }
.local-route-row b { flex: none; width: 38px; color: #88a0a9; font-size: 11.5px; font-weight: 600; }
.local-route-row button,
.local-route-row a { display: inline-flex; flex: 1; align-items: center; gap: 6px; padding: 0; border: 0; color: #4b6b76; background: transparent; font: 600 12.5px "DM Mono", monospace; text-align: left; }
.local-route-row button:hover,
.local-route-row a:hover { color: var(--brand-primary); }
.local-route-row button svg,
.local-route-row a svg { width: 12px; height: 12px; color: #a9c0c6; opacity: 0; transition: opacity .15s ease; }
.local-route-row button:hover svg,
.local-route-row a:hover svg { opacity: 1; }
.local-route-location { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; color: #8298a2; font-size: 12px; }
.local-route-location svg { width: 12px; height: 12px; flex: none; }
.heading-icon-btn svg.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.batch-mode-toggle { margin-left: auto; }
.batch-control-panel { position: relative; z-index: 8; overflow: visible; padding: 18px 20px 16px; }
.batch-control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 14px;
  align-items: stretch;
}
.batch-target-textarea { box-sizing: border-box; width: 100%; min-height: 148px; height: 100%; padding: 12px 14px; border: 1px solid #c5e0e1; border-radius: var(--radius-md); color: var(--ink); background: #fafefe; font: 13px/1.7 "DM Mono", monospace; resize: vertical; transition: border-color .2s ease, box-shadow .2s ease; }
.batch-target-textarea:focus { outline: 0; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.batch-control-actions { display: flex; flex-direction: column; gap: 10px; }
.batch-control-actions .ping-action { flex: none; flex-basis: auto; width: 100%; min-height: 46px; height: auto; justify-content: center; }
.batch-node-select, .batch-control-actions .trace-snapshot { flex: none; flex-basis: auto; position: relative; width: 100%; height: auto; }
.batch-node-btn { display: inline-flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid #c5e0e1; border-radius: var(--radius-md); color: #4b7882; background: #fff; font-size: 14px; font-weight: 500; transition: border-color .2s ease, color .2s ease; }
.batch-node-btn:hover, .batch-node-btn.open { border-color: var(--brand-primary); color: var(--brand-primary); }
.batch-node-btn i { padding: 1px 7px; border-radius: 99px; color: #fff; background: var(--brand-primary); font: 700 11px "DM Mono", monospace; font-style: normal; }
.batch-node-btn svg:first-child { width: 15px; height: 15px; }
.batch-node-btn svg:last-child { width: 13px; height: 13px; color: #9db4bb; }
.batch-control-actions .trace-snapshot-btn { width: 100%; justify-content: center; }
.batch-node-panel { position: absolute; top: calc(100% + 8px); right: 0; left: auto; z-index: 6; width: 460px; padding: 14px; border: 1px solid #e3eff0; border-radius: var(--radius-md); background: #fff; box-shadow: 0 20px 44px rgba(10, 63, 72, .16); }
.batch-node-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.batch-node-hint { margin: 0; color: #8aa3ab; font-size: 12px; line-height: 1.45; }
.batch-node-panel-head div { display: flex; align-items: center; gap: 12px; }
.batch-node-panel-head > div > button,
.batch-node-panel-head > div > a { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; color: var(--brand-primary); background: transparent; font-size: 12.5px; }
.batch-node-panel-head > div > button:hover,
.batch-node-panel-head > div > a:hover { text-decoration: underline; }
.batch-node-panel-head > div > button svg,
.batch-node-panel-head > div > a svg { width: 13px; height: 13px; }
.batch-node-status {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #c5e0e1;
  border-radius: var(--radius-sm);
  color: #1d3c4f;
  background: #fff;
  font-size: 13px;
  text-align: left;
}
.batch-node-status.open,
.batch-node-status:hover { border-color: var(--brand-primary); }
.batch-node-status svg { flex: none; width: 16px; height: 16px; color: #9db4bb; transition: transform .16s ease; }
.batch-node-status.open svg { transform: rotate(180deg); color: var(--brand-primary); }
.batch-node-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.batch-node-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 6px 0 10px;
  border: 1px solid #e3eff0;
  border-radius: var(--radius-xs);
  color: #4b6b76;
  background: #f4f8f8;
  font-size: 12px;
}
.batch-node-tag button,
.batch-node-tag a {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #8aa3ab;
  background: transparent;
}
.batch-node-tag button:hover,
.batch-node-tag a:hover { color: #d45a66; background: #fff1f3; }
.batch-node-tag button svg,
.batch-node-tag a svg { width: 11px; height: 11px; }
.batch-node-picker {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #e3eff0;
  border-radius: var(--radius-sm);
  background: #fafefe;
}
.batch-node-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #d5e8e9;
  border-radius: var(--radius-sm);
  background: #fff;
}
.batch-node-search svg { flex: none; width: 14px; height: 14px; color: #8aa3ab; }
.batch-node-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}
.batch-node-search input:focus { outline: 0; }
.batch-node-search:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.batch-node-picker-body { max-height: 240px; margin-top: 10px; overflow-y: auto; padding-right: 2px; }
.batch-node-group + .batch-node-group { margin-top: 12px; }
.batch-node-group h4 { margin: 0 0 8px; color: #1d3c4f; font-size: 12.5px; font-weight: 700; }
.batch-node-empty { margin: 18px 0; color: #8aa3ab; font-size: 12.5px; text-align: center; }
.batch-node-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.batch-node-grid button,
.batch-node-grid a {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: 1px solid #e3eff0;
  border-radius: var(--radius-xs);
  color: #1d3c4f;
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.batch-node-grid button:hover,
.batch-node-grid a:hover { border-color: #9ed8d9; background: #f7fcfc; }
.batch-node-grid button.checked,
.batch-node-grid a.checked { border-color: var(--brand-primary); color: var(--brand-primary); background: var(--brand-soft); font-weight: 600; }
.batch-node-backdrop { position: fixed; z-index: 5; inset: 0; background: transparent; }
.batch-options-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e3eff0; }
.batch-port { flex: none; height: 38px; }
.batch-port input { width: 62px; }
.batch-cidr-check { display: inline-flex; align-items: center; gap: 8px; color: #4b6b76; font-size: 13px; }
.batch-cidr-check input { width: 15px; height: 15px; }
.batch-gateway-choice { transition: opacity .2s ease; }
.batch-gateway-choice.disabled { opacity: .45; }
.batch-gateway-choice.disabled label { cursor: not-allowed; }
.batch-result-card { margin-top: 18px; }
.batch-result-head { border-bottom: 1px solid #e3eff0; }
.batch-result-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.batch-result-title { display: grid; gap: 4px; min-width: 0; }
.batch-result-title > span { color: #294b5a; font-size: 16px; font-weight: 600; }
.batch-result-title > small { color: #7b95a1; font-size: 13px; line-height: 1.55; }
.batch-result-title > small b { color: var(--brand-primary); font-weight: 600; }
.batch-copy-btn { flex: none; margin-top: 2px; height: 32px; padding: 0 12px; font-size: 13px; }
.batch-copy-btn svg { width: 15px; height: 15px; }
.batch-filter-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px 14px;
}
.batch-filter-tabs {
  flex: 1;
  min-width: 0;
  padding: 0;
  gap: 8px;
  overflow-x: auto;
}
.batch-filter-tabs button,
.batch-filter-tabs a { min-height: 32px; padding: 0 12px; font-size: 13px; }
.batch-filter-tabs b { width: 16px; height: 16px; font-size: 11px; }
.batch-progress-row {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #668096;
  font-size: 12.5px;
  line-height: 1.4;
  white-space: nowrap;
}
.batch-progress-bar {
  flex: none;
  width: 108px;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9f4f4;
}
.batch-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lat-fast-a), var(--brand-primary)); transition: width .18s ease; }
.batch-progress-row b { flex: none; min-width: 3.2em; color: var(--brand-primary); font: 600 12.5px "DM Mono", monospace; text-align: right; }
.batch-empty { padding: 48px 20px; color: #9db0b7; font-size: 13px; line-height: 1.55; text-align: center; }
.batch-result-scroll table { min-width: 820px; }
.batch-result-scroll th { height: 44px; color: #668096; font-size: 13px; font-weight: 500; }
.batch-result-scroll th.is-sortable {
  cursor: pointer;
  user-select: none;
}
.batch-result-scroll th.is-sortable:hover { color: var(--brand-primary); }
.batch-sort-icon {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 12px;
  margin-left: 5px;
  vertical-align: -1px;
}
.batch-sort-icon::before,
.batch-sort-icon::after {
  position: absolute;
  left: 0;
  width: 0;
  height: 0;
  border-right: 3.5px solid transparent;
  border-left: 3.5px solid transparent;
  content: "";
}
.batch-sort-icon::before {
  top: 0;
  border-bottom: 4px solid #c5d5da;
}
.batch-sort-icon::after {
  bottom: 0;
  border-top: 4px solid #c5d5da;
}
.batch-result-scroll th.is-sort-asc .batch-sort-icon::before { border-bottom-color: var(--brand-primary); }
.batch-result-scroll th.is-sort-desc .batch-sort-icon::after { border-top-color: var(--brand-primary); }
.batch-result-scroll td { height: auto; padding: 10px 12px; vertical-align: middle; white-space: nowrap; }
.batch-result-scroll th:first-child,
.batch-result-scroll td.batch-index-cell { width: 60px; min-width: 60px; color: #7b95a1; font: 500 13px "DM Mono", monospace; text-align: center; }
.batch-result-scroll th:nth-child(2),
.batch-result-scroll td.batch-target-cell { min-width: 160px; text-align: left; }
.batch-result-scroll th:nth-child(n+3),
.batch-result-scroll td.batch-cell { padding-left: 10px; padding-right: 10px; text-align: left; }
.batch-target-cell { color: #1d3c4f; font: 600 13px/1.45 "DM Mono", monospace; }
.batch-cell { min-width: 168px; padding: 8px 10px !important; }
.batch-cell-btn { display: grid; width: 100%; gap: 4px; padding: 0; border: 0; border-radius: var(--radius-xs); background: transparent; text-align: left; transition: background .16s ease; }
.batch-cell-btn:hover { background: #f3fafa; }
.batch-cell-btn:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 0; }
.batch-cell-btn strong { display: block; color: #3b6472; font: 700 15px/1.25 "DM Mono", monospace; letter-spacing: -.02em; }
.batch-cell-btn strong i { margin-left: 2px; font: 500 12px/1 "DM Mono", monospace; font-style: normal; opacity: .75; }
.batch-cell-ip { color: #4e6b79; font: 500 13px/1.45 "DM Mono", monospace; }
.batch-cell-loc { overflow: hidden; color: #7b95a1; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; }
.batch-cell.fast .batch-cell-btn strong { color: var(--lat-fast-b); }
.batch-cell.medium .batch-cell-btn strong { color: var(--lat-medium-b); }
.batch-cell.slow .batch-cell-btn strong { color: var(--lat-slow-b); }
.batch-cell.timeout { background: #fff7f8; }
.batch-cell-status { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--radius-xs); color: #dd5763; background: #fff0f2; font: 600 13px "Noto Sans SC", sans-serif; }
tr.is-timeout-row td { background: #fff8f9; }
tr.is-timeout-row:hover td { background: #fff3f5 !important; }

.feedback-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.feedback-stat-card { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid #e3eff0; border-radius: var(--radius-md); background: #fff; }
.feedback-stat-card > span { color: #6b8892; font-size: 12.5px; }
.feedback-stat-card > b { color: #1d3c4f; font: 700 26px "DM Mono", monospace; }
.feedback-stat-card > small { display: inline-flex; align-items: center; gap: 5px; color: var(--lat-fast-b); font-size: 12px; }
.feedback-stat-card > small svg { width: 13px; height: 13px; }
.feedback-stat-card > small.muted { color: #8298a2; }
.feedback-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: start; gap: 16px; margin-top: 16px; }
.feedback-form-card, .feedback-list-card { margin: 0; }
.feedback-form-body { display: grid; gap: 14px; padding: 16px 18px 18px; }
.feedback-type-choice { flex-wrap: wrap; gap: 18px 22px; }
.feedback-type-choice label.disabled { cursor: not-allowed; opacity: .55; }
.feedback-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feedback-field { display: grid; gap: 6px; color: #4e6b79; font-size: 12.5px; font-weight: 500; }
.feedback-field input,
.feedback-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #cce1e3; border-radius: var(--radius-sm); outline: none; color: #294657; background: #fff; font: 13px "DM Mono", monospace; }
.feedback-field textarea { min-height: 84px; resize: vertical; font-family: inherit; line-height: 1.55; }
.feedback-field input:focus,
.feedback-field textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.feedback-field input.is-invalid,
.feedback-field textarea.is-invalid { border-color: #dd5763; }
.feedback-field small { color: #dd5763; font-size: 12px; font-weight: 400; }
.feedback-field-wide { grid-column: 1 / -1; display: grid; gap: 6px; }
.feedback-guide { display: grid; gap: 6px; margin: 4px 0; padding: 12px 14px 12px 30px; border: 1px dashed #dcebed; border-radius: var(--radius-sm); background: #fafefe; color: #6b8892; font-size: 12px; line-height: 1.55; }
.feedback-guide li::marker { color: var(--brand-primary); font-weight: 600; }
.feedback-form-actions { display: flex; gap: 10px; }
.feedback-form-actions .ping-action { flex: 1 1 0; min-width: 0; min-height: 46px; justify-content: center; white-space: nowrap; }
.feedback-search-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 18px; border-bottom: 1px solid #eef4f4; background: #fafefe; }
.feedback-search { display: flex; flex: 1; min-width: 220px; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid #dcebed; border-radius: 99px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.feedback-search:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.feedback-search svg { flex: none; width: 15px; height: 15px; color: #9db4bb; }
.feedback-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: none; background: transparent; font-size: 13px; }
.feedback-search-btn { display: inline-flex; flex: none; align-items: center; gap: 7px; height: 40px; padding: 0 22px; border: 0; border-radius: 99px; color: #fff; background: var(--brand-primary); font-size: 13px; font-weight: 600; transition: background .16s ease; }
.feedback-search-btn:hover { background: var(--brand-primary-hover); }
.feedback-search-btn svg { width: 14px; height: 14px; }
.feedback-search-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 18px 0; padding: 11px 14px; border: 1px solid #c6ead9; border-radius: var(--radius-sm); background: #f2fbf6; color: #357c60; font-size: 12.5px; }
.feedback-search-result.pending { border-color: #f3dfae; background: #fdf8ec; color: #a3792c; }
.feedback-search-result.rejected, .feedback-search-result.empty { border-color: #f4cdd1; background: #fff3f4; color: #b0525c; }
.feedback-search-result .feedback-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px "DM Mono", monospace; }
.feedback-entries { display: grid; gap: 10px; padding: 14px 18px; }
.feedback-entry { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 14px; border: 1px solid #e3eff0; border-radius: var(--radius-sm); background: #fafefe; transition: border-color .16s ease, background .16s ease; }
.feedback-entry:hover { border-color: #9ed8d9; background: #f7fcfc; }
.feedback-entry-main p { margin: 0; color: #4e6b79; font-size: 13px; line-height: 1.6; }
.feedback-entry-main p + p { margin-top: 3px; }
.feedback-range { color: #1d3c4f; font: 600 12.5px "DM Mono", monospace; }
.feedback-entry-updated { color: #9db0b7 !important; font-size: 12px !important; }
.feedback-entry-meta { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 6px; color: #9db0b7; font-size: 11.5px; }
.feedback-entry-meta svg { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
.feedback-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font: 600 11px "Inter", sans-serif; font-style: normal; }
.feedback-status.pending,
.feedback-status.warning { color: #a3792c; background: #fdf3de; }
.feedback-status.approved,
.feedback-status.success { color: #2f8f63; background: #e5f7ee; }
.feedback-status.rejected,
.feedback-status.danger { color: #c24a54; background: #fbe6e8; }
.feedback-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-top: 1px solid #eef4f4; color: #6b8892; font-size: 12.5px; }
.feedback-pagination button,
.feedback-pagination a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 14px; border: 1px solid #dcebed; border-radius: var(--radius-xs); color: #4e6b79; background: #fff; font-size: 12.5px; text-decoration: none; cursor: pointer; transition: border-color .16s ease, color .16s ease; }
.feedback-pagination button:hover:not(:disabled),
.feedback-pagination a:hover:not(:disabled):not(.is-disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.feedback-pagination button:disabled,
.feedback-pagination a:disabled,
.feedback-pagination a.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.feedback-pagination span { display: inline-flex; align-items: center; gap: 6px; }
.feedback-pagination input { width: 52px; height: 32px; padding: 5px 6px; border: 1px solid #dcebed; border-radius: var(--radius-xs); color: #294657; background: #fff; text-align: center; font: 600 12.5px "DM Mono", monospace; }

.maintenance-summary { margin-top: 18px; border: 1px solid #dbecee; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 5px 18px rgba(31, 89, 97, .05); overflow: hidden; }
.maintenance-summary-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.maintenance-summary-card { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px; padding: 16px 18px; border: 0; border-right: 1px solid #e8f1f2; border-radius: 0; background: #fff; text-align: left; transition: background .16s ease, color .16s ease; }
.maintenance-summary-card:last-child { border-right: 0; }
.maintenance-summary-card:hover { background: #f7fcfc; }
.maintenance-summary-card.active { background: #f2fbfb; }
.maintenance-summary-card.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand-primary); }
.maintenance-summary-copy { display: grid; gap: 3px; min-width: 0; }
.maintenance-summary-copy b { display: block; color: #1d3c4f; font: 700 22px/1 "DM Mono", monospace; letter-spacing: -.03em; }
.maintenance-summary-copy > span { display: block; overflow: hidden; color: #6b8892; font-size: 12px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.maintenance-summary-card.active .maintenance-summary-copy b { color: var(--brand-primary); }
.maintenance-summary-icon { display: grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: var(--radius-sm); }
.maintenance-summary-icon svg { width: 16px; height: 16px; color: inherit; }
.maintenance-summary-icon.all { color: #08a6a6; background: #e8f8f7; }
.maintenance-summary-icon.feature,
.maintenance-summary-icon.update { color: #7c5cdb; background: #f3f0ff; }
.maintenance-summary-icon.node { color: #2b7de9; background: #e8f2ff; }
.maintenance-summary-icon.fix { color: #e08a00; background: #fff6e0; }
.maintenance-summary-icon.optimize { color: #1a9f55; background: #e3f8ec; }
.maintenance-summary-icon.add { color: #2b7de9; background: #e8f2ff; }
.maintenance-summary-icon.delete { color: #e04b57; background: #fdecee; }
.maintenance-summary-icon.plan { color: #6b7280; background: #f1f2f4; }
.maintenance-summary-icon.security { color: #e04b57; background: #fdecee; }
.maintenance-card { margin-top: 16px; }
.maintenance-groups { padding: 2px 24px 22px; }
.maintenance-empty { padding: 40px 0; color: #9db0b7; font-size: 13px; text-align: center; }
.maintenance-group + .maintenance-group { margin-top: 4px; }
.maintenance-group-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 10px; padding: 18px 0 12px; border-bottom: 1px solid #e8f1f2; background: #fff; }
.maintenance-group-head span { color: #1d3c4f; font-size: 14px; font-weight: 700; }
.maintenance-group-head i { color: #9db0b7; font-size: 12px; font-style: normal; }
.maintenance-group-list { position: relative; display: grid; }
.maintenance-group-list::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: calc(58px + 14px + 17px); width: 1px; background: #e5eef0; }
.maintenance-row { position: relative; display: grid; grid-template-columns: 58px 34px minmax(0, 1fr); align-items: start; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eef4f5; }
.maintenance-row:last-child { border-bottom: 0; }
.maintenance-row-date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 6px; text-align: left; }
.maintenance-row-date b { color: #1d3c4f; font: 600 13px/1.2 "DM Mono", monospace; letter-spacing: -.02em; white-space: nowrap; }
.maintenance-row-date small { color: #9db0b7; font-size: 11px; }
.maintenance-row-icon { position: relative; z-index: 1; display: grid; flex: none; width: 34px; height: 34px; margin-top: 2px; place-items: center; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.maintenance-row-icon svg { width: 15px; height: 15px; color: inherit; }
.maintenance-row-icon.feature,
.maintenance-row-icon.update { color: #7c5cdb; background: #f3f0ff; }
.maintenance-row-icon.node { color: #2b7de9; background: #e8f2ff; }
.maintenance-row-icon.fix { color: #e08a00; background: #fff6e0; }
.maintenance-row-icon.optimize { color: #1a9f55; background: #e3f8ec; }
.maintenance-row-icon.add { color: #2b7de9; background: #e8f2ff; }
.maintenance-row-icon.delete { color: #e04b57; background: #fdecee; }
.maintenance-row-icon.plan { color: #6b7280; background: #f1f2f4; }
.maintenance-row-icon.security { color: #e04b57; background: #fdecee; }
.maintenance-row-body { min-width: 0; padding-top: 2px; }
.maintenance-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.maintenance-row-top h4 { margin: 0; color: #1d3c4f; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.maintenance-row-body p { margin: 6px 0 0; color: #6b8892; font-size: 13px; line-height: 1.55; }

.intercept-page { padding-bottom: 48px; }
.intercept-mode-strip-shell { margin-top: 18px; }
.intercept-mode-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #dbecee;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 89, 97, .05);
  overflow: hidden;
}
.intercept-mode-strip button,
.intercept-mode-strip a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #e8f1f2;
  border-radius: 0;
  color: #6b8892;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.intercept-mode-strip button:last-child,
.intercept-mode-strip a:last-child { border-right: 0; }
.intercept-mode-strip button:hover,
.intercept-mode-strip a:hover { color: var(--brand-primary); background: #f7fcfc; }
.intercept-mode-strip button.active,
.intercept-mode-strip a.active { color: var(--brand-primary); background: #f2fbfb; }
.intercept-mode-strip button.active::after,
.intercept-mode-strip a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand-primary);
}
.intercept-mode-strip.is-domain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.intercept-mode-strip.is-utility { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ip-lookup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 0 0;
}
.ip-lookup-cell {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #e3eff0;
  border-radius: var(--radius-md);
  background: #f8fcfc;
  text-align: left;
}
.ip-lookup-cell span { color: #6b8892; font-size: 12px; }
.ip-lookup-cell strong { color: #1d3c4f; font-size: 14px; font-weight: 600; word-break: break-all; }
.ip-lookup-page { display: grid; gap: 18px; }
.ip-lookup-page > .ping-breadcrumb { margin-bottom: 0; }
.ip-lookup-section { overflow: hidden; }
.ip-lookup-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 16px 18px 0;
}
.ip-lookup-section-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16323f;
  font-size: 16px;
  font-weight: 700;
}
.ip-lookup-section-head strong::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 99px;
  background: var(--brand-primary);
}
.ip-lookup-section-head span { color: #8aa3ab; font-size: 13px; }
.ip-lookup-section-head span::before {
  content: "»";
  margin-right: 8px;
  color: #b7ccd2;
}
.ip-lookup-search-block {
  width: min(100%, 720px);
  max-width: 100%;
  margin: 14px auto 0;
  padding: 0 18px 18px;
  box-sizing: border-box;
}
.ip-lookup-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.ip-lookup-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #c5e0e1;
  border-radius: var(--radius-md);
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ip-lookup-search input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(8, 166, 166, .12);
}
.ip-lookup-search-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--brand-primary);
  font-size: 14px;
  font-weight: 600;
}
.ip-lookup-search-btn:hover { background: var(--brand-primary-hover); }
.ip-lookup-search-btn:disabled { opacity: .7; cursor: wait; }
.ip-lookup-search-btn svg { width: 15px; height: 15px; }
.ip-lookup-result-placeholder {
  margin: 14px 0 0;
  color: #9db0b7;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}
.ip-lookup-result-area { padding: 0 18px 18px; }
.ip-lookup-section .ping-validation {
  margin: 10px 0 0;
  text-align: left;
}
.ip-local-network-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: center;
  padding: 16px 18px 18px;
}
.ip-local-network-col { display: grid; gap: 8px; min-width: 0; }
.ip-local-network-col p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  color: #58717e;
  font-size: 13px;
  line-height: 1.5;
}
.ip-local-network-col span { color: #7b95a1; }
.ip-local-network-col b { color: #294b5a; font-weight: 600; }
.ip-local-ip-btn {
  padding: 0;
  border: 0;
  color: var(--brand-primary);
  background: transparent;
  font: 600 13px "DM Mono", monospace;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ip-local-ip-btn:hover { color: var(--brand-primary-hover); }
.ip-local-priority {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-self: end;
  gap: 8px;
  max-width: none;
  padding: 10px 16px;
  border: 1px solid #b7e5cf;
  border-radius: 999px;
  color: #15936f;
  background: #e8f8f1;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}
.ip-local-priority svg { flex: none; width: 16px; height: 16px; }
.ip-lookup-ad-stack { display: grid; gap: 10px; }
.ip-lookup-ad-slot {
  position: relative;
  display: flex;
  height: var(--ad-triple-height);
  min-height: var(--ad-triple-height);
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px dashed #b7d9db;
  border-radius: var(--radius-md);
  color: #5f8790;
  background: #fbfefe;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.ip-lookup-ad-slot:hover {
  border-color: #9ed8d9;
  color: var(--brand-primary);
  background: #f2fafa;
}
.ip-lookup-ad-slot svg { width: 18px; height: 18px; color: var(--brand-primary); }
.ip-lookup-ad-slot strong { color: #294b5a; font-size: 14px; font-weight: 650; }
.ip-lookup-ad-slot small { color: #7b95a1; font-size: 11px; }
.ip-route-list { display: grid; padding: 8px 0 6px; }
.ip-route-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: center;
  min-height: 64px;
  padding: 12px 18px;
  border-top: 1px solid #e8f1f2;
}
.ip-route-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #294b5a;
  font-size: 14px;
  font-weight: 600;
}
.ip-route-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #6aa8b0;
}
.ip-route-icon.is-telecom { background: #3aa0c8; }
.ip-route-icon.is-unicom { background: #e07a3a; }
.ip-route-icon.is-mobile { background: #3f9a56; }
.ip-route-icon.is-overseas { background: #5b7fd6; }
.ip-route-icon.is-google { background: #4f8fd8; }
.ip-route-icon svg { width: 15px; height: 15px; }
.ip-route-meta { display: grid; gap: 4px; min-width: 0; }
.ip-route-meta p {
  display: flex;
  gap: 4px;
  margin: 0;
  color: #7b95a1;
  font-size: 12.5px;
  line-height: 1.45;
}
.ip-route-meta b { color: #466572; font-weight: 600; font-family: "DM Mono", monospace; }
.ip-leak-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ip-leak-body {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 16px 18px 18px;
  color: #9db0b7;
  font: 600 18px/1.4 "DM Mono", monospace;
}
.ip-leak-body p { margin: 0; }
.ws-workspace-card {
  display: grid;
  gap: 0;
  padding: 0 0 8px;
  overflow: hidden;
}
.ws-section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 18px 20px 0;
}
.ws-section-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16323f;
  font-size: 16px;
  font-weight: 700;
}
.ws-section-head strong::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 99px;
  background: var(--brand-primary);
}
.ws-section-head span {
  color: #8aa3ab;
  font-size: 13px;
}
.ws-section-head span::before {
  content: "»";
  margin-right: 8px;
  color: #b7ccd2;
}
.ws-mode-strip {
  justify-self: start;
  width: max-content;
  max-width: 100%;
  margin: 14px 20px 0;
}
.ws-mode-strip.view-toggle button,
.ws-mode-strip.view-toggle a {
  height: 30px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}
.ws-search-block {
  width: 100%;
  margin: 16px 0 0;
  padding: 0 20px;
  box-sizing: border-box;
}
.ws-quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #6b8892;
  font-size: 12.5px;
  text-align: left;
}
.ws-quick-row button,
.ws-quick-row a {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d5e8e9;
  border-radius: var(--radius-xs);
  color: #39717b;
  background: #f5fcfc;
  font-size: 12px;
}
.ws-quick-row button:hover,
.ws-quick-row a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.ws-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  border: 1px solid #c5e0e1;
  border-radius: var(--radius-md);
  background: #fff;
}
.ws-search:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(8, 166, 166, .12);
}
.ws-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  box-shadow: none;
}
.ws-search-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 118px;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid #c5e0e1;
  border-radius: 0;
  color: #fff;
  background: var(--brand-primary);
  font-size: 14px;
  font-weight: 600;
}
.ws-search-btn:hover { background: var(--brand-primary-hover); }
.ws-search-btn:disabled { opacity: .7; cursor: wait; }
.ws-search-btn svg { width: 15px; height: 15px; }
.ws-search-block .ping-validation { margin: 10px 0 0; text-align: left; }
.ws-step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 20px 0;
}
.ws-step-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 78px;
  padding: 14px 14px 12px;
  border: 1px solid #e3eff0;
  border-radius: var(--radius-md);
  background: #f4fbfb;
}
.ws-step-card b {
  display: grid;
  flex: none;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-primary);
  font: 700 12px/1 "DM Mono", monospace;
}
.ws-step-card strong { display: block; color: #1d3c4f; font-size: 13px; font-weight: 700; }
.ws-step-card p { margin: 4px 0 0; color: #6b8892; font-size: 12px; line-height: 1.5; }
.ws-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .85fr);
  gap: 14px;
  margin: 18px 20px 0;
}
.ws-result-panel {
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #dcebed;
  border-radius: var(--radius-md);
  background: #fff;
}
.ws-panel-head {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #e8f1f2;
  color: #1d3c4f;
  font-size: 14px;
  font-weight: 650;
}
.ws-result-body { display: grid; gap: 12px; padding: 16px; }
.ws-empty-state {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 176px;
  padding: 28px 24px;
  text-align: center;
}
.ws-empty-state i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-primary);
  background: var(--brand-soft);
}
.ws-empty-state i svg { width: 22px; height: 22px; }
.ws-empty-state strong { color: #1d3c4f; font-size: 15px; font-weight: 650; }
.ws-empty-state p,
.ws-empty-state small {
  max-width: 360px;
  margin: 0;
  color: #6b8892;
  font-size: 13px;
  line-height: 1.6;
}
.ws-empty-state.is-compact {
  min-height: 176px;
  align-content: center;
}
.ws-empty-copy { margin: 0; color: #6b8892; font-size: 13px; line-height: 1.6; }
.ws-history-list { display: grid; gap: 8px; padding: 12px 16px 16px; }
.ws-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid #e3eff0;
  border-radius: var(--radius-sm);
  background: #f8fcfc;
  text-align: left;
}
.ws-history-item strong { overflow: hidden; color: #1d3c4f; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.ws-history-item small { grid-column: 1 / -1; color: #8aa3ab; font-size: 11px; }
.ws-debug-panel { display: grid; gap: 10px; }
.ws-debug-log { display: grid; gap: 6px; max-height: 160px; overflow: auto; padding: 10px; border: 1px solid #e3eff0; border-radius: var(--radius-sm); background: #f7fbfb; }
.ws-debug-log code { color: #1d3c4f; font: 12px/1.5 "DM Mono", monospace; }
.ws-debug-log code.out { color: var(--brand-primary); }
.ws-note-block {
  margin: 18px 20px 16px;
  padding: 14px 16px 8px;
  border-top: 1px solid #e8f1f2;
}
.ws-note-block > strong {
  display: block;
  margin-bottom: 8px;
  color: #1d3c4f;
  font-size: 14px;
  font-weight: 650;
}
.ws-note-list {
  margin: 0;
  padding: 0 0 6px 18px;
  color: #57717f;
  font-size: 13px;
  line-height: 1.7;
}
.ws-ad-panel {
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid #d9eaec;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 89, 97, .04);
}
.ws-ad-mosaic {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1.15fr 1fr;
  grid-template-rows: 56px 64px 48px;
  grid-template-areas:
    "a b c"
    "a d c"
    "e e e";
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.ws-ad-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 8px 6px;
  overflow: hidden;
  border: 1px dashed #b7d9db;
  border-radius: var(--radius-md);
  color: #5f8790;
  background: linear-gradient(180deg, #fbfefe 0%, #f5fbfb 100%);
  text-align: center;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.ws-ad-slot[data-slot="A"] { grid-area: a; }
.ws-ad-slot[data-slot="B"] { grid-area: b; }
.ws-ad-slot[data-slot="C"] { grid-area: c; }
.ws-ad-slot[data-slot="D"] { grid-area: d; }
.ws-ad-slot[data-slot="E"] {
  grid-area: e;
  flex-direction: row;
  gap: 6px;
  min-height: 0;
  padding: 0 10px;
}
.ws-ad-slot.is-tall {
  background: linear-gradient(165deg, #fbfefe 0%, #eef8f8 100%);
}
.ws-ad-slot.is-wide {
  background: linear-gradient(90deg, rgba(8, 166, 166, .04), transparent 30%, transparent 70%, rgba(8, 166, 166, .04)), linear-gradient(180deg, #fbfefe 0%, #f5fbfb 100%);
}
.ws-ad-slot:hover {
  border-color: #9ed8d9;
  color: var(--brand-primary);
  background: #f2fafa;
}
.ws-ad-slot:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.ws-ad-slot svg {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--brand-primary);
}
.ws-ad-slot strong {
  color: #294b5a;
  font-size: 12px;
  font-weight: 650;
}
.ws-ad-slot small {
  color: #7b95a1;
  font-size: 10px;
}
.ws-ad-slot .tool-map-ad-badge {
  top: 5px;
  left: 5px;
  padding: 1px 5px;
  font-size: 10px;
}
.util-dev-grid, .util-image-box { display: grid; gap: 10px; }

.format-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.format-tool-indent {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.format-tool-indent > span {
  color: #6b8892;
  font-size: 12.5px;
  font-weight: 600;
}

.format-tool-indent button,
.format-tool-indent a {
  border: 1px solid #d5e8e9;
  border-radius: var(--radius-xs);
  background: #fff;
  color: #39717b;
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.format-tool-indent button:hover,
.format-tool-indent a:hover {
  border-color: #9ed8d9;
  color: var(--brand-primary);
}

.format-tool-indent button.active,
.format-tool-indent a.active {
  border-color: var(--brand-primary);
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.format-tool-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.json-util-shell { margin-top: 18px; }
.json-catalog-head { padding: 8px 0 22px; text-align: center; }
.json-catalog-head p { margin: 0; color: var(--brand-primary); font-size: 13px; font-weight: 600; }
.json-catalog-head h1 { margin: 8px 0 0; color: #16323f; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.json-catalog-head span { display: block; margin-top: 8px; color: #6b8892; font-size: 13px; line-height: 1.55; }
.json-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 28px; }
.json-tool-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #e3eff0;
  border-radius: var(--radius-md);
  color: inherit;
  background: #fff;
  text-align: left;
  box-shadow: 0 4px 14px rgba(31, 89, 97, .04);
  transition: background .16s ease, border-color .16s ease;
}
.json-tool-card:hover { border-color: #cfe6e7; background: #f7fcfc; }
.json-tool-go { flex: none; width: 15px; height: 15px; margin-left: auto; color: #b7ccd2; opacity: 0; transition: opacity .16s ease, transform .16s ease; }
.json-tool-card:hover .json-tool-go { opacity: 1; transform: translateX(2px); color: var(--brand-primary); }
.json-tool-mark {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
  background: var(--brand-soft);
  font: 700 11px/1 "DM Mono", monospace;
}
.json-tool-card strong { color: #1d3c4f; font-size: 14px; font-weight: 600; }
.json-workspace {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  border: 1px solid #d8eaec;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 89, 97, .05);
}
.json-workspace-head { display: flex; align-items: flex-start; gap: 12px; }
.json-workspace-head h2 { margin: 0; color: #16323f; font-size: 18px; }
.json-workspace-head p { margin: 4px 0 0; color: #6b8892; font-size: 13px; line-height: 1.55; }
.json-source, .json-output { min-height: 180px; }
.json-parse-workspace { gap: 14px; }
.json-parse-workspace.is-fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.json-parse-workspace.is-fullscreen .json-dual-editor { flex: 1; min-height: 0; }
.json-parse-workspace.is-fullscreen .json-editor-pane { min-height: 0; }
.json-parse-workspace.is-fullscreen .json-editor-textarea { min-height: 0; height: 100%; }
.json-parse-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e3eff0;
  border-radius: var(--radius-md);
  background: #f8fcfc;
}
.json-parse-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.json-parse-toolbar .heading-icon-btn.active { border-color: var(--brand-primary); color: var(--brand-primary); background: #eef9f9; }
.json-parse-escape {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  color: #57717f;
  font-size: 12.5px;
  white-space: nowrap;
}
.json-parse-escape input { accent-color: var(--brand-primary); }
.json-parse-fullscreen {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d8eaec;
  border-radius: var(--radius-sm);
  color: #4b7882;
  background: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.json-parse-fullscreen:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.json-parse-fullscreen svg { width: 15px; height: 15px; }
.json-dual-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-height: 360px;
}
.json-editor-pane {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #c5e0e1;
  border-radius: var(--radius-md);
  background: #fff;
}
.json-line-numbers {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px 10px 12px 12px;
  border-right: 1px solid #e3eff0;
  background: #f7fbfb;
  color: #9db4bb;
  font: 12px/1.7 "DM Mono", monospace;
  user-select: none;
}
.json-line-numbers span { display: block; min-height: calc(1.7 * 12px); text-align: right; }
.json-editor-textarea {
  width: 100%;
  min-height: 360px;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  font: 13px/1.7 "DM Mono", monospace;
}
.json-editor-pane.is-readonly .json-editor-textarea { color: #3d5a63; background: #fafefe; }
.json-info-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #d8eaec;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 89, 97, .05);
}
.json-info-panel h3 { margin: 0 0 10px; color: #16323f; font-size: 16px; font-weight: 600; }
.json-info-panel p { margin: 0; color: #6b8892; font-size: 13px; line-height: 1.7; }
.json-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.json-popular-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid #dcebed;
  border-radius: var(--radius-md);
  color: #1d3c4f;
  background: #fff;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}
.json-popular-card:hover { border-color: #cfe6e7; background: #f7fcfc; }
.json-popular-card.active { border-color: var(--brand-primary); background: #eef9f9; }
.json-popular-card.active strong { color: var(--brand-primary); }
.json-popular-card strong { font-size: 13px; font-weight: 600; }
.json-links-panel {
  margin-top: 16px;
  padding: 0 16px 16px;
  border: 1px solid #d8eaec;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 89, 97, .05);
}
.json-links-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid #e3eff0;
}
.json-links-tabs button,
.json-links-tabs a {
  min-height: 46px;
  padding: 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #587582;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.json-links-tabs button:hover,
.json-links-tabs a:hover { color: var(--brand-primary); background: #f8fcfc; }
.json-links-tabs button.active,
.json-links-tabs a.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.json-links-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 14px 2px 2px;
}
.json-links-grid button,
.json-links-grid a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  color: #3f5f6c;
  background: transparent;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.json-links-grid button svg,
.json-links-grid a svg { flex: none; width: 13px; height: 13px; color: #9db4bb; }
.json-links-grid button:hover,
.json-links-grid a:hover { color: var(--brand-primary); }
.json-links-grid button:hover svg,
.json-links-grid a:hover svg { color: var(--brand-primary); }
.json-links-grid button.active,
.json-links-grid a.active { color: var(--brand-primary); font-weight: 600; }
.json-links-grid button.active svg,
.json-links-grid a.active svg { color: var(--brand-primary); }
.json-tree-pane {
  display: block;
  padding: 12px 14px;
  overflow: auto;
  background: #fafefe;
}
.json-path-field { max-width: 420px; }
.json-tree-card {
  min-height: 180px;
  padding: 14px;
  border: 1px solid #c5e0e1;
  border-radius: var(--radius-md);
  background: #fafefe;
  font: 13px/1.6 "DM Mono", monospace;
}
.json-tree-row, .json-tree-branch > button,
.json-tree-branch > a { display: flex; gap: 10px; align-items: baseline; }
.json-tree-branch > button,
.json-tree-branch > a { padding: 0; border: 0; color: #1d3c4f; background: transparent; font: inherit; text-align: left; }
.json-tree-children { margin: 4px 0 4px 16px; }
.json-tree-row span { color: #39717b; }
.json-tree-row b { color: #1d3c4f; font-weight: 600; }
.json-tree-row i { color: #8aa3ab; font-style: normal; }
.lottie-preview {
  display: grid;
  height: 88px;
  place-items: center;
  border: 1px dashed #c5e0e1;
  border-radius: var(--radius-md);
  background: #f4fbfb;
}
.lottie-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: lottie-bounce 1.1s ease-in-out infinite;
}
@keyframes lottie-bounce {
  0%, 100% { transform: translateY(6px) scale(.92); opacity: .7; }
  50% { transform: translateY(-8px) scale(1); opacity: 1; }
}
.domain-page { padding-bottom: 48px; }
.sitecheck-page { padding-bottom: 48px; }
.sitecheck-input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.sitecheck-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.sitecheck-target { min-width: 0; }
.sitecheck-control-panel { margin-top: 14px; }
.intercept-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #dcebed;
  border-radius: var(--radius-md);
  color: #57717f;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 89, 97, .04);
}
.intercept-intro svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--brand-primary); }
.intercept-intro p { margin: 0; font-size: 13px; line-height: 1.55; }
.intercept-command-card { display: grid; gap: 12px; margin-top: 14px; }
.intercept-intro-inline {
  margin-top: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: #f4f8f8;
  box-shadow: none;
}
.domain-intro-line {
  align-items: center;
  padding: 2px 0 2px 12px;
  border: 0;
  border-left: 3px solid var(--brand-primary);
  border-radius: 0;
  color: #57717f;
  background: transparent;
  box-shadow: none;
}
.domain-live-heading {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.domain-live-icon {
  display: inline-flex;
  flex: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: #fff;
  background: var(--brand-primary);
}
.domain-live-icon svg { width: 15px; height: 15px; color: #fff; }
.domain-page .intercept-result-badge { border-radius: 999px; }
.intercept-control-panel { display: grid; gap: 12px; margin-top: 14px; }
.intercept-input-toggle {
  justify-self: start;
  width: max-content;
  flex: none;
}
.intercept-input-toggle button,
.intercept-input-toggle a {
  flex: none;
  height: 30px;
  padding: 0 12px;
}
.intercept-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.intercept-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 8px 0 18px;
}
.intercept-detail-grid > div { display: grid; gap: 4px; }
.intercept-detail-grid span { color: #6b8892; font-size: 12px; }
.intercept-detail-grid strong { color: #1d3c4f; font-size: 14px; font-weight: 600; }
.intercept-detail-actions { display: flex; justify-content: flex-end; gap: 8px; }

.intercept-result-view {
  padding: 0;
}
.intercept-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8f1f2;
}
.intercept-result-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.intercept-result-title-group h2 {
  margin: 0;
  color: #1d3c4f;
  font-size: 18px;
  font-weight: 700;
}
.intercept-result-domain {
  border: 0;
  padding: 0;
  color: var(--brand-primary);
  background: transparent;
  font: 500 15px/1.3 "DM Mono", ui-monospace, monospace;
  cursor: pointer;
}
.intercept-result-domain:hover { text-decoration: underline; }
.intercept-result-head-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}
.intercept-result-head-actions time {
  color: #8aa0a8;
  font-size: 13px;
  white-space: nowrap;
}
.intercept-result-back {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  color: var(--brand-primary);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.intercept-result-back:hover {
  color: #fff;
  background: var(--brand-primary);
}
.intercept-status-banner {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 28px 20px;
  border: 1px solid #bfe8d8;
  border-radius: var(--radius-md);
  background: #eefaf4;
  text-align: center;
}
.intercept-status-banner.tone-warn {
  border-color: #ecd7a4;
  background: #fdf8ea;
}
.intercept-status-banner.tone-danger {
  border-color: #f0c4c9;
  background: #fff5f6;
}
.intercept-status-banner.tone-muted {
  border-color: #d5e1e4;
  background: #f4f7f8;
}
.intercept-status-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.intercept-status-main svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: #15936f;
}
.intercept-status-banner.tone-warn .intercept-status-main svg { color: #b8862d; }
.intercept-status-banner.tone-danger .intercept-status-main svg { color: #d45a66; }
.intercept-status-banner.tone-muted .intercept-status-main svg { color: #6b8892; }
.intercept-status-main strong {
  color: #15936f;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.intercept-status-banner.tone-warn .intercept-status-main strong { color: #a3792c; }
.intercept-status-banner.tone-danger .intercept-status-main strong { color: #d45a66; }
.intercept-status-banner.tone-muted .intercept-status-main strong { color: #6b8892; }
.intercept-status-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: #6b8892;
  font-size: 13px;
}
.intercept-status-metrics b { color: #d45a66; font-weight: 700; }
.intercept-result-note {
  margin: 14px 0 0;
  color: #9aafb6;
  font-size: 12px;
  text-align: center;
}
.intercept-result-view.is-hijack .intercept-result-note { margin-bottom: 8px; }
.intercept-result-detail {
  margin-top: 18px;
  padding-top: 6px;
  border-top: 1px solid #e8f1f2;
}
.intercept-node-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.intercept-node-filters button,
.intercept-node-filters a {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #d5e7e8;
  border-radius: var(--radius-xs);
  color: #5b7580;
  background: #f5fafa;
  font-size: 12px;
  white-space: nowrap;
}
.intercept-node-filters button:hover,
.intercept-node-filters a:hover {
  border-color: #8ed1d2;
  color: var(--brand-primary);
}
.intercept-node-filters button.selected,
.intercept-node-filters a.selected {
  border-color: var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
}
.intercept-node-scroll { margin: 0; }
.intercept-node-table { width: 100%; min-width: 860px; border-collapse: collapse; }
.intercept-node-table th {
  height: 42px;
  padding: 0 12px;
  border-bottom: 0;
  color: #e8f4f4;
  background: #163246;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.intercept-node-table th:first-child,
.intercept-node-table th:nth-child(4) { text-align: left; }
.intercept-node-table td {
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid #edf4f4;
  color: #3b5562;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}
.intercept-node-table td:first-child { text-align: left; color: #1d3c4f; font-weight: 600; }
.intercept-node-table td:nth-child(4) { text-align: left; }
.intercept-redirect-cell {
  max-width: 280px;
  overflow: hidden;
  color: #6b8892;
  text-overflow: ellipsis;
}
.intercept-access-text.tone-ok { color: #15936f; font-weight: 600; }
.intercept-access-text.tone-warn { color: #c47d1d; font-weight: 600; }
.intercept-access-text.tone-danger { color: #d45a66; font-weight: 600; }
.intercept-access-text.tone-muted { color: #6b8892; font-weight: 600; }

.domain-result-note-top {
  margin: 0 0 14px;
}
.domain-kv-table-wrap {
  overflow: hidden;
  border: 1px solid #e3ebf0;
  border-radius: var(--radius-md);
}
.domain-kv-table {
  width: 100%;
  border-collapse: collapse;
}
.domain-kv-table th,
.domain-kv-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8eef1;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}
.domain-kv-table tr:last-child th,
.domain-kv-table tr:last-child td {
  border-bottom: 0;
}
.domain-kv-table th {
  width: 148px;
  color: #6b8892;
  background: #f7fafb;
  font-weight: 500;
  white-space: nowrap;
}
.domain-kv-table td {
  color: #1d3c4f;
  background: #fff;
  word-break: break-all;
}
.domain-icp-summary-scroll {
  margin: 16px 0;
}
.domain-icp-summary-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.domain-icp-summary-table th {
  height: 42px;
  padding: 0 12px;
  color: #e8f4f4;
  background: #163246;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.domain-icp-summary-table td {
  height: 46px;
  padding: 0 12px;
  border: 1px solid #e8eef1;
  border-top: 0;
  color: #3b5562;
  background: #fff;
  font-size: 13px;
  text-align: center;
}
.domain-result-view.is-icp .intercept-result-note {
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .domain-kv-table th { width: 108px; padding: 10px 12px; }
  .domain-kv-table td { padding: 10px 12px; }
}

@media (max-width: 900px) {
  .intercept-result-head { flex-direction: column; align-items: flex-start; }
  .intercept-result-head-actions { width: 100%; justify-content: space-between; }
  .intercept-status-main strong { font-size: 17px; }
  .intercept-status-metrics { gap: 10px 14px; }
}

.intercept-target { min-width: 0; }
.intercept-batch-layout { display: grid; gap: 10px; }
.intercept-batch-textarea { min-height: 160px; }
.intercept-batch-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.intercept-batch-tools .ping-action.primary { margin-left: auto; }
.intercept-status-row { margin-top: 18px; }
.intercept-result-card,
.intercept-live-card { margin-top: 18px; }
.intercept-result-scroll {
  margin: 0;
  padding: 0;
}
.intercept-result-scroll table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}
.intercept-result-scroll th,
.intercept-result-scroll td {
  padding: 0 16px;
  text-align: center;
  vertical-align: middle;
  border-left: 0;
  border-right: 0;
}
.intercept-result-scroll th:first-child,
.intercept-result-scroll td:first-child {
  width: 34%;
  min-width: 0;
  text-align: center;
}
.intercept-result-scroll th:nth-child(2),
.intercept-result-scroll td:nth-child(2) { width: 18%; }
.intercept-result-scroll th:nth-child(3),
.intercept-result-scroll td:nth-child(3) { width: 30%; }
.intercept-result-scroll th:last-child,
.intercept-result-scroll td:last-child {
  width: 18%;
  min-width: 0;
  text-align: center;
}
.intercept-empty-row td {
  height: 88px !important;
  color: #8aa3ab !important;
  font-size: 13px !important;
}
.intercept-domain-btn {
  border: 0;
  padding: 0;
  color: #1d3c4f;
  background: transparent;
  font: inherit;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.intercept-domain-btn:hover { color: var(--brand-primary); }
.intercept-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.intercept-result-badge.ok { color: #15936f; background: #ecf8f3; }
.intercept-result-badge.warn { color: #a3792c; background: #fdf3de; }
.intercept-result-badge.danger { color: #d45a66; background: #fff1f3; }
.intercept-result-badge.muted { color: #6b8892; background: #eef3f4; }
/* Keep actions cells as real table-cells so header/body share one column width
   and row borders span edge-to-edge with the card frame. */
.intercept-result-scroll td.intercept-row-actions {
  display: table-cell;
  padding: 0 16px;
  text-align: center;
  white-space: nowrap;
  overflow: visible;
  vertical-align: middle;
}
.intercept-row-actions {
  white-space: nowrap;
}
.intercept-row-actions button,
.intercept-row-actions a {
  border: 0;
  padding: 0;
  color: #39717b;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.intercept-row-actions button:hover,
.intercept-row-actions a:hover { color: var(--brand-primary); }
.intercept-row-actions button + button,
.intercept-row-actions a + a { margin-left: 12px; }
.sitecheck-page .intercept-result-scroll table {
  min-width: 920px;
  width: 100%;
}

.maintenance-tag { padding: 2px 8px; border-radius: var(--radius-xs); font-size: 11px; font-style: normal; font-weight: 500; }
.maintenance-tag.feature,
.maintenance-tag.update { color: #7c5cdb; background: #f3f0ff; }
.maintenance-tag.node { color: #2b7de9; background: #e8f2ff; }
.maintenance-tag.fix { color: #e08a00; background: #fff6e0; }
.maintenance-tag.optimize { color: #1a9f55; background: #e3f8ec; }
.maintenance-tag.add { color: #2b7de9; background: #e8f2ff; }
.maintenance-tag.delete { color: #e04b57; background: #fdecee; }
.maintenance-tag.plan { color: #6b7280; background: #f1f2f4; }
.maintenance-tag.security { color: #e04b57; background: #fdecee; }

/* Article list / detail pages (网络杂烩 · 帮助中心 · 网站公告) */
.crumb-link { padding: 0; border: 0; color: #7b95a1; background: transparent; font: inherit; transition: color .16s ease; }
.crumb-link:hover { color: var(--brand-primary); }
.article-hub-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: start; gap: 18px; }
.article-hub-main { display: grid; gap: 16px; }
.article-side { display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid #d9eaec; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 5px 18px rgba(31, 89, 97, .05); }
.article-side-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: #1d3c4f; font-size: 13.5px; font-weight: 700; }
.article-side-head svg { width: 14px; height: 14px; color: var(--brand-primary); }
.article-side-item { display: flex; flex-direction: column; gap: 3px; padding: 9px 8px; border: 0; border-radius: var(--radius-sm); background: transparent; text-align: left; transition: background .16s ease; }
.article-side-item:hover { background: #f7fcfc; }
.article-side-item b { overflow: hidden; color: #4b6b76; font-size: 13px; font-weight: 500; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.article-side-item small { color: #9db0b7; font: 11px "DM Mono", monospace; }
.article-side-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 10px; border: 1px dashed #cfe4e5; border-radius: var(--radius-sm); color: #4f7881; background: transparent; font-size: 12.5px; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.article-side-more:hover { border-color: var(--brand-primary); color: var(--brand-primary); background: #f5fdfc; }

/* Category filter sidebar (文章分类) */
.article-category-panel { gap: 2px; }
.article-cat-item { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-radius: var(--radius-sm); color: #4b6b76; background: transparent; font-size: 13.5px; text-align: left; transition: background .16s ease, color .16s ease; }
.article-cat-item:hover { background: #f7fcfc; }
.article-cat-item i { display: block; flex: none; width: 8px; height: 8px; border: 1.5px solid #c3d3d7; border-radius: 50%; background: transparent; transition: background .16s ease, border-color .16s ease; }
.article-cat-item span { margin-left: auto; color: #9db0b7; font: 11px "DM Mono", monospace; }
.article-cat-item.active { color: var(--brand-primary); font-weight: 600; background: var(--brand-soft); }
.article-cat-item.active i { border-color: var(--brand-primary); background: var(--brand-primary); }
.article-cat-item.active span { color: var(--brand-primary); }

/* Thumbnails: topic-specific SVG mockup covers */
.article-cover { position: relative; display: flex; flex: none; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius-md); }
.article-cover.cover-notices { background: linear-gradient(145deg, #e8f8f7 0%, #d4f0ee 100%); }
.article-cover.cover-help { background: linear-gradient(145deg, #e6f8f2 0%, #cceee3 100%); }
.article-cover.cover-news { background: linear-gradient(145deg, #fdf3de 0%, #f5e4b8 100%); }
.cover-art-svg { display: block; width: 88%; height: auto; filter: drop-shadow(0 4px 12px rgba(20, 94, 101, .12)); }
.article-cover.feature { width: 100%; aspect-ratio: 16 / 10; padding: 14px; }
.article-cover.feature .cover-art-svg { width: 92%; }
.article-cover.row { width: 120px; height: 90px; padding: 8px; }
.article-cover.detail { width: 100%; aspect-ratio: 21 / 7; padding: 16px 20px; border-radius: 0; }
.article-cover.detail .cover-art-svg { width: min(360px, 50%); max-height: 100%; }

/* Featured card (image + intro + CTA) */
.article-feature-card { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid #d9eaec; border-radius: var(--radius-lg); background: #fff; text-align: left; box-shadow: 0 5px 18px rgba(31, 89, 97, .05); transition: border-color .18s ease, box-shadow .18s ease; }
.article-feature-card:hover { border-color: #9ed8d9; box-shadow: 0 10px 26px rgba(20, 94, 101, .1); }
.article-feature-card .article-cover { border-radius: 0; aspect-ratio: auto; height: 100%; padding: 16px; }
.article-feature-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 26px; }
.article-feature-date { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-primary); font: 600 12px "DM Mono", monospace; }
.article-feature-date svg { width: 12px; height: 12px; }
.article-feature-copy h3 { margin: 2px 0 0; overflow: hidden; color: #16323f; font-size: 19px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-feature-copy p { margin: 0; overflow: hidden; color: #64828d; font-size: 13.5px; line-height: 1.75; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-feature-btn { display: inline-flex; align-self: flex-end; align-items: center; gap: 7px; margin-top: auto; padding: 8px 16px; border-radius: 99px; color: #fff; background: var(--brand-primary); font-size: 13px; font-weight: 600; transition: background .18s ease; }
.article-feature-card:hover .article-feature-btn { background: var(--brand-primary-hover); }

/* Row list */
.article-row-list { display: grid; gap: 12px; }
.article-row-card { display: grid; grid-template-columns: 120px minmax(0, 1fr) 16px; align-items: start; gap: 16px; padding: 16px; border: 1px solid #e3eff0; border-radius: var(--radius-lg); background: #fff; text-align: left; transition: border-color .16s ease, box-shadow .16s ease; }
.article-row-card:hover { border-color: #9ed8d9; box-shadow: 0 8px 20px rgba(20, 94, 101, .07); }
.article-row-card:hover .article-row-arrow { transform: translateX(2px); color: var(--brand-primary); }
.article-row-copy { display: flex; min-width: 0; flex-direction: column; gap: 0; }
.article-row-copy h4 { margin: 0; overflow: hidden; color: #24495c; font-size: 15px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.article-row-copy p { display: flex; align-items: baseline; gap: 6px; overflow: hidden; margin: 8px 0 0; color: #7b95a1; font-size: 12.5px; line-height: 1.75; }
.article-row-copy p span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-excerpt-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: var(--radius-xs); color: #49a4a5; background: var(--brand-soft); font-size: 10.5px; font-style: normal; font-weight: 600; vertical-align: middle; }
.article-row-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f6f6; }
.article-cat-tag { padding: 2px 9px; border-radius: 99px; font-size: 11px; font-style: normal; font-weight: 600; }
.article-cat-tag.notices { color: #0e7d7d; background: var(--brand-soft); }
.article-cat-tag.help { color: #0e9f86; background: #e6f8f2; }
.article-cat-tag.news { color: #a3792c; background: #fdf3de; }
.article-row-date { display: flex; align-items: center; gap: 5px; color: #92a8b2; font: 11px "DM Mono", monospace; }
.article-row-date svg { width: 12px; height: 12px; }
.article-row-arrow { align-self: start; flex: none; width: 14px; height: 14px; margin-top: 4px; color: #c3d3d7; transition: transform .16s ease, color .16s ease; }

/* Pagination */
.article-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px 0; }
.article-pagination > span { color: #7b95a1; font-size: 12.5px; }
.article-page-btns { display: flex; align-items: center; gap: 6px; }
.article-page-btns button,
.article-page-btns a,
.article-page-btns span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #d9eaec;
  border-radius: var(--radius-sm);
  color: #557080;
  background: #fff;
  font-size: 12.5px;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.article-page-btns button svg,
.article-page-btns a svg,
.article-page-btns span svg { width: 12px; height: 12px; }
.article-page-btns button:hover:not(:disabled),
.article-page-btns a:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.article-page-btns button.active,
.article-page-btns a.active { border-color: var(--brand-primary); color: #fff; background: var(--brand-primary); }
.article-page-btns button:disabled,
.article-page-btns a:disabled,
.article-page-btns span.is-disabled { cursor: default; opacity: .45; pointer-events: none; }

.article-main { padding: 0 0 26px; overflow: hidden; }
.article-detail-cover { border-bottom: 1px solid #edf4f4; }
.article-main-head { padding: 22px 28px 18px; border-bottom: 1px solid #edf4f4; }
.article-main-tags { margin-bottom: 12px; }
.article-tag { display: inline-block; padding: 3px 11px; border-radius: 99px; color: var(--brand-primary); background: var(--brand-soft); font-size: 11.5px; font-style: normal; font-weight: 600; }
.article-main-head h1 { margin: 0; color: #16323f; font-size: 24px; line-height: 1.45; letter-spacing: -.3px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 14px; color: #8aa4ac; font-size: 12.5px; }
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-meta svg { width: 13px; height: 13px; color: #b0c5cb; }
.article-body { padding: 22px 28px 8px; }
.article-body p { margin: 0 0 16px; color: #3d5a63; font-size: 15px; line-height: 2; text-align: justify; }
.article-body p:last-child { margin-bottom: 0; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 28px; padding-top: 20px; border-top: 1px solid #edf4f4; }
.article-nav-btn { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; border: 1px solid #e3eff0; border-radius: var(--radius-md); background: #fafefe; text-align: left; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.article-nav-btn:not(:disabled):hover { border-color: var(--brand-primary); background: #f5fdfc; box-shadow: 0 4px 12px rgba(8, 166, 166, .08); }
.article-nav-btn.next { flex-direction: row-reverse; text-align: right; }
.article-nav-btn svg { flex: none; width: 16px; height: 16px; color: var(--brand-primary); opacity: .6; }
.article-nav-btn span { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; }
.article-nav-btn small { color: #9db0b7; font-size: 11px; font-weight: 500; letter-spacing: .3px; }
.article-nav-btn b { overflow: hidden; color: #24495c; font-size: 13px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-nav-btn:disabled { cursor: default; opacity: .45; }

/* Detail sidebar: related articles */
.article-related-panel { position: sticky; top: 16px; gap: 0; padding: 0; overflow: hidden; }
.article-related-panel .article-side-head { padding: 14px 16px; border-bottom: 1px solid #edf4f4; margin-bottom: 0; }
.article-related-list { display: flex; flex-direction: column; }
.article-related-item { display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border: 0; border-bottom: 1px solid #f0f6f6; background: transparent; text-align: left; transition: background .16s ease; }
.article-related-item:last-child { border-bottom: 0; }
.article-related-item:hover { background: #f7fcfc; }
.article-related-item:hover .article-related-title { color: var(--brand-primary); }
.article-related-title { overflow: hidden; color: #3d5a63; font-size: 13px; font-weight: 500; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; transition: color .16s ease; }
.article-related-date { color: #9db0b7; font: 11px "DM Mono", monospace; }
.article-related-panel .article-side-more { margin: 0; border: 0; border-top: 1px dashed #e3eff0; border-radius: 0; }

.settings-panel { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: stretch; margin-top: 4px; border: 1px solid #e3eff0; border-radius: var(--radius-lg); background: #fff; overflow: hidden; box-shadow: 0 2px 10px rgba(10, 63, 72, .04); }
.settings-sidebar { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-right: 1px solid #e3eff0; background: #fafefe; }
.settings-sidebar button,
.settings-sidebar a { padding: 10px 13px; border: 0; border-radius: var(--radius-sm); color: #55717f; background: transparent; text-align: left; font-size: 13px; line-height: 1.4; transition: background .16s ease, color .16s ease; }
.settings-sidebar button:hover,
.settings-sidebar a:hover { background: #eef7f7; color: var(--brand-primary); }
.settings-sidebar button.active,
.settings-sidebar a.active { color: #fff; background: var(--brand-primary); font-weight: 600; }
.settings-content { min-height: 480px; padding: 6px 26px 24px; }
.settings-section { padding-top: 20px; animation: settings-fade-in .2s ease; }
@keyframes settings-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.settings-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.settings-section-head h3 { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--brand-primary); font-size: 15px; font-weight: 700; }
.settings-section-head h3 svg { width: 14px; height: 14px; }
.settings-section-nav { display: flex; align-items: center; gap: 8px; color: #93a9b0; font: 500 12px "DM Mono", monospace; }
.settings-section-nav button,
.settings-section-nav a { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #dcebed; border-radius: 50%; color: #55717f; background: #fff; transition: border-color .16s ease, color .16s ease; }
.settings-section-nav button svg,
.settings-section-nav a svg { width: 13px; height: 13px; }
.settings-section-nav button:hover:not(:disabled),
.settings-section-nav a:hover:not(:disabled) { border-color: var(--brand-primary); color: var(--brand-primary); }
.settings-section-nav button:disabled,
.settings-section-nav a:disabled { color: #ccdadd; cursor: not-allowed; }
.settings-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px 18px; padding: 12px 0; border-bottom: 1px dashed #eef4f4; }
.settings-section .settings-row:last-child { border-bottom: 0; }
.settings-row-label { display: flex; align-items: center; gap: 6px; color: #46656f; font-size: 13px; font-weight: 500; }
.settings-tip { display: inline-flex; color: #aec0c5; cursor: help; }
.settings-tip svg { width: 13px; height: 13px; }
.settings-tip:hover { color: var(--brand-primary); }
.settings-radio-group, .settings-checkbox-group { flex-wrap: wrap; row-gap: 9px; }
.settings-action-bar { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; padding: 16px 22px; border: 1px solid #e3eff0; border-radius: var(--radius-lg); background: #fff; }
.settings-dirty-hint { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; color: #c24a54; font-size: 12.5px; }
.settings-dirty-hint i { width: 7px; height: 7px; border-radius: 50%; background: #e2555f; }
.settings-reset-btn, .settings-save-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 22px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
.settings-reset-btn { border: 1px solid #dcebed; color: #4e6b79; background: #fff; }
.settings-reset-btn:hover { border-color: #b9d3d6; }
.settings-save-btn { border: 0; color: #fff; background: var(--brand-primary); }
.settings-save-btn:hover { background: var(--brand-primary-hover); }
.settings-save-btn:disabled { opacity: .5; cursor: not-allowed; }
.settings-reset-btn svg, .settings-save-btn svg { width: 14px; height: 14px; }

.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; overscroll-behavior: contain; background: rgba(9, 47, 56, .42); -webkit-overflow-scrolling: touch; }
.test-modal { position: relative; width: min(520px, 100%); padding: 28px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 60px rgba(10, 63, 72, .28); }
.close { position: absolute; top: 18px; right: 18px; display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; color: #557080; background: #edf7f7; }
.modal-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.modal-title p { margin: 0 0 2px; color: #8298a2; font-size: 12px; }
.modal-title h2 { margin: 0; color: #1d3c4f; font-size: 23px; }
.test-modal label { display: grid; gap: 7px; color: #4e6b79; font-size: 13px; font-weight: 500; }
.test-modal input, .test-modal select { width: 100%; padding: 11px 12px; border: 1px solid #cce1e3; border-radius: var(--radius-sm); outline: none; color: #294657; background: #fff; font-size: 14px; }
.test-modal input:focus, .test-modal select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .12); }
.modal-options { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 15px; }
.run-button { width: 100%; margin-top: 20px; padding: 12px; border: 0; border-radius: var(--radius-sm); color: #fff; background: var(--brand-primary); font-size: 15px; font-weight: 600; }
.run-button:hover { background: var(--brand-primary-hover); }
.validation { margin: 10px 0 -8px; color: #d55d68; font-size: 12px; }
.result { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px; border: 1px solid #c6ead9; border-radius: var(--radius-md); color: #357c60; background: #f2fbf6; }
.result > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: #3bad7d; }
.result div { flex: 1; }
.result strong { display: block; font-size: 13px; }
.result p { margin: 2px 0 0; color: #66977f; font: 11px "DM Mono", monospace; }
.result b { font: 500 21px "DM Mono", monospace; }
.result b small { font-size: 11px; }
.toast { position: fixed; z-index: 90; bottom: 30px; left: 50%; padding: 10px 16px; border-radius: var(--radius-sm); color: #fff; background: #1d4d56; box-shadow: 0 10px 25px rgba(9, 45, 52, .22); font-size: 13px; transform: translateX(-50%); }
.back-to-top {
  position: fixed;
  z-index: 12;
  right: max(20px, calc(50vw - 600px - 64px));
  bottom: max(96px, 18vh);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-primary);
  box-shadow: 0 10px 24px rgba(8, 166, 166, .28);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.back-to-top:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(8, 166, 166, .32);
}
.back-to-top:active {
  background: var(--brand-primary-active);
  transform: translateY(0);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}
.back-to-top svg { width: 20px; height: 20px; }
@media (max-width: 1320px) {
  .back-to-top { right: 20px; bottom: 112px; }
}
@media (max-width: 720px) {
  .back-to-top { right: 12px; bottom: 16px; width: 40px; height: 40px; }
  .back-to-top svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: none; }
  .back-to-top:hover { transform: none; }
  .lottie-orb { animation: none; }
}

.auth-modal-shell { position: relative; width: min(440px, calc(100% - 56px)); margin-right: 48px; }
.auth-modal { position: relative; overflow-x: hidden; overflow-y: auto; width: 100%; max-height: calc(100dvh - 48px); padding: 28px 32px 32px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 60px rgba(10, 63, 72, .28); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.auth-modal-bar { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 4px; background: linear-gradient(90deg, var(--brand-primary), #33c8b8 55%, #6fd7a8); }
.auth-close { top: 0; right: -48px; width: 36px; height: 36px; color: #fff; background: rgba(255, 255, 255, .18); box-shadow: 0 4px 14px rgba(9, 47, 56, .18); transition: color .16s ease, background .16s ease, transform .16s ease; }
.auth-close:hover { color: #fff; background: rgba(255, 255, 255, .3); }
.auth-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.auth-tabs { position: relative; display: flex; margin: 0 0 22px; padding: 4px; border: 1px solid #dcebec; border-radius: 11px; background: #f2f7f7; }
.auth-tabs-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(15, 63, 72, .1), 0 2px 8px rgba(15, 63, 72, .06); transition: transform .28s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.auth-tabs[data-active="register"] .auth-tabs-indicator { transform: translateX(100%); }
.auth-tabs button,
.auth-tabs a { position: relative; z-index: 1; flex: 1; height: 36px; border: 0; border-radius: 8px; color: #7b95a1; background: transparent; font-size: 14px; font-weight: 600; transition: color .22s ease; }
.auth-tabs button:hover,
.auth-tabs a:hover { color: #4e6b79; }
.auth-tabs button.active,
.auth-tabs a.active { color: #1d3c4f; }
.auth-panels { position: relative; overflow: hidden; transition: height .28s cubic-bezier(.4, 0, .2, 1); }
.auth-panel { width: 100%; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .24s ease, transform .24s ease, visibility .24s ease; pointer-events: none; }
.auth-panel:not(.active) { position: absolute; top: 0; left: 0; }
.auth-panel.active { position: relative; opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.auth-modal-head { margin: 0 0 20px; }
.auth-modal-head h2 { margin: 0 0 8px; color: #1d3c4f; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.auth-modal-head p { margin: 0; color: #7b95a1; font-size: 13px; line-height: 1.65; }
.auth-perk { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px; padding: 11px 14px; border: 1px solid #c8e8e6; border-radius: var(--radius-sm); color: #1a7f7a; background: #eef9f8; font-size: 12.5px; line-height: 1.65; }
.auth-perk svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--brand-primary); }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 8px; color: #4e6b79; font-size: 13px; font-weight: 500; }
.auth-input { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #d4e4e6; border-radius: var(--radius-sm); background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.auth-input:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .1); }
.auth-input input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: none; color: #294657; background: transparent; font-size: 14px; }
.auth-input input::placeholder { color: #a8bcc3; }
.auth-input input::-ms-reveal,
.auth-input input::-ms-clear,
.auth-input input::-webkit-credentials-auto-fill-button,
.auth-input input::-webkit-strong-password-auto-fill-button,
.auth-input input::-webkit-contacts-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
}
.auth-eye { display: grid; flex: none; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; color: #9db4bb; background: transparent; transition: color .16s ease, background .16s ease; }
.auth-eye:hover { color: var(--brand-primary); background: #f2fafa; }
.auth-eye svg { width: 16px; height: 16px; }
.auth-field.invalid .auth-input { border-color: #e2919a; box-shadow: 0 0 0 3px rgba(224, 93, 104, .1); }
.auth-field.invalid .auth-input:focus-within { border-color: #d55d68; box-shadow: 0 0 0 3px rgba(224, 93, 104, .14); }
.auth-field small { display: flex; align-items: flex-start; gap: 5px; color: #d55d68; font-size: 12px; line-height: 1.45; }
.auth-field small svg { flex: none; width: 12px; height: 12px; margin-top: 2px; }
.auth-form-error { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; padding: 10px 12px; border: 1px solid #f0c4c9; border-radius: var(--radius-sm); color: #c24a54; background: #fff5f6; font-size: 12.5px; line-height: 1.5; }
.auth-form-error svg { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.auth-submit { width: 100%; margin-top: 6px; padding: 13px; border: 0; border-radius: var(--radius-sm); color: #fff; background: var(--brand-primary); box-shadow: 0 8px 20px rgba(8, 166, 166, .24); font-size: 15px; font-weight: 600; transition: background .16s ease, opacity .16s ease, box-shadow .16s ease; }
.auth-submit:hover { background: var(--brand-primary-hover); box-shadow: 0 10px 24px rgba(8, 166, 166, .3); }
.auth-submit:disabled { opacity: .7; cursor: progress; box-shadow: none; }

@media (max-width: 900px) {
  .brandbar { display: flex; justify-content: space-between; gap: 12px; }
  .account-actions { display: none; }
  .navline { display: none; }
  .menu-toggle { display: grid; }
  .theme-toggle { min-height: 40px; width: 40px; padding: 0; }
  .theme-toggle span { display: none; }
  .tool-grid, .info-grid, .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-panel:nth-child(2n) { border-right: 0; }
  .history-panel:nth-child(-n+2) { border-bottom: 1px solid #e8f1f2; }
  .tool-grid[data-count="1"] { grid-template-columns: 1fr; }
  .tool-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid[data-count="5"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid[data-count="5"] .tool-card { grid-column: auto; }
  .tool-grid[data-count="5"] .tool-card:last-child { grid-column: 1 / -1; }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
  .ping-overview-grid { grid-template-columns: 1fr; }
  .tool-map-ad-rail { grid-template-columns: 1fr; gap: 8px; }
  .tool-map-ad-rail > * { grid-column: 1 / -1 !important; }
  .tool-map-ad-slot {
    height: 48px;
    min-height: 48px;
    gap: 6px;
    padding: 0 10px;
    border-radius: var(--radius-md);
    box-shadow: none;
  }
  .tool-map-ad-slot svg { width: 14px; height: 14px; }
  .tool-map-ad-slot strong { font-size: 13px; }
  .tool-map-ad-slot small { font-size: 10px; }
  .tool-map-ad-badge { top: 6px; left: 6px; padding: 1px 5px; font-size: 10px; }
  .ping-control-options { align-items: flex-start; flex-direction: column; }
  .tcp-control-main { grid-template-columns: minmax(0, 1fr) repeat(2, auto); }.tcp-control-foot { align-items: flex-start; flex-direction: column; }
  .website-control-main { grid-template-columns: minmax(260px, 1fr) auto auto auto auto; }
  .resolver-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dns-legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dns-legend-grid.is-ipv6 { grid-template-columns: 1fr; }
  .ping-result-toolbar { grid-template-columns: 1fr; align-items: start; padding: 10px 0; }
  .ping-filter-tabs { padding: 8px 18px; }.result-count { padding: 3px 18px 0; }
  .feedback-stat-row { grid-template-columns: 1fr; }.feedback-grid { grid-template-columns: 1fr; }
  .maintenance-summary-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maintenance-summary-card { min-height: 68px; padding: 14px 14px; }
  .maintenance-summary-card:nth-child(3n) { border-right: 0; }
  .maintenance-summary-card:nth-child(n + 4) { border-top: 1px solid #e8f1f2; }
  .settings-panel { grid-template-columns: 1fr; }
  .settings-sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e3eff0; }
  .settings-sidebar button,
.settings-sidebar a { flex: none; white-space: nowrap; }
  .settings-content { min-height: 0; }
  .article-hub-layout, .article-layout { grid-template-columns: 1fr; }
  .article-feature-card { grid-template-columns: 1fr; }
  .article-feature-card .article-cover { aspect-ratio: 16 / 10; height: auto; }
}

@media (max-width: 620px) {
  .wide-shell { width: min(100% - 24px, 1200px); }
  .brandbar { height: 64px; }
  .brand small { display: none; }
  .account-actions { gap: 6px; }
  .account-actions button,
.account-actions a { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
  .nav-inner > button.mode,
.nav-inner > a.mode { display: none; }
  .hero {
    height: auto;
    min-height: 320px;
    padding-bottom: 8px;
  }
  .hero-layout {
    width: min(100% - 24px, 1200px);
  }
  .hero-bg-video { opacity: .4; object-position: center 36%; }
  .hero-glow { background: linear-gradient(180deg, rgba(230, 239, 239, .92) 0%, rgba(220, 232, 232, .58) 48%, rgba(216, 228, 228, .18) 100%); }
  .hero-inner { align-items: stretch; padding: 24px 0 20px; text-align: left; max-width: none; }
  .hero-command { width: 100%; }
  .hero h1 { font-size: 31px; }
  .hero-copy { font-size: 13px; line-height: 1.7; }
  .hero-command { display: grid; grid-template-columns: 1fr; height: auto; gap: 10px; padding: 12px; overflow: visible; border-radius: var(--radius-lg); }
  .hero-command-search { min-height: 44px; padding: 0 12px; border: 1px solid #d5e8e9; border-radius: var(--radius-md); background: #f8fcfc; }
  .hero-command-search:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(8, 166, 166, .1); background: #fff; }
  .hero-command-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; width: 100%; }
  .hero-command select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d5e8e9; border-left: 1px solid #d5e8e9; border-radius: var(--radius-md); background: #fff; font-size: 13px; }
  .hero-command button,
.hero-command a { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: var(--radius-md); font-size: 13px; }
  .quick-links { flex-wrap: wrap; gap: 9px 14px; }
  .filter-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-height: 0; padding: 10px; overflow: visible; }
  .filter-panel button,
.filter-panel a { min-width: 0; width: 100%; min-height: 40px; padding: 0 10px; font-size: 13px; font-weight: 500; }
  .tool-grid, .info-grid, .history-grid { grid-template-columns: 1fr; gap: 0; }
  .history-shell-head { min-height: 52px; padding: 0 16px; }
  .history-shell-head h2 { font-size: 16px; }
  .history-panel { border-right: 0; border-bottom: 1px solid #e8f1f2; }
  .history-panel:last-child { border-bottom: 0; }
  .history-panel:nth-child(-n+2) { border-bottom: 1px solid #e8f1f2; }
  .history-row { min-height: 40px; padding: 7px 12px 6px; }
  .tool-grid { gap: 1px; background: #e4eff0; }
  .tool-grid[data-count="1"],
  .tool-grid[data-count="2"],
  .tool-grid[data-count="3"],
  .tool-grid[data-count="4"],
  .tool-grid[data-count="5"] { grid-template-columns: 1fr; }
  .tool-grid[data-count="5"] .tool-card,
  .tool-grid[data-count="5"] .tool-card:last-child { grid-column: auto; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; }
  .sponsor-grid button,
.sponsor-grid a { min-height: 56px; gap: 2px; }
  .sponsor-grid svg { width: 14px; }
  .sponsor-grid span { font-size: 12px; }
  .ad-note { height: 52px; margin: 12px; font-size: 12px; }
  .modal-options { grid-template-columns: 1fr; }
  footer { padding: 18px 12px 28px; text-align: center; }
  footer .wide-shell {
    flex-direction: column;
    align-items: center;
    width: min(100%, 1200px);
    gap: 8px;
    text-align: center;
  }
  .ping-page { padding-top: 14px; }.ping-control-panel { padding: 14px; }
  .ping-control-main { flex-wrap: wrap; }.ping-target { flex-basis: 100%; }
  .tcp-control-main { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
  .tcp-control-main .tcp-target { flex: 1 1 100%; min-width: 0; }
  .tcp-control-main .ping-action { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .tcp-control-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 14px;
  }
  .tcp-dns-choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-top: 2px;
    padding-top: 14px;
    border-top: 1px dashed #e3eff0;
  }
  .tcp-dns-choice label {
    gap: 8px;
    min-height: 28px;
  }
  .tcp-dns-choice > input {
    flex: 1;
    min-width: 106px;
    height: 36px;
  }
  .tcp-control-foot .tcp-snapshot { margin-left: 0; }
  .website-control-panel .tcp-control-foot {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e3eff0;
  }
  .website-control-panel .tcp-dns-choice {
    margin-top: 0;
    padding-top: 12px;
  }
  .website-control-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }.website-target { grid-column: 1 / -1; }.website-control-main .ping-action, .website-control-main .website-warm-button, .website-control-main .website-advanced, .website-control-main .tcp-snapshot { width: 100%; min-width: 0; min-height: 46px; height: auto; padding: 0 10px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; justify-content: center; }.website-control-main .tcp-snapshot svg { width: 15px; height: 15px; }
  .website-advanced-panel { gap: 12px; padding: 14px; }
  .website-advanced-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .website-advanced-label { text-align: left; }
  .website-advanced-radios { gap: 8px 14px; }
  .website-advanced-redirect p { width: 100%; }
  .website-resolver-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ping-action { flex: 1; padding: 0 10px; font-size: 13px; }.ping-action.ghost { flex-basis: 100%; }
  .batch-control-actions .ping-action { flex: none; flex-basis: auto; }
  .region-checks { flex-wrap: wrap; gap: 8px; }.dns-choice { flex-wrap: wrap; gap: 9px 12px; }.dns-choice > input { flex: 1; min-width: 132px; }
  .ping-status-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ping-status-row > div { grid-template-columns: 20px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 8px; min-height: 64px; padding: 10px 12px; }
  .ping-status-row svg { grid-row: 1 / span 2; align-self: center; width: 16px; height: 16px; }
  .ping-status-row span { white-space: nowrap; font-size: 12px; line-height: 1.3; }
  .ping-status-row strong { justify-self: start; max-width: 100%; overflow: hidden; color: #294d5b; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .ping-section-heading { padding: 12px 14px; min-height: 0; }
  .coverage-card .ping-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 10px; }
  .coverage-card .ping-section-heading > div:not(.coverage-heading-actions) { display: contents; }
  .coverage-card .ping-section-heading span { grid-column: 1; grid-row: 1; align-self: center; }
  .coverage-card .ping-section-heading small { grid-column: 1 / -1; grid-row: 2; line-height: 1.55; }
  .coverage-heading-actions { gap: 6px; grid-column: 2; grid-row: 1; align-self: center; }
  .coverage-map { min-height: 280px; }.cn-map-wrap { inset: 0; }.cn-legend { left: 8px; bottom: 8px; padding: 7px 9px; }.cn-legend-item { font-size: 10px; }.cn-inset { display: none; }.cn-tooltip { display: none; }
  .region-table {
    padding: 0 14px 12px;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .region-table-row {
    flex: none;
    width: 580px;
    min-width: 580px;
    grid-template-columns: 100px 180px 180px 72px;
    gap: 12px;
    font-size: 12px;
  }
  .region-table-row > span:not(:first-child) {
    overflow: visible;
    text-overflow: unset;
  }
  .regional-card.is-overseas .region-table-row {
    width: 580px;
    min-width: 580px;
    grid-template-columns: 100px 180px 180px 72px;
  }
  .resolver-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 14px 14px; }.ping-result-toolbar .ping-section-heading { min-height: 52px; }
  .dns-legend-grid,
  .dns-legend-grid.is-ipv6 { grid-template-columns: 1fr; }
  .dns-legend-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 6.5ch 14px;
    align-items: center;
    gap: 9px;
  }
  .dns-legend-ip { flex: unset; min-width: 0; }
  .dns-legend-item b {
    justify-self: start;
    width: 100%;
    text-align: left;
    font-variant-numeric: tabular-nums;
  }
  .node-search { max-width: none; flex-basis: 100%; width: 100%; }.trace-node-select { max-width: none; flex-basis: 100%; width: 100%; }.node-search-input { width: 100%; box-sizing: border-box; }.trace-snapshot { flex-basis: 100%; }.trace-snapshot-btn { width: 100%; justify-content: center; }.trace-result-toolbar { padding: 12px 14px; }.trace-path-card { padding: 16px 14px 12px; }
  /* Traceroute: keep 开始测试 + 完整截图 on one row under the target field */
  .trace-control-panel .ping-control-main .ping-action.primary {
    flex: 1 1 0;
    min-width: 0;
  }
  .trace-control-panel .ping-control-main .trace-snapshot {
    flex: 1 1 0;
    flex-basis: auto;
    min-width: 0;
    width: auto;
  }
  .trace-control-panel .ping-control-main .trace-snapshot-btn {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    padding: 0 10px;
    font-size: 13px;
  }
  .findping-card .ping-section-heading { flex-wrap: wrap; min-height: 0; padding: 12px 14px; gap: 10px; }.findping-card .coverage-heading-actions { flex-wrap: wrap; width: 100%; }.findping-card .coverage-heading-actions .heading-icon-btn:first-child { display: inline-flex; }.view-toggle { flex: 1; }.view-toggle button,
.view-toggle a { flex: 1; justify-content: center; }
  .intercept-input-toggle.view-toggle { flex: none; width: max-content; }
  .intercept-input-toggle.view-toggle button,
.intercept-input-toggle.view-toggle a { flex: none; justify-content: center; }
  .findping-body { flex-direction: column; }.findping-segment-list { flex-direction: row; width: 100%; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e3eff0; }.findping-segment { flex: none; }.findping-ip-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); padding: 12px; }
  .local-overview-grid { grid-template-columns: 1fr; }.local-route-grid { grid-template-columns: 1fr; padding: 14px; }.local-identity-body { padding: 14px; }.local-identity-panel { flex-basis: 100%; }
  .ping-breadcrumb { flex-wrap: wrap; gap: 6px 8px; }
  .batch-mode-toggle { flex-basis: 100%; margin-left: 0; width: 100%; }
  .batch-mode-toggle button,
.batch-mode-toggle a { flex: 1; min-width: 0; padding: 0 8px; font-size: 12.5px; }
  .batch-control-panel { padding: 14px; }
  .batch-control-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .batch-target-textarea {
    width: 100%;
    min-height: 112px;
    height: auto;
    max-height: 220px;
    font-size: 12.5px;
  }
  .batch-control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .batch-control-actions .ping-action {
    grid-column: 1 / -1;
    flex: none;
    width: 100%;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }
  .batch-node-select,
  .batch-control-actions .trace-snapshot {
    flex: none;
    flex-basis: auto;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  .batch-node-btn,
  .batch-control-actions .trace-snapshot-btn {
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 0 10px;
    font-size: 13px;
    justify-content: center;
  }
  .batch-node-btn i { padding: 0 6px; font-size: 10px; }
  .batch-node-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    bottom: auto;
    z-index: 9;
    width: calc(200% + 8px);
    max-width: none;
    max-height: min(70vh, 520px);
    overflow: auto;
    box-shadow: 0 16px 36px rgba(10, 63, 72, .18);
  }
  .batch-node-panel-head { flex-wrap: wrap; gap: 8px; }
  .batch-node-picker-body { max-height: min(42vh, 280px); }
  .batch-control-panel,
  .batch-control-layout,
  .batch-control-actions { overflow: visible; }
  .batch-options-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
  }
  .batch-cidr-check {
    align-items: flex-start;
    gap: 8px;
    white-space: normal;
    line-height: 1.45;
  }
  .batch-cidr-check span { flex: 1; min-width: 0; }
  .batch-gateway-choice {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .batch-gateway-choice label { white-space: normal; line-height: 1.4; }
  .batch-result-card { margin-top: 14px; margin-bottom: 8px; }
  .batch-result-title-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 14px 0;
  }
  .batch-copy-btn { margin-top: 0; }
  .batch-filter-progress-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px 14px;
  }
  .batch-filter-tabs {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    width: 100%;
    gap: 6px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .batch-filter-tabs button,
.batch-filter-tabs a {
    flex: none;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }
  .batch-progress-row {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    min-width: 0;
    font-size: 12px;
  }
  .batch-progress-bar { flex: 1 1 auto; width: auto; max-width: none; min-width: 72px; }
  .batch-result-scroll { margin-bottom: 0; }
  .batch-page { padding-bottom: 48px; }
  .feedback-field-grid { grid-template-columns: 1fr; }.feedback-form-actions { gap: 8px; }.feedback-form-actions .ping-action, .feedback-form-actions .ping-action.ghost { flex: 1 1 0; flex-basis: 0; min-width: 0; min-height: 44px; padding: 0 12px; font-size: 13px; }.feedback-search-bar { padding: 12px 14px; }.feedback-search { flex-basis: 100%; }.feedback-search-btn { flex: 1; justify-content: center; }.feedback-entry { flex-direction: column; }.feedback-entry-meta { flex-direction: row; align-items: center; }.feedback-pagination { flex-wrap: wrap; }
  .maintenance-summary { margin-top: 12px; }
  .maintenance-summary-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .maintenance-summary-card { gap: 8px; min-height: 58px; padding: 10px 10px; }
  .maintenance-summary-card:nth-child(3n) { border-right: 0; }
  .maintenance-summary-card:nth-child(n + 4) { border-top: 1px solid #e8f1f2; }
  .maintenance-summary-icon { width: 28px; height: 28px; border-radius: var(--radius-xs); }
  .maintenance-summary-icon svg { width: 14px; height: 14px; }
  .maintenance-summary-copy b { font-size: 17px; }
  .maintenance-summary-copy > span { font-size: 11px; }
  .intercept-mode-strip { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .intercept-mode-strip button,
.intercept-mode-strip a { flex: 0 0 auto; min-width: 92px; border-right: 1px solid #e8f1f2; font-size: 12px; }
  .intercept-mode-strip.is-domain {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
  }
  .intercept-mode-strip.is-domain button,
.intercept-mode-strip.is-domain a {
    flex: none;
    min-width: 0;
    width: 100%;
    padding: 0 6px;
    font-size: 12px;
    white-space: nowrap;
  }
  .intercept-mode-strip.is-utility { display: flex; overflow-x: auto; }
  .json-catalog-head h1 { font-size: 22px; }
  .json-tool-grid { grid-template-columns: 1fr; }
  .json-dual-editor { grid-template-columns: 1fr; min-height: 0; }
  .json-editor-pane, .json-editor-textarea { min-height: 220px; }
  .json-popular-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .json-links-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .json-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .json-parse-toolbar { flex-direction: column; }
  .json-parse-fullscreen { align-self: flex-end; }
  .json-workspace-head { flex-direction: column; }
  .ip-lookup-grid { grid-template-columns: 1fr; }
  .ip-lookup-section-head {
    padding-left: 14px;
    padding-right: 14px;
  }
  .ip-lookup-search-block {
    width: 100%;
    max-width: none;
    margin-top: 12px;
    padding: 0 14px 14px;
  }
  .ip-lookup-search {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .ip-lookup-search input {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }
  .ip-lookup-search-btn {
    flex: none;
    width: auto;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    gap: 4px;
    font-size: 13px;
  }
  .ip-lookup-search-btn svg { width: 14px; height: 14px; }
  .ip-lookup-result-area { padding: 0 14px 14px; }
  .ip-local-network-body { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .ip-local-priority {
    justify-self: start;
    max-width: none;
    white-space: normal;
  }
  .ip-route-row { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .ip-leak-grid { grid-template-columns: 1fr; gap: 12px; }
  .ip-lookup-ad-slot { height: 48px; min-height: 48px; }
  .ws-mode-strip { margin-left: 16px; margin-right: 16px; }
  .ws-search-block,
  .ws-step-row,
  .ws-result-grid,
  .ws-note-block {
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  .ws-search-block { margin-top: 14px; padding: 0; }
  .ws-search {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
  }
  .ws-search input {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }
  .ws-search-btn {
    flex: none;
    width: auto;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    gap: 4px;
    border-left: 1px solid #c5e0e1;
    border-top: 0;
    font-size: 12.5px;
  }
  .ws-search-btn svg { width: 13px; height: 13px; }
  .ws-section-head { padding-left: 16px; padding-right: 16px; }
  .ws-step-row,
  .ws-result-grid { grid-template-columns: 1fr; }
  .ws-ad-panel { margin-top: 12px; padding: 10px; }
  .ws-ad-mosaic {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 72px 72px 48px;
    grid-template-areas:
      "a b"
      "c d"
      "e e";
    gap: 8px;
  }
  .intercept-single-layout { grid-template-columns: 1fr; }
  .intercept-single-layout .ping-action.primary { width: 100%; justify-content: center; }
  .intercept-detail-grid { grid-template-columns: 1fr; }
  .intercept-detail-actions { flex-direction: column; }
  .intercept-detail-actions .ping-action { width: 100%; justify-content: center; }
  .intercept-batch-tools .ping-action.primary { width: 100%; margin-left: 0; justify-content: center; }
  .intercept-batch-tools .heading-icon-btn { flex: 1 1 calc(33.33% - 6px); justify-content: center; min-height: 36px; }
  .sitecheck-input-row { grid-template-columns: 1fr; }
  .sitecheck-type-badge { justify-content: center; min-height: 40px; }
  .sitecheck-input-row .ping-action.primary { width: 100%; justify-content: center; }
  .maintenance-groups { padding: 2px 14px 16px; }
  .maintenance-group-list::before { left: calc(48px + 10px + 15px); }
  .maintenance-row { grid-template-columns: 48px 30px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
  .maintenance-row-date { padding-top: 4px; }
  .maintenance-row-date b { font-size: 12px; }
  .maintenance-row-icon { width: 30px; height: 30px; }
  .settings-content { padding: 6px 16px 18px; }.settings-section-head { flex-wrap: wrap; }.settings-row { grid-template-columns: 1fr; gap: 8px; }.settings-action-bar { flex-wrap: wrap; padding: 14px 16px; }.settings-dirty-hint { flex-basis: 100%; margin-right: 0; }.settings-reset-btn, .settings-save-btn { flex: 1; justify-content: center; }
  .article-row-card { grid-template-columns: 80px minmax(0, 1fr) 16px; gap: 10px; padding: 12px; }.article-cover.row { width: 80px; height: 64px; padding: 6px; }.article-row-copy p { -webkit-line-clamp: 1; }.article-row-date { display: none; }.article-feature-copy { padding: 16px; }.article-pagination { justify-content: center; text-align: center; }.article-page-btns button:not(.active):not(:first-child):not(:last-child),
.article-page-btns a:not(.active):not(:first-child):not(:last-child) { display: none; }.article-main-head { padding: 16px; }.article-body { padding: 16px; }.article-nav { margin: 0 16px; grid-template-columns: 1fr; }.article-main-head h1 { font-size: 19px; }.article-nav-btn.next { flex-direction: row; text-align: left; }.article-cover.detail { aspect-ratio: 16 / 9; padding: 10px; }
  .modal-backdrop { align-items: start; justify-items: center; padding: 12px 12px 24px; }
  .auth-modal-shell { width: min(100%, 440px); margin: 44px 0 16px; max-width: 100%; }
  .auth-modal { max-height: calc(100dvh - 88px); padding: 26px 20px 24px; }
  .auth-close { top: -44px; right: 0; }
  .auth-panels { max-height: none; }
}

@media (prefers-reduced-motion: reduce) { .china-node-halo { animation: none; } }

/* Homepage brand landing layer: keeps all existing homepage controls and content intact. */
.home-page {
  --brand-deep: #063a4a;
  --brand-ocean: #075f70;
  --brand-sky: #dff7f5;
  --brand-mist: #eef9f8;
  background:
    radial-gradient(circle at 8% 18%, rgba(17, 183, 171, .12), transparent 22rem),
    linear-gradient(180deg, #f2fbfa 0, #f8fbfb 46%, #edf8f7 100%);
}

.home-page ::selection { color: #fff; background: var(--brand-ocean); }

.home-page .topbar {
  position: relative;
  z-index: 40;
  border-bottom: 0;
  background: var(--page);
  box-shadow: none;
  backdrop-filter: none;
}

.home-page .brandbar { height: 76px; }
.home-page .brand { gap: 12px; color: var(--ink); letter-spacing: .5px; }
.home-page .brand img { width: 43px; height: 43px; box-shadow: 0 4px 12px rgba(8, 166, 166, .12); }
.home-page .brand small { color: var(--muted); font-size: 9px; letter-spacing: 1.8px; }
.home-page .account-actions button,
.home-page .account-actions a {
  border-color: #c5dce0;
  color: #355662;
  background: #fff;
}
.home-page .account-actions button:hover,
.home-page .account-actions a:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: #f4fbfb;
}
.home-page .account-actions .solid {
  border-color: var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
}
.home-page .account-actions .solid:hover {
  border-color: var(--brand-primary-hover);
  color: #fff;
  background: var(--brand-primary-hover);
}
.home-page .navline {
  border-top: 0;
  border-bottom: 1px solid #0a3840;
  background: var(--nav-bar);
}
.home-page .nav-inner { min-height: 44px; }
.home-page .nav-inner > button:not(.mode),
.home-page .nav-dropdown > button,
.home-page .nav-inner > a:not(.mode),
.home-page .nav-dropdown > a {
  min-height: 44px;
  color: #b7d5d8;
}
.home-page .nav-inner > button:hover,
.home-page .nav-dropdown > button:hover,
.home-page .nav-dropdown.open > button,
.home-page .nav-inner > a:hover,
.home-page .nav-dropdown > a:hover,
.home-page .nav-dropdown.open > a {
  border-bottom-color: transparent;
  color: #8ff0ea;
  background: transparent;
}
.home-page .nav-inner > button.active,
.home-page .nav-dropdown > button.active,
.home-page .nav-inner > a.active,
.home-page .nav-dropdown > a.active {
  border-bottom-color: transparent;
  color: #8ff0ea;
  background: transparent;
}
.home-page .nav-inner > button.mode,
.home-page .nav-inner > a.mode {
  min-height: 32px;
  height: 32px;
  border-color: rgba(142, 214, 216, .45);
  color: #c7e6e8;
  background: transparent;
}
.home-page .nav-inner > button.mode:hover,
.home-page .nav-inner > a.mode:hover {
  border-color: var(--brand-primary);
  color: #fff;
  background: var(--brand-primary);
}

.home-page .hero {
  min-height: 300px;
  height: clamp(300px, 26vw, 360px);
  aspect-ratio: auto;
  background: var(--home-top-ink, #031820);
  isolation: isolate;
}

/* Decorative signal rings removed — they read as a stray color block over the banner video. */
.home-page .hero::before,
.home-page .hero::after {
  content: none;
  display: none;
}

.home-page .hero-bg-video {
  opacity: 1;
  filter: none;
  transform: none;
  object-fit: cover;
  object-position: center center;
}

.home-page .hero-glow {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 48, 62, .98) 0%, rgba(4, 62, 75, .93) 34%, rgba(5, 89, 99, .63) 57%, rgba(2, 37, 51, .16) 100%),
    linear-gradient(180deg, rgba(3, 35, 48, .16), rgba(3, 35, 48, .4));
}

.home-page .hero-layout { z-index: 3; }
.home-page .hero-inner { justify-content: center; min-height: inherit; height: auto; max-width: 680px; padding: 28px 0 34px; }
.home-page .eyebrow { display: none; }
.home-page .hero h1 { max-width: 620px; color: #fff; font-size: clamp(40px, 4vw, 62px); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.home-page .hero-copy { max-width: 500px; margin: 16px 0 24px; color: #c7e6e8; font-size: 15px; line-height: 1.75; }

.home-page .hero-command {
  width: min(620px, 100%);
  height: 56px;
  border-color: rgba(184, 247, 240, .34);
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 38px rgba(0, 22, 31, .24);
}

.home-page .hero-command:focus-within { border-color: #8bf3e8; box-shadow: 0 0 0 4px rgba(123, 242, 230, .18), 0 18px 38px rgba(0, 22, 31, .24); }
.home-page .hero-command-search { gap: 11px; padding-left: 18px; }
.home-page .hero-command-search svg { color: var(--brand-ocean); }
.home-page .hero-command select { width: 128px; color: #436773; background: #f5fbfb; }
.home-page .hero-command button,
.home-page .hero-command a { min-width: 140px; background: linear-gradient(135deg, #0db6ad, #087f92); box-shadow: inset 0 1px rgba(255, 255, 255, .22); }
.home-page .hero-command button:hover,
.home-page .hero-command a:hover { background: linear-gradient(135deg, #13c2b7, #086f82); }
.home-page .quick-links { gap: 10px 18px; margin-top: 16px; color: #9bc9cc; }
.home-page .quick-links span { color: #e0f6f5; }
.home-page .quick-links button,
.home-page .quick-links a { color: #b1d9da; }
.home-page .quick-links button:hover,
.home-page .quick-links a:hover { color: #fff; }

.home-page .filter-wrap { position: relative; z-index: 4; margin-top: -32px; padding: 0 0 30px; }
.home-page .filter-panel { min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.home-page .filter-panel button,
.home-page .filter-panel a { min-height: 40px; border-radius: 7px; }

.home-page .tool-section { position: relative; padding-bottom: 44px; }
.home-page .tool-grid { border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: 14px; overflow: visible; }
.home-page .tool-card { min-height: 140px; padding: 24px 48px 22px 22px; border: 1px solid #d7e9e9; border-radius: 10px; background: rgba(255, 255, 255, .84); box-shadow: 0 10px 26px rgba(21, 92, 101, .06); }
.home-page .tool-card:hover { border-color: #83d2d0; background: #fff; box-shadow: 0 18px 34px rgba(20, 100, 108, .12); transform: translateY(-3px); }
.home-page .tool-card .tool-icon { width: 48px; height: 48px; border-radius: 14px; }
.home-page .tool-card em { top: 19px; right: 16px; }
.home-page .tool-copy { padding-right: 26px; }
.home-page .card-arrow { right: 18px; bottom: 18px; }

.home-page .info-grid { position: relative; gap: 14px; padding-bottom: 42px; }
.home-page .content-list,
.home-page .sponsors,
.home-page .friends { border-color: #d7e9e9; border-radius: 10px; box-shadow: 0 10px 28px rgba(21, 92, 101, .055); }
.home-page .section-heading { min-height: 56px; padding: 0 18px; }
.home-page .section-heading span { color: #173f50; }
.home-page .section-heading span b { color: var(--brand-ocean); }
.home-page .content-feature { margin: 14px 16px 0; border-radius: 7px; background: linear-gradient(135deg, #eaf9f8, #f7fcfc); }
.home-page .content-list ul { margin-bottom: 13px; }
.home-page .history-section { margin-bottom: 36px; border: 0; background: transparent; box-shadow: none; }
.home-page .history-shell { border-color: #d9e9ea; border-radius: 12px; box-shadow: 0 10px 28px rgba(21, 92, 101, .055); }
.home-page .history-grid { gap: 0; padding: 0; }
.home-page .history-panel { border-color: #e8f1f2; border-radius: 0; box-shadow: none; background: transparent; }
.home-page .sponsors { margin-bottom: 18px; }
.home-page .ad-note { height: 96px; border-color: #89d4d1; border-radius: 8px; background: linear-gradient(135deg, #f4fcfb, #ecf9f8); }
.home-page .sponsor-grid { gap: 8px; }
.home-page .sponsor-grid button,
.home-page .sponsor-grid a { border-radius: 7px; background: #fbfefe; }
.home-page .friends { margin-bottom: 28px; }
.home-page footer { border-top-color: #d8ebea; background: #f9fcfc; }

@media (max-width: 900px) {
  .home-page .hero { min-height: 280px; height: clamp(280px, 58vw, 340px); aspect-ratio: auto; }
  .home-page .hero-inner { min-height: inherit; height: auto; }
  .home-page .tool-grid { gap: 10px; }
}

@media (max-width: 620px) {
  .home-page .brandbar { height: 64px; }
  .home-page .hero { min-height: 300px; height: auto; aspect-ratio: auto; }
  .home-page .hero-inner { min-height: inherit; height: auto; padding: 28px 0 36px; }
  .home-page .hero h1 { font-size: clamp(38px, 11vw, 48px); line-height: 1.08; }
  .home-page .hero-copy { margin: 15px 0 22px; font-size: 14px; }
  .home-page .hero-command { display: grid; grid-template-columns: 1fr; height: auto; gap: 10px; padding: 12px; overflow: visible; border-radius: 12px; }
  .home-page .hero-command-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; width: 100%; }
  .home-page .hero-command select { width: 100%; height: 44px; border: 1px solid #d5e8e9; border-radius: 8px; background: #fff; }
  .home-page .hero-command button,
.home-page .hero-command a { width: 100%; min-width: 0; height: 44px; padding: 0 10px; border-radius: 8px; }
  .home-page .hero-bg-video { opacity: 1; object-position: center center; transform: none; }
  .home-page .hero-glow { background: linear-gradient(180deg, rgba(3, 48, 62, .88) 0%, rgba(4, 72, 83, .55) 48%, rgba(3, 48, 62, .28) 100%); }
  .home-page .filter-wrap { margin-top: -30px; padding-bottom: 24px; }
  .home-page .filter-panel { min-height: 0; padding: 9px; }
  .home-page .tool-section { padding-bottom: 32px; }
  .home-page .tool-grid { gap: 10px; }
  .home-page .tool-card { min-height: 118px; padding: 18px 42px 18px 16px; }
  .home-page .tool-card .tool-icon { width: 44px; height: 44px; border-radius: 12px; }
  .home-page .info-grid { padding-bottom: 30px; }
  .home-page .history-grid { padding: 0; }
}

/* Calm homepage polish: simplify the signal field while preserving the existing interaction model. */
.home-page .hero {
  min-height: 300px;
  height: clamp(300px, 26vw, 360px);
  aspect-ratio: auto;
}

.home-page .hero-bg-video { opacity: 1; filter: none; transform: none; object-fit: cover; object-position: center center; }
.home-page .hero-glow { background: linear-gradient(90deg, rgba(4, 54, 67, .9) 0%, rgba(5, 73, 83, .72) 34%, rgba(7, 100, 108, .28) 58%, rgba(3, 43, 56, .05) 100%); }
.home-page .hero-inner { min-height: inherit; height: auto; padding: 26px 0 32px; }
.home-page .hero h1 { font-size: clamp(38px, 3.7vw, 56px); }
.home-page .hero-copy { margin: 14px 0 21px; }
.home-page .hero-command { width: min(600px, 100%); height: 54px; box-shadow: 0 14px 30px rgba(0, 22, 31, .2); }
.home-page .quick-links { margin-top: 14px; }

.home-page .filter-wrap { margin-top: -28px; padding-bottom: 26px; }
.home-page .filter-panel { min-height: 68px; box-shadow: 0 14px 30px rgba(16, 85, 94, .12); }
.home-page .tool-section { padding-bottom: 38px; }
.home-page .tool-grid { gap: 12px; }
.home-page .tool-card { min-height: 132px; box-shadow: 0 8px 20px rgba(21, 92, 101, .05); }
.home-page .tool-card:hover { box-shadow: 0 14px 28px rgba(20, 100, 108, .1); transform: translateY(-2px); }
.home-page .info-grid { padding-bottom: 36px; }
.home-page .content-list,
.home-page .sponsors,
.home-page .friends { box-shadow: 0 8px 22px rgba(21, 92, 101, .045); }

@media (max-width: 900px) {
  .home-page .hero,
  .home-page .hero-inner { min-height: 0; height: auto; }
  .home-page .hero { min-height: 280px; height: clamp(280px, 42vw, 340px); aspect-ratio: auto; }
  .home-page .hero-inner { min-height: inherit; }
}

@media (max-width: 620px) {
  .home-page .hero { min-height: 300px; height: auto; aspect-ratio: auto; }
  .home-page .hero-inner { min-height: inherit; height: auto; padding: 28px 0 36px; }
  .home-page .hero-command { height: auto; }
  .home-page .filter-wrap { margin-top: -26px; }
  .home-page .tool-card { min-height: 114px; }
}

/* Homepage tools: group the same diagnostic jobs before the user chooses a tool. */
.home-page .filter-wrap { margin-top: -24px; padding-bottom: 28px; }
.home-page .filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .filter-panel button,
.home-page .filter-panel a {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border-color: #d5e7e9;
  border-radius: 8px;
  color: #53717c;
  background: #fff;
  font-weight: 600;
}
.home-page .filter-panel button:hover,
.home-page .filter-panel a:hover { border-color: #9ed8d9; background: #effafa; }
.home-page .filter-panel button.selected,
.home-page .filter-panel a.selected { color: #fff; background: var(--brand-primary); box-shadow: 0 6px 14px rgba(8, 166, 166, .18); }

.home-page .tool-section { padding-bottom: 48px; }
.home-page .tool-grid { display: grid; grid-template-columns: 1fr; gap: 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home-page .tool-cluster { display: grid; grid-template-columns: 164px minmax(0, 1fr); overflow: hidden; border: 1px solid #d9eaeb; border-radius: 12px; background: rgba(255, 255, 255, .82); box-shadow: 0 9px 22px rgba(21, 92, 101, .05); }
.home-page .tool-cluster-head { display: flex; align-items: flex-start; padding: 22px 20px; background: #effafa; }
.home-page .tool-cluster-head strong { color: #157b80; font-size: 16px; font-weight: 700; line-height: 1.4; }
.home-page .tool-cluster.ipv6 .tool-cluster-head { background: #fff7ed; }
.home-page .tool-cluster.ipv6 .tool-cluster-head strong { color: #d78427; }
.home-page .tool-cluster.batch .tool-cluster-head { background: #fff3f5; }
.home-page .tool-cluster.batch .tool-cluster-head strong { color: #d75c6d; }
.home-page .tool-cluster-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 7px 12px; }
.home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .tool-card { min-height: 88px; padding: 16px 42px 16px 12px; border: 0; border-bottom: 1px solid #e5efef; border-radius: 8px; background: transparent; box-shadow: none; }
.home-page .tool-card:hover { border-color: #e5efef; background: #f4fbfb; box-shadow: none; transform: none; }
.home-page .tool-card .tool-icon { width: 40px; height: 40px; border-radius: 11px; background: #f2fbfb; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82); }
.home-page .tool-copy { gap: 4px; padding-right: 6px; }
.home-page .tool-copy strong { font-size: 15px; }
.home-page .tool-copy small { font-size: 12px; line-height: 1.55; }
.home-page .tool-card em { position: absolute; top: 13px; right: 12px; padding: 2px 5px; font-size: 10px; }
.home-page .card-arrow { top: auto; right: 14px; bottom: 14px; }
.home-page .tool-card:hover .card-arrow { transform: translateX(2px); }
.home-page .tool-cluster-list .tool-card:nth-last-child(-n + 3) { border-bottom-color: transparent; }
.home-page .tool-cluster-list[data-count="4"] .tool-card:nth-last-child(-n + 2) { border-bottom-color: transparent; }

@media (max-width: 900px) {
  .home-page .tool-cluster { grid-template-columns: 132px minmax(0, 1fr); }
  .home-page .tool-cluster-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-page .filter-wrap { margin-top: -26px; padding-bottom: 22px; }
  .home-page .filter-panel { gap: 4px; padding: 4px; }
  .home-page .filter-panel button,
.home-page .filter-panel a { min-height: 42px; padding: 0 6px; font-size: 12px; }
  .home-page .tool-section { padding-bottom: 34px; }
  .home-page .tool-grid { gap: 10px; }
  .home-page .tool-cluster { grid-template-columns: 1fr; border-radius: 10px; }
  .home-page .tool-cluster-head { padding: 13px 16px 10px; }
  .home-page .tool-cluster-head strong { font-size: 15px; }
  .home-page .tool-cluster-list,
  .home-page .tool-cluster-list[data-count="4"] { grid-template-columns: 1fr; padding: 0 12px 5px; }
  .home-page .tool-card { min-height: 86px; padding: 16px 38px 16px 4px; }
  .home-page .tool-card .tool-icon { width: 40px; height: 40px; }
  .home-page .tool-copy { padding-right: 4px; }
  .home-page .tool-copy small { font-size: 12px; }
  .home-page .tool-cluster-list .tool-card { border-bottom-color: #e5efef; }
  .home-page .tool-cluster-list .tool-card:last-child { border-bottom-color: transparent; }
}

/* Homepage layout reset: detection first, then a calm, grouped tool launchpad. */
.home-page { background: #f5fafa; }
.home-page .hero { min-height: 300px; height: clamp(300px, 26vw, 360px); aspect-ratio: auto; }
.home-page .hero-inner { min-height: inherit; height: auto; padding: 24px 0 30px; }
.home-page .hero h1 { font-size: clamp(38px, 3.4vw, 52px); }
.home-page .hero-copy { margin: 12px 0 20px; }
.home-page .hero-command { width: min(640px, 100%); }
.home-page .quick-links { margin-top: 13px; }

.home-page .filter-wrap { margin-top: 0; padding: 28px 0 24px; }
.home-page .filter-panel {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .filter-panel button,
.home-page .filter-panel a { min-height: 40px; border-radius: 7px; font-size: 13px; }
.home-page .filter-panel button.selected,
.home-page .filter-panel a.selected { box-shadow: none; }

.home-page .tool-section { padding-bottom: 48px; }
.home-page .tool-grid { gap: 30px; }
.home-page .tool-cluster {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .tool-cluster-head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0 12px 14px;
  border-bottom: 1px solid #d6e7e7;
  background: transparent;
}
.home-page .tool-cluster-head::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: var(--brand-primary);
  content: "";
}
.home-page .tool-cluster-head strong { color: #274759; font-size: 17px; font-weight: 700; }
.home-page .tool-cluster.ipv6 .tool-cluster-head { background: transparent; }
.home-page .tool-cluster.ipv6 .tool-cluster-head::before { background: #e2953c; }
.home-page .tool-cluster.ipv6 .tool-cluster-head strong { color: #274759; }
.home-page .tool-cluster.batch .tool-cluster-head { background: transparent; }
.home-page .tool-cluster.batch .tool-cluster-head::before { background: #dc7180; }
.home-page .tool-cluster.batch .tool-cluster-head strong { color: #274759; }
.home-page .tool-cluster-list { gap: 12px; padding: 14px 0 0; }
.home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .tool-card {
  min-height: 124px;
  padding: 21px 46px 20px 20px;
  border: 1px solid #dceced;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.home-page .tool-card:hover {
  border-color: #8fcecc;
  background: #fff;
  box-shadow: 0 12px 24px rgba(20, 100, 108, .08);
  transform: translateY(-2px);
}
.home-page .tool-card .tool-icon { width: 46px; height: 46px; border-radius: 12px; }
.home-page .tool-cluster.ipv6 .tool-icon { border-color: #f5d6ad; color: #d9872e; background: #fff8ef; }
.home-page .tool-cluster.batch .tool-icon { border-color: #f1cbd1; color: #d96676; background: #fff5f6; }
.home-page .tool-copy { gap: 6px; padding-right: 8px; }
.home-page .tool-copy strong { font-size: 16px; }
.home-page .tool-copy small { font-size: 13px; line-height: 1.58; }
.home-page .tool-card em { top: 17px; right: 15px; font-size: 11px; }
.home-page .card-arrow { right: 16px; bottom: 16px; }
.home-page .tool-cluster-list .tool-card,
.home-page .tool-cluster-list[data-count="4"] .tool-card { border-bottom: 1px solid #dceced; }

.home-page .info-grid { gap: 16px; padding-bottom: 42px; }
.home-page .content-list { border-color: #dcebed; border-radius: 10px; box-shadow: none; }
.home-page .history-section { border: 0; background: transparent; box-shadow: none; }

@media (max-width: 900px) {
  .home-page .tool-cluster-list,
  .home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-page .hero,
  .home-page .hero-inner { min-height: 0; }
  .home-page .hero { min-height: 300px; height: auto; aspect-ratio: auto; }
  .home-page .hero-inner { min-height: inherit; height: auto; padding: 28px 0 36px; }
  .home-page .filter-wrap { margin-top: 0; padding: 20px 0 20px; }
  .home-page .filter-panel { width: 100%; }
  .home-page .tool-section { padding-bottom: 34px; }
  .home-page .tool-grid { gap: 24px; }
  .home-page .tool-cluster-head { padding-bottom: 10px; }
  .home-page .tool-cluster-list,
  .home-page .tool-cluster-list[data-count="4"] { grid-template-columns: 1fr; gap: 8px; padding-top: 10px; }
  .home-page .tool-card { min-height: 108px; padding: 18px 40px 18px 16px; }
  .home-page .tool-card .tool-icon { width: 42px; height: 42px; }
  .home-page .tool-copy small { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .filter-panel button,
  .home-page .tool-card,
  .home-page .tool-card .tool-icon,
  .home-page .card-arrow,
.home-page .filter-panel a { transition: none; }
  .home-page .tool-card:hover { transform: none; }
}

/* Tool matrix: each protocol group fills its own row for a balanced, scanable launchpad. */
.home-page .tool-section { padding-bottom: 56px; }
.home-page .tool-grid { gap: 34px; }
.home-page .tool-cluster-head { min-height: 34px; padding: 0 0 13px 15px; }
.home-page .tool-cluster-head::before { top: 3px; width: 5px; height: 22px; }
.home-page .tool-cluster-head strong { font-size: 18px; letter-spacing: -.01em; }
.home-page .tool-cluster-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-top: 16px; }
.home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-page .tool-cluster-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-page .tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  min-height: 166px;
  padding: 20px;
  border-color: #d9e9ea;
  border-radius: 12px;
  background: #fff;
}
.home-page .tool-card::before { position: absolute; top: -1px; left: 20px; width: 38px; height: 2px; border-radius: 0 0 2px 2px; background: var(--brand-primary); content: ""; }
.home-page .tool-cluster.ipv6 .tool-card::before { background: #e2953c; }
.home-page .tool-cluster.batch .tool-card::before { background: #dc7180; }
.home-page .tool-card:hover { border-color: #81cac8; box-shadow: 0 12px 28px rgba(18, 83, 93, .1); transform: translateY(-3px); }
.home-page .tool-card .tool-icon { width: 44px; height: 44px; margin: 0; border-radius: 13px; }
.home-page .tool-copy { width: 100%; gap: 7px; padding: 0; }
.home-page .tool-copy strong { color: #1d4054; font-size: 16px; line-height: 1.3; }
.home-page .tool-copy small { display: block; overflow: visible; color: #6b8290; font-size: 13px; line-height: 1.6; -webkit-line-clamp: unset; }
.home-page .tool-card em { top: 18px; right: 15px; padding: 3px 6px; border-radius: 5px; font-size: 10px; }
.home-page .card-arrow { right: 17px; bottom: 16px; }
.home-page .tool-cluster-list .tool-card,
.home-page .tool-cluster-list[data-count="4"] .tool-card { border-bottom: 1px solid #d9e9ea; }

@media (max-width: 1100px) {
  .home-page .tool-cluster-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .tool-cluster-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-page .tool-section { padding-bottom: 36px; }
  .home-page .tool-grid { gap: 26px; }
  .home-page .tool-cluster-head strong { font-size: 16px; }
  .home-page .tool-cluster-list,
  .home-page .tool-cluster-list[data-count="4"],
  .home-page .tool-cluster-list[data-count="3"] { grid-template-columns: 1fr; gap: 9px; padding-top: 12px; }
  .home-page .tool-card { min-height: 120px; padding: 18px 16px; }
  .home-page .tool-copy { padding-right: 24px; }
  .home-page .tool-copy strong { font-size: 16px; }
  .home-page .tool-copy small { font-size: 12px; }
}

/* Compact tool shelves: one surface per category, with dense but readable launch rows. */
.home-page .tool-section { padding-bottom: 46px; }
.home-page .tool-grid { gap: 18px; }
.home-page .tool-cluster {
  overflow: hidden;
  border: 1px solid #d9e9ea;
  border-radius: 10px;
  background: #fff;
}
.home-page .tool-cluster-head {
  min-height: 46px;
  padding: 0 18px 0 16px;
  border-bottom: 1px solid #e3eeee;
  background: #fff;
}
.home-page .tool-cluster-head::before { top: 13px; width: 4px; height: 18px; }
.home-page .tool-cluster-head strong { font-size: 16px; }
.home-page .tool-cluster-list,
.home-page .tool-cluster-list[data-count="4"],
.home-page .tool-cluster-list[data-count="3"] {
  gap: 1px;
  padding: 0;
  background: #e3eeee;
}
.home-page .tool-cluster-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-page .tool-cluster-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-page .tool-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  min-height: 104px;
  padding: 17px 40px 16px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.home-page .tool-card::before { display: none; }
.home-page .tool-card:hover { border-color: transparent; background: #f5fbfb; box-shadow: none; transform: none; }
.home-page .tool-card .tool-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; }
.home-page .tool-copy { gap: 4px; padding: 0; }
.home-page .tool-copy strong { font-size: 15px; line-height: 1.35; }
.home-page .tool-copy small { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-page .tool-card em { top: 14px; right: 12px; font-size: 10px; }
.home-page .card-arrow { display: block; }
.home-page .tool-cluster-list .tool-card,
.home-page .tool-cluster-list[data-count="4"] .tool-card { border-bottom: 0; }

@media (max-width: 1100px) {
  .home-page .tool-cluster-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .tool-cluster-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-page .tool-grid { gap: 14px; }
  .home-page .tool-cluster-head { min-height: 42px; padding-left: 14px; }
  .home-page .tool-cluster-head::before { top: 12px; }
  .home-page .tool-cluster-list,
  .home-page .tool-cluster-list[data-count="4"],
  .home-page .tool-cluster-list[data-count="3"] { grid-template-columns: 1fr; }
  .home-page .tool-card { min-height: 84px; padding: 14px 38px 14px 14px; }
  .home-page .tool-card .tool-icon { width: 36px; height: 36px; }
  .home-page .tool-copy { padding-right: 4px; }
  .home-page .tool-copy small { -webkit-line-clamp: 1; }
}

/* Semantic tool shelf: category labels and counts carry meaning, not decorative color. */
.home-page .tool-grid { gap: 16px; }
.home-page .tool-cluster { border-color: #d9e5e7; border-radius: 9px; }
.home-page .tool-cluster-head { justify-content: space-between; min-height: 44px; padding: 0 16px; }
.home-page .tool-cluster-head::before { display: none; }
.home-page .tool-cluster-head strong,
.home-page .tool-cluster.ipv6 .tool-cluster-head strong,
.home-page .tool-cluster.batch .tool-cluster-head strong { color: #254255; font-size: 16px; }
.home-page .tool-cluster-head span { color: #758a96; font-size: 12px; }
.home-page .tool-cluster.ipv6 .tool-cluster-head,
.home-page .tool-cluster.batch .tool-cluster-head { background: #fff; }
.home-page .tool-cluster-list { background: #e4edef; }
.home-page .tool-card { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 36px; column-gap: 12px; align-items: start; min-height: 96px; padding: 15px 14px 25px; }
.home-page .tool-card .tool-icon,
.home-page .tool-cluster.ipv6 .tool-icon,
.home-page .tool-cluster.batch .tool-icon { width: 36px; height: 36px; border-color: #bfe0e2; color: var(--brand-primary); background: #f2fbfb; }
.home-page .tool-copy { display: contents; }
.home-page .tool-copy strong { grid-column: 2; align-self: start; padding-right: 40px; color: #254255; font-size: 15px; }
.home-page .tool-copy small {
  position: absolute;
  right: 14px;
  bottom: 10px;
  left: 14px;
  display: block;
  overflow: hidden;
  color: #708692;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-page .tool-card em,
.home-page .tool-card em.ipv6 { color: #39747b; background: #edf7f7; }
.home-page .tool-card em.batch { border-color: #f3c4ca; color: #d45a66; background: #fff1f3; }
.home-page .tool-card:hover { background: #f5fbfb; }

@media (max-width: 620px) {
  .home-page .tool-cluster-head { min-height: 42px; padding: 0 14px; }
  .home-page .tool-card { min-height: 78px; padding: 13px 14px 22px; }
  .home-page .tool-copy small { right: 14px; bottom: 8px; left: 14px; }
}

/* NetScope home system: primitives -> semantic roles -> reusable component surfaces. */
.home-page {
  --ns-ink-950: #092634;
  --ns-ink-800: #164356;
  --ns-teal-600: #078d98;
  --ns-teal-500: #09aab1;
  --ns-teal-100: #e8f8f8;
  --ns-slate-25: #fbfdfd;
  --ns-slate-50: #f5f9f9;
  --ns-slate-100: #eaf1f2;
  --ns-slate-200: #d9e5e7;
  --ns-slate-500: #6f8590;
  --ns-slate-800: #244556;
  --ns-radius-sm: 8px;
  --ns-radius-md: 12px;
  --ns-radius-lg: 18px;
  --home-canvas: var(--ns-slate-50);
  --home-surface: #fff;
  --home-ink: var(--ns-ink-950);
  --home-muted: var(--ns-slate-500);
  --home-line: var(--ns-slate-200);
  --home-action: var(--ns-teal-500);
  --home-action-strong: var(--ns-teal-600);
  --home-card-radius: var(--ns-radius-md);
  --home-control-height: 48px;
  --home-top-ink: #031820;
  background: var(--home-canvas);
  color: var(--home-ink);
}

.home-page .topbar {
  border-bottom: 0;
  background: var(--page);
  box-shadow: none;
}
.home-page .brandbar { height: 72px; }
.home-page .brand { gap: 11px; color: var(--home-ink); letter-spacing: .04em; }
.home-page .brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 12px rgba(8, 166, 166, .12); }
.home-page .brand small { margin-top: 2px; color: var(--home-muted); letter-spacing: .02em; }
.home-page .account-actions { gap: 8px; }
.home-page .account-actions button,
.home-page .account-actions a {
  min-height: 36px;
  border-radius: 8px;
  border-color: #c5dce0;
  color: #355662;
  background: #fff;
}
.home-page .account-actions button:hover,
.home-page .account-actions a:hover {
  border-color: var(--home-action);
  color: var(--home-action);
  background: #f4fbfb;
}
.home-page .account-actions .solid {
  border-color: var(--home-action);
  color: #fff;
  background: var(--home-action);
  box-shadow: none;
}
.home-page .account-actions .solid:hover { background: var(--home-action-strong); }
.home-page .navline {
  border-top: 0;
  border-bottom: 1px solid #0a3840;
  background: var(--nav-bar);
}
.home-page .nav-inner > button,
.home-page .nav-dropdown > button,
.home-page .nav-inner > a,
.home-page .nav-dropdown > a { color: #b7d5d8; }
.home-page .nav-inner > button:hover,
.home-page .nav-dropdown > button:hover,
.home-page .nav-dropdown.open > button,
.home-page .nav-inner > a:hover,
.home-page .nav-dropdown > a:hover,
.home-page .nav-dropdown.open > a {
  border-bottom-color: transparent;
  color: #8ff0ea;
  background: transparent;
}
.home-page .nav-inner > button.active,
.home-page .nav-dropdown > button.active,
.home-page .nav-inner > a.active,
.home-page .nav-dropdown > a.active {
  border-bottom-color: transparent;
  color: #8ff0ea;
  background: transparent;
}
.home-page .nav-inner > button.mode,
.home-page .nav-inner > a.mode {
  min-height: 32px;
  height: 32px;
  border-color: rgba(142, 214, 216, .45);
  color: #c7e6e8;
  background: transparent;
}
.home-page .nav-inner > button.mode:hover,
.home-page .nav-inner > a.mode:hover {
  border-color: var(--home-action);
  color: #fff;
  background: var(--home-action);
}

.home-page .hero { min-height: 0; height: auto; aspect-ratio: auto; background: var(--home-top-ink); }
.home-page .hero-bg { background: var(--home-top-ink); }
.home-page .hero-glow {
  background:
    linear-gradient(180deg, rgba(3, 24, 32, .35) 0%, rgba(3, 24, 32, .08) 40%, rgba(3, 24, 32, 0) 100%),
    linear-gradient(90deg, rgba(3, 24, 32, .42) 0%, rgba(3, 24, 32, .12) 46%, rgba(3, 24, 32, .04) 100%);
}
.home-page .hero-inner { min-height: inherit; height: auto; width: 100%; max-width: none; padding: 56px 0 28px; }
.home-page .eyebrow { display: none; }
.home-page .hero-speed { display: grid; gap: 12px; width: 100%; }
.mobile-core-tool-switch { display: none; }
.mobile-core-tool-shell { display: none; }
.home-page .hero-speed-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: stretch;
}
.home-page .hero-speed-target { height: 48px; background: #fff; }
.home-page .hero-speed-target svg { color: var(--home-action); }
.home-page .hero-speed-main .ping-action {
  min-width: 118px;
  min-height: 48px;
  padding: 0 16px;
}
.home-page .hero-speed-slow,
.home-page .hero-speed-advanced {
  display: inline-flex;
  min-width: 118px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #3d8f94;
  border-radius: var(--radius-md);
  color: #d7eeef;
  background: #0e4a52;
  font-size: 14px;
  font-weight: 600;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.home-page .hero-speed-slow:hover,
.home-page .hero-speed-advanced:hover,
.home-page .hero-speed-advanced.active {
  border-color: #5eb8bc;
  color: #8ff0ea;
  background: #136068;
}
.home-page .hero-speed-slow svg,
.home-page .hero-speed-advanced svg { width: 15px; height: 15px; }
.home-page .hero-speed-advanced svg { transition: transform .2s ease; }
.home-page .hero-speed-advanced.active svg { transform: rotate(180deg); }
.home-page .hero-speed-advanced-panel { margin-top: 0; }
.home-page .hero-speed-advanced-panel {
  border-color: rgba(143, 240, 234, .16);
  color: #b7d5d8;
  background: #021218;
}
.home-page .hero-speed-advanced-panel .website-advanced-label { color: #9ec7cb; }
.home-page .hero-speed-advanced-panel .website-advanced-radios label { color: #b7d5d8; }
.home-page .hero-speed-advanced-panel .website-advanced-radios label:has(input:checked) { color: #8ff0ea; }
.home-page .hero-speed-advanced-panel .website-advanced-radios input[type="radio"] {
  border-color: rgba(143, 240, 234, .35);
  background: #031820;
}
.home-page .hero-speed-advanced-panel .website-advanced-radios input[type="radio"]::after {
  background: #8ff0ea;
}
.home-page .hero-speed-advanced-panel .website-advanced-radios input[type="radio"]:hover,
.home-page .hero-speed-advanced-panel .website-advanced-radios input[type="radio"]:checked {
  border-color: #8ff0ea;
}
.home-page .hero-speed-advanced-panel .website-advanced-radios input[type="radio"]:checked {
  box-shadow: 0 0 0 3px rgba(143, 240, 234, .14);
}
.home-page .hero-speed-advanced-panel .website-advanced-radios input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(143, 240, 234, .28);
}
.home-page .hero-speed-advanced-panel .website-advanced-input {
  border-color: rgba(143, 240, 234, .22);
  color: #d7eeef;
  background: #031820;
}
.home-page .hero-speed-advanced-panel .website-advanced-input:focus {
  border-color: rgba(143, 240, 234, .55);
  box-shadow: 0 0 0 3px rgba(143, 240, 234, .12);
}
.home-page .hero-speed-advanced-panel .website-advanced-redirect p { color: #8fb8bc; }
.home-page .hero-speed-advanced-panel .website-advanced-redirect svg { color: #8fb8bc; }
.home-page .hero-speed-foot {
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid rgba(143, 240, 234, .12);
  border-radius: var(--radius-md);
  background: rgba(2, 18, 24, .42);
}
.home-page .hero-speed-foot-toggle { display: none; }
.home-page .hero-speed-foot-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-page .hero-speed-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}
.home-page .hero-speed-group > b {
  flex: none;
  color: #8fb8bc;
  font-size: 13px;
  font-weight: 650;
}
.home-page .hero-speed-group .region-checks {
  flex-wrap: nowrap;
  gap: 12px 14px;
}
.home-page .hero-speed-group .region-checks label {
  color: #b7d5d8;
}
.home-page .hero-speed-group .region-checks label:hover,
.home-page .hero-speed-group .region-checks label:has(input:checked) {
  color: #8ff0ea;
}
.home-page .hero-speed-foot input[type="checkbox"] {
  border-color: rgba(143, 240, 234, .32);
  background: rgba(3, 24, 32, .45);
}
.home-page .hero-speed-foot input[type="checkbox"]:hover {
  border-color: rgba(143, 240, 234, .55);
}
.home-page .hero-speed-foot input[type="checkbox"]:checked {
  border-color: var(--home-action);
  background: var(--home-action);
  box-shadow: none;
}
.home-page .hero-speed-dns-input {
  width: 132px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(143, 240, 234, .22);
  border-radius: var(--radius-sm);
  outline: 0;
  color: #d7eeef;
  background: rgba(3, 24, 32, .55);
  font-size: 12px;
}
.home-page .hero-speed-dns-input::placeholder {
  color: #6f9094;
}
.home-page .hero-speed-dns-input:disabled {
  color: #6f9094;
  background: rgba(3, 24, 32, .32);
}
.home-page .hero-speed-dns-input:focus {
  border-color: #8ff0ea;
  box-shadow: 0 0 0 3px rgba(143, 240, 234, .16);
}
.home-page .hero-speed-split {
  flex: none;
  width: 1px;
  align-self: stretch;
  margin: 6px 0;
  background: rgba(143, 240, 234, .16);
}

@media (max-width: 900px) {
  .mobile-core-tool-switch {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid #dcebed;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .mobile-core-tool-switch.is-hero {
    border-bottom-color: rgba(143, 240, 234, .16);
    background: transparent;
  }
  .mobile-core-tool-switch button,
.mobile-core-tool-switch a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 4px 9px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
    color: #6b8892;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
  }
  .mobile-core-tool-switch button svg,
.mobile-core-tool-switch a svg {
    flex: none;
    width: 13px;
    height: 13px;
    opacity: .82;
  }
  .mobile-core-tool-switch button span,
.mobile-core-tool-switch a span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-core-tool-switch.is-hero button,
.mobile-core-tool-switch.is-hero a {
    color: #8fb8bc;
  }
  .mobile-core-tool-switch button:hover,
.mobile-core-tool-switch a:hover {
    color: var(--brand-primary);
    background: transparent;
  }
  .mobile-core-tool-switch.is-hero button:hover,
.mobile-core-tool-switch.is-hero a:hover {
    color: #b7e8e4;
    background: transparent;
  }
  .mobile-core-tool-switch button.active,
.mobile-core-tool-switch a.active {
    border-bottom-color: var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
    box-shadow: none;
  }
  .mobile-core-tool-switch button.active svg,
.mobile-core-tool-switch a.active svg {
    opacity: 1;
  }
  .mobile-core-tool-switch.is-hero button.active,
.mobile-core-tool-switch.is-hero a.active {
    border-bottom-color: #8ff0ea;
    color: #8ff0ea;
    background: transparent;
    box-shadow: none;
  }
  .mobile-core-tool-switch.is-hero button.active svg,
.mobile-core-tool-switch.is-hero a.active svg {
    opacity: 1;
  }
  .mobile-core-tool-shell {
    display: block;
    margin-bottom: 10px;
  }
  .home-page .hero-inner { padding-top: 8px; }
  .home-page .hero-speed-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    overflow: hidden;
  }
  .home-page .hero-speed-foot-toggle {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 14px;
    border: 0;
    color: #c7e6e8;
    background: transparent;
    text-align: left;
  }
  .home-page .hero-speed-foot-toggle:focus-visible {
    outline: 2px solid #8ff0ea;
    outline-offset: -2px;
  }
  .home-page .hero-speed-foot-toggle-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
  }
  .home-page .hero-speed-foot-toggle-copy strong {
    color: #d7eeef;
    font-size: 13px;
    font-weight: 650;
  }
  .home-page .hero-speed-foot-toggle-copy small {
    overflow: hidden;
    color: #8fb8bc;
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-page .hero-speed-foot-toggle em {
    flex: none;
    color: #8ff0ea;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
  }
  .home-page .hero-speed-foot-toggle svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: #8fb8bc;
    transition: transform .18s ease;
  }
  .home-page .hero-speed-foot.is-open .hero-speed-foot-toggle svg {
    transform: rotate(180deg);
  }
  .home-page .hero-speed-foot:not(.is-open) .hero-speed-foot-body {
    display: none;
  }
  .home-page .hero-speed-foot.is-open .hero-speed-foot-body {
    padding: 2px 14px 12px;
    border-top: 1px solid rgba(143, 240, 234, .1);
  }
}

@media (max-width: 420px) {
  .mobile-core-tool-switch button,
  .mobile-core-tool-switch a {
    flex-direction: column;
    gap: 3px;
    min-height: 44px;
    padding: 6px 2px 8px;
  }
  .mobile-core-tool-switch button svg,
  .mobile-core-tool-switch a svg {
    display: block;
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-speed-foot-toggle svg { transition: none; }
}

.home-page .lead-ad-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 5px;
  margin-top: 20px;
}
.home-page .lead-ad-rail.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .lead-ad-slot {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  text-align: left;
  line-height: 0;
  transition: opacity .18s ease;
}
.home-page .lead-ad-slot:hover {
  opacity: .92;
}
.home-page .lead-ad-slot:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.home-page .lead-ad-slot svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--brand-primary);
}
.home-page .lead-ad-copy strong {
  display: block;
  color: #294b5a;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
}
.home-page .lead-ad-copy small {
  display: block;
  margin-top: 2px;
  color: #7b95a1;
  font-size: 11px;
  line-height: 1.35;
}
.home-page .lead-ad-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 4px;
  color: #6b8892;
  background: rgba(255, 255, 255, .88);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}

.home-page .filter-wrap { margin-top: 14px; padding: 0 0 24px; }
.home-page .filter-rail {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(217, 229, 231, .95);
  border-radius: var(--ns-radius-md, 10px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 53, 65, .1);
}
.home-page .filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  min-height: 0;
  height: auto;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page .filter-panel button,
.home-page .filter-panel a {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d5e7e9;
  border-radius: var(--ns-radius-sm, 6px);
  color: #4f6b76;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
}
.home-page .filter-panel button:hover,
.home-page .filter-panel a:hover {
  border-color: #9ed8d9;
  color: var(--home-action-strong, var(--brand-primary));
  background: #effafa;
}
.home-page .filter-panel button.selected,
.home-page .filter-panel a.selected {
  border-color: var(--home-action, var(--brand-primary));
  color: #fff;
  background: var(--home-action, var(--brand-primary));
  box-shadow: none;
}

.home-page .tool-section { padding-bottom: 48px; }

.home-page .mid-ad-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 5px;
  margin-top: -18px;
  margin-bottom: 28px;
}
.home-page .mid-ad-rail.is-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .mid-ad-rail.is-full { grid-template-columns: 1fr; }
.home-page .mid-ad-slot {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: #eef6f7;
  box-shadow: none;
  overflow: hidden;
  line-height: 0;
}
.home-page .mid-ad-slot:hover {
  opacity: .92;
}
.home-page .mid-ad-body {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: #5f8790;
  background: transparent;
  text-align: center;
  line-height: 0;
}
.home-page .mid-ad-body:hover {
  opacity: .92;
}
.home-page .mid-ad-body svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: #6bbfc2;
}
.home-page .mid-ad-body strong {
  color: #254255;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.home-page .mid-ad-body span:not(.mid-ad-badge) {
  display: none;
}
.home-page .mid-ad-body small {
  color: #9aafb7;
  font: 11px "DM Mono", monospace;
  white-space: nowrap;
}
.home-page .mid-ad-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #7a909c;
  background: rgba(255, 255, 255, .88);
  box-shadow: none;
  line-height: 0;
  transform: none;
  transition: color .16s ease, background .16s ease;
}
.home-page .mid-ad-close:hover {
  color: #254255;
  background: #e8f4f4;
}
.home-page .mid-ad-close:focus-visible {
  outline: 2px solid var(--home-action, #09aab1);
  outline-offset: 1px;
}
.home-page .mid-ad-close svg {
  display: block;
  width: 14px;
  height: 14px;
  flex: none;
}

@media (max-width: 900px) {
  /* Homepage leaderboard ads are desktop-only; 通栏一张在窄屏仍显示 */
  .home-page .lead-ad-rail,
  .home-page .mid-ad-rail:not(.is-full) {
    display: none;
  }
}

.home-page .tool-grid { gap: 12px; }
.home-page .tool-cluster {
  overflow: hidden;
  border: 1px solid #e5eaeb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 61, 74, .04);
}
.home-page .tool-cluster-head,
.home-page .tool-cluster.ipv6 .tool-cluster-head,
.home-page .tool-cluster.batch .tool-cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #eef2f3;
  background: #fff;
}
.home-page .tool-cluster-head::before { display: none; }
.home-page .tool-cluster-head strong,
.home-page .tool-cluster.ipv6 .tool-cluster-head strong,
.home-page .tool-cluster.batch .tool-cluster-head strong { color: #1f2937; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.home-page .tool-cluster-head span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #6b7280;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}
.home-page .tool-cluster-list,
.home-page .tool-cluster-list[data-count="4"],
.home-page .tool-cluster-list[data-count="3"] { gap: 0; padding: 0; background: #fff; }
.home-page .tool-cluster-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-page .tool-cluster-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-page .tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: 40px auto;
  align-items: start;
  gap: 8px 12px;
  min-height: 96px;
  padding: 16px 14px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  text-align: left;
  transition: background .18s ease;
}
.home-page .tool-card::before { display: none; }
.home-page .tool-card:not(:last-child)::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: #eef2f3;
  content: "";
  pointer-events: none;
}
.home-page .tool-card .tool-icon,
.home-page .tool-cluster.ipv6 .tool-icon,
.home-page .tool-cluster.batch .tool-icon {
  grid-row: 1;
  grid-column: 1;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid #d1ecee;
  border-radius: 8px;
  color: #0891b2;
  background: #ecf9f9;
  box-shadow: none;
  transform: none;
}
.home-page .tool-card .tool-icon svg { width: 20px; height: 20px; }
.home-page .tool-head {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  height: 40px;
  overflow: hidden;
}
.home-page .tool-head strong {
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.home-page .tool-head em,
.home-page .tool-head em.ipv6 {
  flex: none;
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  color: #6b7280;
  background: #f9fafb;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.home-page .tool-head em.batch {
  border-color: #f3c4ca;
  color: #d45a66;
  background: #fff1f3;
}
.home-page .tool-desc {
  grid-row: 2;
  grid-column: 1 / -1;
  overflow: hidden;
  margin: 0;
  padding-right: 22px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-page .card-arrow {
  position: absolute;
  right: 12px;
  bottom: 14px;
  display: block;
  width: 16px;
  height: 16px;
  color: #7aa8ad;
  opacity: .72;
  pointer-events: none;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.home-page .tool-card:hover {
  background: #f0fafa;
  box-shadow: none;
  transform: none;
}
.home-page .tool-card:hover .card-arrow {
  color: var(--brand-primary);
  opacity: 1;
  transform: translateX(2px);
}
.home-page .tool-card:hover .tool-icon {
  border-color: #09aab1;
  color: #fff;
  background: #09aab1;
  box-shadow: none;
  transform: none;
}
.home-page .tool-card:focus-visible { outline-color: var(--home-action); outline-offset: -3px; }

.home-page .info-grid { gap: 16px; padding-bottom: 44px; }
.home-page .content-list,
.home-page .sponsors,
.home-page .friends {
  border-color: var(--home-line);
  border-radius: var(--home-card-radius);
  box-shadow: 0 8px 22px rgba(15, 61, 74, .04);
}
.home-page .section-heading { min-height: 54px; padding: 0 18px; border-bottom-color: var(--ns-slate-100); }
.home-page .section-heading span { color: var(--home-ink); font-size: 15px; font-weight: 700; }
.home-page .section-heading span b { color: var(--home-action-strong); }
.home-page .sponsors .section-heading span,
.home-page .friends .section-heading span { padding-left: 0; border-left: 0; }
.home-page .section-heading button,
.home-page .section-heading a { color: var(--home-muted); font-weight: 600; }
.home-page .section-heading button:hover,
.home-page .section-heading a:hover { color: var(--home-action-strong); }
.home-page .content-feature { margin: 14px 16px 0; border-radius: var(--ns-radius-sm); background: var(--ns-slate-50); }
.home-page .content-list li:hover { background: var(--ns-slate-50); }
.home-page .history-section { margin-bottom: 40px; border: 0; background: transparent; box-shadow: none; }
.home-page .history-shell { border-color: var(--home-line); border-radius: var(--home-card-radius); box-shadow: 0 8px 22px rgba(15, 61, 74, .04); }
.home-page .history-shell-head h2 { color: var(--home-ink); }
.home-page .history-grid { gap: 0; padding: 0; }
.home-page .history-panel { border-right-color: var(--ns-slate-100); border-radius: 0; box-shadow: none; background: transparent; }
.home-page .ad-note { border-color: #bfe1e2; border-radius: var(--ns-radius-sm); background: var(--ns-slate-50); }
.home-page .sponsor-grid button,
.home-page .sponsor-grid a { border-color: var(--home-line); border-radius: var(--ns-radius-sm); background: var(--ns-slate-25); }
.home-page .sponsor-grid button:hover,
.home-page .friends button:hover,
.home-page .sponsor-grid a:hover,
.home-page .friends a:hover { color: var(--home-action-strong); border-color: #a8d7d8; background: var(--ns-teal-100); }
.home-page .friends button,
.home-page .friends a { border-color: var(--home-line); border-radius: 999px; color: var(--ns-slate-800); background: var(--ns-slate-25); }
.home-page footer { border-top-color: var(--home-line); background: var(--ns-ink-950); }
.home-page footer,
.home-page footer p,
.home-page footer nav,
.home-page footer span,
.home-page footer a,
.home-page footer button { color: #a6c3c5; }
.home-page footer a:hover,
.home-page footer button:hover { color: #8ff0ea; }

@media (max-width: 1100px) {
  .home-page .hero-speed-foot-body { flex-wrap: wrap; gap: 10px 12px; }
  .home-page .hero-speed-split { display: none; }
  .home-page .hero-speed-group { width: 100%; }
  .home-page .hero-speed-group .region-checks { flex-wrap: wrap; }
  .home-page .tool-cluster-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .tool-cluster-list[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .tool-cluster-list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .tool-cluster-list,
  .home-page .tool-cluster-list[data-count="4"],
  .home-page .tool-cluster-list[data-count="3"] { gap: 1px; background: #e8f0f1; }
  .home-page .tool-card:not(:last-child)::after { display: none; }
}

@media (max-width: 620px) {
  .home-page .brandbar { height: 64px; }
  .home-page .brand img { width: 36px; height: 36px; }
  .home-page .hero,
  .home-page .hero-inner { min-height: 0; }
  .home-page .hero { min-height: 0; height: auto; aspect-ratio: auto; }
  .home-page .hero-inner { min-height: 0; height: auto; padding: 8px 0 20px; }
  .home-page .hero-speed-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .home-page .hero-speed-target {
    grid-column: 1 / -1;
    height: 44px;
  }
  .home-page .hero-speed-main .ping-action,
  .home-page .hero-speed-slow,
  .home-page .hero-speed-advanced {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 6px;
    font-size: 13px;
    gap: 4px;
  }
  .home-page .hero-speed-slow svg,
  .home-page .hero-speed-advanced svg,
  .home-page .hero-speed-main .ping-action svg {
    width: 14px;
    height: 14px;
  }
  .home-page .hero-speed-advanced-panel {
    overflow: hidden;
  }
  .home-page .hero-speed-foot-body { flex-wrap: wrap; gap: 12px; }
  .home-page .hero-speed-split { display: none; }
  .home-page .hero-speed-group { flex-wrap: wrap; width: 100%; }
  .home-page .hero-speed-group .region-checks { flex-wrap: wrap; }
  .home-page .filter-wrap { margin-top: 12px; padding: 0 0 20px; }
  .home-page .filter-rail { padding: 10px; }
  .home-page .filter-panel {
    width: 100%;
    min-height: 0;
    gap: 6px;
  }
  .home-page .filter-panel button,
.home-page .filter-panel a { min-height: 40px; padding: 0 6px; font-size: 12px; }
  .home-page .tool-section { padding-bottom: 34px; }
  .home-page .ad-note { height: 52px; margin: 12px; font-size: 12px; }
  .home-page .tool-grid { gap: 10px; }
  .home-page .tool-cluster { border-radius: 10px; }
  .home-page .tool-cluster-head { min-height: 40px; padding: 0 14px; }
  .home-page .tool-cluster-list,
  .home-page .tool-cluster-list[data-count="4"],
  .home-page .tool-cluster-list[data-count="3"] { grid-template-columns: 1fr; }
  .home-page .tool-card { grid-template-rows: 36px auto; min-height: 88px; padding: 14px 12px 28px; gap: 7px 10px; }
  .home-page .tool-card:not(:last-child)::after { display: none; }
  .home-page .tool-card .tool-icon { width: 36px; height: 36px; }
  .home-page .tool-card .tool-icon svg { width: 18px; height: 18px; }
  .home-page .tool-head { height: 36px; }
  .home-page .tool-head strong { font-size: 14px; }
  .home-page .card-arrow { right: 10px; bottom: 12px; }
  .home-page .info-grid { padding-bottom: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .tool-card,
  .home-page .tool-card .tool-icon,
  .home-page .filter-panel button,
.home-page .filter-panel a { transition: none; }
}

/* —— Dark theme (teal ink family) —— */
html[data-theme="dark"] {
  color-scheme: dark;
  /* Soft ink continuum: one step lower text, muted teal accents (less glare) */
  --brand-primary: #2a9e9a;
  --brand-primary-hover: #34ada9;
  --brand-primary-active: #228886;
  --brand-soft: rgba(42, 158, 154, .14);
  --brand-line: #1a454a;
  --ink: #b6cbcf;
  --muted: #7d969c;
  --line: #1a333a;
  --surface: #0c1a20;
  --page: #061014;
  --nav-bar: #04161c;
  --lat-fast-a: #348f7c;
  --lat-fast-b: #2a7a6c;
  --lat-medium-a: #a88848;
  --lat-medium-b: #8f7238;
  --lat-slow-a: #a87452;
  --lat-slow-b: #8f5e42;
  --lat-timeout-a: #a87078;
  --lat-timeout-b: #8f5860;
  --dark-text: #b6cbcf;
  --dark-text-strong: #c5d8db;
  --dark-text-soft: #7d969c;
  --dark-accent: #6eb8b4;
  --dark-accent-soft: #5a9e9a;
  --dark-input-bg: #153038;
  --dark-input-border: #3d626a;
  --dark-input-border-focus: #4f9a94;
  --dark-input-placeholder: #6d878e;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .topbar {
  background: var(--page);
  color: var(--ink);
}

html[data-theme="dark"] .brand { color: var(--dark-text-strong); }
html[data-theme="dark"] .brand small { color: var(--muted); }

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .account-actions button:not(.solid),
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .account-actions a:not(.solid) {
  border-color: #243e46;
  color: var(--dark-text);
  background: #0e1f26;
}
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .account-actions button:not(.solid):hover,
html[data-theme="dark"] .menu-toggle:hover,
html[data-theme="dark"] .account-actions a:not(.solid):hover {
  border-color: var(--brand-primary);
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .theme-toggle[aria-pressed="true"] {
  background: var(--brand-soft);
}
html[data-theme="dark"] .account-actions .solid,
html[data-theme="dark"] .mobile-nav-foot .solid {
  border-color: var(--brand-primary);
  color: #061014;
  background: var(--brand-primary);
  box-shadow: none;
}
html[data-theme="dark"] .account-actions .solid:hover {
  background: var(--brand-primary-hover);
}

html[data-theme="dark"] .navline {
  border-bottom-color: #0a2830;
  background: var(--nav-bar);
}
html[data-theme="dark"] .nav-inner > button,
html[data-theme="dark"] .nav-inner > a {
  color: #8aa3a8;
}
html[data-theme="dark"] .nav-inner > button:hover,
html[data-theme="dark"] .nav-inner > button.active,
html[data-theme="dark"] .nav-inner > a:hover,
html[data-theme="dark"] .nav-inner > a.active {
  color: var(--dark-accent);
}
html[data-theme="dark"] .nav-inner > button.mode,
html[data-theme="dark"] .nav-inner > a.mode {
  border-color: rgba(110, 184, 180, .4);
  color: #c5d8db;
  background: transparent;
}
html[data-theme="dark"] .nav-inner > button.mode:hover,
html[data-theme="dark"] .nav-inner > a.mode:hover {
  border-color: var(--brand-primary);
  color: #061014;
  background: var(--brand-primary);
}
html[data-theme="dark"] .home-page .nav-inner > button.mode:hover,
html[data-theme="dark"] .home-page .nav-inner > a.mode:hover {
  border-color: var(--brand-primary);
  color: #061014;
  background: var(--brand-primary);
}
html[data-theme="dark"] .nav-dropdown-menu {
  border-color: #234650;
  background: #10242c;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .nav-dropdown-menu::before {
  border-top-color: #234650;
  border-left-color: #234650;
  background: #10242c;
}
html[data-theme="dark"] .nav-dropdown-menu button,
html[data-theme="dark"] .nav-dropdown-menu a {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .nav-dropdown-menu button:hover,
html[data-theme="dark"] .nav-dropdown-menu a:hover {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .nav-dropdown-menu button svg,
html[data-theme="dark"] .nav-dropdown-menu a svg {
  color: var(--muted);
}
html[data-theme="dark"] .nav-dropdown-menu button:hover svg,
html[data-theme="dark"] .nav-dropdown-menu a:hover svg {
  color: var(--dark-accent);
}
html[data-theme="dark"] .nav-dropdown-menu button i,
html[data-theme="dark"] .nav-dropdown-menu a i {
  color: #c07a82;
  background: rgba(168, 98, 106, .18);
}
html[data-theme="dark"] .webmaster-menu-col h4,
html[data-theme="dark"] .nav-dropdown-menu.is-webmaster .webmaster-menu-col h4 {
  color: #c5d8db !important;
}
html[data-theme="dark"] .webmaster-menu-col h4::before,
html[data-theme="dark"] .nav-dropdown-menu.is-webmaster .webmaster-menu-col h4::before {
  background: var(--dark-accent);
}
html[data-theme="dark"] .mobile-nav-group-label {
  color: var(--muted);
}

html[data-theme="dark"] .mobile-nav-backdrop { background: rgba(2, 10, 14, .72); }
html[data-theme="dark"] .mobile-nav-drawer {
  background: #0c1c22;
  border-left: 1px solid #1e3a42;
  box-shadow: -16px 0 40px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .mobile-nav-head,
html[data-theme="dark"] .mobile-nav-foot {
  border-color: #1e3a42;
}
html[data-theme="dark"] .mobile-nav-close {
  color: var(--muted);
  background: transparent;
}
html[data-theme="dark"] .mobile-nav-close:hover {
  color: #6eb8b4;
  background: rgba(42, 158, 154, .1);
}
/* One idle/active recipe for leaf links + accordion heads */
html[data-theme="dark"] .mobile-nav-list > button,
html[data-theme="dark"] .mobile-nav-group > button,
/* One idle/active recipe for leaf links + accordion heads */
html[data-theme="dark"] .mobile-nav-list > a,
html[data-theme="dark"] .mobile-nav-group > a {
  border-bottom-color: #1e3a42;
  color: #c5d8db;
  background: transparent;
}
html[data-theme="dark"] .mobile-nav-list > button:hover,
html[data-theme="dark"] .mobile-nav-group > button:hover,
html[data-theme="dark"] .mobile-nav-list > a:hover,
html[data-theme="dark"] .mobile-nav-group > a:hover {
  color: #6eb8b4;
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .mobile-nav-list > button.active,
html[data-theme="dark"] .mobile-nav-group > button.active,
html[data-theme="dark"] .mobile-nav-list > a.active,
html[data-theme="dark"] .mobile-nav-group > a.active {
  color: #6eb8b4;
  background: rgba(42, 158, 154, .08);
}
html[data-theme="dark"] .mobile-nav-list svg,
html[data-theme="dark"] .mobile-nav-group > button svg,
html[data-theme="dark"] .mobile-nav-group > a svg {
  color: #6eb8b4;
}
html[data-theme="dark"] .mobile-nav-group > button svg:last-child,
html[data-theme="dark"] .mobile-nav-group > a svg:last-child {
  color: var(--muted);
}
html[data-theme="dark"] .mobile-nav-sub {
  border-color: transparent;
  color: #b0c6ca;
  background: #0a171d;
}
html[data-theme="dark"] .mobile-nav-sub:hover {
  color: #6eb8b4;
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .mobile-nav-sub i {
  border-color: rgba(42, 158, 154, .35);
  color: #6eb8b4;
  background: rgba(42, 158, 154, .12);
}
html[data-theme="dark"] .mobile-nav-foot button:not(.solid),
html[data-theme="dark"] .mobile-nav-foot a:not(.solid) {
  border-color: #2a4a52;
  color: #c5d8db;
  background: #10242c;
}
html[data-theme="dark"] .mobile-nav-foot button:not(.solid):hover,
html[data-theme="dark"] .mobile-nav-foot a:not(.solid):hover {
  border-color: #6eb8b4;
  color: #6eb8b4;
}
html[data-theme="dark"] .mobile-nav-foot .theme-toggle.is-mobile-foot {
  border-color: #2a4a52;
  color: #c5d8db;
  background: #10242c;
}
html[data-theme="dark"] .mobile-nav-foot .theme-toggle.is-mobile-foot:hover {
  border-color: #6eb8b4;
  color: #6eb8b4;
}

html[data-theme="dark"] .ping-page,
html[data-theme="dark"] main:not(.home-page) {
  background: var(--page);
  color: var(--ink);
}

html[data-theme="dark"] .ping-card,
html[data-theme="dark"] .content-list,
html[data-theme="dark"] .sponsors,
html[data-theme="dark"] .friends,
html[data-theme="dark"] .ping-control-panel,
html[data-theme="dark"] .ws-workspace-card,
html[data-theme="dark"] .ws-ad-panel,
html[data-theme="dark"] .ws-ad-mosaic,
html[data-theme="dark"] .ip-lookup-section,
html[data-theme="dark"] .findping-card,
html[data-theme="dark"] .settings-shell,
html[data-theme="dark"] .settings-panel,
html[data-theme="dark"] .settings-action-bar,
html[data-theme="dark"] .json-workspace-card,
html[data-theme="dark"] .batch-result-card,
html[data-theme="dark"] .intercept-live-card,
html[data-theme="dark"] .intercept-result-card,
html[data-theme="dark"] .intercept-mode-strip,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .history-shell,
html[data-theme="dark"] .tcp-result-card,
html[data-theme="dark"] .website-result-card,
html[data-theme="dark"] .website-resolver-card,
html[data-theme="dark"] .resolver-card,
html[data-theme="dark"] .regional-card,
html[data-theme="dark"] .coverage-card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
  color: var(--ink);
}

html[data-theme="dark"] .ping-breadcrumb,
html[data-theme="dark"] .ping-breadcrumb strong,
html[data-theme="dark"] .ping-section-heading span,
html[data-theme="dark"] .section-heading span,
html[data-theme="dark"] .ip-lookup-section-head strong,
html[data-theme="dark"] .ws-section-head strong {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .ping-breadcrumb button,
html[data-theme="dark"] .ping-breadcrumb span,
html[data-theme="dark"] .ping-section-heading small,
html[data-theme="dark"] .ip-lookup-section-head span,
html[data-theme="dark"] .ws-section-head span,
html[data-theme="dark"] .ping-breadcrumb a {
  color: var(--muted);
}

html[data-theme="dark"] .ping-section-heading,
html[data-theme="dark"] .ping-result-toolbar,
html[data-theme="dark"] .batch-result-head,
html[data-theme="dark"] .ws-panel-head,
html[data-theme="dark"] .ws-note-block,
html[data-theme="dark"] .tcp-result-card .ping-result-toolbar,
html[data-theme="dark"] .website-result-card .ping-result-toolbar,
html[data-theme="dark"] .trace-result-toolbar {
  border-color: var(--line);
  background: transparent;
}

/* Dark inputs: one field recipe; nested shell inputs must beat global input:not() */
html[data-theme="dark"] .ping-target,
html[data-theme="dark"] .dns-type-trigger,
html[data-theme="dark"] .tcp-port-control,
html[data-theme="dark"] .website-advanced-input,
html[data-theme="dark"] .ip-lookup-search input,
html[data-theme="dark"] .findping-search input,
html[data-theme="dark"] .ws-search,
html[data-theme="dark"] .batch-target-textarea,
html[data-theme="dark"] .sitecheck-target,
html[data-theme="dark"] .intercept-target,
html[data-theme="dark"] .batch-node-search,
html[data-theme="dark"] .node-search-input,
html[data-theme="dark"] .json-workspace-card textarea,
html[data-theme="dark"] .json-workspace-card input,
html[data-theme="dark"] .dns-choice > input,
html[data-theme="dark"] .tcp-dns-choice > input,
html[data-theme="dark"] .hero-speed-dns-input,
html[data-theme="dark"] .home-page .hero-speed-dns-input,
html[data-theme="dark"] .home-page .hero-speed-target,
html[data-theme="dark"] .home-page .hero-speed-advanced-panel .website-advanced-input,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  border: 1px solid var(--dark-input-border);
  color: var(--dark-text-strong);
  background: var(--dark-input-bg);
  box-shadow: none;
}
html[data-theme="dark"] .dns-type-trigger {
  color: var(--dark-accent);
}
html[data-theme="dark"] .dns-type-trigger b {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .dns-type-trigger svg:last-child {
  color: var(--muted);
}
html[data-theme="dark"] .dns-type-select.open .dns-type-trigger,
html[data-theme="dark"] .dns-type-trigger:focus-visible {
  border-color: var(--dark-input-border-focus);
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .dns-type-select.open .dns-type-trigger svg:last-child {
  color: var(--dark-accent);
}
html[data-theme="dark"] .dns-type-menu {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .dns-type-menu button,
html[data-theme="dark"] .dns-type-menu a {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .dns-type-menu button:hover,
html[data-theme="dark"] .dns-type-menu a:hover {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .dns-type-menu button.selected,
html[data-theme="dark"] .dns-type-menu a.selected {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .dns-type-menu button svg,
html[data-theme="dark"] .dns-type-menu a svg {
  color: var(--dark-accent);
}
html[data-theme="dark"] .ping-target,
html[data-theme="dark"] .ws-search,
html[data-theme="dark"] .sitecheck-target,
html[data-theme="dark"] .intercept-target,
html[data-theme="dark"] .home-page .hero-speed-target {
  color: var(--dark-accent);
}
html[data-theme="dark"] .ping-target input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .ws-search input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .sitecheck-target input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .intercept-target input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .hero-speed-target input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .home-page .hero-speed-target input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .batch-node-search input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .node-search-input input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] .tcp-port-control input:not([type="checkbox"]):not([type="radio"]) {
  border: 0 !important;
  color: var(--dark-text-strong);
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
}
html[data-theme="dark"] .tcp-port-control span {
  color: var(--muted);
}
/* Standalone command inputs (not nested shells): keep visible chrome */
html[data-theme="dark"] .ip-lookup-search input,
html[data-theme="dark"] .findping-search input {
  border: 1px solid var(--dark-input-border) !important;
  color: var(--dark-text-strong);
  background: var(--dark-input-bg) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .ip-lookup-search input:focus,
html[data-theme="dark"] .findping-search input:focus {
  border-color: var(--dark-input-border-focus) !important;
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14) !important;
}
html[data-theme="dark"] .ip-local-network-col p {
  color: var(--dark-text);
}
html[data-theme="dark"] .ip-local-network-col span {
  color: var(--muted);
}
html[data-theme="dark"] .ip-local-network-col b {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .ip-local-ip-btn {
  color: var(--dark-accent);
}
html[data-theme="dark"] .ip-local-ip-btn:hover {
  color: var(--dark-accent-soft);
}
html[data-theme="dark"] .ip-local-priority {
  border-color: rgba(42, 140, 120, .35);
  color: #6fa896;
  background: rgba(42, 140, 120, .14);
}
html[data-theme="dark"] .ip-route-row {
  border-top-color: var(--line);
}
html[data-theme="dark"] .ip-route-label {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .ip-route-meta p {
  color: var(--muted);
}
html[data-theme="dark"] .ip-route-meta b {
  color: var(--dark-text);
}
html[data-theme="dark"] .ip-leak-body {
  color: var(--muted);
}
html[data-theme="dark"] .feedback-stat-card {
  border-color: var(--line);
  background: var(--surface);
}
html[data-theme="dark"] .feedback-stat-card > span {
  color: var(--muted);
}
html[data-theme="dark"] .feedback-stat-card > b {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .feedback-stat-card > small {
  color: var(--dark-accent-soft);
}
html[data-theme="dark"] .feedback-stat-card > small.muted {
  color: var(--muted);
}
html[data-theme="dark"] .feedback-field {
  color: var(--muted);
}
html[data-theme="dark"] .feedback-field input {
  border-color: var(--dark-input-border);
  color: var(--dark-text-strong);
  background: var(--dark-input-bg);
}
html[data-theme="dark"] .feedback-field input:focus {
  border-color: var(--dark-input-border-focus);
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .feedback-guide {
  border-color: rgba(61, 98, 106, .55);
  background: #0a171d;
  color: var(--muted);
}
html[data-theme="dark"] .feedback-guide li::marker {
  color: var(--dark-accent);
}
html[data-theme="dark"] .feedback-search-bar {
  border-bottom-color: var(--line);
  background: #0a171d;
}
html[data-theme="dark"] .feedback-search {
  border-color: var(--dark-input-border);
  background: var(--dark-input-bg);
}
html[data-theme="dark"] .feedback-search:focus-within {
  border-color: var(--dark-input-border-focus);
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .feedback-search svg {
  color: var(--muted);
}
html[data-theme="dark"] .feedback-search input {
  border: 0 !important;
  color: var(--dark-text-strong);
  background: transparent !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .feedback-search-result {
  border-color: rgba(42, 140, 120, .35);
  background: rgba(42, 140, 120, .12);
  color: #6fa896;
}
html[data-theme="dark"] .feedback-search-result.pending {
  border-color: rgba(184, 151, 74, .35);
  background: rgba(184, 151, 74, .12);
  color: #b8974a;
}
html[data-theme="dark"] .feedback-search-result.rejected,
html[data-theme="dark"] .feedback-search-result.empty {
  border-color: rgba(168, 98, 106, .35);
  background: rgba(168, 98, 106, .12);
  color: #c07a82;
}
html[data-theme="dark"] .feedback-entry {
  border-color: var(--line);
  background: #0e1f26;
}
html[data-theme="dark"] .feedback-entry:hover {
  border-color: rgba(42, 158, 154, .4);
  background: rgba(42, 158, 154, .08);
}
html[data-theme="dark"] .feedback-entry-main p {
  color: var(--dark-text);
}
html[data-theme="dark"] .feedback-range {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .feedback-entry-updated,
html[data-theme="dark"] .feedback-entry-meta {
  color: var(--muted) !important;
}
html[data-theme="dark"] .feedback-status.pending,
html[data-theme="dark"] .feedback-status.warning {
  color: #b8974a;
  background: rgba(184, 151, 74, .14);
}
html[data-theme="dark"] .feedback-status.approved,
html[data-theme="dark"] .feedback-status.success {
  color: #6fa896;
  background: rgba(42, 140, 120, .16);
}
html[data-theme="dark"] .feedback-status.rejected,
html[data-theme="dark"] .feedback-status.danger {
  color: #c07a82;
  background: rgba(168, 98, 106, .16);
}
html[data-theme="dark"] .feedback-pagination {
  border-top-color: var(--line);
  color: var(--muted);
}
html[data-theme="dark"] .feedback-pagination button,
html[data-theme="dark"] .feedback-pagination a {
  border-color: var(--line);
  color: var(--dark-text);
  background: #0e1f26;
}
html[data-theme="dark"] .feedback-pagination button:hover:not(:disabled),
html[data-theme="dark"] .feedback-pagination a:hover:not(:disabled) {
  border-color: var(--dark-accent);
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .feedback-pagination input {
  border-color: var(--dark-input-border);
  color: var(--dark-text-strong);
  background: var(--dark-input-bg);
}
html[data-theme="dark"] .maintenance-summary {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}
html[data-theme="dark"] .maintenance-summary-card {
  border-right-color: var(--line);
  background: var(--surface);
}
html[data-theme="dark"] .maintenance-summary-card:hover {
  background: rgba(42, 158, 154, .08);
}
html[data-theme="dark"] .maintenance-summary-card.active {
  background: rgba(42, 158, 154, .12);
}
html[data-theme="dark"] .maintenance-summary-copy b {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .maintenance-summary-copy > span {
  color: var(--muted);
}
html[data-theme="dark"] .maintenance-summary-card.active .maintenance-summary-copy b {
  color: var(--dark-accent);
}
html[data-theme="dark"] .maintenance-summary-icon.all {
  color: var(--dark-accent-soft);
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .maintenance-summary-icon.feature,
html[data-theme="dark"] .maintenance-summary-icon.update {
  color: #b09af0;
  background: rgba(124, 92, 219, .18);
}
html[data-theme="dark"] .maintenance-summary-icon.node,
html[data-theme="dark"] .maintenance-summary-icon.add {
  color: #7eb4f5;
  background: rgba(43, 125, 233, .18);
}
html[data-theme="dark"] .maintenance-summary-icon.fix {
  color: #f0b24a;
  background: rgba(224, 138, 0, .18);
}
html[data-theme="dark"] .maintenance-summary-icon.optimize {
  color: #4ecb80;
  background: rgba(26, 159, 85, .18);
}
html[data-theme="dark"] .maintenance-summary-icon.delete,
html[data-theme="dark"] .maintenance-summary-icon.security {
  color: #f07a84;
  background: rgba(224, 75, 87, .18);
}
html[data-theme="dark"] .maintenance-summary-icon.plan {
  color: #8a9aa0;
  background: rgba(120, 140, 148, .16);
}
html[data-theme="dark"] .maintenance-group-head {
  border-bottom-color: var(--line);
  background: var(--surface);
}
html[data-theme="dark"] .maintenance-group-head span {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .maintenance-group-head i,
html[data-theme="dark"] .maintenance-empty,
html[data-theme="dark"] .maintenance-row-date small,
html[data-theme="dark"] .maintenance-row-body p {
  color: var(--muted);
}
html[data-theme="dark"] .maintenance-group-list::before {
  display: none;
}
html[data-theme="dark"] .maintenance-row {
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .maintenance-row-date b,
html[data-theme="dark"] .maintenance-row-top h4 {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .maintenance-row-icon {
  box-shadow: 0 0 0 3px var(--surface);
}
html[data-theme="dark"] .maintenance-row-icon.feature,
html[data-theme="dark"] .maintenance-row-icon.update {
  color: #b09af0;
  background: rgba(124, 92, 219, .18);
}
html[data-theme="dark"] .maintenance-row-icon.node,
html[data-theme="dark"] .maintenance-row-icon.add {
  color: #7eb4f5;
  background: rgba(43, 125, 233, .18);
}
html[data-theme="dark"] .maintenance-row-icon.fix {
  color: #f0b24a;
  background: rgba(224, 138, 0, .18);
}
html[data-theme="dark"] .maintenance-row-icon.optimize {
  color: #4ecb80;
  background: rgba(26, 159, 85, .18);
}
html[data-theme="dark"] .maintenance-row-icon.delete,
html[data-theme="dark"] .maintenance-row-icon.security {
  color: #f07a84;
  background: rgba(224, 75, 87, .18);
}
html[data-theme="dark"] .maintenance-row-icon.plan {
  color: #8a9aa0;
  background: rgba(120, 140, 148, .16);
}
html[data-theme="dark"] .maintenance-tag.feature,
html[data-theme="dark"] .maintenance-tag.update {
  color: #b09af0;
  background: rgba(124, 92, 219, .18);
}
html[data-theme="dark"] .maintenance-tag.node,
html[data-theme="dark"] .maintenance-tag.add {
  color: #7eb4f5;
  background: rgba(43, 125, 233, .18);
}
html[data-theme="dark"] .maintenance-tag.fix {
  color: #f0b24a;
  background: rgba(224, 138, 0, .18);
}
html[data-theme="dark"] .maintenance-tag.optimize {
  color: #4ecb80;
  background: rgba(26, 159, 85, .18);
}
html[data-theme="dark"] .maintenance-tag.delete,
html[data-theme="dark"] .maintenance-tag.security {
  color: #f07a84;
  background: rgba(224, 75, 87, .18);
}
html[data-theme="dark"] .maintenance-tag.plan {
  color: #8a9aa0;
  background: rgba(120, 140, 148, .16);
}
@media (max-width: 1100px) {
  html[data-theme="dark"] .maintenance-summary-card:nth-child(n + 4) {
    border-top-color: var(--line);
  }
}
@media (max-width: 900px) {
  html[data-theme="dark"] .maintenance-summary-card:nth-child(n + 4) {
    border-top-color: var(--line);
  }
}
html[data-theme="dark"] .home-page .hero-speed-target svg,
html[data-theme="dark"] .ping-target svg {
  color: var(--dark-accent);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .hero-speed-dns-input::placeholder,
html[data-theme="dark"] .home-page .hero-speed-dns-input::placeholder {
  color: var(--dark-input-placeholder);
  opacity: 1;
}
html[data-theme="dark"] .dns-choice > input:disabled,
html[data-theme="dark"] .tcp-dns-choice > input:disabled,
html[data-theme="dark"] .hero-speed-dns-input:disabled,
html[data-theme="dark"] .home-page .hero-speed-dns-input:disabled {
  color: var(--muted);
  border-color: var(--dark-input-border);
  background: var(--dark-input-bg);
  opacity: .55;
}
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill {
  -webkit-text-fill-color: var(--dark-text-strong);
  caret-color: var(--dark-text-strong);
  box-shadow: 0 0 0 1000px var(--dark-input-bg) inset;
  transition: background-color 99999s ease-out;
}
html[data-theme="dark"] .ping-target:focus-within,
html[data-theme="dark"] .ws-search:focus-within,
html[data-theme="dark"] .sitecheck-target:focus-within,
html[data-theme="dark"] .intercept-target:focus-within,
html[data-theme="dark"] .home-page .hero-speed-target:focus-within,
html[data-theme="dark"] .batch-node-search:focus-within,
html[data-theme="dark"] .node-search-input:focus-within,
html[data-theme="dark"] .tcp-port-control:focus-within,
html[data-theme="dark"] .ip-lookup-search input:focus,
html[data-theme="dark"] .findping-search input:focus,
html[data-theme="dark"] .batch-target-textarea:focus,
html[data-theme="dark"] .website-advanced-input:focus,
html[data-theme="dark"] .dns-choice > input:focus,
html[data-theme="dark"] .tcp-dns-choice > input:focus,
html[data-theme="dark"] .hero-speed-dns-input:focus,
html[data-theme="dark"] .home-page .hero-speed-dns-input:focus,
html[data-theme="dark"] .home-page .hero-speed-advanced-panel .website-advanced-input:focus,
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
  border-color: var(--dark-input-border-focus);
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14);
  outline: 0;
}
html[data-theme="dark"] .ping-target input:focus,
html[data-theme="dark"] .ws-search input:focus,
html[data-theme="dark"] .sitecheck-target input:focus,
html[data-theme="dark"] .intercept-target input:focus,
html[data-theme="dark"] .hero-speed-target input:focus,
html[data-theme="dark"] .home-page .hero-speed-target input:focus,
html[data-theme="dark"] .batch-node-search input:focus,
html[data-theme="dark"] .node-search-input input:focus,
html[data-theme="dark"] .tcp-port-control input:focus {
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .ping-action.primary,
html[data-theme="dark"] .ping-action.continuous.active,
html[data-theme="dark"] .ping-action.continuous:hover,
html[data-theme="dark"] .ping-filter-tabs button.selected,
html[data-theme="dark"] .ws-search-btn,
html[data-theme="dark"] .findping-search-btn,
html[data-theme="dark"] .ip-lookup-search-btn,
html[data-theme="dark"] .feedback-search-btn,
html[data-theme="dark"] .heading-icon-btn.active,
html[data-theme="dark"] .regional-tab-toggle button.active,
html[data-theme="dark"] .view-toggle button.active,
html[data-theme="dark"] .findping-segment.active,
html[data-theme="dark"] .article-feature-btn,
html[data-theme="dark"] .article-page-btns button.active,
html[data-theme="dark"] .settings-sidebar button.active,
html[data-theme="dark"] .settings-save-btn,
html[data-theme="dark"] .run-button,
html[data-theme="dark"] .auth-submit,
html[data-theme="dark"] .account-actions .solid,
html[data-theme="dark"] .mobile-nav-foot .solid,
html[data-theme="dark"] .back-to-top,
html[data-theme="dark"] .ws-step-card b,
html[data-theme="dark"] .sitecheck-type-badge,
html[data-theme="dark"] .ping-filter-tabs a.selected,
html[data-theme="dark"] .regional-tab-toggle a.active,
html[data-theme="dark"] .view-toggle a.active,
html[data-theme="dark"] .article-page-btns a.active,
html[data-theme="dark"] .settings-sidebar a.active {
  color: #061014;
  background: var(--brand-primary);
  box-shadow: none;
}
html[data-theme="dark"] .ping-action.primary:hover,
html[data-theme="dark"] .ws-search-btn:hover,
html[data-theme="dark"] .findping-search-btn:hover,
html[data-theme="dark"] .ip-lookup-search-btn:hover,
html[data-theme="dark"] .feedback-search-btn:hover,
html[data-theme="dark"] .article-feature-btn:hover,
html[data-theme="dark"] .settings-save-btn:hover,
html[data-theme="dark"] .run-button:hover,
html[data-theme="dark"] .auth-submit:hover,
html[data-theme="dark"] .account-actions .solid:hover,
html[data-theme="dark"] .back-to-top:hover {
  color: #061014;
  background: var(--brand-primary-hover);
}
html[data-theme="dark"] .settings-sidebar {
  border-right-color: var(--line);
  background: #0a171d;
}
html[data-theme="dark"] .settings-sidebar button,
html[data-theme="dark"] .settings-sidebar a {
  color: var(--dark-text);
}
html[data-theme="dark"] .settings-sidebar button:hover,
html[data-theme="dark"] .settings-sidebar a:hover {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .settings-section-head h3 {
  color: var(--dark-accent);
}
html[data-theme="dark"] .settings-section-nav {
  color: var(--muted);
}
html[data-theme="dark"] .settings-section-nav button,
html[data-theme="dark"] .settings-section-nav a {
  border-color: var(--line);
  color: var(--dark-text);
  background: #0e1f26;
}
html[data-theme="dark"] .settings-section-nav button:hover:not(:disabled),
html[data-theme="dark"] .settings-section-nav a:hover:not(:disabled) {
  border-color: var(--dark-accent);
  color: var(--dark-accent);
}
html[data-theme="dark"] .settings-section-nav button:disabled,
html[data-theme="dark"] .settings-section-nav a:disabled {
  color: #3d555c;
  border-color: var(--line);
}
html[data-theme="dark"] .settings-row {
  border-bottom-color: rgba(61, 98, 106, .45);
}
html[data-theme="dark"] .settings-row-label {
  color: var(--dark-text);
}
html[data-theme="dark"] .settings-tip {
  color: var(--muted);
}
html[data-theme="dark"] .settings-tip:hover {
  color: var(--dark-accent);
}
html[data-theme="dark"] .settings-action-bar {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}
html[data-theme="dark"] .settings-dirty-hint {
  color: #c07a82;
}
html[data-theme="dark"] .settings-dirty-hint i {
  background: #c07a82;
}
html[data-theme="dark"] .settings-reset-btn {
  border-color: #243e46;
  color: var(--dark-text);
  background: #0e1f26;
}
html[data-theme="dark"] .settings-reset-btn:hover {
  border-color: var(--dark-accent);
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
@media (max-width: 900px) {
  html[data-theme="dark"] .settings-sidebar {
    border-right-color: transparent;
    border-bottom-color: var(--line);
  }
}
html[data-theme="dark"] .findping-segment.active b {
  color: #061014;
  background: rgba(6, 16, 20, .2);
}
html[data-theme="dark"] .ping-filter-tabs button.selected b,
html[data-theme="dark"] .ping-filter-tabs a.selected b {
  color: #061014;
  background: rgba(6, 16, 20, .2);
}
html[data-theme="dark"] .ping-action.continuous {
  border-color: #243e46;
  color: var(--dark-accent);
  background: #0e1f26;
}
html[data-theme="dark"] .ping-action:not(.primary):not(.continuous),
html[data-theme="dark"] .ping-action.ghost,
html[data-theme="dark"] .heading-icon-btn,
html[data-theme="dark"] .website-advanced,
html[data-theme="dark"] .tcp-snapshot,
html[data-theme="dark"] .view-toggle,
html[data-theme="dark"] .ws-quick-row button,
html[data-theme="dark"] .ping-filter-tabs button,
html[data-theme="dark"] .ws-quick-row a,
html[data-theme="dark"] .ping-filter-tabs a {
  border-color: #243e46;
  color: var(--dark-text);
  background: #0e1f26;
}
html[data-theme="dark"] .ping-action.ghost:hover,
html[data-theme="dark"] .heading-icon-btn:hover,
html[data-theme="dark"] .website-advanced:hover,
html[data-theme="dark"] .website-advanced.active,
html[data-theme="dark"] .tcp-snapshot:hover,
html[data-theme="dark"] .ws-quick-row button:hover,
html[data-theme="dark"] .ping-filter-tabs button:hover,
html[data-theme="dark"] .ws-quick-row a:hover,
html[data-theme="dark"] .ping-filter-tabs a:hover {
  border-color: var(--brand-primary);
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .heading-icon-btn.coverage-marker-toggle:hover,
html[data-theme="dark"] .heading-icon-btn.coverage-marker-toggle.is-on {
  border-color: rgba(168, 98, 106, .45);
  color: #c07a82;
  background: rgba(168, 98, 106, .14);
}
html[data-theme="dark"] .heading-icon-btn.coverage-marker-toggle.is-on:hover {
  background: rgba(168, 98, 106, .22);
}
html[data-theme="dark"] .view-toggle button,
html[data-theme="dark"] .view-toggle a { color: var(--muted); }
html[data-theme="dark"] .view-toggle button.active,
html[data-theme="dark"] .view-toggle a.active {
  color: #061014;
  background: var(--brand-primary);
}

html[data-theme="dark"] .region-checks label,
html[data-theme="dark"] .dns-choice label,
html[data-theme="dark"] .tcp-dns-choice label,
html[data-theme="dark"] .node-type-choice label,
html[data-theme="dark"] .website-advanced-radios label,
html[data-theme="dark"] .website-advanced-label {
  color: #8aa8ad;
}
html[data-theme="dark"] .website-advanced-panel {
  border-color: var(--line);
  background: #0a171d;
  color: var(--dark-text);
}
html[data-theme="dark"] .website-advanced-label {
  color: var(--muted);
}
html[data-theme="dark"] .website-advanced-radios label:has(input:checked) {
  color: var(--dark-accent);
}
html[data-theme="dark"] .website-advanced-radios input[type="radio"] {
  border-color: #3d626a;
  background: var(--dark-input-bg);
  box-shadow: none;
}
html[data-theme="dark"] .website-advanced-radios input[type="radio"]:hover,
html[data-theme="dark"] .website-advanced-radios input[type="radio"]:checked {
  border-color: var(--brand-primary);
}
html[data-theme="dark"] .website-advanced-radios input[type="radio"]:checked {
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .website-advanced-radios input[type="radio"]::after {
  background: var(--brand-primary);
}
html[data-theme="dark"] .website-advanced-redirect p,
html[data-theme="dark"] .website-advanced-redirect svg {
  color: var(--muted);
}
html[data-theme="dark"] .website-warm-button {
  border-color: rgba(184, 151, 74, .4);
  color: #c4a45a;
  background: rgba(168, 130, 50, .12);
}
html[data-theme="dark"] .website-warm-button:hover {
  border-color: #c4a45a;
  color: #061014;
  background: #c4a45a;
}
html[data-theme="dark"] .trace-snapshot-btn {
  border-color: rgba(184, 151, 74, .4);
  color: #c4a45a;
  background: rgba(168, 130, 50, .12);
}
html[data-theme="dark"] .trace-snapshot-btn:hover,
html[data-theme="dark"] .trace-snapshot-btn.open {
  border-color: #c4a45a;
  color: #061014;
  background: #c4a45a;
}
html[data-theme="dark"] .trace-snapshot-menu {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .trace-snapshot-menu button,
html[data-theme="dark"] .trace-snapshot-menu a {
  color: var(--dark-text);
}
html[data-theme="dark"] .trace-snapshot-menu button:hover,
html[data-theme="dark"] .trace-snapshot-menu a:hover {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .trace-snapshot-menu svg {
  color: var(--muted);
}

html[data-theme="dark"] .region-table-row {
  border-left-color: transparent;
  border-bottom-color: var(--line);
  color: var(--dark-text);
}
html[data-theme="dark"] .ping-result-scroll th,
html[data-theme="dark"] .ping-result-scroll td,
html[data-theme="dark"] .intercept-result-scroll th,
html[data-theme="dark"] .intercept-result-scroll td {
  border-color: var(--line);
  color: var(--dark-text);
}
html[data-theme="dark"] .ping-result-scroll th,
html[data-theme="dark"] .intercept-result-scroll th,
html[data-theme="dark"] .region-table-row.table-head {
  background: #0a171d;
  color: var(--muted);
}
html[data-theme="dark"] .ping-result-scroll tbody tr:nth-child(even),
html[data-theme="dark"] .intercept-result-scroll tbody tr:nth-child(even) {
  background: rgba(8, 24, 30, .55);
}
html[data-theme="dark"] .ping-result-scroll tbody tr:hover,
html[data-theme="dark"] .intercept-result-scroll tbody tr:hover,
html[data-theme="dark"] .region-table-row:hover {
  background: rgba(42, 158, 154, .06);
}
html[data-theme="dark"] .quick-ip-trigger {
  color: #7ec9c4;
  background: transparent;
}
html[data-theme="dark"] .quick-ip-trigger:hover,
html[data-theme="dark"] .quick-ip-trigger:focus-visible,
html[data-theme="dark"] .quick-ip.is-open .quick-ip-trigger {
  color: #8fd9d4;
  background: transparent;
}
html[data-theme="dark"] .quick-ip-text {
  color: var(--dark-text);
}
html[data-theme="dark"] .quick-ip-menu {
  border-color: #2a4a52;
  background: #12262e;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] .quick-ip-menu button,
html[data-theme="dark"] .quick-ip-menu a {
  color: #c5d8db;
}
html[data-theme="dark"] .quick-ip-menu button svg,
html[data-theme="dark"] .quick-ip-menu a svg {
  color: #7ec9c4;
}
html[data-theme="dark"] .quick-ip-menu button:hover,
html[data-theme="dark"] .quick-ip-menu button:focus-visible,
html[data-theme="dark"] .quick-ip-menu a:hover,
html[data-theme="dark"] .quick-ip-menu a:focus-visible {
  color: #e2f4f3;
  background: rgba(42, 158, 154, .16);
}
html[data-theme="dark"] .quick-ip-menu button:hover svg,
html[data-theme="dark"] .quick-ip-menu button:focus-visible svg,
html[data-theme="dark"] .quick-ip-menu a:hover svg,
html[data-theme="dark"] .quick-ip-menu a:focus-visible svg {
  color: #8fd9d4;
}
html[data-theme="dark"] .region-table-row.active {
  border-left-color: var(--brand-primary);
  background: rgba(42, 158, 154, .08);
  color: var(--dark-text);
}
html[data-theme="dark"] .region-table-row.active span:first-child {
  color: var(--dark-accent);
}
/* IPv6 overseas summary: beat light #fff / #fbfefe card rows */
html[data-theme="dark"] .regional-card.is-overseas .region-table-row {
  border-bottom-color: var(--line);
  color: var(--dark-text);
  background: transparent;
}
html[data-theme="dark"] .regional-card.is-overseas .region-table-row.table-head {
  background: #0a171d;
  color: var(--muted);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .regional-card.is-overseas .region-table-row:not(.table-head) {
  background: transparent;
}
html[data-theme="dark"] .regional-card.is-overseas .region-table-row:not(.table-head):nth-child(even) {
  background: rgba(8, 24, 30, .45);
}
html[data-theme="dark"] .regional-card.is-overseas .region-table-row:not(.table-head):hover {
  background: rgba(42, 158, 154, .06);
}
html[data-theme="dark"] .regional-card.is-overseas .region-table-row.active {
  border-left-color: var(--brand-primary);
  background: rgba(42, 158, 154, .08);
  color: var(--dark-text);
  box-shadow: none;
}
html[data-theme="dark"] .region-name {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .region-name i {
  background: var(--brand-primary);
}
html[data-theme="dark"] .region-metric strong {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .region-metric small {
  color: var(--muted);
}
html[data-theme="dark"] .region-metric.is-empty strong {
  color: var(--muted);
}
html[data-theme="dark"] .region-metric.is-timeout strong {
  color: #c07a82;
}
html[data-theme="dark"] .region-metric.is-timeout small {
  color: #a87880;
}
html[data-theme="dark"] .ping-result-scroll td b {
  color: var(--dark-text-strong);
  font-weight: 600;
}
html[data-theme="dark"] .ping-result-scroll .danger {
  color: #c07a82;
}
html[data-theme="dark"] .web-total {
  color: var(--lat-fast-b) !important;
}

html[data-theme="dark"] .batch-result-title > span { color: var(--dark-text-strong); }
html[data-theme="dark"] .batch-result-title > small { color: var(--muted); }
html[data-theme="dark"] .batch-result-scroll th { color: var(--muted); }
html[data-theme="dark"] .batch-result-scroll th.is-sortable:hover { color: var(--dark-accent); }
html[data-theme="dark"] .batch-sort-icon::before { border-bottom-color: #4a646c; }
html[data-theme="dark"] .batch-sort-icon::after { border-top-color: #4a646c; }
html[data-theme="dark"] .batch-result-scroll th.is-sort-asc .batch-sort-icon::before { border-bottom-color: var(--dark-accent); }
html[data-theme="dark"] .batch-result-scroll th.is-sort-desc .batch-sort-icon::after { border-top-color: var(--dark-accent); }
html[data-theme="dark"] .batch-result-scroll td.batch-index-cell { color: var(--muted); }
html[data-theme="dark"] .batch-cell-btn strong { color: var(--dark-text-strong); }
html[data-theme="dark"] .batch-cell-ip { color: var(--dark-text); }
html[data-theme="dark"] .batch-cell-loc { color: var(--muted); }
html[data-theme="dark"] .batch-cell-btn:hover {
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .batch-cell.timeout {
  background: rgba(168, 98, 106, .1);
}
html[data-theme="dark"] .batch-cell-status {
  color: #c07a82;
  background: rgba(168, 98, 106, .14);
}
html[data-theme="dark"] tr.is-timeout-row td {
  background: rgba(168, 98, 106, .08);
}
html[data-theme="dark"] tr.is-timeout-row:hover td {
  background: rgba(168, 98, 106, .12) !important;
}
html[data-theme="dark"] .batch-result-scroll tbody tr:hover td {
  background: rgba(42, 158, 154, .05);
}
html[data-theme="dark"] .batch-result-scroll tbody tr:hover td.batch-cell {
  background: transparent;
}
html[data-theme="dark"] .batch-node-grid button:hover,
html[data-theme="dark"] .batch-node-grid a:hover {
  border-color: var(--dark-input-border-focus);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .batch-node-btn {
  border-color: var(--dark-input-border);
  color: var(--dark-text);
  background: var(--dark-input-bg);
}
html[data-theme="dark"] .batch-node-btn:hover,
html[data-theme="dark"] .batch-node-btn.open {
  border-color: var(--brand-primary);
  color: var(--dark-accent);
}
html[data-theme="dark"] .batch-node-btn svg:last-child { color: var(--muted); }
html[data-theme="dark"] .batch-node-panel {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  color: var(--dark-text);
}
html[data-theme="dark"] .batch-node-hint { color: var(--muted); }
html[data-theme="dark"] .batch-node-panel-head > div > button,
html[data-theme="dark"] .batch-node-panel-head > div > a {
  color: var(--dark-accent);
}
html[data-theme="dark"] .batch-node-status {
  border-color: var(--dark-input-border);
  color: var(--dark-text-strong);
  background: var(--dark-input-bg);
}
html[data-theme="dark"] .batch-node-status.open,
html[data-theme="dark"] .batch-node-status:hover {
  border-color: var(--brand-primary);
}
html[data-theme="dark"] .batch-node-status svg { color: var(--muted); }
html[data-theme="dark"] .batch-node-status.open svg { color: var(--dark-accent); }
html[data-theme="dark"] .batch-node-tag {
  border-color: var(--line);
  color: var(--dark-text);
  background: #10242c;
}
html[data-theme="dark"] .batch-node-tag button,
html[data-theme="dark"] .batch-node-tag a { color: var(--muted); }
html[data-theme="dark"] .batch-node-tag button:hover,
html[data-theme="dark"] .batch-node-tag a:hover {
  color: #c07a82;
  background: rgba(168, 98, 106, .16);
}
html[data-theme="dark"] .batch-node-picker {
  border-color: var(--line);
  background: #0a171d;
}
html[data-theme="dark"] .batch-node-search {
  border-color: var(--dark-input-border);
  background: var(--dark-input-bg);
}
html[data-theme="dark"] .batch-node-search svg { color: var(--muted); }
html[data-theme="dark"] .batch-node-search input {
  color: var(--dark-text-strong);
  background: transparent;
}
html[data-theme="dark"] .batch-node-search:focus-within {
  border-color: var(--dark-input-border-focus);
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .batch-node-group h4 { color: var(--dark-text-strong); }
html[data-theme="dark"] .batch-node-empty { color: var(--muted); }
html[data-theme="dark"] .batch-node-grid button,
html[data-theme="dark"] .batch-node-grid a {
  border-color: var(--line);
  color: var(--dark-text);
  background: var(--dark-input-bg);
}
html[data-theme="dark"] .batch-node-grid button.checked,
html[data-theme="dark"] .batch-node-grid a.checked {
  border-color: var(--brand-primary);
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .batch-node-picker-body {
  scrollbar-color: #355760 transparent;
}
html[data-theme="dark"] .batch-options-row {
  border-top-color: var(--line);
}
html[data-theme="dark"] .website-control-panel .tcp-control-foot,
html[data-theme="dark"] .trace-path-legend,
html[data-theme="dark"] .findping-merged-group + .findping-merged-group,
html[data-theme="dark"] .article-related-panel .article-side-more {
  border-top-color: rgba(61, 98, 106, .55);
}

/* Article hub + detail: match diagnostic dark surfaces */
html[data-theme="dark"] .article-side,
html[data-theme="dark"] .article-feature-card,
html[data-theme="dark"] .article-row-card,
html[data-theme="dark"] .article-main,
html[data-theme="dark"] .article-related-panel {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
  color: var(--dark-text);
}
html[data-theme="dark"] .article-side-head,
html[data-theme="dark"] .article-feature-copy h3,
html[data-theme="dark"] .article-row-copy h4,
html[data-theme="dark"] .article-main-head h1,
html[data-theme="dark"] .article-nav-btn b,
html[data-theme="dark"] .article-related-title {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .article-feature-copy p,
html[data-theme="dark"] .article-row-copy p,
html[data-theme="dark"] .article-body p,
html[data-theme="dark"] .article-side-item b,
html[data-theme="dark"] .article-cat-item,
html[data-theme="dark"] .article-pagination > span,
html[data-theme="dark"] .article-meta,
html[data-theme="dark"] .article-nav-btn small {
  color: var(--dark-text);
}
html[data-theme="dark"] .article-side-item small,
html[data-theme="dark"] .article-cat-item span,
html[data-theme="dark"] .article-row-date,
html[data-theme="dark"] .article-related-date,
html[data-theme="dark"] .article-meta svg {
  color: var(--muted);
}
html[data-theme="dark"] .article-feature-card:hover,
html[data-theme="dark"] .article-row-card:hover {
  border-color: rgba(42, 158, 154, .4);
  box-shadow: none;
}
html[data-theme="dark"] .article-side-item:hover,
html[data-theme="dark"] .article-cat-item:hover,
html[data-theme="dark"] .article-related-item:hover {
  background: rgba(42, 158, 154, .08);
}
html[data-theme="dark"] .article-cat-item.active {
  color: #6eb8b4;
  background: rgba(42, 158, 154, .12);
}
html[data-theme="dark"] .article-cat-item.active i {
  border-color: #6eb8b4;
  background: #6eb8b4;
}
html[data-theme="dark"] .article-cat-item.active span {
  color: #6eb8b4;
}
html[data-theme="dark"] .article-cat-item i {
  border-color: #3d626a;
}
html[data-theme="dark"] .article-excerpt-tag,
html[data-theme="dark"] .article-tag,
html[data-theme="dark"] .article-cat-tag.notices {
  color: #8fd9d4;
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .article-cat-tag.help {
  color: #7ec9b4;
  background: rgba(46, 140, 120, .16);
}
html[data-theme="dark"] .article-cat-tag.news {
  color: #d4b06a;
  background: rgba(168, 130, 60, .16);
}
html[data-theme="dark"] .article-row-foot,
html[data-theme="dark"] .article-main-head,
html[data-theme="dark"] .article-detail-cover,
html[data-theme="dark"] .article-nav,
html[data-theme="dark"] .article-related-panel .article-side-head,
html[data-theme="dark"] .article-related-item {
  border-color: var(--line);
}
html[data-theme="dark"] .article-row-arrow {
  color: #4a6a72;
}
html[data-theme="dark"] .article-row-card:hover .article-row-arrow,
html[data-theme="dark"] .article-related-item:hover .article-related-title {
  color: #6eb8b4;
}
html[data-theme="dark"] .article-cover.cover-notices {
  background: linear-gradient(145deg, #0e2a30 0%, #12383c 100%);
}
html[data-theme="dark"] .article-cover.cover-help {
  background: linear-gradient(145deg, #0e2a28 0%, #123a34 100%);
}
html[data-theme="dark"] .article-cover.cover-news {
  background: linear-gradient(145deg, #2a2414 0%, #3a3018 100%);
}
html[data-theme="dark"] .article-page-btns button,
html[data-theme="dark"] .article-page-btns a,
html[data-theme="dark"] .article-page-btns span {
  border-color: var(--line);
  color: var(--dark-text);
  background: #0a171d;
}
html[data-theme="dark"] .article-page-btns button:hover:not(:disabled),
html[data-theme="dark"] .article-page-btns a:hover:not(:disabled) {
  border-color: #6eb8b4;
  color: #6eb8b4;
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .article-side-more {
  border-color: rgba(42, 158, 154, .28);
  color: #6eb8b4;
  background: transparent;
}
html[data-theme="dark"] .article-side-more:hover {
  border-color: #6eb8b4;
  color: #6eb8b4;
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .article-nav-btn {
  border-color: var(--line);
  background: #0a171d;
}
html[data-theme="dark"] .article-nav-btn:not(:disabled):hover {
  border-color: rgba(42, 158, 154, .4);
  background: rgba(42, 158, 154, .08);
  box-shadow: none;
}
html[data-theme="dark"] .findping-hint {
  color: var(--muted);
}
html[data-theme="dark"] .findping-hint svg {
  color: var(--muted);
}
html[data-theme="dark"] .ping-status-row,
html[data-theme="dark"] .findping-status-row {
  border-color: var(--line);
  background: var(--line);
  box-shadow: none;
}
html[data-theme="dark"] .ping-status-row > div,
html[data-theme="dark"] .findping-status-row > div {
  background: #0a171d;
}
html[data-theme="dark"] .ping-status-row span,
html[data-theme="dark"] .findping-status-row span {
  color: var(--muted);
}
html[data-theme="dark"] .ping-status-row strong,
html[data-theme="dark"] .findping-status-row strong {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .ping-status-row strong.is-good {
  color: #6fa896;
}
html[data-theme="dark"] .ping-status-row strong.is-bad {
  color: #c07a82;
}
html[data-theme="dark"] .ping-status-row strong.is-running,
html[data-theme="dark"] .ping-status-row svg,
html[data-theme="dark"] .findping-status-row svg {
  color: var(--dark-accent);
}
html[data-theme="dark"] .findping-segment-list {
  border-color: var(--line);
}
html[data-theme="dark"] .findping-segment {
  color: var(--dark-text);
}
html[data-theme="dark"] .findping-segment:hover {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .findping-segment.active {
  color: #061014;
  background: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(42, 158, 154, .22);
}
html[data-theme="dark"] .findping-segment b {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .findping-segment.active b {
  color: #061014;
  background: rgba(6, 16, 20, .2);
}
html[data-theme="dark"] .findping-ip-chip {
  border-color: var(--line);
  color: var(--dark-text-strong);
  background: #0e1f26;
}
html[data-theme="dark"] .findping-ip-chip:hover {
  border-color: var(--dark-accent);
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .findping-merged-heading {
  color: var(--muted);
}
html[data-theme="dark"] .findping-merged-heading b {
  color: var(--dark-accent);
}
@media (max-width: 900px) {
  html[data-theme="dark"] .tcp-dns-choice,
  html[data-theme="dark"] .website-control-panel .tcp-control-foot {
    border-top-color: rgba(61, 98, 106, .55);
  }
}
html[data-theme="dark"] .batch-cidr-check { color: var(--dark-text); }
html[data-theme="dark"] .trace-node-trigger,
html[data-theme="dark"] .node-search-input {
  border-color: var(--dark-input-border);
  color: var(--dark-text-strong);
  background: var(--dark-input-bg);
}
html[data-theme="dark"] .trace-node-trigger:hover,
html[data-theme="dark"] .trace-node-trigger.open,
html[data-theme="dark"] .node-search.open .node-search-input,
html[data-theme="dark"] .node-search-input:focus-within {
  border-color: var(--dark-input-border-focus);
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .trace-node-placeholder { color: var(--muted); }
html[data-theme="dark"] .trace-node-chip {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .trace-node-chip button,
html[data-theme="dark"] .trace-node-chip a { color: var(--muted); }
html[data-theme="dark"] .trace-node-chip button:hover,
html[data-theme="dark"] .trace-node-chip a:hover {
  color: #c07a82;
  background: rgba(168, 98, 106, .16);
}
html[data-theme="dark"] .trace-node-picker .batch-node-panel,
html[data-theme="dark"] .node-search-dropdown {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
html[data-theme="dark"] .node-search-option {
  color: var(--dark-text);
}
html[data-theme="dark"] .node-search-option:hover {
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .node-search-option.selected {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .trace-result-card .trace-summary-line {
  border-bottom-color: var(--line);
  background: #0a171d;
  color: var(--muted);
}
html[data-theme="dark"] .trace-summary-line b {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .trace-summary-location,
html[data-theme="dark"] .trace-location-ref {
  color: #c07a82 !important;
}
html[data-theme="dark"] .trace-location-head small {
  color: var(--muted);
}
html[data-theme="dark"] .trace-ip {
  color: var(--dark-accent-soft);
}
html[data-theme="dark"] .as-tag {
  color: #6fa0c4;
}
html[data-theme="dark"] .trace-result-scroll tbody tr.is-target {
  background: rgba(42, 158, 154, .08);
}
html[data-theme="dark"] .trace-result-scroll tbody tr.is-target td:first-child b {
  color: var(--dark-accent);
}
html[data-theme="dark"] .loss-tag {
  color: #6fa896;
  background: rgba(42, 140, 120, .16);
}
html[data-theme="dark"] .loss-tag.medium {
  color: #b8974a;
  background: rgba(184, 151, 74, .14);
}
html[data-theme="dark"] .loss-tag.slow {
  color: #c49a6c;
  background: rgba(179, 94, 33, .16);
}
html[data-theme="dark"] .loss-tag.timeout {
  color: #c07a82;
  background: rgba(168, 98, 106, .16);
}
html[data-theme="dark"] .node-tag.telecom {
  color: #c49a6c;
  background: rgba(179, 94, 33, .16);
}
html[data-theme="dark"] .node-tag.unicom {
  color: #7a9fd4;
  background: rgba(47, 95, 199, .16);
}
html[data-theme="dark"] .node-tag.mobile {
  color: #6fa896;
  background: rgba(14, 159, 134, .14);
}
html[data-theme="dark"] .node-tag.overseas {
  color: #8a9aa0;
  background: rgba(120, 140, 148, .16);
}
html[data-theme="dark"] .trace-path-dot.private {
  border-color: #355760;
  color: #8a9aa0;
  background: #153038;
}
html[data-theme="dark"] .trace-path-line {
  background: #355760;
}
html[data-theme="dark"] .trace-path-legend span {
  color: var(--muted);
}
html[data-theme="dark"] .trace-path-dot.is-target {
  box-shadow: 0 0 0 4px rgba(42, 158, 154, .22);
}
html[data-theme="dark"] .trace-result-title > span {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .trace-result-title > small {
  color: var(--muted);
}
html[data-theme="dark"] .trace-result-title > small b {
  color: var(--dark-accent);
}

html[data-theme="dark"] .provider-tag {
  color: var(--dark-accent-soft);
  background: rgba(42, 158, 154, .12);
}
html[data-theme="dark"] .provider-tag.海外 {
  color: #8a9aa0;
  background: rgba(120, 140, 148, .14);
}
html[data-theme="dark"] .quality {
  color: #6fa896;
  background: rgba(42, 140, 120, .14);
  border: 1px solid rgba(42, 140, 120, .28);
}
html[data-theme="dark"] .quality.优秀 {
  color: var(--dark-accent-soft);
  background: rgba(42, 158, 154, .12);
  border-color: rgba(42, 158, 154, .3);
}
html[data-theme="dark"] .quality.稳定 {
  color: #6fa896;
  background: rgba(42, 140, 120, .14);
  border-color: rgba(42, 140, 120, .28);
}
html[data-theme="dark"] .quality.一般 {
  color: #b8974a;
  background: rgba(184, 151, 74, .12);
  border-color: rgba(184, 151, 74, .28);
}
html[data-theme="dark"] .quality.超时 {
  color: #c07a82;
  background: rgba(168, 98, 106, .14);
  border-color: rgba(168, 98, 106, .3);
}
html[data-theme="dark"] .timeout-spark {
  color: #c07a82;
  background: rgba(168, 98, 106, .14);
}
html[data-theme="dark"] .ping-filter-tabs b {
  color: #c07a82;
  background: rgba(168, 98, 106, .16);
}
html[data-theme="dark"] .ping-filter-tabs button.selected b,
html[data-theme="dark"] .ping-filter-tabs a.selected b {
  color: #061014;
  background: rgba(6, 16, 20, .2);
}

html[data-theme="dark"] .tool-map-ad-slot,
html[data-theme="dark"] .ip-lookup-ad-slot,
html[data-theme="dark"] .ws-ad-slot,
html[data-theme="dark"] .lead-ad-slot,
html[data-theme="dark"] .mid-ad-slot,
html[data-theme="dark"] .sponsor-grid button,
html[data-theme="dark"] .sponsor-grid a {
  border-style: solid;
  border-color: var(--line);
  color: var(--muted);
  background: var(--surface);
}
html[data-theme="dark"] .tool-map-ad-slot,
html[data-theme="dark"] .lead-ad-slot,
html[data-theme="dark"] .mid-ad-slot {
  border: 0;
  background: #10242c;
}
html[data-theme="dark"] .tool-map-ad-slot strong,
html[data-theme="dark"] .ip-lookup-ad-slot strong,
html[data-theme="dark"] .ws-ad-slot strong { color: var(--dark-text); }
html[data-theme="dark"] .tool-map-ad-badge {
  color: var(--muted);
  background: rgba(12, 26, 32, .92);
}

html[data-theme="dark"] .coverage-map,
html[data-theme="dark"] .cn-map-stage {
  background: #081418;
}
html[data-theme="dark"] .coverage-map::after {
  border-top-color: rgba(30, 58, 66, .7);
}
html[data-theme="dark"] .cn-inset rect {
  fill: #081418;
  stroke: var(--line);
}
html[data-theme="dark"] .cn-inset circle:not(.cn-inset-shape) {
  fill: var(--lat-fast-a);
}
html[data-theme="dark"] .cn-province-fill,
html[data-theme="dark"] .cn-inset-shape {
  stroke: #0a1a20;
}
html[data-theme="dark"] .cn-legend {
  border-color: var(--line);
  background: rgba(12, 26, 32, .94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  backdrop-filter: none;
}
html[data-theme="dark"] .cn-legend-item {
  color: var(--muted);
}
html[data-theme="dark"] .cn-legend-item:hover,
html[data-theme="dark"] .cn-legend-item.selected {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .cn-tooltip {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .4);
}
html[data-theme="dark"] .cn-tooltip::after {
  border-right-color: var(--line);
  border-bottom-color: var(--line);
  background: var(--surface);
}
/* One dark header for every latency status — overrides light pastel heads */
html[data-theme="dark"] .cn-tooltip-head,
html[data-theme="dark"] .cn-tooltip.light .cn-tooltip-head,
html[data-theme="dark"] .cn-tooltip.yellow .cn-tooltip-head,
html[data-theme="dark"] .cn-tooltip.orange .cn-tooltip-head,
html[data-theme="dark"] .cn-tooltip.timeout .cn-tooltip-head {
  border-bottom-color: var(--line);
  color: var(--dark-text-strong);
  background: #10242c;
}
html[data-theme="dark"] .cn-tooltip.yellow .cn-tooltip-head {
  color: #b8974a;
}
html[data-theme="dark"] .cn-tooltip.orange .cn-tooltip-head {
  color: #c08158;
}
html[data-theme="dark"] .cn-tooltip.timeout .cn-tooltip-head {
  color: #c07a82;
}
html[data-theme="dark"] .cn-tooltip.light .cn-tooltip-head {
  color: var(--dark-accent);
}
html[data-theme="dark"] .cn-tooltip-body {
  color: var(--dark-text);
  background: var(--surface);
}
html[data-theme="dark"] .cn-tooltip-fastest {
  color: var(--muted);
}
html[data-theme="dark"] .cn-tooltip-fastest b {
  color: var(--lat-fast-b);
}
html[data-theme="dark"] .cn-tooltip-row {
  color: var(--dark-text);
}
html[data-theme="dark"] .cn-carrier-tag.telecom {
  color: #c8966a;
  background: rgba(176, 110, 70, .16);
}
html[data-theme="dark"] .cn-carrier-tag.unicom {
  color: #7a9ad4;
  background: rgba(70, 100, 170, .16);
}
html[data-theme="dark"] .cn-carrier-tag.mobile {
  color: #6fa896;
  background: rgba(42, 140, 120, .14);
}
html[data-theme="dark"] .cn-tooltip em {
  border-top-color: var(--line);
  color: var(--muted);
}

html[data-theme="dark"] .ws-step-card,
html[data-theme="dark"] .ws-result-panel,
html[data-theme="dark"] .ip-lookup-cell,
html[data-theme="dark"] .local-cli-row,
html[data-theme="dark"] .resolver-list button,
html[data-theme="dark"] .resolver-list a {
  border-color: var(--line);
  background: #0e1f26;
  color: var(--dark-text);
}
html[data-theme="dark"] .resolver-list button:hover,
html[data-theme="dark"] .resolver-list a:hover {
  border-color: var(--brand-primary);
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .08);
}
html[data-theme="dark"] .resolver-list .resolver-weight {
  color: var(--dark-accent);
}
html[data-theme="dark"] .resolver-list button svg,
html[data-theme="dark"] .resolver-list a svg {
  color: #6a848a;
}
html[data-theme="dark"] .ws-step-card strong,
html[data-theme="dark"] .ip-lookup-cell strong,
html[data-theme="dark"] .ws-empty-state strong { color: var(--dark-text-strong); }
html[data-theme="dark"] .ws-panel-head {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .ws-note-block > strong {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .ws-step-card p,
html[data-theme="dark"] .ws-empty-state p,
html[data-theme="dark"] .ws-empty-copy,
html[data-theme="dark"] .ip-lookup-result-placeholder,
html[data-theme="dark"] .ws-note-list { color: var(--muted); }
html[data-theme="dark"] .ws-history-item {
  border-color: var(--line);
  background: #0a171d;
  color: var(--dark-text);
}
html[data-theme="dark"] .ws-history-item:hover {
  border-color: rgba(42, 158, 154, .35);
  background: rgba(42, 158, 154, .08);
}
html[data-theme="dark"] .ws-history-item strong {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .ws-history-item small {
  color: var(--muted);
}
html[data-theme="dark"] .ws-debug-log {
  border-color: var(--line);
  background: #0a171d;
  color: var(--muted);
}
html[data-theme="dark"] .ws-debug-log p {
  margin: 0;
  color: var(--muted);
}
html[data-theme="dark"] .ws-debug-log code {
  color: var(--dark-text);
}
html[data-theme="dark"] .ws-debug-log code.out {
  color: var(--dark-accent);
}

html[data-theme="dark"] .intercept-mode-strip button,
html[data-theme="dark"] .intercept-mode-strip a {
  border-color: var(--line);
  color: var(--muted);
  background: #0a171d;
}
html[data-theme="dark"] .intercept-mode-strip button.active,
html[data-theme="dark"] .intercept-mode-strip a.active {
  color: var(--dark-accent);
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .intercept-intro,
html[data-theme="dark"] .sitecheck-intro {
  border-color: var(--line);
  background: #0e1f26;
  color: var(--dark-text);
}
html[data-theme="dark"] .intercept-domain-btn { color: var(--dark-text-strong); }
html[data-theme="dark"] .intercept-row-actions button,
html[data-theme="dark"] .intercept-row-actions a { color: var(--dark-accent); }
html[data-theme="dark"] .intercept-result-badge.ok {
  color: #8fd9c4;
  background: rgba(42, 158, 140, .22);
}
html[data-theme="dark"] .intercept-result-badge.warn {
  color: #d4b56a;
  background: rgba(184, 151, 74, .2);
}
html[data-theme="dark"] .intercept-result-badge.danger {
  color: #d49aa2;
  background: rgba(168, 98, 106, .22);
}
html[data-theme="dark"] .intercept-result-badge.muted {
  color: #a8bcc2;
  background: rgba(120, 140, 148, .2);
}
html[data-theme="dark"] .intercept-result-view {
  border-color: var(--line);
  background: var(--surface);
}
html[data-theme="dark"] .intercept-result-head {
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .intercept-result-title-group h2 {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .intercept-result-domain {
  color: #6eb8b4;
}
html[data-theme="dark"] .intercept-result-head-actions time {
  color: var(--muted);
}
html[data-theme="dark"] .intercept-result-back {
  border-color: #3d8f8a;
  color: #8fd9d4;
  background: transparent;
}
html[data-theme="dark"] .intercept-result-back:hover {
  border-color: var(--brand-primary);
  color: #061014;
  background: var(--brand-primary);
}
html[data-theme="dark"] .intercept-status-banner {
  border-color: rgba(42, 158, 140, .35);
  background: rgba(42, 158, 140, .12);
}
html[data-theme="dark"] .intercept-status-banner.tone-warn {
  border-color: rgba(184, 151, 74, .4);
  background: rgba(184, 151, 74, .12);
}
html[data-theme="dark"] .intercept-status-banner.tone-danger {
  border-color: rgba(192, 122, 130, .4);
  background: rgba(168, 98, 106, .14);
}
html[data-theme="dark"] .intercept-status-banner.tone-muted {
  border-color: rgba(120, 140, 148, .35);
  background: rgba(120, 140, 148, .12);
}
html[data-theme="dark"] .intercept-status-main svg,
html[data-theme="dark"] .intercept-status-main strong {
  color: #8fd9c4;
}
html[data-theme="dark"] .intercept-status-banner.tone-warn .intercept-status-main svg,
html[data-theme="dark"] .intercept-status-banner.tone-warn .intercept-status-main strong {
  color: #d4b56a;
}
html[data-theme="dark"] .intercept-status-banner.tone-danger .intercept-status-main svg,
html[data-theme="dark"] .intercept-status-banner.tone-danger .intercept-status-main strong {
  color: #d49aa2;
}
html[data-theme="dark"] .intercept-status-banner.tone-muted .intercept-status-main svg,
html[data-theme="dark"] .intercept-status-banner.tone-muted .intercept-status-main strong {
  color: #a8bcc2;
}
html[data-theme="dark"] .intercept-status-metrics {
  color: var(--muted);
}
html[data-theme="dark"] .intercept-status-metrics b {
  color: #d49aa2;
}
html[data-theme="dark"] .intercept-result-note {
  color: #7a9298;
}
html[data-theme="dark"] .intercept-result-detail {
  border-top-color: var(--line);
}
html[data-theme="dark"] .intercept-node-filters button,
html[data-theme="dark"] .intercept-node-filters a {
  border-color: #243e46;
  color: var(--dark-text);
  background: #0e1f26;
}
html[data-theme="dark"] .intercept-node-filters button:hover,
html[data-theme="dark"] .intercept-node-filters a:hover {
  border-color: #6eb8b4;
  color: #8fd9d4;
}
html[data-theme="dark"] .intercept-node-filters button.selected,
html[data-theme="dark"] .intercept-node-filters a.selected {
  border-color: var(--brand-primary);
  color: #061014;
  background: var(--brand-primary);
}
html[data-theme="dark"] .intercept-node-table th {
  color: #c5d8db;
  background: #0a171d;
}
html[data-theme="dark"] .intercept-node-table td {
  border-bottom-color: var(--line);
  color: var(--dark-text);
}
html[data-theme="dark"] .intercept-node-table td:first-child {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .intercept-redirect-cell {
  color: var(--muted);
}
html[data-theme="dark"] .intercept-access-text.tone-ok { color: #8fd9c4; }
html[data-theme="dark"] .intercept-access-text.tone-warn { color: #d4b56a; }
html[data-theme="dark"] .intercept-access-text.tone-danger { color: #d49aa2; }
html[data-theme="dark"] .intercept-access-text.tone-muted { color: #a8bcc2; }
html[data-theme="dark"] .domain-kv-table-wrap {
  border-color: var(--line);
}
html[data-theme="dark"] .domain-kv-table th,
html[data-theme="dark"] .domain-kv-table td {
  border-bottom-color: var(--line);
}
html[data-theme="dark"] .domain-kv-table th {
  color: #8aa8ad;
  background: #0a171d;
}
html[data-theme="dark"] .domain-kv-table td {
  color: var(--dark-text-strong);
  background: #0f1f26;
}
html[data-theme="dark"] .domain-icp-summary-table th {
  color: #c5d8db;
  background: #0a171d;
}
html[data-theme="dark"] .domain-icp-summary-table td {
  border-color: var(--line);
  color: var(--dark-text);
  background: #0f1f26;
}
html[data-theme="dark"] .web-head-button { color: #7a969c; }
html[data-theme="dark"] .web-head-button:hover { color: var(--dark-accent); }

html[data-theme="dark"] .test-modal,
html[data-theme="dark"] .auth-modal {
  border: 1px solid #234650;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .test-modal .close {
  color: #c5d8db;
  background: #153038;
  border: 1px solid #2a4a52;
}
html[data-theme="dark"] .test-modal .close:hover {
  color: #6eb8b4;
  background: #1a383f;
  border-color: #6eb8b4;
}
html[data-theme="dark"] .modal-title p {
  color: var(--muted);
}
html[data-theme="dark"] .modal-title h2 {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .modal-title .tool-icon {
  color: #6eb8b4;
}
html[data-theme="dark"] .intercept-detail-grid span {
  color: #8aa8ad;
}
html[data-theme="dark"] .intercept-detail-grid strong {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .intercept-detail-grid strong .intercept-result-badge.ok {
  color: #8fd9c4;
  background: rgba(42, 158, 140, .22);
}
html[data-theme="dark"] .intercept-detail-grid strong .intercept-result-badge.warn {
  color: #d4b56a;
  background: rgba(184, 151, 74, .2);
}
html[data-theme="dark"] .intercept-detail-grid strong .intercept-result-badge.danger {
  color: #d49aa2;
  background: rgba(168, 98, 106, .22);
}
html[data-theme="dark"] .intercept-detail-grid strong .intercept-result-badge.muted {
  color: #a8bcc2;
  background: rgba(120, 140, 148, .2);
}
html[data-theme="dark"] .intercept-detail-actions .ping-action.ghost {
  border-color: #3d626a;
  color: #c5d8db;
  background: #153038;
}
html[data-theme="dark"] .intercept-detail-actions .ping-action.ghost:hover {
  border-color: #6eb8b4;
  color: #8fd9d4;
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .auth-modal-head h2 { color: var(--dark-text-strong); }
html[data-theme="dark"] .auth-modal-head p { color: var(--muted); }
html[data-theme="dark"] .test-modal label,
html[data-theme="dark"] .auth-field,
html[data-theme="dark"] .auth-field label { color: #8aa8ad; }
html[data-theme="dark"] .auth-modal-bar {
  background: linear-gradient(90deg, #2a9e9a, #3a8f88 55%, #4a9a7a);
  opacity: .9;
}
html[data-theme="dark"] .auth-tabs {
  border-color: var(--line);
  background: #0a171d;
}
html[data-theme="dark"] .auth-tabs-indicator {
  background: #153038;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .auth-tabs button,
html[data-theme="dark"] .auth-tabs a {
  color: var(--muted);
  background: transparent;
}
html[data-theme="dark"] .auth-tabs button:hover,
html[data-theme="dark"] .auth-tabs a:hover {
  color: #6eb8b4;
}
html[data-theme="dark"] .auth-tabs button.active,
html[data-theme="dark"] .auth-tabs a.active {
  color: var(--dark-text-strong);
}
html[data-theme="dark"] .auth-perk {
  border-color: rgba(42, 158, 154, .28);
  color: #8fd9d4;
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .auth-input {
  border-color: var(--dark-input-border);
  background: var(--dark-input-bg);
  box-shadow: none;
}
html[data-theme="dark"] .auth-input:focus-within {
  border-color: var(--dark-input-border-focus);
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .auth-input input,
html[data-theme="dark"] .auth-input input:not([type="checkbox"]):not([type="radio"]) {
  border: 0 !important;
  color: var(--dark-text-strong);
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
}
html[data-theme="dark"] .auth-input input::placeholder {
  color: var(--dark-input-placeholder);
}
html[data-theme="dark"] .auth-input input:-webkit-autofill,
html[data-theme="dark"] .auth-input input:-webkit-autofill:hover,
html[data-theme="dark"] .auth-input input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--dark-text-strong);
  caret-color: var(--dark-text-strong);
  box-shadow: 0 0 0 1000px var(--dark-input-bg) inset !important;
  transition: background-color 99999s ease-out;
}
html[data-theme="dark"] .auth-eye {
  color: var(--muted);
  background: transparent;
}
html[data-theme="dark"] .auth-eye:hover {
  color: #6eb8b4;
  background: rgba(42, 158, 154, .12);
}
html[data-theme="dark"] .auth-field.invalid .auth-input {
  border-color: rgba(192, 122, 130, .65);
  box-shadow: 0 0 0 3px rgba(168, 98, 106, .16);
}
html[data-theme="dark"] .auth-field.invalid .auth-input:focus-within {
  border-color: rgba(192, 122, 130, .8);
  box-shadow: 0 0 0 3px rgba(168, 98, 106, .2);
}
html[data-theme="dark"] .auth-field small {
  color: #c07a82;
}
html[data-theme="dark"] .auth-form-error {
  border-color: rgba(192, 122, 130, .4);
  color: #c07a82;
  background: rgba(168, 98, 106, .12);
}
html[data-theme="dark"] .close.auth-close,
html[data-theme="dark"] .auth-close {
  color: #c5d8db;
  background: rgba(16, 36, 44, .92);
  border: 1px solid #2a4a52;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .close.auth-close:hover,
html[data-theme="dark"] .auth-close:hover {
  color: #6eb8b4;
  background: #153038;
  border-color: #6eb8b4;
}
html[data-theme="dark"] .close.auth-close:focus-visible,
html[data-theme="dark"] .auth-close:focus-visible {
  outline: 2px solid #6eb8b4;
  outline-offset: 2px;
}

html[data-theme="dark"] .site-auth-modal-backdrop {
  background: rgb(2 10 14 / 62%);
}
html[data-theme="dark"] .site-auth-modal {
  border-color: #234650;
  background: #0c1a20;
  box-shadow: 0 24px 70px rgb(0 0 0 / 55%);
}
html[data-theme="dark"] .site-auth-modal-close {
  background: #153038;
  color: #9bb4bb;
}
html[data-theme="dark"] .site-auth-modal-close:hover {
  background: #1a383f;
  color: #d7e6ea;
}
html[data-theme="dark"] .site-auth-modal-head h3 { color: #c5d8db; }
html[data-theme="dark"] .site-auth-modal-head p { color: #7d969c; }
html[data-theme="dark"] .site-auth-modal-tabs {
  border-color: #1a333a;
  background: #0a171d;
}
html[data-theme="dark"] .site-auth-modal-tabs button { color: #7d969c; }
html[data-theme="dark"] .site-auth-modal-tabs button.active {
  color: #c5d8db;
  background: #153038;
  box-shadow: 0 2px 8px rgb(0 0 0 / 28%);
}
html[data-theme="dark"] .site-auth-modal-tip {
  border-color: rgba(42, 158, 154, .28);
  color: #8fd9d4;
  background: rgba(42, 158, 154, .1);
}
html[data-theme="dark"] .site-auth-modal-form label > span { color: #8aa8ad; }
html[data-theme="dark"] .site-auth-modal-form input {
  border-color: #3d626a !important;
  color: #c5d8db !important;
  background: #153038 !important;
}
html[data-theme="dark"] .site-auth-modal-form input::placeholder { color: #6d878e; }
html[data-theme="dark"] .site-auth-modal-form input:focus {
  border-color: #4f9a94 !important;
  box-shadow: 0 0 0 3px rgba(42, 158, 154, .14) !important;
}
html[data-theme="dark"] .site-auth-captcha-img {
  border-color: #3d626a;
  background: #102428;
}
html[data-theme="dark"] .site-auth-modal-error {
  color: #e8a4aa;
  border-color: rgba(192, 122, 130, .45);
  background: rgba(168, 98, 106, .16);
}
html[data-theme="dark"] .toast {
  background: #16343c;
  color: var(--dark-text);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] footer {
  border-top-color: rgba(42, 158, 154, .1);
  color: var(--muted);
  background: #050e12;
}

html[data-theme="dark"] .back-to-top {
  border-color: #243e46;
  background: var(--brand-primary);
  color: #061014;
}

html[data-theme="dark"] input[type="checkbox"],
html[data-theme="dark"] input[type="radio"] {
  border-color: #3a555c;
  background: #0a171d;
  box-shadow: none;
}
html[data-theme="dark"] input[type="checkbox"]:checked,
html[data-theme="dark"] input[type="radio"]:checked {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  box-shadow: none;
}
html[data-theme="dark"] input[type="checkbox"]:hover,
html[data-theme="dark"] input[type="radio"]:hover {
  border-color: var(--dark-accent-soft);
}

/* Homepage: one ink continuum — shared teal chrome, labels carry category */
html[data-theme="dark"] .home-page {
  --brand-deep: #7fc4c0;
  --brand-ocean: #2a9e9a;
  --brand-sky: #123038;
  --brand-mist: #0c1a20;
  --home-ink: #b6cbcf;
  --home-muted: #7d969c;
  --home-line: #1a333a;
  --home-action: #2a9e9a;
  --home-action-strong: #34ada9;
  --home-top-ink: #031820;
  --home-panel: #0c1a20;
  --home-panel-raise: #10242c;
  --home-panel-hover: #143038;
  --home-icon-bg: rgba(42, 158, 154, .12);
  --home-icon-border: rgba(42, 158, 154, .26);
  --ns-slate-25: #0e1f26;
  --ns-slate-50: #123038;
  --ns-slate-100: #1a333a;
  --ns-radius-sm: 6px;
  --ns-radius-md: 10px;
  color: var(--home-ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(42, 158, 154, .08), transparent 28rem),
    linear-gradient(180deg, #031820 0%, #061014 42%, #071318 100%);
}

html[data-theme="dark"] .home-page .topbar {
  background: transparent;
  box-shadow: none;
}
html[data-theme="dark"] .home-page .brand { color: #c5d8db; }
html[data-theme="dark"] .home-page .brand small { color: var(--home-muted); }
html[data-theme="dark"] .home-page .account-actions button:not(.solid),
html[data-theme="dark"] .home-page .theme-toggle,
html[data-theme="dark"] .home-page .menu-toggle,
html[data-theme="dark"] .home-page .account-actions a:not(.solid) {
  border-color: rgba(110, 184, 180, .2);
  color: #b0c6ca;
  background: rgba(2, 18, 24, .55);
}
html[data-theme="dark"] .home-page .account-actions button:not(.solid):hover,
html[data-theme="dark"] .home-page .theme-toggle:hover,
html[data-theme="dark"] .home-page .menu-toggle:hover,
html[data-theme="dark"] .home-page .account-actions a:not(.solid):hover {
  border-color: rgba(110, 184, 180, .48);
  color: #6eb8b4;
  background: rgba(42, 158, 154, .14);
}
html[data-theme="dark"] .home-page .account-actions .solid {
  border-color: var(--brand-primary);
  color: #031820;
  background: var(--brand-primary);
}
html[data-theme="dark"] .home-page .navline {
  border-bottom-color: rgba(110, 184, 180, .08);
  background: #062830;
}

html[data-theme="dark"] .home-page .hero {
  background: #031820;
}
html[data-theme="dark"] .home-page .hero-field-svg {
  opacity: .38;
}
html[data-theme="dark"] .home-page .hero-nodes {
  opacity: .22;
}
html[data-theme="dark"] .home-page .hero-speed-main .ping-action.primary {
  color: #061014;
  background: var(--brand-primary);
  border-color: transparent;
  box-shadow: none;
}
html[data-theme="dark"] .home-page .hero-speed-slow,
html[data-theme="dark"] .home-page .hero-speed-advanced {
  border: 1px solid var(--dark-input-border);
  color: #b6cbcf;
  background: #0f3a42;
}
html[data-theme="dark"] .home-page .hero-speed-slow:hover,
html[data-theme="dark"] .home-page .hero-speed-advanced:hover,
html[data-theme="dark"] .home-page .hero-speed-advanced.active {
  border-color: var(--dark-input-border-focus);
  color: #6eb8b4;
  background: #145055;
}
html[data-theme="dark"] .home-page .hero-speed-foot {
  border-color: var(--line);
  background: rgba(8, 28, 34, .72);
}

html[data-theme="dark"] .home-page .category-rail,
html[data-theme="dark"] .home-page .tools,
html[data-theme="dark"] .home-page .info-grid,
html[data-theme="dark"] .home-page .history-section,
html[data-theme="dark"] .home-page .sponsors,
html[data-theme="dark"] .home-page .friends,
html[data-theme="dark"] .home-page .filter-shell,
html[data-theme="dark"] .home-page .category-filter-shell,
html[data-theme="dark"] .home-page .filter-wrap,
html[data-theme="dark"] .home-page .lead-ad-rail,
html[data-theme="dark"] .home-page .mid-ad-rail {
  background: transparent;
}

html[data-theme="dark"] .home-page .filter-rail {
  border-color: var(--home-line);
  background: var(--home-panel);
  box-shadow: none;
}
html[data-theme="dark"] .home-page .filter-panel {
  background: transparent;
  box-shadow: none;
  border: 0;
}
html[data-theme="dark"] .home-page .filter-panel button,
html[data-theme="dark"] .home-page .filter-panel a {
  border-color: transparent;
  color: #b7d5d8;
  background: var(--ns-slate-50);
  box-shadow: none;
}
html[data-theme="dark"] .home-page .filter-panel button:hover,
html[data-theme="dark"] .home-page .filter-panel a:hover {
  border-color: transparent;
  color: #6eb8b4;
  background: #163840;
}
html[data-theme="dark"] .home-page .filter-panel button.selected,
html[data-theme="dark"] .home-page .filter-panel a.selected {
  border-color: transparent;
  color: #031820;
  background: var(--brand-primary);
  box-shadow: none;
}

html[data-theme="dark"] .home-page .lead-ad-slot,
html[data-theme="dark"] .home-page .mid-ad-body,
html[data-theme="dark"] .home-page .mid-ad-slot {
  border: 0;
  color: var(--home-muted);
  background: #10242c;
  box-shadow: none;
}
html[data-theme="dark"] .home-page .sponsor-grid button,
html[data-theme="dark"] .home-page .friends button,
html[data-theme="dark"] .home-page .ad-note,
html[data-theme="dark"] .home-page .sponsor-grid a,
html[data-theme="dark"] .home-page .friends a {
  border-style: solid;
}
html[data-theme="dark"] .home-page .lead-ad-copy strong,
html[data-theme="dark"] .home-page .mid-ad-body strong { color: #d0e8ea; }
html[data-theme="dark"] .home-page .lead-ad-copy small,
html[data-theme="dark"] .home-page .mid-ad-body small,
html[data-theme="dark"] .home-page .mid-ad-body span { color: #87a2a9; }
html[data-theme="dark"] .home-page .lead-ad-badge,
html[data-theme="dark"] .home-page .mid-ad-close {
  color: var(--home-muted);
  background: var(--ns-slate-25);
  border-color: var(--home-line);
}
html[data-theme="dark"] .home-page .mid-ad-close:hover {
  color: #6eb8b4;
  border-color: var(--brand-primary);
}

/* Tool shelves: one panel per category — no orange/red chrome */
html[data-theme="dark"] .home-page .tool-cluster,
html[data-theme="dark"] .home-page .tool-cluster.ipv4,
html[data-theme="dark"] .home-page .tool-cluster.ipv6,
html[data-theme="dark"] .home-page .tool-cluster.batch {
  border-color: var(--home-line);
  background: var(--home-panel);
  box-shadow: none;
}
html[data-theme="dark"] .home-page .tool-cluster-head,
html[data-theme="dark"] .home-page .tool-cluster.ipv6 .tool-cluster-head,
html[data-theme="dark"] .home-page .tool-cluster.batch .tool-cluster-head {
  background: transparent;
  border-bottom-color: var(--home-line);
}
html[data-theme="dark"] .home-page .tool-cluster-head strong,
html[data-theme="dark"] .home-page .tool-cluster.ipv6 .tool-cluster-head strong,
html[data-theme="dark"] .home-page .tool-cluster.batch .tool-cluster-head strong {
  color: #c5d8db;
}
html[data-theme="dark"] .home-page .tool-cluster-head span {
  border-color: var(--home-line);
  color: var(--home-muted);
  background: var(--ns-slate-25);
}
html[data-theme="dark"] .home-page .tool-cluster-list,
html[data-theme="dark"] .home-page .tool-cluster-list[data-count="4"],
html[data-theme="dark"] .home-page .tool-cluster-list[data-count="3"] {
  background: transparent;
}
html[data-theme="dark"] .home-page .tool-card,
html[data-theme="dark"] .home-page .tool-cluster-list .tool-card,
html[data-theme="dark"] .home-page .tool-cluster-list[data-count="4"] .tool-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--home-ink);
}
html[data-theme="dark"] .home-page .tool-card:not(:last-child)::after {
  background: var(--home-line);
}
html[data-theme="dark"] .home-page .tool-card:hover,
html[data-theme="dark"] .home-page .tool-cluster-list .tool-card:hover,
html[data-theme="dark"] .home-page .tool-cluster-list[data-count="4"] .tool-card:hover,
html[data-theme="dark"] .home-page .tool-cluster-list[data-count="3"] .tool-card:hover {
  background: rgba(42, 158, 154, .07);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
html[data-theme="dark"] .home-page .tool-head strong { color: #c5d8db; }
html[data-theme="dark"] .home-page .tool-card p,
html[data-theme="dark"] .home-page .tool-desc { color: #9bb8bf; }
html[data-theme="dark"] .home-page .tool-card .tool-icon,
html[data-theme="dark"] .home-page .tool-cluster.ipv4 .tool-icon,
html[data-theme="dark"] .home-page .tool-cluster.ipv6 .tool-icon,
html[data-theme="dark"] .home-page .tool-cluster.batch .tool-icon {
  border-color: var(--home-icon-border);
  color: var(--brand-primary);
  background: var(--home-icon-bg);
  box-shadow: none;
}
html[data-theme="dark"] .home-page .tool-card:hover .tool-icon,
html[data-theme="dark"] .home-page .tool-cluster.ipv6 .tool-card:hover .tool-icon,
html[data-theme="dark"] .home-page .tool-cluster.batch .tool-card:hover .tool-icon {
  border-color: var(--brand-primary);
  color: #031820;
  background: var(--brand-primary);
}
html[data-theme="dark"] .home-page .tool-head em,
html[data-theme="dark"] .home-page .tool-card em,
html[data-theme="dark"] .home-page .tool-head em.ipv6,
html[data-theme="dark"] .home-page .tool-card em.ipv6 {
  border-color: rgba(42, 158, 154, .22);
  color: #8fd9d4;
  background: rgba(42, 158, 154, .12);
}
html[data-theme="dark"] .home-page .tool-head em.batch,
html[data-theme="dark"] .home-page .tool-card em.batch {
  border-color: rgba(224, 122, 136, .35);
  color: #e8a0a8;
  background: rgba(208, 90, 102, .14);
}
html[data-theme="dark"] .home-page .card-arrow { color: #6fa8ae; }
html[data-theme="dark"] .home-page .tool-card:hover .card-arrow { color: var(--brand-primary); }

html[data-theme="dark"] .home-page .content-list,
html[data-theme="dark"] .home-page .sponsors,
html[data-theme="dark"] .home-page .friends,
html[data-theme="dark"] .home-page .history-shell {
  border-color: var(--home-line);
  background: var(--home-panel);
  box-shadow: none;
}
html[data-theme="dark"] .home-page .section-heading,
html[data-theme="dark"] .home-page .history-shell-head {
  border-bottom-color: var(--home-line);
}
html[data-theme="dark"] .home-page .history-shell-head h2,
html[data-theme="dark"] .home-page .section-heading span {
  color: #c5d8db;
}
html[data-theme="dark"] .home-page .section-heading span {
  border-left-color: var(--brand-primary);
}
html[data-theme="dark"] .home-page .section-heading span b { color: var(--brand-primary); }
html[data-theme="dark"] .home-page .section-heading button,
html[data-theme="dark"] .home-page .section-heading a { color: var(--home-muted); }
html[data-theme="dark"] .home-page .section-heading button:hover,
html[data-theme="dark"] .home-page .section-heading a:hover { color: #6eb8b4; }
html[data-theme="dark"] .home-page .content-feature {
  border-left-color: var(--brand-primary);
  background: var(--ns-slate-50);
  color: #b7d5d8;
}
html[data-theme="dark"] .home-page .content-feature p {
  color: var(--dark-accent-soft, #6eb8b4);
}
html[data-theme="dark"] .home-page .content-feature button,
html[data-theme="dark"] .home-page .content-feature a {
  color: #c5d8db;
}
html[data-theme="dark"] .home-page .content-feature button:hover,
html[data-theme="dark"] .home-page .content-feature a:hover {
  color: #6eb8b4;
}
html[data-theme="dark"] .home-page .content-feature small {
  color: #87a2a9;
}
html[data-theme="dark"] .home-page .content-feature strong { color: #c5d8db; }
html[data-theme="dark"] .home-page .content-list li {
  border-bottom-color: var(--home-line);
}
html[data-theme="dark"] .home-page .content-list li:hover {
  background: rgba(42, 158, 154, .06);
}
html[data-theme="dark"] .home-page .content-list li > b { color: #7b969e; }
html[data-theme="dark"] .home-page .content-list li button,
html[data-theme="dark"] .home-page .content-list li a {
  color: #b0c6ca;
  border-color: transparent;
  background: transparent;
}
html[data-theme="dark"] .home-page .content-list li button:hover,
html[data-theme="dark"] .home-page .content-list li a:hover {
  color: #6eb8b4;
  background: transparent;
}
html[data-theme="dark"] .home-page .content-list time,
html[data-theme="dark"] .home-page .content-list small { color: #87a2a9; }

html[data-theme="dark"] .home-page .history-section { background: transparent; box-shadow: none; border: 0; }
html[data-theme="dark"] .home-page .history-panel {
  border-color: var(--home-line);
  background: transparent;
}
html[data-theme="dark"] .home-page .history-panel h3,
html[data-theme="dark"] .home-page .history-rank,
html[data-theme="dark"] .home-page .history-target { color: #b6cbcf; }
html[data-theme="dark"] .home-page .history-panel-title b {
  color: #13262c;
}
html[data-theme="dark"] .home-page .history-meta,
html[data-theme="dark"] .home-page .history-panel small { color: var(--home-muted); }
html[data-theme="dark"] .home-page .history-bar { background: #1e3a42; }
html[data-theme="dark"] .home-page .history-bar > i { background: linear-gradient(90deg, #2a9e9a, #2a8f7a); }

html[data-theme="dark"] .home-page .ad-note {
  border-color: rgba(42, 158, 154, .28);
  color: var(--home-muted);
  background: var(--ns-slate-50);
}
html[data-theme="dark"] .home-page .sponsor-grid button,
html[data-theme="dark"] .home-page .friends button,
html[data-theme="dark"] .home-page .sponsor-grid a,
html[data-theme="dark"] .home-page .friends a {
  border-color: var(--home-line);
  color: var(--home-muted);
  background: var(--ns-slate-25);
}
html[data-theme="dark"] .home-page .sponsor-grid button:hover,
html[data-theme="dark"] .home-page .friends button:hover,
html[data-theme="dark"] .home-page .sponsor-grid a:hover,
html[data-theme="dark"] .home-page .friends a:hover {
  border-color: var(--brand-primary);
  color: #6eb8b4;
  background: rgba(42, 158, 154, .1);
}

html[data-theme="dark"] .home-page footer,
html[data-theme="dark"] footer {
  border-top-color: rgba(42, 158, 154, .1);
  color: var(--home-muted);
  background: #061014;
}

@media (max-width: 1100px) {
  html[data-theme="dark"] .home-page .tool-cluster-list,
  html[data-theme="dark"] .home-page .tool-cluster-list[data-count="4"],
  html[data-theme="dark"] .home-page .tool-cluster-list[data-count="3"] {
    gap: 1px;
    background: var(--home-line);
  }
  html[data-theme="dark"] .home-page .tool-card,
  html[data-theme="dark"] .home-page .tool-cluster-list .tool-card,
  html[data-theme="dark"] .home-page .tool-cluster-list[data-count="4"] .tool-card,
  html[data-theme="dark"] .home-page .tool-cluster-list[data-count="3"] .tool-card {
    background: var(--home-panel);
  }
  html[data-theme="dark"] .home-page .tool-card:hover,
  html[data-theme="dark"] .home-page .tool-cluster-list .tool-card:hover,
  html[data-theme="dark"] .home-page .tool-cluster-list[data-count="4"] .tool-card:hover,
  html[data-theme="dark"] .home-page .tool-cluster-list[data-count="3"] .tool-card:hover {
    background: var(--home-panel-hover);
  }
}

@media (max-width: 900px) {
  html[data-theme="dark"] .theme-toggle {
    min-height: 40px;
    width: 40px;
    padding: 0;
  }
  /* Unify homepage hero + tool-page mobile switch (same inactive/active chrome) */
  html[data-theme="dark"] .mobile-core-tool-switch,
  html[data-theme="dark"] .mobile-core-tool-switch.is-hero {
    border-bottom-color: var(--line);
    background: transparent;
  }
  html[data-theme="dark"] .mobile-core-tool-switch button,
  html[data-theme="dark"] .mobile-core-tool-switch.is-hero button,
html[data-theme="dark"] .mobile-core-tool-switch a,
html[data-theme="dark"] .mobile-core-tool-switch.is-hero a {
    color: var(--muted);
    background: transparent;
  }
  html[data-theme="dark"] .mobile-core-tool-switch button:hover,
  html[data-theme="dark"] .mobile-core-tool-switch.is-hero button:hover,
html[data-theme="dark"] .mobile-core-tool-switch a:hover,
html[data-theme="dark"] .mobile-core-tool-switch.is-hero a:hover {
    color: #6eb8b4;
    background: transparent;
  }
  html[data-theme="dark"] .mobile-core-tool-switch button.active,
  html[data-theme="dark"] .mobile-core-tool-switch.is-hero button.active,
html[data-theme="dark"] .mobile-core-tool-switch a.active,
html[data-theme="dark"] .mobile-core-tool-switch.is-hero a.active {
    border-bottom-color: #6eb8b4;
    color: #6eb8b4;
    background: transparent;
    box-shadow: none;
  }
  html[data-theme="dark"] .mobile-core-tool-switch button.active svg,
  html[data-theme="dark"] .mobile-core-tool-switch.is-hero button.active svg,
html[data-theme="dark"] .mobile-core-tool-switch a.active svg,
html[data-theme="dark"] .mobile-core-tool-switch.is-hero a.active svg {
    opacity: 1;
  }
}
