/* =============================================================
   CHECKSYSTEM PRO · v10 · REPORT
   Single-column document layout. No hero panel. No grid-areas.
   720px reading column. Inline score chip. Sections as articles.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --bg:        #0a0a0f;
  --bg-2:      #0f0f17;
  --panel:     #12121a;
  --panel-2:   #1a1a26;
  --line:      rgba(255,255,255,.06);
  --line-2:    rgba(255,255,255,.10);
  --line-h:    rgba(255,255,255,.16);

  --ink:       #f4f4f5;
  --ink-2:     #c0c4cc;
  --ink-3:     #8b909a;
  --ink-4:     #5a606b;

  --coral:        #ff6b4a;
  --coral-2:      #ff8f6b;
  --coral-soft:   rgba(255,107,74,.14);
  --lime:         #d4ff3a;
  --lime-soft:    rgba(212,255,58,.12);
  --indigo:       #818cf8;
  --indigo-soft:  rgba(129,140,248,.14);
  --rose:         #f472b6;
  --emerald:      #34d399;
  --emerald-soft: rgba(52,211,153,.12);
  --amber:        #fbbf24;
  --amber-soft:   rgba(251,191,36,.12);
  --red:          #f87171;
  --red-soft:     rgba(248,113,113,.14);
  --red-glow:     rgba(248,113,113,.45);

  /* compatibility shim */
  --cs-bg: var(--bg);
  --cs-text: var(--ink);
  --cs-text2: var(--ink-2);
  --cs-text-muted: var(--ink-3);
  --cs-border: var(--line);
  --cs-card-bg: var(--panel);
  --cs-card-border: var(--line);
  --brand: var(--coral); --brand-2: var(--coral-2); --brand-soft: var(--coral-soft);
  --green: var(--emerald);  --green-soft: var(--emerald-soft);
  --yellow: var(--amber);   --yellow-soft: var(--amber-soft);
  --orange: #f97316;        --orange-soft: rgba(249,115,22,.12);
  --display: var(--font-display);
  --body: var(--font-body);
  --mono: var(--font-mono);
}

[data-theme="light"] {
  --bg: #fafafa; --bg-2: #f4f5f7; --panel: #ffffff; --panel-2: #f8f9fb;
  --line: rgba(0,0,0,.07); --line-2: rgba(0,0,0,.10); --line-h: rgba(0,0,0,.16);
  --ink: #0a0a0f; --ink-2: #3f4754; --ink-3: #6b7280; --ink-4: #9ca3af;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 0% -10%, var(--coral-soft), transparent 65%),
    radial-gradient(ellipse 800px 500px at 100% 5%, var(--lime-soft), transparent 60%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(129,140,248,.10), transparent 70%);
  animation: bgAuraDrift 24s ease-in-out infinite;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 1100px 700px at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 1100px 700px at 50% 30%, #000 30%, transparent 75%);
  opacity: .5;
}
[data-theme="light"] body::before { opacity: .42; }
[data-theme="light"] body::after  { opacity: .35; }

@keyframes bgAuraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(20px, -15px, 0) scale(1.04); }
}

/* Floating decorative orbs (purely visual, behind everything) */
.cs-bg-fx {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cs-bg-fx .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  mix-blend-mode: screen;
  will-change: transform;
}
.cs-bg-fx .orb.o1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
  top: 8%; left: -120px;
  animation: orbFloat1 18s ease-in-out infinite;
}
.cs-bg-fx .orb.o2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  top: -60px; right: -120px;
  animation: orbFloat2 22s ease-in-out infinite;
}
.cs-bg-fx .orb.o3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--indigo) 0%, transparent 70%);
  bottom: 10%; left: 25%;
  opacity: .35;
  animation: orbFloat3 26s ease-in-out infinite;
}
.cs-bg-fx .orb.o4 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--rose) 0%, transparent 70%);
  bottom: -80px; right: 15%;
  opacity: .35;
  animation: orbFloat4 20s ease-in-out infinite;
}
[data-theme="light"] .cs-bg-fx .orb { opacity: .25; mix-blend-mode: multiply; }

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, 60px) scale(1.1); }
  66%      { transform: translate(-40px, 100px) scale(.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-100px, 80px) scale(1.15); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(120px, -60px) scale(1.08); }
}
@keyframes orbFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-80px, -100px) scale(1.12); }
}

/* Tiny twinkling stars layer */
.cs-bg-fx .stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 32% 72%, rgba(255,255,255,.30), transparent),
    radial-gradient(1.5px 1.5px at 58% 28%, rgba(212,255,58,.25), transparent),
    radial-gradient(1px 1px at 78% 62%, rgba(255,255,255,.30), transparent),
    radial-gradient(1px 1px at 88% 22%, rgba(255,107,74,.30), transparent),
    radial-gradient(1px 1px at 22% 88%, rgba(255,255,255,.25), transparent),
    radial-gradient(1.5px 1.5px at 70% 8%, rgba(129,140,248,.30), transparent);
  animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .8; }
  50%      { opacity: .35; }
}
[data-theme="light"] .cs-bg-fx .stars { display: none; }
::selection { background: var(--coral-soft); color: var(--ink); }
a { color: var(--coral); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral-2); }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
#floating-bg-container, .floating-bg-text { display: none !important; }

/* ───────────────────── HEADER ───────────────────── */
.top-header {
  position: sticky; top: 0; z-index: 100;
  height: 60px;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  display: flex; align-items: center;
}
[data-theme="light"] .top-header { background: rgba(250,250,250,.85); }
.top-header-inner { display: flex; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; gap: 12px; }
.logo-left {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
}
.logo-left::before {
  content: 'IL';
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--coral), var(--rose));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 4px 14px rgba(255,107,74,.3);
}
.logo-left img { display: none; }
.top-controls { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-actions { display: flex; gap: 6px; }
.btn {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer; transition: all .2s;
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
}
.btn:hover { background: var(--panel-2); border-color: var(--line-h); }
.btn-primary {
  background: var(--coral); border-color: var(--coral); color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,74,.3);
}
.btn-primary:hover { background: var(--coral-2); border-color: var(--coral-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; }
.theme-switcher {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all .2s;
}
.theme-switcher:hover { background: var(--panel-2); color: var(--ink); }

.nav-bar {
  position: sticky; top: 60px; z-index: 90;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
[data-theme="light"] .nav-bar { background: rgba(250,250,250,.85); }
.nav-bar-inner {
  display: flex; gap: 4px; max-width: 1400px;
  margin: 0 auto; padding: 8px 24px;
  overflow-x: auto; scrollbar-width: none;
}
.nav-bar-inner::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  transition: all .2s;
  white-space: nowrap; position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--panel-2); }
.nav-link.active { color: var(--ink); background: var(--coral-soft); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -9px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--lime));
  border-radius: 2px;
}

#cs-loading {
  position: fixed; inset: 0; z-index: 9999;
  background: #060611;
  overflow: hidden;
  transition: opacity .4s;
}
.cs-loading-inner { display: none; }

/* ═══════════════════════════════════════════════════════════
   RUNNER STAGE — device chasing the bank
   ═══════════════════════════════════════════════════════════ */
.cs-runner-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  perspective: 800px;
}

/* SKY gradient + sun glow */
.cs-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,143,107,.18), transparent 60%),
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(129,140,248,.10), transparent 60%),
    linear-gradient(180deg, #0a0a1f 0%, #11111c 60%, #1a0e16 100%);
}

/* Stars */
.cs-stars {
  position: absolute; inset: 0; pointer-events: none;
}
.cs-stars span {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: .8;
  animation: starTwinkle 2s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: .3; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.3); }
}

/* CITY background */
.cs-city {
  position: absolute;
  bottom: 38%;
  left: 0; right: 0;
  height: 16%;
  pointer-events: none;
  opacity: .55;
}
.cs-city svg {
  width: 200%; height: 100%;
  display: block;
  animation: cityScroll 60s linear infinite;
}
.cs-city svg path {
  fill: #1a1f2e;
}
@keyframes cityScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* FLOOR — perspective grid */
.cs-floor {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  background: linear-gradient(180deg, #0a0a14 0%, #100808 100%);
  border-top: 1px solid rgba(255,107,74,.15);
  perspective: 600px;
  perspective-origin: 50% 0%;
  overflow: hidden;
}
.cs-floor::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,107,74,.4) 30%,
    rgba(212,255,58,.5) 50%,
    rgba(255,107,74,.4) 70%,
    transparent 100%);
  box-shadow: 0 0 24px rgba(255,107,74,.5);
}
.cs-floor-grid {
  position: absolute;
  top: 0; left: -50%;
  width: 200%; height: 200%;
  background-image:
    linear-gradient(0deg,  rgba(255,107,74,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,74,.10) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotateX(70deg);
  transform-origin: center top;
  animation: gridMove 1.2s linear infinite;
}
@keyframes gridMove {
  from { transform: rotateX(70deg) translateY(0); }
  to   { transform: rotateX(70deg) translateY(80px); }
}

/* BANK — fixed at right edge, slowly approaches */
.cs-bank {
  position: absolute;
  right: 6%;
  bottom: 36%;
  width: 220px;
  height: 280px;
  filter: drop-shadow(0 0 32px rgba(255,107,74,.25));
  animation: bankApproach 4s ease-out forwards;
}

/* Neon rings expanding outward from the bank */
.cs-bank-ring {
  position: absolute;
  left: 50%; top: 60%;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,107,74,.55);
  transform: translate(-50%, -50%);
  animation: bankRing 2.4s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}
.cs-bank-ring.r2 { animation-delay: 1.2s; border-color: rgba(212,255,58,.45); }
@keyframes bankRing {
  0%   { width: 60px;  height: 60px;  opacity: 1;   border-width: 2px; }
  100% { width: 320px; height: 320px; opacity: 0;   border-width: .5px; }
}
@keyframes bankApproach {
  0%   { transform: translateX(40px) scale(.92); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}
.cs-bank svg { width: 100%; height: 100%; overflow: visible; }
.cs-bank-base, .cs-bank-step { fill: #2a2531; }
.cs-bank-body { fill: #1f1a26; }
.cs-bank-pediment { fill: url(#bankGrad); fill: #2d2735; }
.cs-bank-col { fill: #d4ff3a; opacity: .85; }
.cs-bank-cap { fill: #d4ff3a; opacity: .95; }
.cs-bank-label {
  fill: #ff6b4a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
  filter: drop-shadow(0 0 6px #ff6b4a);
}
.cs-bank-door { fill: #06070b; }
.cs-bank-cash {
  fill: #d4ff3a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  filter: drop-shadow(0 0 8px #d4ff3a);
  animation: cashPulse 1.5s ease-in-out infinite;
}
@keyframes cashPulse {
  0%, 100% { opacity: .9; }
  50%      { opacity: 1; transform: scale(1.05); transform-origin: 110px 170px; }
}
.cs-bank-light {
  fill: #d4ff3a;
  filter: drop-shadow(0 0 8px #d4ff3a);
  animation: bankBeacon 1s ease-in-out infinite;
}
@keyframes bankBeacon {
  0%, 100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* DEVICE WRAPPER */
.cs-device-wrap {
  position: absolute;
  bottom: 36%;
  left: 18%;
  width: 220px;
  height: 150px;
  animation: deviceRun 1.4s ease-in-out infinite;
  z-index: 5;
}
@keyframes deviceRun {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  25%      { transform: translateY(-14px) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(1deg); }
  75%      { transform: translateY(-18px) rotate(.5deg); }
}

.cs-device-shadow {
  position: absolute;
  bottom: -22px; left: 50%;
  width: 140px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.6), transparent 70%);
  transform: translateX(-50%);
  animation: shadowPulse 1.4s ease-in-out infinite;
  filter: blur(3px);
}
@keyframes shadowPulse {
  0%, 100% { width: 140px; opacity: .6; }
  25%      { width: 90px;  opacity: .35; }
  50%      { width: 130px; opacity: .55; }
  75%      { width: 80px;  opacity: .3; }
}

/* LAPTOP svg */
.cs-laptop {
  width: 100%; height: 100%;
  filter: drop-shadow(0 12px 24px rgba(255,107,74,.35));
}
.cs-lt-frame  { fill: #1a1a26; stroke: #ff6b4a; stroke-width: 1.5; }
.cs-lt-screen { fill: #06070b; }
.cs-lt-bar    { fill: #ff6b4a; }
.cs-lt-bar.dim{ fill: #818cf8; opacity: .55; }
.cs-lt-chip   { fill: rgba(212,255,58,.14); stroke: #d4ff3a; stroke-width: 1; }
.cs-lt-num    {
  fill: #d4ff3a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  filter: drop-shadow(0 0 4px #d4ff3a);
}
.cs-lt-base    { fill: #2a2531; }
.cs-lt-trackpad{ fill: #1a1a26; }

/* Scan line that travels down the screen */
.cs-lt-scan, .cs-ph-scan {
  fill: url(#scanGrad);
  fill: rgba(212,255,58,.65);
  filter: drop-shadow(0 0 6px rgba(212,255,58,.6));
  opacity: .85;
}
.cs-lt-scan { animation: scanLineLap 2.2s linear infinite; }
.cs-ph-scan { animation: scanLinePh 2.2s linear infinite; }
@keyframes scanLineLap {
  0%   { transform: translateY(0);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(96px); opacity: 0; }
}
@keyframes scanLinePh {
  0%   { transform: translateY(0);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(145px); opacity: 0; }
}

/* PHONE svg (hidden on desktop, shown on mobile) */
.cs-phone { display: none; width: 100%; height: 100%; filter: drop-shadow(0 12px 24px rgba(255,107,74,.35)); }
.cs-ph-frame  { fill: #1a1a26; stroke: #ff6b4a; stroke-width: 1.5; }
.cs-ph-screen { fill: #06070b; }
.cs-ph-notch  { fill: #06070b; stroke: #2a2531; stroke-width: .5; }
.cs-ph-bar    { fill: #ff6b4a; }
.cs-ph-bar.dim{ fill: #818cf8; opacity: .55; }
.cs-ph-chip   { fill: rgba(212,255,58,.14); stroke: #d4ff3a; stroke-width: 1; }
.cs-ph-num    {
  fill: #d4ff3a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 800;
  filter: drop-shadow(0 0 4px #d4ff3a);
}
.cs-ph-home   { fill: #ff6b4a; opacity: .8; }

/* Footsteps left behind on the floor */
.cs-steps {
  position: absolute;
  bottom: -34px; left: -120px;
  width: 240px; height: 16px;
  pointer-events: none;
}
.cs-steps span {
  position: absolute;
  width: 14px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,107,74,.55), transparent 70%);
  filter: blur(.5px);
  opacity: 0;
  animation: stepDot 1.4s linear infinite;
}
.cs-steps span:nth-child(1) { left: 0;    top: 2px; animation-delay: 0s;   }
.cs-steps span:nth-child(2) { left: 36px; top: 8px; animation-delay: .23s; }
.cs-steps span:nth-child(3) { left: 72px; top: 2px; animation-delay: .46s; }
.cs-steps span:nth-child(4) { left: 108px;top: 8px; animation-delay: .70s; }
.cs-steps span:nth-child(5) { left: 144px;top: 2px; animation-delay: .93s; }
.cs-steps span:nth-child(6) { left: 180px;top: 8px; animation-delay: 1.16s;}
@keyframes stepDot {
  0%   { opacity: 0;   transform: scale(.4); }
  20%  { opacity: .9;  transform: scale(1.1); }
  100% { opacity: 0;   transform: scale(.4); }
}

/* Data beam from device → bank: dotted lime stream */
.cs-data-beam {
  position: absolute;
  top: 35%; right: -160px;
  width: 220px; height: 8px;
  pointer-events: none;
}
.cs-data-beam::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,255,58,.45) 30%,
    rgba(255,107,74,.55) 70%,
    transparent 100%);
  filter: blur(.5px);
}
.cs-data-beam .beam-pulse {
  position: absolute;
  top: 50%; left: 0;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, #d4ff3a 0%, rgba(212,255,58,.4) 50%, transparent 80%);
  box-shadow: 0 0 12px #d4ff3a;
  animation: beamFly 1.6s ease-in infinite;
}
.cs-data-beam .beam-pulse.delay-1 { animation-delay: .55s; }
.cs-data-beam .beam-pulse.delay-2 { animation-delay: 1.1s; background: radial-gradient(circle, #ff6b4a 0%, rgba(255,107,74,.4) 50%, transparent 80%); box-shadow: 0 0 12px #ff6b4a; }
@keyframes beamFly {
  0%   { transform: translateX(0)    scale(.6); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(220px) scale(1.1); opacity: 0; }
}
.cs-trail {
  position: absolute;
  top: 50%; left: -60px;
  width: 100px; height: 60px;
  transform: translateY(-50%);
}
.cs-trail span {
  position: absolute;
  width: 24px; height: 4px;
  background: linear-gradient(90deg, transparent, #ff6b4a, #d4ff3a);
  border-radius: 2px;
  filter: blur(.5px);
  animation: trailFly 1.1s linear infinite;
}
.cs-trail span:nth-child(1) { top: 10%; animation-delay: 0s;    }
.cs-trail span:nth-child(2) { top: 30%; animation-delay: .15s; width: 36px; }
.cs-trail span:nth-child(3) { top: 50%; animation-delay: .3s;  width: 18px; }
.cs-trail span:nth-child(4) { top: 70%; animation-delay: .45s; width: 30px; }
.cs-trail span:nth-child(5) { top: 90%; animation-delay: .6s;  width: 22px; }
.cs-trail span:nth-child(6) { top: 20%; animation-delay: .75s; width: 28px; }
@keyframes trailFly {
  from { transform: translateX(0)    scaleX(1); opacity: 1; }
  to   { transform: translateX(-160px) scaleX(.4); opacity: 0; }
}

/* SIGNAL arcs above device */
.cs-signal {
  position: absolute;
  top: -30px;
  right: -5px;
  width: 60px; height: 60px;
}
.cs-signal path {
  fill: none;
  stroke: #d4ff3a;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px #d4ff3a);
  opacity: 0;
  animation: signalArc 1.6s ease-out infinite;
}
.cs-signal path:nth-child(1) { animation-delay: 0s; }
.cs-signal path:nth-child(2) { animation-delay: .2s; }
.cs-signal path:nth-child(3) { animation-delay: .4s; }
@keyframes signalArc {
  0%   { opacity: 0; transform: scale(.6); transform-origin: 30px 42px; }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2); transform-origin: 30px 42px; }
}

/* BOTTOM TEXT */
.cs-runner-text {
  position: absolute;
  left: 0; right: 0; bottom: 8%;
  text-align: center;
  pointer-events: none;
  z-index: 10;
}
.cs-runner-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: .14em;
  margin-bottom: 14px;
  color: var(--ink);
}
.cs-runner-title span {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral) 0%, var(--lime) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleFloat 2.4s ease-in-out infinite;
}
.cs-runner-title em { display: inline-block; width: 14px; }
.cs-runner-title span:nth-child(1)  { animation-delay: 0s; }
.cs-runner-title span:nth-child(2)  { animation-delay: .08s; }
.cs-runner-title span:nth-child(3)  { animation-delay: .16s; }
.cs-runner-title span:nth-child(4)  { animation-delay: .24s; }
.cs-runner-title span:nth-child(5)  { animation-delay: .32s; }
.cs-runner-title span:nth-child(6)  { animation-delay: .40s; }
.cs-runner-title span:nth-child(8)  { animation-delay: .56s; }
.cs-runner-title span:nth-child(9)  { animation-delay: .64s; }
.cs-runner-title span:nth-child(10) { animation-delay: .72s; }
.cs-runner-title span:nth-child(11) { animation-delay: .80s; }
.cs-runner-title span:nth-child(12) { animation-delay: .88s; }
.cs-runner-title span:nth-child(13) { animation-delay: .96s; }
.cs-runner-title span:nth-child(14) { animation-delay: 1.04s; }
@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.cs-runner-bar {
  width: min(280px, 60%);
  height: 3px;
  margin: 0 auto 12px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
}
.cs-runner-bar-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--coral), var(--lime), var(--coral));
  background-size: 200% 100%;
  border-radius: 999px;
  animation:
    runnerBarSlide 1.6s ease-in-out infinite,
    runnerBarFlow  2s linear infinite;
}
@keyframes runnerBarSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(380%); }
}
@keyframes runnerBarFlow {
  0%   { background-position: 0 0; }
  100% { background-position: 200% 0; }
}
.cs-runner-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .08em;
  transition: opacity .2s;
  min-height: 1.5em;
}

/* ── Mobile: swap laptop → phone ─────────────────────── */
@media (max-width: 700px) {
  .cs-device-wrap { width: 110px; height: 180px; left: 12%; bottom: 38%; }
  .cs-laptop { display: none; }
  .cs-phone  { display: block; }
  .cs-bank   { width: 150px; height: 200px; right: 8%; bottom: 38%; }
  .cs-trail  { left: -40px; width: 70px; }
  .cs-trail span { width: 16px !important; }
  .cs-runner-title { font-size: 18px; letter-spacing: .1em; }
  .cs-runner-bar { width: 65%; }
}


/* ═════════════════════════════════════════════════
   PAGE WRAP — narrow reading column
   ═════════════════════════════════════════════════ */
.cs-wrap {
  position: relative; z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 22px 22px 60px;
}

/* ─── PAGE HEADER ─── */
.cs-page-header { margin-bottom: 18px; }
.cs-page-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  color: var(--ink);
}
.cs-page-header h1 i { display: none; }
.cs-page-header p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}
.cs-version-badge, .cs-pro-badge, .cs-free-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 4px;
}
.cs-version-badge { background: var(--panel-2); color: var(--ink-3); border: 1px solid var(--line); }
.cs-pro-badge { background: linear-gradient(135deg, var(--coral), var(--rose)); color: #fff; }
.cs-free-badge { background: var(--lime); color: var(--bg); }

/* ─── ANNOUNCE ─── */
.cs-announce-banner {
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coral-soft), var(--lime-soft));
  border: 1px solid rgba(255,107,74,.2);
  overflow: hidden;
}
.cs-banner-inner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.cs-banner-icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.cs-banner-text { flex: 1; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.cs-banner-text strong { color: var(--ink); }
.cs-banner-text a { color: var(--coral); text-decoration: underline; }
.cs-banner-close {
  width: 24px; height: 24px;
  border: none; border-radius: 6px;
  cursor: pointer;
  background: rgba(255,255,255,.04);
  color: var(--ink-3);
  font-size: 11px;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.cs-banner-close:hover { background: var(--panel-2); color: var(--ink); }

/* ═════════════════════════════════════════════════
   HERO — flattened to single column flow
   No card panel · everything stacks vertically · score is inline
   ═════════════════════════════════════════════════ */
.cs-hero, .cs-hero-bento {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 24px;
  box-shadow: none;
}
.cs-hero::before { display: none; }

/* Score panel becomes a thin inline strip on top of everything */
.cs-hero-score-panel {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  border-radius: 12px;
  margin-bottom: 18px;
  text-align: left !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cs-hero-score-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--lime));
}
.cs-ring-block {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  gap: 14px;
  flex: 1;
}
.cs-ring-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0;
  align-self: center;
  white-space: nowrap;
}
.cs-ring-wrap {
  width: auto !important; height: auto !important;
  margin: 0 !important;
  display: flex !important;
  align-items: baseline;
  gap: 4px;
}
.cs-ring-svg { display: none; }
.cs-ring-center {
  position: static !important;
  display: flex; align-items: baseline;
  gap: 4px;
}
.cs-ring-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: 1;
}
.cs-ring-denom {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.cs-risk-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin: 0 !important;
  align-self: center;
}
.cs-risk-label.risk-clean    { color: var(--emerald); background: var(--emerald-soft); }
.cs-risk-label.risk-low      { color: var(--amber); background: var(--amber-soft); }
.cs-risk-label.risk-medium   { color: #f97316; background: rgba(249,115,22,.12); }
.cs-risk-label.risk-high     { color: var(--red); background: var(--red-soft); }
.cs-risk-label.risk-critical { color: #fff; background: #dc2626; border-color: #dc2626; }

/* ─── LANGUAGE SWITCHER (sits right after risk label inside ring block) ─── */
.cs-lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 3px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  align-self: center;
  user-select: none;
  font-family: var(--font-mono);
  isolation: isolate;
}
.cs-lang-thumb {
  position: absolute;
  top: 3px; bottom: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-2) 100%);
  box-shadow: 0 2px 10px rgba(255,107,74,.35);
  transition: transform .25s cubic-bezier(.4,.0,.2,1), background .25s;
  z-index: 0;
  /* default = RU position (right) */
  transform: translateX(100%);
  left: 3px;
}
.cs-lang-switch[data-lang="en"] .cs-lang-thumb {
  transform: translateX(0);
}
.cs-lang-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-3);
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .25s;
  min-width: 48px;
  justify-content: center;
}
.cs-lang-btn:hover { color: var(--ink-2); }
.cs-lang-btn.is-active {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.cs-lang-btn:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .cs-lang-switch { margin-top: 8px; padding: 2px; }
  .cs-lang-btn { padding: 5px 12px; font-size: 10px; min-width: 42px; }
}

/* Sub-scores — pill chips with score-driven fill */
.cs-hero-sub-rings {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px !important;
  width: 100%;
  margin: 0 !important;
}
.cs-sub-ring-row {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  width: auto !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .25s;
}
.cs-sub-ring-row:hover { border-color: var(--line-2); }

/* Score-driven fill — JS sets --score (0-100) on the element.
   Fill color shifts from emerald (clean) → amber → red as risk grows. */
.cs-sub-ring-row::before {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--score-pct, 0%);
  background: linear-gradient(90deg,
    rgba(52,211,153,.18)  0%,
    rgba(251,191,36,.18)  50%,
    rgba(248,113,113,.22) 100%);
  background-size: 200px 100%;
  background-repeat: no-repeat;
  z-index: -1;
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
  border-radius: inherit;
}
/* Severity tint of the fill */
.cs-sub-ring-row[data-severity="ok"]       { border-color: rgba(52,211,153,.35); }
.cs-sub-ring-row[data-severity="ok"]::before       { background: rgba(52,211,153,.18); }
.cs-sub-ring-row[data-severity="low"]      { border-color: rgba(251,191,36,.4); }
.cs-sub-ring-row[data-severity="low"]::before      { background: rgba(251,191,36,.18); }
.cs-sub-ring-row[data-severity="medium"]   { border-color: rgba(249,115,22,.45); }
.cs-sub-ring-row[data-severity="medium"]::before   { background: rgba(249,115,22,.20); }
.cs-sub-ring-row[data-severity="high"]     { border-color: rgba(248,113,113,.5); }
.cs-sub-ring-row[data-severity="high"]::before     { background: rgba(248,113,113,.22); }
.cs-sub-ring-row[data-severity="critical"] { border-color: var(--red); }
.cs-sub-ring-row[data-severity="critical"]::before { background: rgba(248,113,113,.32); }

.cs-sub-ring-block {
  /* Reveal block but hide SVG ring — show only the score number */
  display: contents !important;
}
.cs-sub-ring-block .cs-sub-ring-svg { display: none !important; }
.cs-sub-ring-label {
  display: flex; flex-direction: row; align-items: baseline; gap: 6px;
  position: relative; z-index: 1;
}
.cs-sub-ring-label strong {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cs-sub-ring-label span { display: none; }
.cs-sub-ring-row .cs-sub-ring-center {
  position: relative !important;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: baseline;
}
.cs-sub-ring-row .cs-sub-ring-center::after {
  content: '/100';
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 2px;
}

/* IP / Info — full width below score */
.cs-hero-info-panel {
  padding: 0;
  background: transparent;
  border: none;
  border-right: none !important;
  margin-bottom: 16px;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
}
.cs-hero-ip { display: flex; flex-direction: column; gap: 8px; }
.cs-hero-ip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cs-flag {
  width: 22px; height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--line-2);
}
.cs-hero-addr {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  display: block;
  width: 100%;
}
.cs-tag-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.cs-tag-pill.pill-danger  { background: var(--red-soft);     color: var(--red);     border: 1px solid rgba(248,113,113,.25); }
.cs-tag-pill.pill-warning { background: var(--amber-soft);   color: var(--amber);   border: 1px solid rgba(251,191,36,.25); }
.cs-tag-pill.pill-info    { background: var(--indigo-soft);  color: var(--indigo);  border: 1px solid rgba(129,140,248,.25); }
.cs-tag-pill.pill-success { background: var(--emerald-soft); color: var(--emerald); border: 1px solid rgba(52,211,153,.25); }
.cs-hero-loc {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.cs-hero-isp {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}
.cs-dim { color: var(--ink-3); }

/* META — single row of inline key:value pairs */
.cs-hero-meta-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 6px 14px;
  grid-template-columns: none !important;
  border: none !important;
  border-top: 1px dashed var(--line) !important;
  padding-top: 12px;
  margin-top: 0;
}
.cs-hero-meta-item {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none !important;
  flex: 0 0 auto !important;
}
.cs-hero-meta-item:hover { background: transparent; }
.cs-hero-meta-item > i {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--coral-soft); color: var(--coral);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.cs-hero-meta-item > div {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.cs-meta-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-meta-label::after { content: ':'; opacity: .5; }
.cs-meta-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* SCORE BARS — hidden, score is already shown above */
.cs-score-bars { display: none !important; }

/* DNS — small chip flow, hidden until needed */
.cs-hero-dns-panel {
  padding: 0;
  border: none !important;
  margin-top: 12px;
}
.cs-hero-dns {
  background: transparent; border: none; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.cs-hero-dns-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.cs-hero-dns-title i { color: var(--coral); }
.cs-hero-dns-rows {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 4px;
}
.cs-hero-dns-row {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-2);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.cs-hero-dns-row .cs-flag { width: 12px; height: 9px; }
.cs-hero-dns-loading { font-size: 11px; color: var(--ink-3); }

/* ═════════════════════════════════════════════════
   CATEGORY OVERVIEW — flat chip cloud
   ═════════════════════════════════════════════════ */
.cs-cat-summary {
  margin-bottom: 24px;
  padding: 0;
  background: transparent;
  border: none;
}
.cs-cat-summary-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.cs-cat-summary-title i { color: var(--coral); display: none; }
.cs-cat-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  grid-template-columns: none !important;
}
.cs-cat-card {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all .2s;
  min-width: 0;
}
.cs-cat-card::before { display: none; }
.cs-cat-card:hover {
  background: var(--panel-2);
  border-color: var(--coral);
}
.cs-cat-card .cs-cat-icon { display: none; }
.cs-cat-card .cs-cat-card-head { display: flex; align-items: center; gap: 7px; }
.cs-cat-card .cs-cat-card-foot { display: none; }
.cs-cat-card .cs-cat-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.cs-cat-badge { display: none; }
.cs-cat-arrow { display: none; }
.cs-cat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cs-cat-dot.dot-ok       { background: var(--emerald); box-shadow: 0 0 5px var(--emerald-soft); }
.cs-cat-dot.dot-low      { background: var(--amber); box-shadow: 0 0 5px var(--amber-soft); }
.cs-cat-dot.dot-medium   { background: #f97316; box-shadow: 0 0 5px rgba(249,115,22,.4); }
.cs-cat-dot.dot-high     { background: var(--red); box-shadow: 0 0 5px var(--red-soft); }
.cs-cat-dot.dot-critical { background: var(--red); box-shadow: 0 0 8px var(--red-glow); animation: dotPulse 1.4s ease-in-out infinite; }
.cs-cat-dot.dot-scanning { background: var(--indigo); animation: dotPulse 1.2s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.cs-cat-card:has(.dot-medium),
.cs-cat-card:has(.dot-high) {
  border-color: rgba(248,113,113,.5);
  background: rgba(248,113,113,.06);
  animation: chipPulse 2s ease-in-out infinite;
}
.cs-cat-card:has(.dot-critical) {
  border-color: var(--red);
  background: var(--red-soft);
  animation: chipPulseCritical 1.4s ease-in-out infinite;
}
.cs-cat-card:has(.dot-low) {
  border-color: rgba(251,191,36,.4);
}
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.0); }
  50%      { box-shadow: 0 0 0 3px rgba(248,113,113,.12); }
}
@keyframes chipPulseCritical {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.0); }
  50%      { box-shadow: 0 0 0 4px rgba(248,113,113,.22); }
}

#cs-cat-tips { display: none; }

/* ═════════════════════════════════════════════════
   GROUP DIVIDER — minimal heading
   ═════════════════════════════════════════════════ */
.cs-group-divider {
  margin: 36px 0 14px;
  padding: 0 0 6px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 12px;
}
.cs-group-divider::before { display: none; }
.cs-group-divider-icon {
  width: auto; height: auto;
  background: transparent;
  color: var(--coral);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  display: inline-flex;
  border-radius: 0;
  box-shadow: none;
}
.cs-group-divider-icon i { display: none; }
.cs-group-divider-icon::before {
  content: '#';
  color: var(--coral);
  letter-spacing: -.02em;
}
.cs-group-divider-text { flex: 1; }
.cs-group-divider-text h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: 2px;
}
.cs-group-divider-text p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-3);
}

/* ═════════════════════════════════════════════════
   SECTION — articles, no card chrome
   ═════════════════════════════════════════════════ */
.cs-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 0 22px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 130px;
  position: relative;
  transition: all .25s;
}
.cs-section:last-of-type { border-bottom: none; }

/* Pulsing alert outline if section has issues — applied via JS data-sev */
.cs-section[data-sev="medium"],
.cs-section[data-sev="high"],
.cs-section[data-sev="critical"] {
  background: rgba(248,113,113,.025);
  border-radius: 8px;
  padding: 16px 14px 18px;
  margin: 0 -14px 0;
}
.cs-section[data-sev="medium"] {
  border: 1px solid rgba(249,115,22,.3);
  border-bottom: 1px solid rgba(249,115,22,.3);
  animation: secPulseAmber 2.2s ease-in-out infinite;
}
.cs-section[data-sev="high"] {
  border: 1px solid rgba(248,113,113,.4);
  border-bottom: 1px solid rgba(248,113,113,.4);
  animation: secPulseRed 2s ease-in-out infinite;
}
.cs-section[data-sev="critical"] {
  border: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  animation: secPulseCritical 1.4s ease-in-out infinite;
}
@keyframes secPulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.0); }
  50%      { box-shadow: 0 0 0 4px rgba(249,115,22,.10); }
}
@keyframes secPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.0); }
  50%      { box-shadow: 0 0 0 4px rgba(248,113,113,.12); }
}
@keyframes secPulseCritical {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.0); }
  50%      { box-shadow: 0 0 0 6px rgba(248,113,113,.2); }
}

.cs-section-header, .cs-section-head {
  display: flex; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cs-section-header h2, .cs-section-head h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}
.cs-section-header h2 i, .cs-section-head h2 i {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--coral-soft); color: var(--coral);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.cs-section-icon { display: none; }
.cs-section-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-2); color: var(--ink-3);
  border: 1px solid var(--line);
  margin-left: auto;
}
.cs-section-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 12px;
  line-height: 1.55;
  max-width: 100%;
}
.cs-section-hint { display: none; }

/* ═══════════════════════════════════════════════════════
   SUB-SECTION HEADER (cs-sub-h3)
   Used inside merged sections to separate former sub-blocks
   ═══════════════════════════════════════════════════════ */
.cs-sub-anchor {
  display: block;
  position: relative;
  top: -110px;
  visibility: hidden;
  height: 0;
  scroll-margin-top: 110px;
}
.cs-sub-h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 26px 0 12px;
  padding: 12px 14px 12px 14px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.cs-sub-h3::before {
  content: '';
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--coral), var(--lime));
  flex-shrink: 0;
}
.cs-sub-h3 i {
  font-size: 11px;
  color: var(--coral);
  width: 18px;
  text-align: center;
}
.cs-sub-h3-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
  margin-left: auto;
}
/* First sub-h3 inside a section sits flush — no top dashed border */
.cs-section > .cs-sub-anchor:first-of-type + .cs-sub-h3,
.cs-section > .cs-section-desc + .cs-sub-anchor + .cs-sub-h3 {
  border-top: none;
  margin-top: 6px;
  padding-top: 0;
}
@media (max-width: 760px) {
  .cs-sub-h3 {
    font-size: 10.5px;
    margin: 20px 0 10px;
    padding: 10px 0 0 0;
    flex-wrap: wrap;
  }
  .cs-sub-h3::before { height: 12px; }
  .cs-sub-h3-tag { font-size: 8.5px; padding: 1px 6px; }
}

/* When a category-nav click highlights a sub-anchor, pulse the following sub-h3 */
.cs-sub-anchor.cs-section-highlight + .cs-sub-h3 {
  animation: subHighlight 1.6s ease-out 1;
  border-radius: 6px;
}
@keyframes subHighlight {
  0%   { background: rgba(255,107,74,.18); box-shadow: 0 0 0 4px rgba(255,107,74,.16); }
  100% { background: transparent; box-shadow: 0 0 0 0 rgba(255,107,74,0); }
}

/* CARDS — single column stack, no inner grid */
.cs-cards-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 12px;
  grid-template-columns: none !important;
}
.cs-card {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .2s;
}
.cs-card:hover { border-color: var(--line-2); }
.cs-card h3 {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

/* TABLES */
.cs-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.cs-table th, .cs-table td {
  padding: 5px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cs-table tr:last-child th, .cs-table tr:last-child td { border-bottom: none; }
.cs-table th {
  width: 40%;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 11px;
}
.cs-table td {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
}
.cs-table td.v-good { color: var(--emerald); }
.cs-table td.v-bad  { color: var(--red); }

/* IP grid — 2-column compact layout (key:value pairs in two cols) */
.cs-ip-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 24px;
  margin-bottom: 12px;
}
.cs-ip-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cs-ip-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.cs-ip-row:last-child { border-bottom: none; }
.cs-ip-lbl {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.cs-ip-val {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500;
  text-align: right;
}
.cs-ip-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-green  { background: var(--emerald); box-shadow: 0 0 5px var(--emerald-soft); }
.dot-yellow { background: var(--amber); box-shadow: 0 0 5px var(--amber-soft); }
.dot-red    { background: var(--red); box-shadow: 0 0 5px var(--red-soft); }

/* MAP — full width within column */
.cs-map-wrap {
  margin: 12px -22px;
  border-radius: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cs-map-wrap iframe {
  width: 100%; height: 240px;
  border: none; display: block;
  filter: hue-rotate(-10deg) saturate(.85) brightness(.9);
}
[data-theme="light"] .cs-map-wrap iframe { filter: none; }

/* SIGNALS — pulsing on critical */
.cs-sig-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cs-sig {
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-4);
  overflow: hidden;
  transition: all .25s;
}
.cs-sig[style*="rgb(220, 38, 38)"],
.cs-sig[style*="#dc2626"] { border-left-color: var(--red); animation: sigPulse 1.6s ease-in-out infinite; }
.cs-sig[style*="rgb(239, 68, 68)"],
.cs-sig[style*="#ef4444"] { border-left-color: var(--red); }
.cs-sig[style*="rgb(249, 115, 22)"],
.cs-sig[style*="#f97316"] { border-left-color: #f97316; }
.cs-sig[style*="rgb(234, 179, 8)"],
.cs-sig[style*="#eab308"] { border-left-color: var(--amber); }
@keyframes sigPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.0); }
  50%      { box-shadow: 0 0 0 3px rgba(248,113,113,.12); }
}
.cs-sig-head { display: flex; align-items: center; gap: 9px; padding: 9px 13px 4px; }
.cs-sev-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  flex-shrink: 0;
}
.cs-sig-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.cs-sig-detail {
  padding: 0 13px 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.cs-sig-why {
  padding: 7px 13px 9px;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.5;
  border-top: 1px dashed var(--line);
  display: none;
}
.cs-sig:hover .cs-sig-why { display: block; }
.cs-sig-why i { color: var(--coral); margin-right: 6px; }
.cs-sig-fix {
  /* Hidden — the dedicated "How to Fix" section below the signal lists
     already contains all remediation steps, so per-row tips were duplicates. */
  display: none !important;
}
.cs-sig-fix i { color: var(--lime); margin-right: 6px; }

.cs-all-clear {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--emerald-soft);
  border: 1px solid rgba(52,211,153,.25);
  border-left: 3px solid var(--emerald);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
}

/* ─── Signal row pulsing alert by severity ──────────────────────── */
.cs-sig {
  position: relative;
  transition: background .25s, border-color .25s;
}
.cs-sig[data-sev="LOW"]      { border-left: 3px solid var(--amber); }
.cs-sig[data-sev="MEDIUM"]   {
  border-left: 3px solid #f97316;
  background: rgba(249,115,22,.04);
  animation: sigPulseAmber 2.6s ease-in-out infinite;
}
.cs-sig[data-sev="HIGH"]     {
  border-left: 3px solid var(--red);
  background: rgba(248,113,113,.05);
  animation: sigPulseRed 2.2s ease-in-out infinite;
}
.cs-sig[data-sev="CRITICAL"] {
  border-left: 3px solid var(--red);
  background: rgba(248,113,113,.08);
  animation: sigPulseCritical 1.6s ease-in-out infinite;
}
@keyframes sigPulseAmber {
  0%, 100% { box-shadow: inset 3px 0 0 0 rgba(249,115,22,.0); }
  50%      { box-shadow: inset 3px 0 0 0 rgba(249,115,22,.55), 0 0 0 1px rgba(249,115,22,.18); }
}
@keyframes sigPulseRed {
  0%, 100% { box-shadow: inset 3px 0 0 0 rgba(248,113,113,.0); }
  50%      { box-shadow: inset 3px 0 0 0 rgba(248,113,113,.65), 0 0 0 1px rgba(248,113,113,.22); }
}
@keyframes sigPulseCritical {
  0%, 100% { box-shadow: inset 3px 0 0 0 rgba(248,113,113,.0), 0 0 0 0 rgba(248,113,113,0); }
  50%      { box-shadow: inset 3px 0 0 0 rgba(248,113,113,.85), 0 0 0 2px rgba(248,113,113,.35); }
}

/* ─── Section-level clean tint (no signals) ─────────────────────── */
.cs-section.cs-section-clean {
  background: rgba(52,211,153,.03);
  border-radius: 8px;
  padding: 16px 14px 18px;
  margin: 0 -14px 0;
  border: 1px solid rgba(52,211,153,.12);
  border-bottom: 1px solid rgba(52,211,153,.12);
}
.cs-section.cs-section-clean .cs-section-header h2 i {
  background: var(--emerald-soft);
  color: var(--emerald);
}
.cs-section.cs-section-clean .cs-section-header h2::after {
  content: '✓';
  color: var(--emerald);
  font-weight: 700;
  margin-left: 8px;
  font-size: 13px;
}

/* ─── Row-level error highlights ──────────────────────────────────
   Applied to <tr> elements containing values that conflict with
   detected signals (e.g. JS timezone vs IP timezone mismatch).
   The whole row blinks so the eye lands on it immediately. */
.cs-cell-alert {
  position: relative;
  transition: background-color .35s;
}

/* tr-specific: tint the row, keep underlying border intact */
tr.cs-cell-alert > th,
tr.cs-cell-alert > td {
  position: relative;
  z-index: 0;
}
tr.cs-cell-alert.cs-cell-low      > th, tr.cs-cell-alert.cs-cell-low      > td { background: rgba(251,191,36,.08); }
tr.cs-cell-alert.cs-cell-medium   > th, tr.cs-cell-alert.cs-cell-medium   > td { background: rgba(249,115,22,.10); animation: rowPulseAmber 2.4s ease-in-out infinite; }
tr.cs-cell-alert.cs-cell-high     > th, tr.cs-cell-alert.cs-cell-high     > td { background: rgba(248,113,113,.12); animation: rowPulseRed 2s ease-in-out infinite; }
tr.cs-cell-alert.cs-cell-critical > th, tr.cs-cell-alert.cs-cell-critical > td { background: rgba(248,113,113,.16); animation: rowPulseCritical 1.5s ease-in-out infinite; }

/* Left-edge marker on the first cell of an alerted row */
tr.cs-cell-alert > th:first-child::before,
tr.cs-cell-alert > td:first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 8%;
  width: 3px; height: 84%;
  border-radius: 2px;
}
tr.cs-cell-alert.cs-cell-low      > th:first-child::before,
tr.cs-cell-alert.cs-cell-low      > td:first-child::before { background: var(--amber); }
tr.cs-cell-alert.cs-cell-medium   > th:first-child::before,
tr.cs-cell-alert.cs-cell-medium   > td:first-child::before { background: #f97316; }
tr.cs-cell-alert.cs-cell-high     > th:first-child::before,
tr.cs-cell-alert.cs-cell-high     > td:first-child::before { background: var(--red); }
tr.cs-cell-alert.cs-cell-critical > th:first-child::before,
tr.cs-cell-alert.cs-cell-critical > td:first-child::before { background: var(--red); box-shadow: 0 0 8px rgba(248,113,113,.7); }

/* Non-table fallback (when alert is on a div, not a <tr>) */
div.cs-cell-alert,
span.cs-cell-alert,
td.cs-cell-alert {
  border-radius: 6px;
  padding-left: 10px;
}
div.cs-cell-alert.cs-cell-low,      td.cs-cell-alert.cs-cell-low      { background: rgba(251,191,36,.08); border-left: 3px solid var(--amber); }
div.cs-cell-alert.cs-cell-medium,   td.cs-cell-alert.cs-cell-medium   { background: rgba(249,115,22,.10); border-left: 3px solid #f97316; animation: rowPulseAmber 2.4s ease-in-out infinite; }
div.cs-cell-alert.cs-cell-high,     td.cs-cell-alert.cs-cell-high     { background: rgba(248,113,113,.12); border-left: 3px solid var(--red); animation: rowPulseRed 2s ease-in-out infinite; }
div.cs-cell-alert.cs-cell-critical, td.cs-cell-alert.cs-cell-critical { background: rgba(248,113,113,.16); border-left: 3px solid var(--red); animation: rowPulseCritical 1.5s ease-in-out infinite; }

@keyframes rowPulseAmber {
  0%, 100% { background-color: rgba(249,115,22,.08); }
  50%      { background-color: rgba(249,115,22,.18); }
}
@keyframes rowPulseRed {
  0%, 100% { background-color: rgba(248,113,113,.10); }
  50%      { background-color: rgba(248,113,113,.22); }
}
@keyframes rowPulseCritical {
  0%, 100% { background-color: rgba(248,113,113,.14); }
  50%      { background-color: rgba(248,113,113,.30); }
}
.cs-loading-msg {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 11.5px;
}

.cs-behavior-panel {
  padding: 13px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.cs-behavior-status-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cs-behavior-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}

.cs-rec, .cs-rec-v2 {
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 6px;
  transition: border-color .2s;
}
.cs-rec:hover, .cs-rec-v2:hover { border-color: var(--coral); }
.cs-rec-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px 6px;
  cursor: pointer;
}
.cs-rec-num {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--coral), var(--rose));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.cs-rec-title { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cs-rec-desc {
  padding: 0 13px 6px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}
.cs-rec-steps {
  padding: 6px 13px 10px 34px;
  list-style: decimal;
}
.cs-rec-steps li {
  font-size: 12px; color: var(--ink-2);
  padding: 2px 0; line-height: 1.5;
}

/* DNS grid — single column */
.cs-dns-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0;
  grid-template-columns: none !important;
  margin-bottom: 10px;
}
.cs-dns-card-head {
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  border-bottom: none;
}
.cs-dns-card-body {
  padding: 7px 12px;
  background: rgba(255,255,255,.015);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 6px 6px;
  margin-bottom: 4px;
  display: flex; gap: 10px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-2);
}
.cs-dns-status-row { display: flex; align-items: center; margin-bottom: 8px; }
.cs-dns-count-badge {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--coral-soft); color: var(--coral);
  border: 1px solid rgba(255,107,74,.25);
}

.cs-mtu-bar {
  position: relative;
  height: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 10px 0 22px;
  overflow: hidden;
}
.cs-mtu-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--lime));
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
}
.cs-mtu-bar-marks { position: absolute; inset: 0; pointer-events: none; }
.cs-mtu-bar-marks span {
  position: absolute; top: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
  transform: translateX(-50%);
}
.cs-mtu-ref td { padding: 4px 9px; }
.cs-mtu-ref-val { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.cs-mtu-ref-ok   { color: var(--emerald); }
.cs-mtu-ref-warn { color: var(--amber); }
.cs-mtu-ref-bad  { color: var(--red); }

.cs-ua-box {
  padding: 11px 13px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  word-break: break-all;
  line-height: 1.5;
}

.cs-footer {
  margin-top: 36px;
  padding: 16px 0 8px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.cs-footer .container {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
}

.cs-pro-locked { padding: 24px; }

/* (Mobile rules consolidated in the GLOBAL MOBILE / RESPONSIVE GUARDS block below) */


/* ═══════════════════════════════════════════════════════════
   GLOBAL MOBILE / RESPONSIVE GUARDS
   Applies on top of every other rule. Keeps everything inside
   the page width without horizontal scroll.
   ═══════════════════════════════════════════════════════════ */

/* Anything table-like must scroll horizontally instead of overflowing */
@media (max-width: 760px) {
  /* Tables → horizontal scroll inside their container */
  .cs-table { font-size: 11px; }
  .cs-table th { font-size: 10px; }
  .cs-card,
  .cs-rec, .cs-rec-v2,
  .cs-sig,
  .cs-behavior-panel,
  .cs-ua-box,
  .cs-cards-row {
    max-width: 100%;
    overflow-x: auto;
  }

  /* Long mono strings (JA3 hash, IP, ISP) — break to next line */
  .cs-ip-val, .cs-meta-val, .cs-table td {
    word-break: break-word;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cs-ip-val { max-width: 65vw; text-align: right; }

  /* Sub-ring chips: wrap properly */
  .cs-hero-sub-rings { gap: 6px !important; }
  .cs-sub-ring-row { padding: 5px 10px; }

  /* Category chips */
  .cs-cat-card { padding: 5px 10px; }
  .cs-cat-card .cs-cat-name { font-size: 10.5px; }
  .cs-cat-summary-title { font-size: 9px; }

  /* DNS chips */
  .cs-hero-dns-row { font-size: 10px; padding: 3px 7px; }

  /* Section headers */
  .cs-section { padding: 14px 14px; }
  .cs-section-header h2 { font-size: 13.5px; }
  .cs-section-header h2 i { width: 26px; height: 26px; font-size: 11px; }
  .cs-section-tag { font-size: 8.5px; padding: 2px 6px; margin-left: 0; }
  .cs-section-desc { font-size: 12px; }

  /* Group dividers */
  .cs-group-divider { padding: 0 0 6px; gap: 8px; }
  .cs-group-divider-icon { font-size: 18px; }
  .cs-group-divider-text h2 { font-size: 16px; }
  .cs-group-divider-text p { font-size: 9.5px; }

  /* Hero meta — single line value/label, smaller chips */
  .cs-hero-meta-grid {
    flex-direction: column !important;
    gap: 6px 0 !important;
    align-items: stretch !important;
    padding-top: 10px;
  }
  .cs-hero-meta-item {
    width: 100%;
    flex-wrap: wrap;
  }
  .cs-hero-meta-item > div {
    flex-direction: row !important;
    align-items: baseline;
    gap: 6px;
    flex: 1;
  }
  .cs-meta-val {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60vw;
  }

  /* Score-panel — tighter */
  .cs-hero-score-panel {
    padding: 14px 16px;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .cs-ring-block {
    flex-direction: row !important;
    align-items: baseline !important;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  .cs-ring-num { font-size: 36px; }
  .cs-risk-label { font-size: 10px; padding: 4px 10px; }

  /* IP grid */
  .cs-ip-grid { grid-template-columns: 1fr !important; gap: 0; }

  /* Cards row stacks */
  .cs-cards-row { grid-template-columns: 1fr !important; }
  .cs-card { padding: 11px 12px; }

  /* Recommendations */
  .cs-rec-head { padding: 9px 12px 5px; gap: 8px; flex-wrap: wrap; }
  .cs-rec-title { font-size: 12px; }
  .cs-rec-desc { padding: 0 12px 5px; font-size: 11.5px; }
  .cs-rec-steps { padding: 5px 12px 9px 30px; }
  .cs-rec-steps li { font-size: 11.5px; }

  /* Signal blocks */
  .cs-sig-head { padding: 8px 11px 3px; gap: 7px; flex-wrap: wrap; }
  .cs-sig-title { font-size: 12px; }
  .cs-sig-detail { padding: 0 11px 5px; font-size: 10.5px; }
  .cs-sig-why, .cs-sig-fix { padding: 6px 11px 8px; font-size: 11px; }

  /* DNS grid */
  .cs-dns-grid { grid-template-columns: 1fr !important; }

  /* MTU bar marks — too cluttered on small screens */
  .cs-mtu-bar-marks span { font-size: 8px; }

  /* Triangulation matrix is handled in its own media query below */
}

@media (max-width: 480px) {
  .cs-wrap { padding: 14px 10px 28px; }
  .cs-page-header h1 { font-size: 19px; }
  .cs-page-header p { font-size: 11.5px; }

  .top-header { padding: 0 10px; height: 54px; }
  .nav-bar { top: 54px; }
  .nav-bar-inner { padding: 6px 10px; }
  .nav-link { padding: 6px 10px; font-size: 11.5px; }

  .logo-left { font-size: 11px; }
  .logo-left::before { width: 28px; height: 28px; font-size: 11px; }

  .cs-ring-num { font-size: 30px; }
  .cs-ring-denom { font-size: 11px; }
  .cs-hero-addr { font-size: 18px; }
  .cs-hero-loc { font-size: 14px; }

  .cs-meta-val { max-width: 55vw; }
  .cs-ip-val { max-width: 55vw; }

  /* Map full width edge-to-edge */
  .cs-map-wrap { margin: 12px -10px; }
  .cs-map-wrap iframe { height: 180px; }

  /* Group divider stacks */
  .cs-group-divider { flex-direction: row; gap: 8px; }
  .cs-group-divider-text h2 { font-size: 14px; }

  /* Theme switcher visible, but compact */
  .theme-switcher { width: 30px; height: 30px; }
}

/* ═══════════════════════════════════════════════════════════
   GEO / TIME / LANGUAGE TRIANGULATION MATRIX
   ═══════════════════════════════════════════════════════════ */
.cs-tri-matrix {
  display: grid !important;
  grid-template-columns: 160px repeat(6, minmax(0, 1fr)) !important;
  gap: 4px !important;
  padding: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11.5px;
  margin-top: 8px;
  overflow-x: auto;
}
.cs-tri-cell {
  padding: 7px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,.02);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  min-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-2);
}
.cs-tri-cell.cs-tri-label {
  background: transparent;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: left;
}
.cs-tri-cell.cs-tri-label > span {
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
  font-family: var(--font-mono);
}
.cs-tri-cell.cs-tri-header {
  background: transparent;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-items: center;
}
.cs-tri-cell.cs-tri-match {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(52,211,153,.3);
  font-size: 13px;
}
.cs-tri-cell.cs-tri-mismatch {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(248,113,113,.35);
  font-size: 13px;
}
.cs-tri-cell.cs-tri-na {
  opacity: .25;
  font-size: 13px;
}

/* Mobile fallback: matrix → vertical list of "label → result" rows */
@media (max-width: 700px) {
  .cs-tri-matrix {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    padding: 8px 10px;
  }
  .cs-tri-matrix .cs-tri-header { display: none !important; }
  /* Hide the diagonal/empty cells */
  .cs-tri-matrix .cs-tri-na { display: none !important; }
  /* Each label row */
  .cs-tri-matrix .cs-tri-label {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }
  .cs-tri-matrix .cs-tri-label > span {
    margin-top: 0;
    text-align: right;
  }
  /* Hide every plain non-label cell (we no longer render the cross-table on mobile,
     just the source/value list). The match/mismatch icons are dropped because
     without column headers they'd be ambiguous. */
  .cs-tri-matrix .cs-tri-cell:not(.cs-tri-label) {
    display: none !important;
  }
}
