/* SecurityAlert.ai — Redesign design system (April 2026 hi-fi handoff)
   --------------------------------------------------------------------
   Dark security-ops aesthetic. Near-black canvas, single crimson accent,
   hairline borders, mono labels for data.

   Tokens are asserted at :root so they override modern-base.css's
   light-theme tokens site-wide. Every page renders dark.

   Modern-base.css is loaded before redesign.css in head-common.php and
   dashboard-head.php, so this :root block wins. Page-specific CSS
   files that use var(--bg), var(--ink), etc. now resolve to the dark
   values automatically. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@1&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:        #07080B;
  --bg-1:      #0B0D11;
  --bg-2:      #0F1218;
  --surface:   #11151C;
  --surface-2: #161B24;
  --line:      rgba(255,255,255,0.06);
  --line-2:    rgba(255,255,255,0.10);
  --line-3:    rgba(255,255,255,0.16);
  --ink:       #F2F4F8;
  --ink-2:     #C9CED9;
  --ink-3:     #8089A0;
  --ink-4:     #515A6E;
  --accent:    oklch(64% 0.22 25);
  --accent-1:  oklch(70% 0.22 25);
  --accent-2:  oklch(56% 0.22 25);
  --accent-soft: oklch(64% 0.22 25 / 0.12);
  --accent-line: oklch(64% 0.22 25 / 0.35);
  --ok:        oklch(72% 0.16 152);
  --warn:      oklch(78% 0.15 75);
  --danger:    oklch(64% 0.22 25);
  --info:      oklch(72% 0.12 230);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Compatibility aliases for modern-base.css token names so existing
     page-specific CSS keeps working with the new dark palette without
     needing a rewrite of every selector. */
  --bg-primary:    #07080B;
  --bg-secondary:  #0B0D11;
  --bg-tertiary:   #0F1218;
  --bg-elevated:   #11151C;
  --text-primary:  #F2F4F8;
  --text-secondary:#C9CED9;
  --text-tertiary: #8089A0;
  --border-color:  rgba(255,255,255,0.10);
  --border-light:  rgba(255,255,255,0.06);
  --shadow-color:  rgba(0,0,0,0.4);
  --accent-hover:  oklch(70% 0.22 25);
  --accent-light:  oklch(70% 0.22 25);
  --accent-ink:    oklch(56% 0.22 25);
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
body * { box-sizing: border-box; }

/* selection */
::selection { background: var(--accent-soft); color: var(--ink); }

/* utility */
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.divider { height: 1px; background: var(--line); width: 100%; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font: 500 14px/1 var(--sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: oklch(64% 0.22 25 / 0.6);
  box-shadow: 0 0 0 1px oklch(64% 0.22 25 / 0.4) inset, 0 8px 24px -8px oklch(64% 0.22 25 / 0.5);
}
.btn-primary:hover {
  background: var(--accent-1);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--line-3);
  background: var(--surface);
}
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* Field tag — small mono pill used everywhere */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
}
.tag-accent {
  border-color: var(--accent-line);
  color: var(--accent-1);
  background: var(--accent-soft);
}
.tag-ok    { color: var(--ok);    border-color: oklch(72% 0.16 152 / 0.35); }
.tag-warn  { color: var(--warn);  border-color: oklch(78% 0.15 75 / 0.35); }
.tag-danger{ color: var(--danger);border-color: var(--accent-line); background: var(--accent-soft); }

/* container */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 64px;
}
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: ''; position: absolute; bottom: -22px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}
.nav-spacer { flex: 1; }
.nav-utility { display: flex; align-items: center; gap: 10px; }
.nav-search {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; height: 32px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 6px;
  color: var(--ink-3);
  font: 500 12px/1 var(--mono);
  cursor: pointer;
  min-width: 220px;
}
.nav-search:hover { border-color: var(--line-3); color: var(--ink-2); }
.nav-search .kbd {
  margin-left: auto;
  font: 500 10px/1 var(--mono);
  padding: 3px 6px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .nav-links, .nav-search { display: none; }
}

/* ─── Logo ─── */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.logo-mark { width: 26px; height: 26px; flex: 0 0 26px; }
.logo-word {
  font: 700 16px/1 var(--sans);
  letter-spacing: -0.025em;
}
.logo-word .dim { color: var(--ink-3); font-weight: 500; }

/* ─── HOME ─── */
.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, oklch(64% 0.22 25 / 0.08), transparent 60%),
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 80%);
}
.hero-eyebrow-row {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  position: relative; z-index: 2;
}
.hero h1 {
  font: 600 clamp(44px, 5.4vw, 76px)/0.98 var(--sans);
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  max-width: 18ch;
  position: relative; z-index: 2;
  text-wrap: balance;
}
.hero h1 .acc { color: var(--accent); }
.hero h1 .em {
  font-style: italic; font-weight: 400;
  font-family: 'Instrument Serif', Georgia, serif;
}
.hero p.lede {
  font-size: 18px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 36px;
  position: relative; z-index: 2;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }

.hero-monitor {
  margin-top: 64px;
  position: relative; z-index: 2;
}

/* monitor card — the live product preview */
.monitor {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-1) 100%);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--line) inset,
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 0 120px -30px oklch(64% 0.22 25 / 0.25);
}
.monitor-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.monitor-dots { display: flex; gap: 6px; }
.monitor-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}
.monitor-title {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--mono);
  color: var(--ink-2);
}
.monitor-tabs {
  display: flex; gap: 2px;
  background: var(--surface-2);
  padding: 3px;
  border-radius: 6px;
  margin-left: auto;
}
.monitor-tab {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  border: 0; background: transparent;
}
.monitor-tab.on {
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2);
}
.monitor-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 oklch(64% 0.22 25 / 0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 oklch(64% 0.22 25 / 0.55); }
  100% { box-shadow: 0 0 0 14px oklch(64% 0.22 25 / 0); }
}

.monitor-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 360px;
}
@media (max-width: 900px) { .monitor-body { grid-template-columns: 1fr; } }

.monitor-feed { border-right: 1px solid var(--line); }
.feed-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  transition: background 120ms;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: var(--bg-2); }
.feed-row .ts {
  font: 500 11.5px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.feed-row .what { color: var(--ink-2); }
.feed-row .what strong { color: var(--ink); font-weight: 600; }
.feed-row .sev {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
}
.sev.crit { color: var(--danger); border-color: var(--accent-line); background: var(--accent-soft); }
.sev.high { color: var(--warn);   border-color: oklch(78% 0.15 75 / 0.35); }
.sev.med  { color: var(--info);   border-color: oklch(72% 0.12 230 / 0.35); }
.sev.low  { color: var(--ink-3);  }

.monitor-side { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.side-block { }
.side-block h4 {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
  font-weight: 500;
}
.score-ring {
  display: flex; align-items: center; gap: 16px;
}
.score-ring .ring {
  width: 88px; height: 88px;
  flex: 0 0 88px;
  position: relative;
}
.score-ring .ring svg { width: 100%; height: 100%; }
.score-ring .ring .num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 700 28px/1 var(--sans);
  letter-spacing: -0.02em;
}
.score-ring .meta { display: flex; flex-direction: column; gap: 2px; }
.score-ring .meta .lab { color: var(--ink-3); font-size: 12px; }
.score-ring .meta .val { color: var(--ink); font: 600 14px/1.4 var(--sans); }

/* ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  padding: 14px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--mono);
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ticker-item .grp { color: var(--ink); }
.ticker-item .vic { color: var(--ink-3); }
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* stats strip */
.stats {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 28px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
@media (max-width: 800px) {
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
.stat .lab {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.stat .num {
  font: 600 clamp(36px, 4vw, 52px)/1 var(--sans);
  letter-spacing: -0.025em;
  color: var(--ink);
}
.stat .num .acc { color: var(--accent); }
.stat .ctx { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.stat .spark {
  position: absolute; right: 18px; top: 18px;
  width: 70px; height: 22px;
  color: var(--ink-4);
}

/* pillars */
.pillars { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 {
  font: 600 clamp(32px, 4vw, 48px)/1.04 var(--sans);
  letter-spacing: -0.03em;
  margin: 8px 0 0;
  max-width: 22ch;
  text-wrap: balance;
}
.section-head h2 .em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
}
.section-head .sub { color: var(--ink-3); font-size: 15px; max-width: 40ch; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr; } }
.pillar {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 150ms, transform 150ms;
}
.pillar:hover { border-color: var(--line-3); transform: translateY(-2px); }
.pillar-img {
  height: 180px;
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pillar-img .placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 16px;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0px, var(--bg-2) 6px,
      var(--surface) 6px, var(--surface) 12px);
}
.pillar-img .placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, oklch(64% 0.22 25 / 0.15), transparent 40%);
}
.pillar-img .ph-label {
  font: 500 10.5px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(7,8,11,0.7);
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  position: relative; z-index: 2;
}
.pillar-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.pillar-body h3 {
  font: 600 19px/1.2 var(--sans);
  letter-spacing: -0.018em;
  margin: 0 0 8px;
}
.pillar-body p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; }
.pillar-body ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.pillar-body ul li {
  display: flex; gap: 10px; align-items: center;
  font: 500 12.5px/1.2 var(--mono);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.pillar-body ul li::before {
  content: ''; width: 12px; height: 1px; background: var(--accent); flex: 0 0 12px;
}
.pillar-body .more {
  margin-top: auto;
  font: 500 13px/1 var(--sans);
  color: var(--accent-1);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  margin-top: 64px;
  background: var(--bg-1);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand { max-width: 320px; color: var(--ink-3); font-size: 13.5px; }
.foot-brand p { margin: 16px 0 0; line-height: 1.55; }
.foot-col h5 {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  padding: 4px 0;
}
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  font: 500 12px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ─── DASHBOARD ─── */
.dash {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}
@media (max-width: 1000px) { .dash { grid-template-columns: 1fr; } }

.side {
  border-right: 1px solid var(--line);
  background: var(--bg-1);
  padding: 24px 16px;
}
@media (max-width: 1000px) { .side { display: none; } }
.side-section { margin-bottom: 24px; }
.side-section h6 {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 10px;
  padding: 0 8px;
  font-weight: 500;
}
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  cursor: pointer;
  margin-bottom: 1px;
  border: 1px solid transparent;
}
.side-link:hover { background: var(--surface); color: var(--ink); }
.side-link.on {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.side-link svg { color: var(--ink-3); }
.side-link.on svg { color: var(--accent-1); }
.side-link .pip {
  margin-left: auto;
  font: 500 10.5px/1 var(--mono);
  color: var(--ink-3);
}

.dash-main {
  padding: 32px 40px 64px;
  min-width: 0;
}
@media (max-width: 720px) { .dash-main { padding: 24px 20px 64px; } }

.dash-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.dash-head h1 {
  font: 600 32px/1.1 var(--sans);
  letter-spacing: -0.025em;
  margin: 6px 0 0;
}
.dash-head .meta {
  display: flex; gap: 8px; align-items: center;
}

/* exposure score panel */
.exposure-panel {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 1100px) { .exposure-panel { grid-template-columns: 1fr; } }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-1);
  padding: 24px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.panel-head h3 {
  font: 600 14px/1 var(--sans);
  letter-spacing: -0.005em;
  margin: 0;
}
.panel-head .panel-meta {
  font: 500 11px/1 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.score-big {
  display: flex; align-items: center; gap: 24px;
}
.score-big .ring-big {
  width: 156px; height: 156px;
  flex: 0 0 156px;
  position: relative;
}
.score-big .ring-big .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.score-big .ring-big .center .n {
  font: 600 56px/1 var(--sans);
  letter-spacing: -0.03em;
}
.score-big .ring-big .center .lbl {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.score-deltas { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }
.score-row {
  display: grid;
  grid-template-columns: 90px 1fr 56px;
  gap: 12px; align-items: center;
}
.score-row .lab {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.score-row .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.score-row .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-1));
  border-radius: 3px;
}
.score-row .val {
  font: 600 13px/1 var(--mono);
  text-align: right;
  color: var(--ink);
}

/* findings feed */
.findings { }
.findings-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
}
.findings-head h3 { font: 600 14px/1 var(--sans); margin: 0; }
.findings-head .live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  margin-left: 10px;
  animation: pulse 1.6s ease-out infinite;
}
.findings-head .filters {
  margin-left: auto;
  display: flex; gap: 4px;
}
.filter-chip {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}
.filter-chip.on {
  border-color: var(--accent-line);
  color: var(--accent-1);
  background: var(--accent-soft);
}
.filter-chip:hover { color: var(--ink); }
.findings-list {
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom-left-radius: var(--r-lg);
  border-bottom-right-radius: var(--r-lg);
  background: var(--bg-1);
  overflow: hidden;
}
.find-row {
  display: grid;
  grid-template-columns: 90px 90px 1fr 200px 110px 90px;
  gap: 12px; align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
@media (max-width: 1100px) {
  .find-row { grid-template-columns: 80px 1fr 90px; }
  .find-row .col-host, .find-row .col-source, .find-row .col-time { display: none; }
}
.find-row:first-child { border-top: 0; }
.find-row:hover { background: var(--bg-2); }
.find-row .col-time { font: 500 11.5px/1 var(--mono); color: var(--ink-3); }
.find-row .col-host { font: 500 12px/1 var(--mono); color: var(--ink-2); }
.find-row .col-title { color: var(--ink); font-weight: 500; }
.find-row .col-title .meta {
  display: block; color: var(--ink-3); font-size: 12px; margin-top: 4px; font-weight: 400;
}
.find-row .col-source { font: 500 11px/1 var(--mono); color: var(--ink-3); letter-spacing: 0.04em; }
.find-row .col-action {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* secondary panel grid */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

.world-card { padding: 24px; }
.world-vis {
  height: 220px;
  background:
    radial-gradient(ellipse at 50% 50%, oklch(64% 0.22 25 / 0.08) 0%, transparent 60%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.world-vis svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.actor-list { display: flex; flex-direction: column; }
.actor-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px; align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.actor-row:first-child { border-top: 0; padding-top: 0; }
.actor-row .name { font: 600 14px/1.2 var(--sans); }
.actor-row .name .alias { color: var(--ink-3); font-weight: 400; }
.actor-row .ttp { font: 500 11px/1 var(--mono); color: var(--ink-3); letter-spacing: 0.04em; }
.actor-row .heat {
  width: 80px; height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.actor-row .heat > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* nav avatar */
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: 600 11.5px/1 var(--sans);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-3);
}

/* small icons */
.ico { width: 16px; height: 16px; flex: 0 0 16px; color: currentColor; }
.ico-sm { width: 14px; height: 14px; flex: 0 0 14px; }

/* page transitions */
.page-enter { animation: fadeUp 280ms ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* misc */
.muted { color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 8px; }
