/* =====================================================================
   Xprotect Device X-Ray — scoped to .xr-root
   Uses Xprotect core tokens (style.css) with local fallbacks
   ===================================================================== */
.xr-root {
  --xr-bg: #141026;
  --xr-panel: #10182c;
  --xr-panel-2: #131e36;
  --xr-line: rgba(255, 255, 255, .08);
  --xr-line-2: rgba(255, 255, 255, .14);
  --xr-text: #f8fafc;
  --xr-text-2: #cbd5e1;
  --xr-text-3: #94a3b8;
  --xr-blue: #3b82f6;
  --xr-cyan: #38bdf8;
  --xr-violet: #8b5cf6;
  --xr-green: #10b981;
  --xr-amber: #f59e0b;
  --xr-orange: #f97316;
  --xr-red: #f43f5e;
  --xr-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color: var(--xr-text);
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
}
.xr-root *, .xr-root *::before, .xr-root *::after { box-sizing: border-box; }
.xr-root [hidden] { display: none !important; }
.xr-root .mono { font-family: var(--xr-mono); font-size: .92em; }
.xr-root h2, .xr-root h3, .xr-root p { margin: 0; }
.xr-wrap { max-width: 1200px; margin: 0 auto; padding: 8px 16px 64px; display: flex; flex-direction: column; gap: 20px; }

/* ---------------------------------------------------------------- panels */
.xr-panel {
  background: linear-gradient(180deg, rgba(19, 30, 54, .92), rgba(16, 24, 44, .96));
  border: 1px solid var(--xr-line);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  min-width: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.xr-panel-h {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-weight: 600; font-size: 1.02rem; color: #fff; margin-bottom: 16px;
}
.xr-panel-h > i { color: var(--xr-cyan); width: 18px; text-align: center; }
.xr-h-sub { margin-left: auto; font-weight: 400; font-size: .78rem; color: var(--xr-text-3); }
.xr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .xr-cols { grid-template-columns: 1fr; } }

.xr-btn, .xr-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 .9rem 'Outfit', sans-serif; border-radius: 999px; padding: 10px 20px; border: 0;
  transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap;
}
.xr-btn { color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 6px 18px rgba(59, 130, 246, .35); }
.xr-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(59, 130, 246, .45); }
.xr-btn-ghost { color: var(--xr-text-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--xr-line-2); }
.xr-btn-ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.xr-btn-danger { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 6px 22px rgba(244, 63, 94, .45); }
.xr-root button:focus-visible, .xr-root [tabindex]:focus-visible { outline: 2px solid var(--xr-cyan); outline-offset: 3px; }

/* ---------------------------------------------------------------- launch */
.xr-launch {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center;
  background: radial-gradient(120% 90% at 20% 40%, rgba(59, 130, 246, .12), transparent 60%), linear-gradient(180deg, rgba(19, 30, 54, .8), rgba(16, 24, 44, .9));
  border: 1px solid var(--xr-line); border-radius: 24px; padding: 26px; overflow: hidden;
}
@media (max-width: 900px) { .xr-launch { grid-template-columns: 1fr; padding: 18px; } }
.xr-core { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin: 0 auto; display: grid; place-items: center; }
.xr-core canvas, .xr-scan-canvas-holder canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xr-start {
  position: relative; z-index: 2; width: 150px; height: 150px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff; font: 700 1rem 'Outfit', sans-serif; letter-spacing: .3px;
  background: radial-gradient(circle at 30% 25%, #60a5fa, #4f46e5 55%, #312e81);
  box-shadow: 0 0 0 10px rgba(59, 130, 246, .12), 0 0 60px rgba(99, 102, 241, .65), inset 0 2px 10px rgba(255, 255, 255, .3);
  transition: transform .2s;
}
.xr-start i { font-size: 2.1rem; }
.xr-start:hover { transform: scale(1.05); }
.xr-start-ring { position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .5); animation: xr-ping 2.4s cubic-bezier(.2, .6, .3, 1) infinite; pointer-events: none; }
@keyframes xr-ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.xr-launch-side h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 14px; }
.xr-checks { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.xr-root .xr-checks li { display: flex; gap: 12px; align-items: flex-start; }
.xr-checks li > i {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--xr-cyan);
  background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .22);
}
.xr-checks b { display: block; font-weight: 600; font-size: .95rem; }
.xr-checks span { display: block; color: var(--xr-text-3); font-size: .84rem; line-height: 1.45; }
.xr-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 14px; border-radius: 14px; background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .25); }
.xr-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xr-switch { flex: none; width: 42px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; transition: background .2s; margin-top: 2px; }
.xr-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.xr-consent input:checked + .xr-switch { background: var(--xr-violet); }
.xr-consent input:checked + .xr-switch::after { transform: translateX(18px); }
.xr-consent input:focus-visible + .xr-switch { outline: 2px solid var(--xr-cyan); outline-offset: 2px; }
.xr-consent b { display: block; font-size: .92rem; }
.xr-consent small { display: block; color: var(--xr-text-3); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.xr-privacy { margin-top: 12px !important; font-size: .8rem; color: var(--xr-text-3); }
.xr-privacy i { color: var(--xr-green); margin-right: 4px; }

/* ---------------------------------------------------------------- scanning */
.xr-scan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .xr-scan-grid { grid-template-columns: 1fr; } }
.xr-scan-canvas-holder { position: relative; height: 220px; margin: -6px -6px 6px; }
.xr-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 600 .85rem var(--xr-mono); color: var(--xr-cyan); }
.xr-progress-track { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
#xr-progress-bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #38bdf8, #8b5cf6); transition: width .4s ease; box-shadow: 0 0 12px rgba(56, 189, 248, .7); }
.xr-modules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
/* .xr-modules prefix beats oxygen-base's ':is(li,div._important){display:list-item}' */
.xr-modules .xr-mod { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 18px; align-items: center; column-gap: 12px; padding: 8px 10px; border-radius: 10px; font-size: .9rem; transition: background .2s, opacity .2s; }
.xr-mod-ico { color: var(--xr-text-3); display: flex; justify-content: center; }
.xr-mod-label { min-width: 0; }
.xr-mod-note { font: .75rem var(--xr-mono); color: var(--xr-text-3); white-space: nowrap; }
.xr-mod-state { display: flex; justify-content: flex-end; }
.xr-mod-state i { display: none; }
.xr-mod.is-wait { opacity: .45; }
.xr-mod.is-run { background: rgba(56, 189, 248, .07); }
.xr-mod.is-run .xr-mod-ico, .xr-mod.is-run .xr-mod-state .fa-circle-notch { color: var(--xr-cyan); }
.xr-mod.is-run .fa-circle-notch, .xr-mod.is-wait .fa-circle-notch { display: inline-block; }
.xr-mod.is-done .fa-check { display: inline-block; color: var(--xr-green); }
.xr-mod.is-done .xr-mod-ico { color: var(--xr-green); }
.xr-mod.is-skip { opacity: .5; }
.xr-mod.is-skip .fa-minus { display: inline-block; color: var(--xr-text-3); }
.xr-term-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 420px; background: #0a0f1d; }
.xr-term-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--xr-line); font: .78rem var(--xr-mono); color: var(--xr-text-3); }
.xr-term-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.xr-term-head .r { background: #f43f5e; } .xr-term-head .y { background: #f59e0b; } .xr-term-head .g { background: #10b981; margin-right: 8px; }
.xr-terminal { flex: 1; overflow-y: auto; padding: 14px 16px; font: .8rem/1.65 var(--xr-mono); color: #a5f3fc; max-height: 480px; }
.xr-line { animation: xr-type .25s ease both; word-break: break-word; }
.xr-line .xr-ts { color: #475569; }
.xr-line.t-ok { color: #6ee7b7; } .xr-line.t-bad { color: #fda4af; }
@keyframes xr-type { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

.xr-error { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-color: rgba(244, 63, 94, .35); }
.xr-error > i { font-size: 1.8rem; color: var(--xr-red); }
.xr-error div { flex: 1; min-width: 200px; } .xr-error b { display: block; } .xr-error span { color: var(--xr-text-3); font-size: .9rem; }

/* ---------------------------------------------------------------- alert banner */
.xr-alert { position: relative; overflow: hidden; border-radius: 18px; padding: 20px; border: 1px solid rgba(244, 63, 94, .45); background: linear-gradient(135deg, rgba(244, 63, 94, .16), rgba(16, 24, 44, .95) 60%); box-shadow: 0 0 0 1px rgba(244, 63, 94, .15), 0 18px 50px rgba(244, 63, 94, .18); }
.xr-alert.lvl-elevated { border-color: rgba(249, 115, 22, .45); background: linear-gradient(135deg, rgba(249, 115, 22, .14), rgba(16, 24, 44, .95) 60%); box-shadow: 0 18px 50px rgba(249, 115, 22, .12); }
.xr-alert-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px); }
.xr-alert.lvl-critical .xr-alert-scan::after { content: ''; position: absolute; left: 0; right: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(244, 63, 94, .14), transparent); animation: xr-sweepY 3.2s linear infinite; }
@keyframes xr-sweepY { from { top: -40%; } to { top: 100%; } }
.xr-alert-head { position: relative; display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.xr-alert-siren { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: #e11d48; animation: xr-siren 1.4s ease-in-out infinite; }
.lvl-elevated .xr-alert-siren { background: #ea580c; animation: none; }
@keyframes xr-siren { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .6); } 50% { box-shadow: 0 0 0 12px rgba(244, 63, 94, 0); } }
.xr-alert-kicker { font: 700 .72rem var(--xr-mono); letter-spacing: 2px; color: #fda4af; }
.lvl-elevated .xr-alert-kicker { color: #fdba74; }
.xr-alert h3 { font-size: 1.25rem; font-weight: 700; }
.xr-alert-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xr-alert-list button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: rgba(10, 15, 29, .6); border: 1px solid var(--xr-line); border-radius: 12px; padding: 11px 14px;
  color: var(--xr-text); font: 500 .92rem 'Outfit', sans-serif; transition: border-color .15s, background .15s;
}
.xr-alert-list button:hover { border-color: rgba(255, 255, 255, .25); background: rgba(10, 15, 29, .85); }
.xr-alert-list strong { flex: 1; font-weight: 500; }
.xr-alert-list .fa-arrow-right { color: var(--xr-text-3); }
.sev-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .05); }
.xr-kev-chip { flex: none; font: 600 .72rem var(--xr-mono); padding: 3px 8px; border-radius: 99px; background: rgba(244, 63, 94, .16); color: #fda4af; border: 1px solid rgba(244, 63, 94, .35); }

/* ---------------------------------------------------------------- score + radar */
.xr-results { display: flex; flex-direction: column; gap: 20px; }
.xr-top { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; }
@media (max-width: 980px) { .xr-top { grid-template-columns: 1fr; } }
.xr-score-panel { display: flex; flex-direction: column; align-items: center; text-align: center; }
.xr-score-panel .xr-panel-h { align-self: stretch; }
.xr-score-ring { position: relative; width: 220px; max-width: 100%; aspect-ratio: 1; }
.xr-score-ring svg { width: 100%; height: 100%; }
.xr-ring-ticks { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; stroke-dasharray: 1 7; animation: xr-spin 40s linear infinite; transform-origin: 110px 110px; }
.xr-ring-track { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 12; }
.xr-ring-val { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
@keyframes xr-spin { to { transform: rotate(360deg); } }
.xr-ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.xr-ring-num { font: 700 3.4rem/1 'Outfit', sans-serif; letter-spacing: -2px; }
.xr-ring-sub { color: var(--xr-text-3); font-size: .85rem; margin-top: 2px; }
.xr-grade { font: 800 1.15rem var(--xr-mono); margin-top: 6px; }
.xr-threat { margin: 14px 0 12px; }
.xr-threat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.xr-counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; margin-bottom: 16px; }
.xr-count { background: rgba(255, 255, 255, .03); border: 1px solid var(--xr-line); border-radius: 10px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.xr-count b { font-size: 1.1rem; } .xr-count span { font-size: .66rem; color: var(--xr-text-3); text-transform: uppercase; letter-spacing: .5px; }
.xr-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.xr-meta { margin-top: 12px; font-size: .74rem; color: var(--xr-text-3); }

.xr-radar-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 700px) { .xr-radar-wrap { grid-template-columns: 1fr; } }
.xr-radar { position: relative; width: 100%; }
.xr-radar svg { width: 100%; height: auto; display: block; overflow: visible; }
.xr-web { fill: none; stroke: rgba(148, 163, 184, .16); stroke-width: 1; }
.xr-web:last-of-type { stroke: rgba(148, 163, 184, .28); }
.xr-spoke { stroke: rgba(148, 163, 184, .14); stroke-width: 1; }
.xr-sweep { transform-origin: 200px 200px; animation: xr-spin 5s linear infinite; }
.xr-shape { transform-origin: 200px 200px; animation: xr-grow 1.2s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes xr-grow { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.xr-area { fill: url(#xrRadarFill); stroke: #818cf8; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(129, 140, 248, .55)); }
.xr-node { cursor: pointer; animation: xr-fade .5s 1s both; }
.xr-node .xr-hit { fill: transparent; }
.xr-node .xr-dot { stroke-width: 2.5; transition: r .15s; }
.xr-node.is-untested .xr-dot { stroke-dasharray: 2 2; }
.xr-node:hover .xr-dot, .xr-node:focus .xr-dot { r: 8; }
@keyframes xr-fade { from { opacity: 0; } to { opacity: 1; } }
.xr-axis-label { fill: var(--xr-text-2); font: 600 12.5px 'Outfit', sans-serif; }
.xr-axis-val { fill: var(--xr-text-3); font: 500 11.5px 'JetBrains Mono', monospace; }
.xr-tip { position: absolute; z-index: 5; width: 250px; pointer-events: none; background: rgba(10, 15, 29, .97); border: 1px solid var(--xr-line-2); border-radius: 12px; padding: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); font-size: .82rem; }
.xr-tip-h { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.xr-tip-h b { margin-left: auto; font-family: var(--xr-mono); }
.xr-tip-d { color: var(--xr-text-3); margin-bottom: 8px; line-height: 1.4; }
.xr-tip-i { display: flex; gap: 8px; align-items: center; color: var(--xr-text-2); margin-top: 4px; }
.xr-radar-legend { display: flex; flex-direction: column; gap: 4px; }
.xr-axis-row {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) 70px 30px 62px; align-items: center; gap: 8px;
  width: 100%; padding: 7px 8px; border-radius: 9px; border: 0; background: transparent; color: var(--xr-text-2);
  font: 500 .85rem 'Outfit', sans-serif; text-align: left; cursor: pointer;
}
.xr-axis-row:hover { background: rgba(255, 255, 255, .05); }
.xr-axis-row > i { color: var(--xr-text-3); text-align: center; }
.xr-axis-row span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-axis-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.xr-axis-bar span { display: block; height: 100%; border-radius: 99px; animation: xr-bar 1.2s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes xr-bar { from { transform: scaleX(0); } }
.xr-axis-row b { font-family: var(--xr-mono); text-align: right; color: #fff; }
.xr-axis-row em { font-style: normal; font-size: .74rem; color: var(--xr-text-3); }

/* ---------------------------------------------------------------- attack surface map */
.xr-graph { width: 100%; }
.xr-graph svg { width: 100%; height: auto; display: block; max-height: 520px; }
.xr-orbit { fill: none; stroke: rgba(148, 163, 184, .1); stroke-dasharray: 3 7; transform-origin: center; transform-box: fill-box; animation: xr-spin 60s linear infinite; }
.xr-orbit.o2 { animation-direction: reverse; animation-duration: 45s; }
.xr-edge { fill: none; stroke: var(--c); stroke-opacity: .45; stroke-width: 1.6; stroke-dasharray: 5 7; animation: xr-flow 1.6s linear infinite; }
.xr-edge.is-hot { stroke-opacity: .9; stroke-width: 2.2; animation-duration: .7s; filter: drop-shadow(0 0 4px var(--c)); }
@keyframes xr-flow { to { stroke-dashoffset: -24; } }
.xr-leaf-edge { stroke-opacity: .4; stroke-width: 1; }
.xr-leaf { cursor: pointer; }
.xr-leaf circle:not(.xr-leaf-pulse) { stroke: #0b1122; stroke-width: 2; transition: r .15s; }
.xr-leaf:hover circle:not(.xr-leaf-pulse) { r: 9; }
.xr-leaf-pulse { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: xr-pulse 1.6s ease-out infinite; }
.xr-leaf.is-crit .xr-leaf-pulse { animation-duration: 1s; }
@keyframes xr-pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.xr-hub { cursor: pointer; }
.xr-hub-ring { fill: #0f172a; stroke-width: 2; transition: fill .15s; }
.xr-hub:hover .xr-hub-ring { fill: #172036; }
.xr-hub-ico { width: 24px; height: 24px; display: grid; place-items: center; font-size: 15px; }
.xr-hub-label { fill: var(--xr-text-2); font: 600 12px 'Outfit', sans-serif; text-anchor: middle; }
.xr-core-ring { fill: #1e1b4b; stroke: #818cf8; stroke-width: 2; }
.xr-core-ring2 { fill: none; stroke: rgba(129, 140, 248, .4); stroke-width: 1; stroke-dasharray: 2 5; transform-box: fill-box; transform-origin: center; animation: xr-spin 12s linear infinite; }
.xr-core-ico { width: 32px; height: 32px; display: grid; place-items: center; color: #c7d2fe; font-size: 22px; }
.xr-core-label { fill: #fff; font: 700 13px 'Outfit', sans-serif; text-anchor: middle; }
.xr-legend-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .78rem; color: var(--xr-text-3); }
.xr-legend-row .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.xr-legend-row .sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------------------------------------------------------------- identity / software */
.xr-ip-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.xr-ip-flag { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.9rem; background: rgba(255, 255, 255, .04); border: 1px solid var(--xr-line); color: var(--xr-text-3); }
.xr-ip-addr { font-size: 1.15rem; font-weight: 600; word-break: break-all; }
.xr-ip-org { color: var(--xr-text-3); font-size: .86rem; }
.xr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.xr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; white-space: nowrap; border: 1px solid; }
.xr-chip.t-green { color: #6ee7b7; background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); }
.xr-chip.t-red { color: #fda4af; background: rgba(244, 63, 94, .1); border-color: rgba(244, 63, 94, .35); }
.xr-chip.t-amber { color: #fcd34d; background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); }
.xr-chip.t-blue { color: #93c5fd; background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .3); }
.xr-chip.t-violet { color: #c4b5fd; background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .35); }
.xr-chip.t-cyan { color: #67e8f9; background: rgba(6, 182, 212, .1); border-color: rgba(6, 182, 212, .3); }
.xr-chip.t-muted { color: var(--xr-text-2); background: rgba(255, 255, 255, .05); border-color: var(--xr-line-2); }
.xr-kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--xr-line); font-size: .87rem; }
.xr-kv span { color: var(--xr-text-3); flex: none; }
.xr-kv b { font-weight: 500; text-align: right; word-break: break-all; }
.xr-kv em { color: var(--xr-text-3); font-style: normal; }
.xr-sub { margin: 16px 0 6px; font: 700 .7rem var(--xr-mono); letter-spacing: 1.4px; text-transform: uppercase; color: var(--xr-text-3); }
.xr-resolver { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); margin-bottom: 6px; font-size: .86rem; }
.xr-resolver .mono { color: var(--xr-cyan); }
.xr-listing { padding: 8px 10px; border-radius: 10px; background: rgba(244, 63, 94, .07); border: 1px solid rgba(244, 63, 94, .2); margin-bottom: 6px; font-size: .84rem; }
.xr-listing b { display: block; color: #fda4af; }
.xr-listing span { color: var(--xr-text-2); }
.t-bad { color: #fda4af; } .t-green { color: #6ee7b7; } .t-amber { color: #fcd34d; } .t-red { color: #fda4af; }
.xr-muted { color: var(--xr-text-3); }
.xr-empty { color: var(--xr-text-3); font-size: .88rem; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px dashed var(--xr-line-2); margin-bottom: 10px; }
.xr-empty i { margin-right: 6px; }

.xr-sw-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--xr-line); }
.xr-sw-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(255, 255, 255, .04); border: 1px solid var(--xr-line); color: #e2e8f0; }
.xr-sw-main { flex: 1; min-width: 0; }
.xr-sw-name { font-weight: 600; }
.xr-sw-name .mono { color: var(--xr-text-3); font-weight: 400; }
.xr-sw-sub { color: var(--xr-text-3); font-size: .8rem; margin-top: 2px; }
.xr-ver-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); margin-top: 8px; overflow: hidden; }
.xr-ver-bar span { display: block; height: 100%; border-radius: 99px; animation: xr-bar 1.2s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.xr-ver-legend { display: flex; justify-content: space-between; font: .7rem var(--xr-mono); color: var(--xr-text-3); margin-top: 4px; gap: 8px; }
.xr-note { color: var(--xr-text-3); font-size: .82rem; margin: 8px 0 !important; }
.xr-kev-box { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; }
.xr-kev-box > i { font-size: 1.3rem; }
.xr-kev-box b { display: block; font-size: .92rem; } .xr-kev-box span { font-size: .78rem; color: var(--xr-text-3); }
.xr-kev-box.is-bad { background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .3); }
.xr-kev-box.is-bad > i { color: var(--xr-red); }
.xr-kev-box.is-ok { background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .25); }
.xr-kev-box.is-ok > i { color: var(--xr-green); }

/* ---------------------------------------------------------------- perimeter */
.xr-perim-sum { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-bottom: 12px; font-size: .88rem; }
.xr-perim-sum b { font-size: 1.3rem; margin-right: 3px; }
.xr-perim-sum .mono { margin-left: auto; font-size: .76rem; }
.xr-ports { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.xr-port { padding: 8px; border-radius: 10px; border: 1px solid; display: flex; flex-direction: column; gap: 1px; animation: xr-pop .35s ease both; min-width: 0; }
.xr-port b { font: 600 .9rem var(--xr-mono); }
.xr-port span { font-size: .7rem; color: var(--xr-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-port em { font: 600 .62rem var(--xr-mono); text-transform: uppercase; letter-spacing: .6px; font-style: normal; }
.st-stealth { background: rgba(16, 185, 129, .07); border-color: rgba(16, 185, 129, .25); } .xr-port.st-stealth em { color: #6ee7b7; }
.st-closed { background: rgba(245, 158, 11, .07); border-color: rgba(245, 158, 11, .25); } .xr-port.st-closed em { color: #fcd34d; }
.st-open { background: rgba(244, 63, 94, .14); border-color: rgba(244, 63, 94, .55); } .xr-port.st-open em { color: #fda4af; }
.xr-port.st-open { animation: xr-pop .35s ease both, xr-glow 1.6s ease-in-out infinite; }
.sq.st-stealth { background: rgba(16, 185, 129, .5); } .sq.st-closed { background: rgba(245, 158, 11, .5); } .sq.st-open { background: rgba(244, 63, 94, .7); }
@keyframes xr-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes xr-glow { 50% { box-shadow: 0 0 16px rgba(244, 63, 94, .45); } }

/* ---------------------------------------------------------------- TLS */
.xr-tls-verdict { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; margin-bottom: 12px; }
.xr-tls-verdict > i { font-size: 1.6rem; }
.xr-tls-verdict b { display: block; } .xr-tls-verdict span { font-size: .8rem; color: var(--xr-text-3); }
.xr-tls-verdict.is-ok { background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .25); } .xr-tls-verdict.is-ok > i { color: var(--xr-green); }
.xr-tls-verdict.is-bad { background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .4); } .xr-tls-verdict.is-bad > i { color: var(--xr-red); }
.xr-tls-verdict.is-na { background: rgba(255, 255, 255, .04); border: 1px solid var(--xr-line); } .xr-tls-verdict.is-na > i { color: var(--xr-text-3); }
.xr-tls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.xr-tls-cell { display: grid; grid-template-columns: 16px 1fr; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--xr-line); background: rgba(255, 255, 255, .02); font-size: .8rem; }
.xr-tls-cell em { grid-column: 2; font: 600 .64rem var(--xr-mono); text-transform: uppercase; letter-spacing: .6px; font-style: normal; }
.xr-tls-cell.st-ok i, .xr-tls-cell.st-ok em { color: #6ee7b7; }
.xr-tls-cell.st-fail { border-color: rgba(244, 63, 94, .45); background: rgba(244, 63, 94, .1); }
.xr-tls-cell.st-fail i, .xr-tls-cell.st-fail em { color: #fda4af; }
.xr-tls-cell.st-na i, .xr-tls-cell.st-na em { color: var(--xr-text-3); }

/* ---------------------------------------------------------------- findings */
.xr-filters { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.xr-filter { border: 1px solid var(--xr-line-2); background: transparent; color: var(--xr-text-2); padding: 6px 14px; border-radius: 99px; cursor: pointer; font: 500 .84rem 'Outfit', sans-serif; }
.xr-filter.is-active { background: rgba(59, 130, 246, .16); border-color: rgba(59, 130, 246, .5); color: #fff; }
.xr-findings { display: flex; flex-direction: column; gap: 8px; }
.xr-finding { border: 1px solid var(--xr-line); border-radius: 14px; background: rgba(255, 255, 255, .02); overflow: hidden; transition: border-color .2s, box-shadow .3s; }
.xr-finding.sev-critical { border-color: rgba(244, 63, 94, .45); background: linear-gradient(90deg, rgba(244, 63, 94, .08), transparent 40%); }
.xr-finding.sev-high { border-color: rgba(249, 115, 22, .35); }
.xr-finding.is-flash { box-shadow: 0 0 0 3px rgba(56, 189, 248, .5); }
.xr-f-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; background: transparent; border: 0; color: var(--xr-text); cursor: pointer; text-align: left; font: inherit; }
.xr-sev { flex: none; display: inline-flex; align-items: center; gap: 6px; min-width: 92px; font: 700 .7rem var(--xr-mono); text-transform: uppercase; letter-spacing: .6px; color: var(--c); }
.xr-f-title { flex: 1; font-weight: 600; font-size: .95rem; }
.xr-f-axis { flex: none; font-size: .74rem; color: var(--xr-text-3); }
.xr-f-caret { color: var(--xr-text-3); transition: transform .2s; }
.xr-finding.is-open .xr-f-caret { transform: rotate(180deg); }
.xr-f-body { display: none; padding: 0 14px 16px 118px; color: var(--xr-text-2); font-size: .9rem; line-height: 1.55; }
.xr-finding.is-open .xr-f-body { display: block; animation: xr-type .25s ease both; }
.xr-fix { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(16, 185, 129, .06); border: 1px solid rgba(16, 185, 129, .2); }
.xr-fix-h { font: 700 .72rem var(--xr-mono); letter-spacing: 1px; text-transform: uppercase; color: #6ee7b7; margin-bottom: 6px; }
.xr-fix ol { margin: 0; padding-left: 20px; } .xr-fix li { margin: 3px 0; }
.xr-fix a { color: var(--xr-cyan); }
.xr-cves { margin-top: 12px; }
.xr-cves .xr-fix-h { color: #fda4af; }
.xr-cve { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: rgba(244, 63, 94, .06); border: 1px solid rgba(244, 63, 94, .18); margin-bottom: 5px; color: var(--xr-text-2); font-size: .82rem; transition: background .15s; }
.xr-cve:hover { background: rgba(244, 63, 94, .12); }
.xr-cve b { color: #fda4af; }
.xr-cve > span:not(.xr-chip) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xr-cve em { font-style: normal; font: .7rem var(--xr-mono); color: var(--xr-text-3); }
.xr-cve .xr-chip { padding: 1px 7px; font-size: .64rem; }
@media (max-width: 560px) {
  .xr-sw-row { flex-wrap: wrap; }
  .xr-sw-main { flex-basis: calc(100% - 60px); }
  .xr-sw-row > .xr-chip { margin-left: 60px; }
  .xr-hub-label { font-size: 13px; }
}
@media (max-width: 700px) {
  .xr-f-head { flex-wrap: wrap; gap: 6px 10px; }
  .xr-f-title { flex-basis: calc(100% - 30px); order: 3; }
  .xr-f-axis { margin-left: auto; }
  .xr-f-caret { order: 4; }
  .xr-f-body { padding-left: 14px; }
  .xr-cve { grid-template-columns: auto 1fr; }
  .xr-cve > span:not(.xr-chip) { grid-column: 1 / -1; white-space: normal; }
  .xr-counts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .xr-axis-row { grid-template-columns: 20px minmax(0, 1fr) 54px 28px; }
  .xr-axis-row em { display: none; }
}
.xr-disclaimer { font-size: .78rem; color: var(--xr-text-3); line-height: 1.55; padding: 0 4px; }

/* ---------------------------------------------------------------- critical takeover */
.xr-takeover { position: fixed; inset: 0; z-index: 10050; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 15, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .25s; }
.xr-takeover.is-open { opacity: 1; }
.xr-takeover-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; padding: 28px 24px 22px; text-align: center; background: linear-gradient(180deg, #2a0d1c, #120c22); border: 1px solid rgba(244, 63, 94, .5); box-shadow: 0 0 0 1px rgba(244, 63, 94, .2), 0 30px 90px rgba(244, 63, 94, .35); transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.xr-takeover.is-open .xr-takeover-card { transform: none; }
.xr-takeover-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); }
.xr-takeover-glitch { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2.1rem; color: #fff; background: radial-gradient(circle at 35% 30%, #fb7185, #be123c); animation: xr-siren 1.2s ease-in-out infinite; }
.xr-takeover-kicker { font: 700 .72rem var(--xr-mono); letter-spacing: 3px; text-transform: uppercase; color: #fda4af; }
.xr-takeover h2 { font-size: 1.5rem; font-weight: 700; margin: 6px 0 8px; }
.xr-takeover p { color: var(--xr-text-2); font-size: .92rem; line-height: 1.5; }
.xr-takeover ul { list-style: none; padding: 0; margin: 16px 0 18px; text-align: left; display: grid; gap: 8px; }
.xr-takeover .xr-takeover-card li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(244, 63, 94, .25); }
.xr-takeover li > i { color: #fb7185; margin-top: 3px; }
.xr-takeover li strong { display: block; font-size: .92rem; }
.xr-takeover li span { display: block; color: var(--xr-text-3); font-size: .8rem; margin-top: 2px; }
.xr-takeover-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; position: relative; }

@media (prefers-reduced-motion: reduce) {
  .xr-root *, .xr-takeover * { animation: none !important; transition: none !important; }
}
.xr-bonus { flex: none; padding: 2px 8px; font: 700 .7rem var(--xr-mono); }
