:root {
  --bg: #0b0c0f;
  --panel: #131419;
  --panel-2: #191a21;
  --panel-3: #20212a;
  --line: #24252d;
  --line-2: #30323c;
  --text: #ebecf1;
  --soft: #c4c6cf;
  --muted: #8a8d99;
  --dim: #5d606c;
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-ink: #160f2b;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #7dd3fc;
  --good-bg: rgba(52, 211, 153, .08);
  --warn-bg: rgba(251, 191, 36, .08);
  --bad-bg: rgba(248, 113, 113, .08);
  --radius: 14px;
  --font: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 14px/1.55 var(--font); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-variant-numeric: tabular-nums; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .92em; background: var(--panel-3); border: 1px solid var(--line); border-radius: 5px; padding: 0 .35em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 13px; }
.neg { color: var(--bad); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* progress */
.progress-track { position: fixed; inset: 0 0 auto; height: 2px; z-index: 30; pointer-events: none; }
.progress-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); transition: width .35s ease, opacity .6s ease .4s; }
.progress-track.done i { opacity: 0; }

/* top bar */
.topbar { max-width: 1260px; margin: 0 auto; padding: 18px 24px 6px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; letter-spacing: .01em; }
.brand svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; padding-left: 8px; border-left: 1px solid var(--line-2); }
.topbar nav { display: flex; gap: 18px; font-size: 13px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--text); }

.wrap { max-width: 1260px; margin: 0 auto; padding: 12px 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.wrap > * { min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card-title { font-size: 15px; font-weight: 650; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-title small, .section-title small { font-size: 12px; font-weight: 400; color: var(--muted); }

/* buttons */
button { cursor: pointer; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 9px; padding: 7px 14px; transition: background .15s, border-color .15s, color .15s; }
button:hover { border-color: var(--dim); background: var(--panel-3); }
button.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
button.accent:hover { background: #b9a2fc; border-color: #b9a2fc; }
button.ghost { background: transparent; }
button.small { padding: 4px 10px; font-size: 12px; }
button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-right: 6px; }
button[data-done]::after { content: " · " attr(data-done); font-weight: 400; }
.chip-btn { padding: 2px 9px; font-size: 12px; border-radius: 7px; color: var(--soft); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 26px 28px; }
.hero-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-right { min-width: 0; }
h1 { font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.score-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; }
/* score ring: the value arc runs from a deep to a bright shade of the grade colour (conic gradient masked to the ring, round caps) */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.score-ring { --p: 0; --g1: #3a3a40; --g2: #3a3a40; position: relative; width: 132px; height: 132px; transition: --p .9s cubic-bezier(.2, .8, .2, 1); }
.score-ring[data-tone="great"], .score-ring[data-tone="good"] { --g1: #138a6a; --g2: #5fe3a8; }
.score-ring[data-tone="ok"] { --g1: #2f9f73; --g2: #b9e05a; }
.score-ring[data-tone="warn"] { --g1: #c2662b; --g2: #f5c84c; }
.score-ring[data-tone="bad"] { --g1: #a92a4a; --g2: #f77f91; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--panel-3); }
.ring-arc { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--g1), var(--g2) calc(var(--p) * 3.6deg), transparent 0);
  -webkit-mask: radial-gradient(closest-side, transparent calc(78.33% - .5px), #000 78.33%, #000 95%, transparent calc(95% + .5px));
  mask: radial-gradient(closest-side, transparent calc(78.33% - .5px), #000 78.33%, #000 95%, transparent calc(95% + .5px)); }
.ring-cap { position: absolute; left: 45.833%; top: 2.5%; width: 8.333%; height: 8.333%; border-radius: 50%; background: var(--g1); transform-origin: 50% 570%; }
.ring-cap.ring-tip { background: var(--g2); transform: rotate(calc(var(--p) * 3.6deg)); }
.score-ring:not(.has-score) .ring-arc, .score-ring:not(.has-score) .ring-cap { display: none; }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-text strong { font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.ring-text span { font-size: 13px; margin-top: 6px; color: var(--muted); font-weight: 600; }
.tone-great, .tone-good { color: var(--good) !important; }
.tone-ok { color: #a3e635 !important; }
.tone-warn { color: var(--warn) !important; }
.tone-bad { color: var(--bad) !important; }

.verdict { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.verdict-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verdict-label { font-size: 18px; font-weight: 700; }
.confidence { font-size: 11px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.confidence.c-high { color: var(--good); border-color: rgba(52, 211, 153, .35); }
.confidence.c-low { color: var(--warn); border-color: rgba(251, 191, 36, .35); }
.pending-note { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.verdict-text { color: var(--soft); }
.score-split { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.score-split b { color: var(--text); font-size: 14px; margin-left: 2px; }
.score-split b.neg { color: var(--bad); }
.deductions { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.deductions li { display: flex; align-items: center; gap: 7px; color: var(--soft); }
.deductions li b { color: var(--bad); min-width: 26px; }
.deductions .dot { width: 6px; height: 6px; border-radius: 2px; background: var(--bad); flex: none; }
.deductions .clean b { color: var(--good); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.block { border-top: 1px solid var(--line); padding-top: 14px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.block-head h2 { font-size: 13px; font-weight: 650; color: var(--soft); }
.addr { display: grid; }
.addr-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
.addr-row:last-child { border-bottom: 0; }
.addr dt { color: var(--muted); font-size: 13px; }
.addr dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; vertical-align: -2px; margin-right: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); background: var(--panel-3); }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.tag-self { color: var(--accent); border-color: rgba(167, 139, 250, .4); }
.asn { color: var(--text); font-weight: 650; text-decoration: underline dotted var(--dim); text-underline-offset: 3px; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 1px 8px; }
.pill-good { color: var(--good); background: var(--good-bg); }
.pill-warn { color: var(--warn); background: var(--warn-bg); }
.pill-bad { color: var(--bad); background: var(--bad-bg); }
.pill-muted { color: var(--muted); background: var(--panel-3); }
.ipv { font-family: var(--mono); font-size: 13px; }

.egress-list { display: grid; gap: 4px; }
.egress-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; min-width: 0; }
.egress-list li.is-target .ipv::before { content: "●"; color: var(--accent); font-size: 9px; margin-right: 7px; vertical-align: 2px; }
.eg-name { color: var(--muted); white-space: nowrap; }
.eg-ip { background: none; border: 0; padding: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.eg-ip:hover .ipv { color: var(--accent); }
.eg-note { margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--soft); }
.eg-note.warn { color: var(--warn); }

/* query */
.query { display: flex; gap: 8px; }
.query input { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; font-family: var(--mono); font-size: 14px; transition: border-color .15s; }
.query input:focus { border-color: var(--accent); outline: none; }
.query input::placeholder { font-family: var(--font); color: var(--dim); }
.query input.is-masked { color: transparent; text-shadow: 0 0 7px rgba(235, 236, 241, .55); }
.ip-history { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--dim); }
.ip-history:empty { display: none; }
.ip-history .chip-btn { font-family: var(--mono); }
.ip-history .chip-btn.clear { font-family: var(--font); color: var(--dim); }
.query button { padding: 0 22px; border-radius: 10px; white-space: nowrap; }
.query .self-check { padding: 0 14px; color: var(--soft); }
.query .self-check:disabled { opacity: .55; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 12px; }
.link-btn:hover { background: none; text-decoration: underline; }
.status { font-size: 12px; color: var(--muted); margin: 8px 2px 4px; min-height: 18px; }
.section-title { font-size: 13px; font-weight: 650; color: var(--soft); margin: 18px 0 10px; display: flex; gap: 8px; align-items: baseline; }

/* icons */
.ico { display: inline-flex; width: 16px; height: 16px; flex: none; }
.ico svg { width: 16px; height: 16px; fill: none; stroke-width: 1.7; stroke-linecap: round; }
.ico-good svg circle { fill: var(--good); stroke: var(--good); } .ico-good svg path { stroke: #06281d; }
.ico-warn svg circle { fill: var(--warn); stroke: var(--warn); } .ico-warn svg path { stroke: #2d1f00; }
.ico-bad svg circle { fill: var(--bad); stroke: var(--bad); } .ico-bad svg path { stroke: #2c0909; }
.ico-info svg circle { stroke: var(--info); } .ico-info svg path { stroke: var(--info); }
.ico-none svg circle, .ico-none svg path { stroke: var(--dim); }
.ico-pending svg circle { stroke: var(--accent); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px 11px; min-width: 0; transition: border-color .3s, background .3s; }
.tile-head { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; }
.tile-label { flex: 1; }
.tile-value { margin-top: 4px; font-weight: 650; font-size: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; min-width: 0; overflow-wrap: anywhere; }
.tile-value small { font-weight: 400; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.tile.lv-bad.has-pen, .tile.lv-bad { border-color: rgba(248, 113, 113, .45); background: linear-gradient(180deg, var(--bad-bg), transparent 140%), var(--panel-2); }
.tile.lv-warn.has-pen { border-color: rgba(251, 191, 36, .35); }
.tile.lv-pending .tile-value { color: var(--dim); }
.wait { color: var(--muted); font-weight: 500; font-size: 13px; }
.pen { color: var(--bad); font-weight: 700; font-size: 13px; }

/* uses */
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.use { background: var(--panel-2); border: 1px solid var(--line); border-top: 3px solid var(--dim); border-radius: 10px; padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; container-type: inline-size; }
.use[data-tip] { cursor: help; }
.use-head { display: flex; align-items: center; gap: 7px; min-width: 0; }
.use-name { font-size: 12.5px; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.use-why { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.use-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.use-items li { display: flex; gap: 6px; min-width: 0; }
.use-items b { flex: none; min-width: 30px; color: var(--bad); font-weight: 650; }
.use-items span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.use.lv-good { border-top-color: var(--good); } .use.lv-warn { border-top-color: var(--warn); } .use.lv-bad { border-top-color: var(--bad); }

/* score badge: "82 可以" */
.use-badge, .gauge-badge { flex: none; display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--muted); font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.use-badge { margin-left: auto; }
.use-badge strong, .gauge-badge strong { font-size: 19px; font-weight: 750; line-height: 1; letter-spacing: -.01em; }
.lv-good .use-badge, .gauge-badge.lv-good { color: var(--good); background: var(--good-bg); border-color: rgba(52, 211, 153, .25); }
.lv-warn .use-badge, .gauge-badge.lv-warn { color: var(--warn); background: var(--warn-bg); border-color: rgba(251, 191, 36, .25); }
.lv-bad .use-badge, .gauge-badge.lv-bad { color: var(--bad); background: var(--bad-bg); border-color: rgba(248, 113, 113, .25); }

/* gradient gauge: red → yellow → green track, white marker at the value, 0–100 scale */
.gauge { display: block; flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.gauge-track { position: relative; display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--bad) 0%, #fb923c 24%, var(--warn) 48%, #a3e635 74%, var(--good) 100%); }
.gauge-mark { position: absolute; top: 50%; width: 4px; height: 16px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 1.5px rgba(11, 12, 15, .8), 0 1px 4px rgba(0, 0, 0, .55); transition: left .5s ease; }
.gauge-scale { position: relative; display: block; height: 14px; margin-top: 6px; font-size: 10px; line-height: 14px; color: var(--muted); white-space: nowrap; }
.gauge-scale span { position: absolute; top: 0; transform: translateX(-50%); }
.gauge-scale span:first-child { left: 0; transform: none; }
.gauge-scale span:last-child { left: 100%; transform: translateX(-100%); }
.gauge-scale em { font-style: normal; }
@container (max-width: 240px) { .gauge-scale .g25 { display: none; } }
@container (max-width: 190px) { .gauge-scale em { display: none; } }
@media (prefers-reduced-motion: reduce) { .gauge-mark { transition: none; } }

/* wide verdict tile with a gauge (人机流量) */
.tile.tile-wide { grid-column: 1 / -1; }
.tile-gauge { display: flex; align-items: center; gap: 14px; flex: 1 1 100%; min-width: 0; font-weight: 400; }
.tile-gauge .gauge, .tile-gauge .split { max-width: 420px; }

/* human ↔ bot split: green from the left, pink from the right, a gap between, each share under its end; a level pill beside */
.split { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.split-track { display: flex; gap: 4px; height: 6px; }
.split-track i { display: block; flex-basis: 0; min-width: 3px; border-radius: 99px; transition: flex-grow .5s ease; }
.split-human { background: var(--good); }
.split-bot { background: #fb7185; }
.split-ends { display: flex; justify-content: space-between; gap: 10px; font: 12px/1.3 var(--mono); }
.split-end.human { color: var(--good); }
.split-end.bot { color: #fb7185; }
.bot-badge { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.bot-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.bot-badge.lv-good { color: var(--good); border-color: rgba(52, 211, 153, .4); background: var(--good-bg); }
.bot-badge.lv-warn { color: var(--warn); border-color: rgba(251, 191, 36, .4); background: var(--warn-bg); }
.bot-badge.lv-bad { color: var(--bad); border-color: rgba(248, 113, 113, .4); background: var(--bad-bg); }
.kv .tile-gauge { gap: 12px; }
.kv .split { max-width: 300px; }

/* captcha */
.captcha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cap { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--dim); border-radius: 11px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.cap.lv-good { border-left-color: var(--good); } .cap.lv-warn { border-left-color: var(--warn); } .cap.lv-bad { border-left-color: var(--bad); } .cap.lv-pending { border-left-color: var(--accent); }
.cap-head { display: flex; align-items: center; gap: 7px; width: 100%; }
.cap-head strong { font-size: 13.5px; }
.cap-result { margin-left: auto; font-weight: 700; }
.cap.lv-good .cap-result { color: var(--good); } .cap.lv-warn .cap-result { color: var(--warn); } .cap.lv-bad .cap-result { color: var(--bad); }
.cap p { color: var(--soft); font-size: 12.5px; }
.cap a { color: var(--muted); }
.turnstile-slot:not(:empty) { margin-top: 10px; }
.grecaptcha-badge { visibility: hidden; }


/* ASN */
.asn-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.asn-number { font-size: 22px; font-weight: 700; }
.asn-number .asn { text-decoration: none; }
.asn-holder { color: var(--muted); font-size: 13px; margin-top: 2px; }
.asn-class { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.asn-class small { color: var(--muted); font-size: 11px; }
.asn-verdict { margin: 14px 0 4px; padding: 9px 12px; border-radius: 9px; background: var(--panel-2); display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.asn-verdict.lv-bad { background: var(--bad-bg); color: #fecaca; }
.asn-verdict.lv-warn { background: var(--warn-bg); color: #fde68a; }
.asn-verdict + .asn-verdict { margin-top: 6px; }
.kv-list { margin-top: 10px; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.meter { display: inline-block; width: 90px; height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--good), var(--warn) 60%, var(--bad)); background-size: 90px 100%; }
.reasons { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.reasons summary { cursor: pointer; }
.reasons ul { margin-top: 6px; display: grid; gap: 3px; padding-left: 14px; list-style: disc; }

/* breakdown */
.breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px 28px; }
.breakdown .notes { grid-column: 1 / -1; }
.cat-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 650; }
.cat-pts small { color: var(--dim); font-weight: 400; }
.cat-pts.neg { color: var(--bad); }
.bar { height: 5px; background: var(--panel-3); border-radius: 99px; overflow: hidden; margin: 6px 0 8px; }
.bar i { display: block; height: 100%; background: var(--bad); border-radius: inherit; transition: width .5s ease; }
.cat ul { display: grid; gap: 4px; }
.cat li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0 8px; font-size: 12.5px; align-items: baseline; }
.cat li b { color: var(--bad); }
.cat li small { grid-column: 2; color: var(--muted); overflow-wrap: anywhere; line-height: 1.45; }
.notes { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.notes p { display: flex; gap: 6px; }

/* geo table */
.table-wrap { overflow-x: auto; }
.geo-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.geo-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 10px 8px; border-bottom: 1px solid var(--line-2); }
.geo-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.geo-table tr:last-child td { border-bottom: 0; }
.geo-table td a { text-decoration: none; }
.geo-table td a:hover { color: var(--accent); }
.geo-table tr.differs td { background: var(--bad-bg); }
.geo-table .org { color: var(--soft); max-width: 260px; }
.mini { display: inline-block; font-size: 11px; border-radius: 5px; padding: 0 6px; margin-right: 4px; background: var(--panel-3); color: var(--soft); }

/* sources: one card per source, coloured by that source's own verdict (--tone) */
#sources { display: grid; gap: 20px; }
.src-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.src-top .card-title { margin-bottom: 0; }
.src-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.src-legend li { display: inline-flex; align-items: center; gap: 6px; }
.src-legend li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.lg-good { --tone: var(--good); } .lg-warn { --tone: var(--warn); } .lg-bad { --tone: var(--bad); } .lg-info { --tone: var(--info); }
.lg-none { --tone: transparent; } .lg-none::before { box-shadow: inset 0 0 0 1.5px var(--dim); }
.src-group h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; font-weight: 650; color: var(--soft); margin-bottom: 9px; }
.src-group h3 small { color: var(--muted); font-weight: 400; margin-right: 4px; }
.tally { font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 99px; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); }
.tally-good { --tone: var(--good); } .tally-warn { --tone: var(--warn); } .tally-bad { --tone: var(--bad); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.src {
  --tone: var(--dim);
  display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 11px 8px; border-radius: 10px; text-decoration: none; font-size: 12.5px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) var(--tint, 0%), transparent), transparent 70%), var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--tone) var(--edge, 0%), var(--line));
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.src-good { --tone: var(--good); --edge: 16%; }
.src-warn { --tone: var(--warn); --tint: 9%; --edge: 36%; }
.src-bad { --tone: var(--bad); --tint: 13%; --edge: 50%; }
.src-info { --tone: var(--info); }
.src-pending { --tone: var(--accent); }
.src:hover, .src:focus-visible { border-color: color-mix(in srgb, var(--tone) 60%, var(--line-2)); transform: translateY(-1px); box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--tone) 80%, transparent); }
.src:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.src-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.src-head .ico, .src-head .ico svg { width: 14px; height: 14px; }
.src-name { flex: 1; min-width: 0; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s, transform .15s; }
.src:hover .go, .src:focus-visible .go, .crosslinks a:hover .go { stroke: var(--accent); transform: translate(1px, -1px); }
.src-val { color: var(--soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-good .src-val, .src-warn .src-val, .src-bad .src-val { color: color-mix(in srgb, var(--tone) 78%, var(--text)); }
.src-foot { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.src-tag { font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 6px; white-space: nowrap; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); }
.src-ms { margin-left: auto; color: var(--dim); font-size: 11px; }
/* No answer (unavailable, not configured, skipped): an empty slot, still a link to the source. */
.src-off, .src-none { background: transparent; border-style: dashed; }
.src-off .src-name, .src-none .src-name { color: var(--muted); }
.src-off .src-val, .src-none .src-val { color: var(--dim); }
@media (max-width: 620px) { .src-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }

.footer { display: grid; gap: 8px; padding: 6px 4px 0; font-size: 12.5px; }
.footer a { color: var(--soft); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.crosscheck { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.crosslinks { display: flex; flex-wrap: wrap; gap: 6px; }
.crosslinks a { --tone: transparent; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); font-size: 12px; transition: border-color .15s, color .15s; }
.crosslinks a:hover { color: var(--text); border-color: var(--line-2); }
.crosslinks a i { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.crosslinks a[data-tone="good"] { --tone: var(--good); } .crosslinks a[data-tone="warn"] { --tone: var(--warn); }
.crosslinks a[data-tone="bad"] { --tone: var(--bad); } .crosslinks a[data-tone="info"] { --tone: var(--info); }
.crosslinks a[data-tone="good"] i, .crosslinks a[data-tone="warn"] i, .crosslinks a[data-tone="bad"] i, .crosslinks a[data-tone="info"] i { display: block; }
.crosslinks a[data-tone="warn"], .crosslinks a[data-tone="bad"] { border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); }

/* before the first result */
body:not(.has-result) #checks, body:not(.has-result) #uses { opacity: .35; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }

}
@media (max-width: 620px) {
  .query { flex-wrap: wrap; }
  .query input { flex-basis: 100%; }
  .query button { flex: 1; padding: 9px 12px; }
  .wrap, .topbar { padding-left: 12px; padding-right: 12px; }
  .topbar nav a:not(:last-child) { display: none; }
  .card, .hero { padding: 16px; }
  h1 { font-size: 19px; }
  .score-row { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .score-ring { width: 104px; height: 104px; }
  .ring-text strong { font-size: 32px; }
  .tiles, .captcha { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-value { font-size: 14px; }
}
@media (max-width: 400px) { .tiles, .captcha { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- gradient tags: mixed evidence, "?" for low certainty ---------- */
:root { --t-good: #34d399; --t-teal: #2dd4bf; --t-sky: #7dd3fc; --t-warn: #fbbf24; --t-orange: #fb923c; --t-violet: #c4b5fd; --t-slate: #a5b4fc; --t-muted: #8a8d99; --t-bad: #f87171; }
.tag2 {
  --c1: var(--t-muted); --c2: var(--c1); --split: 100%;
  display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; font-weight: 650; line-height: 22px; white-space: nowrap; cursor: help; vertical-align: middle;
  border: 1px solid color-mix(in srgb, var(--c1) 30%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 15%, transparent) calc(var(--split) - 24%), color-mix(in srgb, var(--c2) 15%, transparent) calc(var(--split) + 24%));
}
.tag2.mixed { border: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 22%, transparent); border-radius: 6px; }
.tag2.unsure { box-shadow: none; border: 1px dashed color-mix(in srgb, var(--c1) 45%, transparent); }
.tag2-text { background: linear-gradient(90deg, var(--c1) calc(var(--split) - 20%), var(--c2) calc(var(--split) + 20%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag2 .q, .tag2 .x { font-style: normal; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; font-size: 10px; font-weight: 800; line-height: 1; color: #15161b; background: var(--c2); opacity: .9; }
.tag2.lg { font-size: 14px; line-height: 28px; padding: 0 11px; border-radius: 8px; }
.tag2.lg .q, .tag2.lg .x { width: 16px; height: 16px; font-size: 11px; }
/* a label the detection contradicts: same tag, in red (amber for a softer mismatch), with a "!" */
.tag2.conflict { border: 1px solid color-mix(in srgb, var(--t-bad) 55%, transparent); }
.tag2.conflict-warn { border-color: color-mix(in srgb, var(--t-warn) 55%, transparent); }
.tag2 .x { background: var(--t-bad); }
.tag2.conflict-warn .x { background: var(--t-warn); }
.ut.ut-conflict { background: rgba(248, 113, 113, .16); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .45); }
.ut.ut-conflict::after { content: "!"; display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 5px; border-radius: 50%; font-size: 10px; font-weight: 800; line-height: 1; color: #15161b; background: var(--bad); vertical-align: 1px; }
.tag2:hover { filter: brightness(1.15); }
.tile-value .tag2 { font-size: 14px; line-height: 24px; }
.mini[data-tip] { cursor: help; }

#tip {
  position: fixed; left: 0; top: 0; z-index: 60; max-width: min(340px, calc(100vw - 16px)); padding: 9px 12px;
  border-radius: 10px; background: #1d1e26; border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  color: var(--soft); font-size: 12px; line-height: 1.6; white-space: pre-line; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .12s ease;
}
#tip.on { opacity: 1; visibility: visible; }
#tip::first-line { color: var(--text); font-weight: 650; }

/* layout fixes */
.asn-head > div:first-child { min-width: 0; flex: 1; }
.asn-holder { overflow-wrap: anywhere; }
.asn-class { flex: none; }
.addr-row dt { white-space: nowrap; }
.addr-row { grid-template-columns: 84px minmax(0, 1fr); }
@media (max-width: 620px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* bonuses */
.deductions li.plus b { color: var(--good); }
.deductions li.plus .dot { background: var(--good); border-radius: 50%; }
.deductions li[data-tip] { cursor: help; }
.cat-pts.pos { color: var(--good); }
.bar-plus i { background: var(--good); }
.cat-bonus li b { color: var(--good); }

/* multi-source type matrix */
.type-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.type-table th { font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 6px 10px; text-align: center; white-space: nowrap; }
.type-table tbody th { text-align: left; color: var(--soft); font-weight: 600; padding: 8px 10px 8px 0; }
.type-table td { text-align: center; padding: 6px; border-top: 1px solid var(--line); }
.ut { display: inline-block; min-width: 46px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 650; cursor: help; }
.ut-residential { background: rgba(52, 211, 153, .16); color: var(--good); }
.ut-mobile { background: rgba(45, 212, 191, .16); color: var(--t-teal); }
.ut-business { background: rgba(251, 191, 36, .16); color: var(--warn); }
.ut-hosting { background: rgba(248, 113, 113, .16); color: var(--bad); }
.ut-education, .ut-government { background: rgba(165, 180, 252, .16); color: var(--t-slate); }
.ut-unknown { border: 1px dashed rgba(251, 191, 36, .45); color: var(--warn); }
.ut-off { color: var(--dim); font-weight: 500; }
.ut-pending { cursor: default; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.type-summary { margin-top: 10px; }
.type-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.type-heading .card-title { margin-bottom:0; }
#auto-page-status { margin:8px 0 16px; }
#chrome-challenges:empty { display:none; }
#chrome-challenges { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.type-table th a { color:inherit; text-decoration:none; }
.type-table th a:hover { color:var(--text); text-decoration:underline; }
.lookup-cell { border:0; background:transparent; color:var(--muted); padding:3px; font:inherit; font-size:12px; cursor:pointer; white-space:nowrap; }
.lookup-cell.ut { font-size:12px; }
.lookup-cell:hover { text-decoration:underline; }
.lookup-ok { color:var(--good); }
.lookup-wait { color:var(--warn); }
.chrome-type-row td { padding-top:8px; padding-bottom:8px; }
.lookup-details, .type-tools { margin-top:12px; color:var(--muted); font-size:12px; }
.lookup-details summary, .type-tools summary { cursor:pointer; }
.lookup-table { width:100%; min-width:600px; border-collapse:collapse; margin-top:12px; font-size:12px; text-align:left; }
.lookup-table th, .lookup-table td { border-bottom:1px solid var(--line); padding:9px 10px; vertical-align:top; }
.lookup-table th { font-weight:500; color:var(--soft); white-space:nowrap; }
.lookup-table td:nth-child(2), .lookup-table td:nth-child(3), .lookup-table td:last-child { white-space:nowrap; }
.lookup-table td:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.lookup-table td:nth-child(4) { width:65%; line-height:1.6; overflow-wrap:anywhere; }
.type-tools details { margin:12px 0; }
