/* ============================================================
   OSINT Tools — TheAdminStack
   Design System v1.0 — ported from theadminstack.com v4.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================================
   Tokens — v2 palette  (portfolio_v2_style.md)
   ============================================================ */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg:   #f9fafb;
  --bg-1: #ffffff;
  --bg-2: #f3f4f6;
  --bg-3: #e5e7eb;

  /* Backward-compat surface aliases */
  --surface:   var(--bg-1);
  --surface-2: rgba(0,0,0,0.025);
  --surface-3: rgba(0,0,0,0.05);

  /* Text */
  --text:   #111827;
  --text-2: #4b5563;
  --text-3: #9ca3af;
  --text-4: #d1d5db;

  /* Borders — solid hex, not rgba */
  --border:   #e5e7eb;
  --border-2: #d1d5db;
  --border-3: #9ca3af;

  /* Accent — strictly monochrome */
  --accent:        #111827;
  --accent-inv:    #ffffff;
  --accent-2:      #374151;
  --accent-subtle: #f3f4f6;
  --accent-dim:    var(--accent-subtle);   /* backward-compat alias */
  --accent-glow:   rgba(17,24,39,.08);

  /* Nav */
  --nav-bg: rgba(249,250,251,0.92);
  --nav-h:  64px;

  /* Severity colors (functional only — no decorative hue) */
  --sev-critical: #dc2626;
  --sev-high:     #ea580c;
  --sev-medium:   #d97706;
  --sev-low:      #16a34a;
  --sev-none:     #6b7280;

  /* Functional color aliases — use severity vars above for new rules */
  --green:     #16a34a;
  --green-bg:  color-mix(in srgb, #16a34a 12%, transparent);
  --red:       #dc2626;
  --red-bg:    color-mix(in srgb, #dc2626 12%, transparent);
  --orange:    #d97706;
  --orange-bg: color-mix(in srgb, #d97706 12%, transparent);

  /* Blue and purple removed — neutralized to prevent hue-based accents */
  --blue:      var(--sev-none);
  --blue-bg:   var(--bg-2);
  --purple:    var(--text-3);
  --purple-bg: var(--bg-2);

  /* Fonts */
  --font-display: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7rem;

  --container: 1240px;

  /* Border radius — v2 scale */
  --r-xs:   2px;
  --r-sm:   6px;     /* buttons, inputs, badges (was 4px) */
  --r:      10px;    /* canonical card radius */
  --r-md:   10px;    /* backward-compat alias → card radius (was 6px) */
  --r-lg:   14px;    /* large cards (was 8px) */
  --r-xl:   14px;    /* same as lg */
  --r-pill: 9999px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t-mid:  220ms ease;
  --t-slow: 380ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-md: var(--shadow);   /* backward-compat alias */
  --shadow-lg: 0 10px 32px rgba(0,0,0,.10);
}

/* Dark mode — GitHub-dark palette, NOT pure black */
html.dark {
  color-scheme: dark;

  --bg:   #0f1117;
  --bg-1: #161b22;
  --bg-2: #21262d;
  --bg-3: #30363d;

  --surface:   var(--bg-1);
  --surface-2: rgba(255,255,255,0.03);
  --surface-3: rgba(255,255,255,0.06);

  --border:   #30363d;
  --border-2: #3d444d;
  --border-3: #484f58;

  --accent:        #f0f6fc;
  --accent-inv:    #0f1117;
  --accent-2:      #8b949e;
  --accent-subtle: #21262d;
  --accent-dim:    var(--accent-subtle);
  --accent-glow:   rgba(240,246,252,.08);

  --nav-bg: rgba(15,17,23,0.92);

  --text:   #f0f6fc;
  --text-2: #8b949e;
  --text-3: #484f58;
  --text-4: #30363d;

  --green-bg:  rgba(22,163,74,0.15);
  --red-bg:    rgba(220,38,38,0.15);
  --orange-bg: rgba(217,119,6,0.15);
  --blue-bg:   var(--bg-2);
  --purple-bg: var(--bg-2);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.35);
  --shadow:    0 4px 16px rgba(0,0,0,.35);
  --shadow-md: var(--shadow);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.45);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-mid);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.nav-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--accent-inv);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.nav-brand:hover .nav-brand-icon { opacity: 0.85; }
.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand-accent { color: var(--text-3); }
.nav-brand-role {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-left: 2px;
  display: none;
}
@media (min-width: 900px) { .nav-brand-role { display: inline; } }

/* Pill nav */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  flex: 1;
}
.nav-pill a {
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.nav-pill a:hover { color: var(--text); background: var(--surface-3); }
.nav-pill a.active {
  background: var(--accent);
  color: var(--accent-inv);
}

/* Nav right */
.nav-right { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }

.theme-toggle {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.theme-toggle:hover { background: var(--accent-dim); color: var(--text); }

.btn-nav {
  padding: 6px 14px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn-nav:hover {
  border-color: var(--border-2);
  background: var(--bg-2);
  color: var(--text);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-2);
}
.nav-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-mid), opacity var(--t-mid);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-md) var(--space-xl);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.nav-mobile a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }

@media (max-width: 960px) {
  .nav-pill { display: none; }
  .btn-nav  { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1.5px solid var(--accent);
}
html.dark .btn-primary { color: var(--bg-2); }
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-secondary:hover { border-color: var(--border-3); background: var(--bg-2); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border);
  padding: 7px 14px;
  font-size: 0.8rem;
}
.btn-ghost:hover { background: var(--accent-dim); color: var(--text); border-color: var(--border-2); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ============================================================
   Hero (hub page)
   ============================================================ */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--accent-dim);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: var(--space-lg);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-lg);
}
.hero h1 em {
  font-style: normal;
  color: var(--text-3);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.65;
}
.hero-actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Tool cards (hub grid)
   ============================================================ */
.tools-section {
  padding: var(--space-3xl) 0;
}
.tools-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-xl);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  transition: box-shadow var(--t-mid), border-color var(--t-mid), transform var(--t-mid);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.tool-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.tool-card-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  flex-shrink: 0;
}
.tool-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}
.tool-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-3);
}
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.status-live    { color: var(--green); background: var(--green-bg); }
.status-soon    { color: var(--orange); background: var(--orange-bg); }
.status-planned { color: var(--text-3); background: var(--bg-3); }

/* ============================================================
   SquatWatch — Tool page
   ============================================================ */

/* Tool hero */
.tool-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-2xl);
}
.tool-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.tool-hero-icon {
  width: 56px; height: 56px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
html.dark .tool-hero-icon { color: var(--bg-2); }
.tool-hero-text { flex: 1; min-width: 0; }
.tool-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-xs);
}
.tool-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}
.tool-hero-desc {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.65;
}

/* Search box */
.search-section {
  padding: var(--space-2xl) 0 var(--space-lg);
}
.search-box {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}
.search-box-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.search-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: flex-end;
}
.search-field { flex: 1; min-width: 220px; }
.search-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.search-field input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-md);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
html.dark .search-field input { background: var(--bg-2); }

/* ── Search-row alignment fix (button level with input) ─────────────────── */
.search-field input[type="text"] { height: 44px; }
.search-row .btn { height: 44px; }
.cs-inline-error { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--sev-critical); }
.cs-inline-error:empty { display: none; }

/* TLD selector */
.tld-selector {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}
.tld-selector label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  width: 100%;
  margin-bottom: 4px;
}
.tld-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font-mono);
  user-select: none;
}
.tld-chip:hover { border-color: var(--accent); color: var(--text); }
.tld-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
html.dark .tld-chip.selected { color: var(--bg-2); }

/* Algo checkboxes */
.algo-toggles {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.algo-toggles summary,
.algo-toggles-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: var(--space-sm);
}
.algo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-xs) var(--space-md);
  margin-top: var(--space-sm);
}
.algo-check {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.78rem;
  color: var(--text-2);
  cursor: pointer;
}
.algo-check input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Progress bar ─────────────────────────────────── */
.scan-progress {
  margin-top: var(--space-lg);
  display: none;
}
.scan-progress.visible { display: block; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 6px;
}
.progress-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width 0.2s ease;
  width: 0%;
}

/* ── Stats bar ────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-value.danger { color: var(--sev-critical); }
.stat-value.warn   { color: var(--sev-high); }
.stat-value.info   { color: var(--sev-none); }
.stat-value.purple { color: var(--text-2); }
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Filter tabs ──────────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.results-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.filter-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.filter-tab .count {
  font-size: 0.7rem;
  background: var(--bg-3);
  border-radius: var(--r-pill);
  padding: 1px 6px;
  transition: background var(--t-fast), color var(--t-fast);
}
.filter-tab:hover { color: var(--text); background: var(--surface-3); }
.filter-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.filter-tab.active .count {
  background: var(--accent-dim);
  color: var(--text-2);
}

/* ── Results table ────────────────────────────────── */
.results-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.results-table-wrap { overflow-x: auto; }
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.results-table thead tr {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-2);
}
.results-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.results-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--t-fast);
}
.results-table tbody tr:last-child { border-bottom: none; }
.results-table tbody tr:hover { background: var(--surface-2); }

/* Row risk colouring */
.results-table tbody tr.risk-critical { border-left: 3px solid var(--sev-critical); }
.results-table tbody tr.risk-high     { border-left: 3px solid var(--sev-high); }
.results-table tbody tr.risk-medium   { border-left: 3px solid var(--sev-medium); }
.results-table tbody tr.risk-low      { border-left: 3px solid transparent; }

.results-table td {
  padding: 10px 14px;
  vertical-align: middle;
  color: var(--text-2);
}

/* Domain cell */
.td-domain {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  min-width: 180px;
}
.td-domain a {
  color: var(--text);
  transition: color var(--t-fast);
}
.td-domain a:hover { color: var(--text-2); text-decoration: underline; }

/* DNS status badges */
.dns-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.dns-active   { color: var(--sev-critical); background: var(--red-bg); }
.dns-resolves { color: var(--sev-high);     background: var(--orange-bg); }
.dns-none     { color: var(--text-3);       background: var(--bg-2); }
.dns-checking { color: var(--text-3);       background: var(--bg-2); animation: pulse 1.2s ease infinite; }

/* Risk badge */
.risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.risk-critical { color: var(--sev-critical); background: color-mix(in srgb, var(--sev-critical) 12%, transparent); }
.risk-high     { color: var(--sev-high);     background: color-mix(in srgb, var(--sev-high)     12%, transparent); }
.risk-medium   { color: var(--sev-medium);   background: color-mix(in srgb, var(--sev-medium)   12%, transparent); }
.risk-low      { color: var(--text-3);       background: var(--bg-2); }

/* Azure badge */
.azure-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
}

/* Fuzzer type pill */
.fuzzer-pill {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text-3);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Row action icons */
.td-actions { text-align: right; white-space: nowrap; }
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.row-action:hover { background: var(--accent-dim); color: var(--text); }
.row-action svg { pointer-events: none; }

/* Loading skeleton */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  display: inline-block;
  height: 12px;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Empty + error states */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--text-3);
}
.empty-state svg { margin: 0 auto var(--space-md); opacity: 0.35; }
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: var(--space-sm);
}
.empty-state p { font-size: 0.875rem; }

.error-banner {
  display: none;
  background: var(--red-bg);
  border: 1px solid var(--red);
  border-radius: var(--r-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--red);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}
.error-banner.visible { display: flex; align-items: center; gap: var(--space-sm); }

/* Results toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  flex-wrap: wrap;
}
.results-toolbar-left {
  flex: 1;
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 500;
}

/* WHOIS popover */
.whois-cell { cursor: pointer; }
.whois-date {
  font-size: 0.78rem;
  color: var(--text-2);
  font-family: var(--font-mono);
}
.whois-loading { color: var(--text-3); font-size: 0.75rem; font-style: italic; }

/* Info section below tool */
.info-section {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}
.info-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.info-card-icon {
  width: 36px; height: 36px;
  background: var(--accent-dim);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.info-card p { font-size: 0.83rem; color: var(--text-2); line-height: 1.6; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.footer-logo-accent { color: var(--text-3); }
.footer-tagline { font-size: 0.82rem; color: var(--text-3); }
.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--text); }
.footer-legal {
  font-size: 0.75rem;
  color: var(--text-3);
  max-width: 600px;
  line-height: 1.6;
}
.footer-copy { font-size: 0.75rem; color: var(--text-4); }

/* ============================================================
   Utilities
   ============================================================ */
kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-3);
  border: 1px solid var(--border-3);
  border-radius: var(--r-sm);
  color: var(--text-2);
  line-height: 1.5;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-mono { font-family: var(--font-mono); }
.text-sm   { font-size: 0.82rem; }
.text-xs   { font-size: 0.73rem; }
.text-2    { color: var(--text-2); }
.text-3    { color: var(--text-3); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.hidden { display: none !important; }

/* ============================================================
   AOS override — disable scroll-triggered animations
   (AOS library stays loaded but animations are neutralised)
   ============================================================ */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 var(--space-md); }
  .search-row { flex-direction: column; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .results-table th:nth-child(n+5),
  .results-table td:nth-child(n+5) { display: none; }
  .tool-hero-inner { flex-direction: column; }
  .filter-tabs { gap: 2px; }
  .filter-tab { padding: 4px 10px; }
}

/* ============================================================
   NetRecon — tool-specific components
   ============================================================ */

/* ── Input type indicator ─────────────────────────────────── */
.nr-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--t-fast);
}
.nr-type-ipv4   { background: var(--bg-2);      color: var(--text-2); }
.nr-type-ipv6   { background: var(--bg-2);      color: var(--text-3); }
.nr-type-domain { background: var(--green-bg);  color: var(--green); }
.nr-type-asn    { background: var(--orange-bg); color: var(--orange); }
.nr-type-none   { background: var(--bg-3);      color: var(--text-3); }

/* ── Result tab nav ───────────────────────────────────────── */
.nr-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.nr-tab {
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
}
.nr-tab:hover { color: var(--text); background: var(--surface-3); }
.nr-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.nr-tab-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg-3);
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.nr-tab.has-hit .nr-tab-dot   { background: var(--red); }
.nr-tab.has-data .nr-tab-dot  { background: var(--green); }

.nr-panel { display: none; }
.nr-panel.active { display: block; }

/* ── Verdict banner ───────────────────────────────────────── */
.nr-verdict {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--r-lg);
  border: 1px solid;
  margin-bottom: var(--space-lg);
}
.nr-verdict-clean    { background: var(--green-bg);  border-color: var(--green);  color: var(--green); }
.nr-verdict-suspect  { background: var(--orange-bg); border-color: var(--orange); color: var(--orange); }
.nr-verdict-malicious{ background: var(--red-bg);    border-color: var(--red);    color: var(--red); }
.nr-verdict-unknown  { background: var(--bg-2);      border-color: var(--border); color: var(--text-3); }
.nr-verdict-icon { flex-shrink: 0; }
.nr-verdict-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nr-verdict-sub { font-size: 0.8rem; opacity: 0.85; margin-top: 1px; }

/* ── Field rows (Overview, key/value pairs) ───────────────── */
.nr-fields {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.nr-field {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: 10px var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.nr-field:last-child { border-bottom: none; }
.nr-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  flex-shrink: 0;
}
.nr-field-value {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--text);
  word-break: break-all;
}
.nr-field-value.plain { font-family: var(--font-body); }
.nr-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  border: none;
  background: transparent;
  flex-shrink: 0;
}
.nr-copy:hover { background: var(--accent-dim); color: var(--text); }
.nr-copy.copied { color: var(--green); }

/* ── Section heading inside panel ────────────────────────── */
.nr-section-head {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: var(--space-xl) 0 var(--space-sm);
}
.nr-section-head:first-child { margin-top: 0; }

/* ── Enrichment cards (Reputation tab) ───────────────────── */
.nr-enrich-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}
.nr-enrich-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.nr-enrich-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); }
.nr-enrich-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.nr-enrich-desc { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; flex: 1; }
.nr-enrich-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  align-self: flex-start;
}
.nr-enrich-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
html.dark .nr-enrich-btn:hover { color: var(--bg-2); }

/* ── Feed check rows (Blacklists tab) ────────────────────── */
.nr-feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.nr-feed-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
  transition: border-color var(--t-fast);
}
.nr-feed-row.hit { border-color: var(--red); background: var(--red-bg); }
.nr-feed-status {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.nr-feed-status.hit   { background: var(--red);   color: #fff; }
.nr-feed-status.clean { background: var(--green);  color: #fff; }
.nr-feed-status.pending { background: var(--bg-3); }
.nr-feed-body { flex: 1; min-width: 0; }
.nr-feed-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.nr-feed-desc { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
.nr-feed-meta { font-size: 0.73rem; color: var(--text-3); margin-top: 4px; }
.nr-hit-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--red);
  color: #fff;
}

/* ── DNS record table ─────────────────────────────────────── */
.nr-dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.nr-dns-table thead tr { background: var(--bg-2); border-bottom: 1px solid var(--border-2); }
.nr-dns-table th {
  padding: 8px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.nr-dns-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
}
.nr-dns-table tbody tr:last-child td { border-bottom: none; }
.nr-dns-table tbody tr:hover { background: var(--surface-2); }
.nr-dns-type {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-2);
  color: var(--text-3);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
}

/* ── Cert cards (SSL tab) ─────────────────────────────────── */
.nr-cert-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.nr-cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
}
.nr-cert-card.expired { border-color: var(--red); }
.nr-cert-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}
.nr-cert-cn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.nr-cert-issuer { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.nr-cert-dates {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-3);
}
.nr-cert-dates span strong { color: var(--text-2); font-weight: 600; }
.nr-cert-san {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: var(--space-sm);
  word-break: break-all;
  line-height: 1.6;
}
.nr-expiry-ok      { color: var(--green); font-weight: 600; }
.nr-expiry-soon    { color: var(--orange); font-weight: 600; }
.nr-expiry-expired { color: var(--red); font-weight: 600; }

/* ── Loading states inside panels ────────────────────────── */
.nr-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  color: var(--text-3);
  font-size: 0.85rem;
}
.nr-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--bg-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: nr-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes nr-spin { to { transform: rotate(360deg); } }

/* ── Passive DNS history table ────────────────────────────── */
.nr-pdns-list { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-sm); }
.nr-pdns-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.82rem;
}
.nr-pdns-val {
  font-family: var(--font-mono);
  color: var(--text);
  flex: 1;
  word-break: break-all;
}

/* ── Export button row ────────────────────────────────────── */
.nr-export-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ── No-data empty state inside panel ────────────────────── */
.nr-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  color: var(--text-3);
  font-size: 0.85rem;
}
.nr-empty svg { margin: 0 auto var(--space-sm); opacity: 0.3; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nr-field { grid-template-columns: 120px 1fr auto; gap: var(--space-sm); }
  .nr-enrich-grid { grid-template-columns: 1fr 1fr; }
  .nr-tabs { gap: 1px; }
  .nr-tab { padding: 5px 10px; font-size: 0.75rem; }
}

/* ── NetRecon v2 — Hero card (Overview panel) ─────────────────── */
.nr-hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}
.nr-hero-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.nr-hero-card.ipv6::before  { background: var(--sev-none); }
.nr-hero-card.domain::before{ background: var(--sev-low); }
.nr-hero-card.asn::before   { background: var(--sev-high); }
.nr-hero-ip {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.nr-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.nr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.nr-hero-badge.geo { background: var(--bg-2);       color: var(--text-2); }
.nr-hero-badge.asn { background: var(--orange-bg); color: var(--orange); border-color: transparent; }
.nr-hero-badge.org { background: var(--bg-2);       color: var(--text-2); }
.nr-hero-badge.net { background: var(--green-bg);  color: var(--green);  border-color: transparent; }
.nr-hero-meta {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
}

/* ── Enrichment — category headings & section wrapper ────────── */
.nr-enrich-section { margin-bottom: var(--space-xl); }
.nr-enrich-section:last-child { margin-bottom: 0; }
.nr-enrich-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

/* ── DNS type badge color coding ─────────────────────────────── */
.nr-dns-type[data-type="A"]     { background: var(--bg-2);      color: var(--text-2); }
.nr-dns-type[data-type="AAAA"]  { background: var(--bg-2);      color: var(--text-2); }
.nr-dns-type[data-type="MX"]    { background: var(--orange-bg); color: var(--orange); border-color: transparent; }
.nr-dns-type[data-type="NS"]    { background: var(--bg-2);      color: var(--text-3); }
.nr-dns-type[data-type="TXT"]   { background: var(--orange-bg); color: var(--orange); border-color: transparent; }
.nr-dns-type[data-type="CNAME"] { background: var(--bg-2);      color: var(--text-2); }
.nr-dns-type[data-type="SOA"]   { background: var(--bg-3);      color: var(--text-2); }
.nr-dns-type[data-type="PTR"]   { background: var(--bg-3);      color: var(--text-2); }

/* dark mode — hero badge colour adjustments */
html.dark .nr-hero-badge.asn { background: rgba(217,119,6,.18);  color: #fcd34d; }
html.dark .nr-hero-badge.net { background: rgba(22,163,74,.18);  color: #86efac; }

/* ── DNS table — resizable columns ───────────────────────────── */
.nr-dns-resizable { table-layout: fixed; }
.nr-dns-resizable th {
  position: relative;
  overflow: visible;
  white-space: nowrap;
}
.nr-dns-resizable th span { display: block; overflow: hidden; text-overflow: ellipsis; }
.nr-col-resize {
  position: absolute;
  right: -2px; top: 0; bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 2;
}
.nr-col-resize::after {
  content: '';
  position: absolute;
  left: 50%; top: 20%; bottom: 20%;
  transform: translateX(-50%);
  width: 2px;
  border-radius: 1px;
  background: var(--border-2);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.nr-col-resize:hover::after,
.nr-col-resize.dragging::after { opacity: 1; background: var(--accent); }

/* ============================================================
   NetRecon — Component styles
   ============================================================ */

/* ── Input type badge ─────────────────────────────────────── */
.nr-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--t-fast);
}
.nr-type-ipv4   { background: var(--bg-2);      color: var(--text-2); }
.nr-type-ipv6   { background: var(--bg-2);      color: var(--text-3); }
.nr-type-domain { background: var(--green-bg);  color: var(--green); }
.nr-type-asn    { background: var(--orange-bg); color: var(--orange); }
.nr-type-none   { background: var(--bg-3);      color: var(--text-3); }

/* ── Result tab nav ───────────────────────────────────────── */
.nr-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.nr-tab {
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
}
.nr-tab:hover { color: var(--text); background: var(--surface-3); }
.nr-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.nr-tab-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg-3);
  flex-shrink: 0;
  transition: background var(--t-fast);
}
.nr-tab.has-hit .nr-tab-dot   { background: var(--red); }
.nr-tab.has-data .nr-tab-dot  { background: var(--green); }

.nr-panel { display: none; }
.nr-panel.active { display: block; }

/* ── Verdict banner ───────────────────────────────────────── */
.nr-verdict {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--r-lg);
  border: 1px solid;
  margin-bottom: var(--space-lg);
}
.nr-verdict-clean    { background: var(--green-bg);  border-color: var(--green);  color: var(--green); }
.nr-verdict-suspect  { background: var(--orange-bg); border-color: var(--orange); color: var(--orange); }
.nr-verdict-malicious{ background: var(--red-bg);    border-color: var(--red);    color: var(--red); }
.nr-verdict-unknown  { background: var(--bg-2);      border-color: var(--border); color: var(--text-3); }
.nr-verdict-icon { flex-shrink: 0; }
.nr-verdict-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nr-verdict-sub { font-size: 0.8rem; opacity: 0.85; margin-top: 1px; }

/* ── Field rows (Overview, key/value pairs) ───────────────── */
.nr-fields {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.nr-field {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: 10px var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.nr-field:last-child { border-bottom: none; }
.nr-field-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  flex-shrink: 0;
}
.nr-field-value {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  color: var(--text);
  word-break: break-all;
}
.nr-field-value.plain { font-family: var(--font-body); }
.nr-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  border: none;
  background: transparent;
  flex-shrink: 0;
}
.nr-copy:hover { background: var(--accent-dim); color: var(--text); }
.nr-copy.copied { color: var(--green); }

/* ── Section heading inside panel ────────────────────────── */
.nr-section-head {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: var(--space-xl) 0 var(--space-sm);
}
.nr-section-head:first-child { margin-top: 0; }

/* ── Enrichment cards (Reputation tab) ───────────────────── */
.nr-enrich-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}
.nr-enrich-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.nr-enrich-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-2); }
.nr-enrich-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.nr-enrich-desc { font-size: 0.78rem; color: var(--text-3); line-height: 1.5; flex: 1; }
.nr-enrich-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  align-self: flex-start;
}
.nr-enrich-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
html.dark .nr-enrich-btn:hover { color: var(--bg-2); }

/* ── Feed check rows (Blacklists tab) ────────────────────── */
.nr-feed-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.nr-feed-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
  transition: border-color var(--t-fast);
}
.nr-feed-row.hit { border-color: var(--red); background: var(--red-bg); }
.nr-feed-status {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.nr-feed-status.hit   { background: var(--red);   color: #fff; }
.nr-feed-status.clean { background: var(--green);  color: #fff; }
.nr-feed-status.pending { background: var(--bg-3); }
.nr-feed-body { flex: 1; min-width: 0; }
.nr-feed-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.nr-feed-desc { font-size: 0.78rem; color: var(--text-3); margin-top: 2px; }
.nr-feed-meta { font-size: 0.73rem; color: var(--text-3); margin-top: 4px; }
.nr-hit-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--red);
  color: #fff;
}

/* ── DNS record table ─────────────────────────────────────── */
.nr-dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.nr-dns-table thead tr { background: var(--bg-2); border-bottom: 1px solid var(--border-2); }
.nr-dns-table th {
  padding: 8px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.nr-dns-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
}
.nr-dns-table tbody tr:last-child td { border-bottom: none; }
.nr-dns-table tbody tr:hover { background: var(--surface-2); }
.nr-dns-type {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-2);
  color: var(--text-3);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
}

/* ── Cert cards (SSL tab) ─────────────────────────────────── */
.nr-cert-list { display: flex; flex-direction: column; gap: var(--space-sm); }
.nr-cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-md) var(--space-lg);
}
.nr-cert-card.expired { border-color: var(--red); }
.nr-cert-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}
.nr-cert-cn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.nr-cert-issuer { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.nr-cert-dates {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-3);
}
.nr-cert-dates span strong { color: var(--text-2); font-weight: 600; }
.nr-cert-san {
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  margin-top: var(--space-sm);
  word-break: break-all;
  line-height: 1.6;
}
.nr-expiry-ok      { color: var(--green); font-weight: 600; }
.nr-expiry-soon    { color: var(--orange); font-weight: 600; }
.nr-expiry-expired { color: var(--red); font-weight: 600; }

/* ── Loading states inside panels ────────────────────────── */
.nr-loading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  color: var(--text-3);
  font-size: 0.85rem;
}
.nr-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--bg-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: nr-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes nr-spin { to { transform: rotate(360deg); } }

/* ── Passive DNS history rows ─────────────────────────────── */
.nr-pdns-list { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-sm); }
.nr-pdns-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.82rem;
}
.nr-pdns-val {
  font-family: var(--font-mono);
  color: var(--text);
  flex: 1;
  word-break: break-all;
}

/* ── Export button row ────────────────────────────────────── */
.nr-export-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

/* ── No-data empty state inside panel ────────────────────── */
.nr-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  color: var(--text-3);
  font-size: 0.85rem;
}
.nr-empty svg { margin: 0 auto var(--space-sm); opacity: 0.3; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .nr-field { grid-template-columns: 120px 1fr auto; gap: var(--space-sm); }
  .nr-enrich-grid { grid-template-columns: 1fr 1fr; }
  .nr-tabs { gap: 1px; }
  .nr-tab { padding: 5px 10px; font-size: 0.75rem; }
}

/* ── NetRecon v2 — Hero card (Overview panel) ─────────────── */
.nr-hero-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}
.nr-hero-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.nr-hero-card.ipv6::before   { background: var(--sev-none); }
.nr-hero-card.domain::before { background: var(--sev-low); }
.nr-hero-card.asn::before    { background: var(--sev-high); }
.nr-hero-ip {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.nr-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.nr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.nr-hero-badge.geo { background: var(--bg-2);       color: var(--text-2); }
.nr-hero-badge.asn { background: var(--orange-bg); color: var(--orange); border-color: transparent; }
.nr-hero-badge.org { background: var(--bg-2);       color: var(--text-2); }
.nr-hero-badge.net { background: var(--green-bg);  color: var(--green);  border-color: transparent; }
.nr-hero-meta {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: var(--space-sm);
  font-family: var(--font-mono);
}

/* ── Enrichment — category headings & section wrapper ────── */
.nr-enrich-section { margin-bottom: var(--space-xl); }
.nr-enrich-section:last-child { margin-bottom: 0; }
.nr-enrich-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

/* ── DNS type badge color coding ─────────────────────────── */
.nr-dns-type[data-type="A"]     { background: var(--bg-2);      color: var(--text-2); }
.nr-dns-type[data-type="AAAA"]  { background: var(--bg-2);      color: var(--text-2); }
.nr-dns-type[data-type="MX"]    { background: var(--orange-bg); color: var(--orange); border-color: transparent; }
.nr-dns-type[data-type="NS"]    { background: var(--bg-2);      color: var(--text-3); }
.nr-dns-type[data-type="TXT"]   { background: var(--orange-bg); color: var(--orange); border-color: transparent; }
.nr-dns-type[data-type="CNAME"] { background: var(--bg-2);      color: var(--text-2); }
.nr-dns-type[data-type="SOA"]   { background: var(--bg-3);      color: var(--text-2); }
.nr-dns-type[data-type="PTR"]   { background: var(--bg-3);      color: var(--text-2); }

/* dark mode — hero badge colour adjustments */
html.dark .nr-hero-badge.asn { background: rgba(217,119,6,.18);  color: #fcd34d; }
html.dark .nr-hero-badge.net { background: rgba(22,163,74,.18);  color: #86efac; }

/* ── DNS table — resizable columns ───────────────────────── */
.nr-dns-resizable { table-layout: fixed; }
.nr-dns-resizable th {
  position: relative;
  overflow: visible;
  white-space: nowrap;
}
.nr-dns-resizable th span { display: block; overflow: hidden; text-overflow: ellipsis; }
.nr-col-resize {
  position: absolute;
  right: -2px; top: 0; bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 2;
}
.nr-col-resize::after {
  content: '';
  position: absolute;
  left: 50%; top: 20%; bottom: 20%;
  transform: translateX(-50%);
  width: 2px;
  border-radius: 1px;
  background: var(--border-2);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.nr-col-resize:hover::after,
.nr-col-resize.dragging::after { opacity: 1; background: var(--accent); }


/* ============================================================
   MSTenantLookup — tool-specific components
   ============================================================ */

/* ── Input hint ─────────────────────────────────────────────────────────── */
.tlu-input-hint {
  margin-top: var(--space-sm);
  font-size: 0.78rem;
  min-height: 1.2rem;
  line-height: 1.4;
  color: var(--text-3);
}
.tlu-hint-ok      { color: var(--text-3); }
.tlu-hint-invalid { color: var(--red); }

/* ── Results card ───────────────────────────────────────────────────────── */
.tlu-results {
  margin-top: var(--space-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.tlu-results.hidden { display: none; }

.tlu-result-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  flex-wrap: wrap;
}
.tlu-result-title {
  font-family: var(--font-mono);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
  flex: 1;
}
.tlu-result-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.tlu-input-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.tlu-timestamp {
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ── Sections grid ──────────────────────────────────────────────────────── */
.tlu-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}
.tlu-section {
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface);
}

@media (max-width: 820px) {
  .tlu-sections { grid-template-columns: 1fr; }
}

.tlu-section-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-md);
}
.tlu-section-head svg { flex-shrink: 0; opacity: .7; }

/* ── Field rows ─────────────────────────────────────────────────────────── */
.tlu-fields { display: flex; flex-direction: column; gap: 10px; }

.tlu-field-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.82rem;
  line-height: 1.5;
}
.tlu-field-label {
  flex-shrink: 0;
  width: 130px;
  color: var(--text-3);
  font-weight: 500;
  padding-top: 1px;
}
.tlu-field-value {
  color: var(--text);
  word-break: break-all;
  flex: 1;
}

/* Signal rows (M365 checks) */
.signal-row {
  align-items: center;
  gap: 6px;
}
.signal-row .tlu-field-label {
  width: 150px;
}
.tlu-signal-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}
.tlu-signal-icon.ok   { color: var(--green); }
.tlu-signal-icon.warn { color: var(--orange); }
.tlu-signal-icon.no   { color: var(--red); }

/* ── Monospace value ────────────────────────────────────────────────────── */
.tlu-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
}
.tlu-url {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ── Copyable GUID ──────────────────────────────────────────────────────── */
.tlu-copyable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tlu-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  background: var(--bg-2);
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  padding: 0;
}
.tlu-copy-btn:hover {
  color: var(--text);
  border-color: var(--border-3);
  background: var(--bg-3);
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.tlu-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}
.tlu-badge-ok {
  background: rgba(22,163,74,0.08);
  color: #15803d;
  border-color: rgba(22,163,74,0.2);
}
.tlu-badge-warn {
  background: rgba(217,119,6,0.08);
  color: #92400e;
  border-color: rgba(217,119,6,0.2);
}
.tlu-badge-no {
  background: rgba(220,38,38,0.07);
  color: #b91c1c;
  border-color: rgba(220,38,38,0.18);
}
.tlu-badge-neutral {
  background: var(--bg-3);
  color: var(--text-2);
  border-color: var(--border-2);
}
html.dark .tlu-badge-ok   { background: rgba(22,163,74,0.15);  color: #4ade80; }
html.dark .tlu-badge-warn { background: rgba(217,119,6,0.15);  color: #fcd34d; }
html.dark .tlu-badge-no   { background: rgba(220,38,38,0.15);  color: #f87171; }

/* ── Skeleton loaders ───────────────────────────────────────────────────── */
.tlu-skeleton-group { display: flex; flex-direction: column; gap: 10px; }
.tlu-skeleton {
  height: 14px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  animation: tlu-shimmer 1.4s ease-in-out infinite;
  width: 90%;
}
.tlu-skeleton-sm { width: 65%; height: 12px; }
@keyframes tlu-shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Actions row ────────────────────────────────────────────────────────── */
.tlu-actions {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  flex-wrap: wrap;
}

/* ── Spinner on lookup button ───────────────────────────────────────────── */
@keyframes tlu-spin { to { transform: rotate(360deg); } }
.tlu-spinner { animation: tlu-spin 0.75s linear infinite; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.tlu-empty {
  font-size: 0.8rem;
  color: var(--text-3);
  font-style: italic;
  margin: 0;
}

/* ============================================================
   TenantRecon v2 — clean layout + Tenant Domains + SaaS cards
   (replaces the never-linked tenantrecon-patch.css)
   ============================================================ */

/* ── Full-width section (Tenant Domains + SaaS span all columns) ─────────── */
.tlu-section-full {
  grid-column: 1 / -1;
}

/* ── Section head count chip ─────────────────────────────────────────────── */
.tlu-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 9px;
}
.tlu-section-count:empty { display: none; }

/* ── Long raw values rendered as tidy monospace blocks ───────────────────── */
.tlu-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  overflow-wrap: anywhere;
  word-break: normal;
}
/* Sub-block sits under a signal status line, slightly inset */
.tlu-code-sub {
  margin-top: 6px;
  margin-left: 20px;
  background: var(--bg-1);
}

/* ── Stacked field row (label above a full-width value block) ─────────────── */
.tlu-field-row.is-stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.tlu-field-row.is-stacked .tlu-field-label { width: auto; }
.tlu-field-row.is-stacked .tlu-field-value { width: 100%; }

/* ── Signal block: status line + optional detail beneath ─────────────────── */
.tlu-signal-block { display: flex; flex-direction: column; }
.tlu-signal-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.tlu-signal-status .tlu-badge { font-size: 0.68rem; }

/* Keep skeleton groups spaced like the real field stacks */
.tlu-fields .tlu-skeleton-group { gap: 12px; }

/* ── Tenant Domains grid ─────────────────────────────────────────────────── */
.tlu-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-sm);
  padding-top: var(--space-sm);
}
.tlu-domain-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 0;
}
.tlu-domain-chip.is-primary {
  border-color: rgba(22,163,74,0.35);
  background: rgba(22,163,74,0.05);
}
.tlu-domain-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: normal;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  transition: color var(--t-fast);
}
.tlu-domain-name:hover { color: var(--accent, var(--text-2)); }
.tlu-domain-name.copied { color: var(--green); }
.tlu-domain-chip .tlu-badge { flex-shrink: 0; }

/* ── Tenant Domains note (GUID input) ────────────────────────────────────── */
.tlu-domains-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: var(--space-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-3);
  margin-top: var(--space-sm);
}
.tlu-domains-note svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.tlu-domains-note .tlu-mono { color: var(--text-2); }

/* ── SaaS Signals grid + cards ───────────────────────────────────────────── */
.tlu-saas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
  padding-top: var(--space-sm);
}
.tlu-saas-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tlu-saas-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tlu-saas-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
}
.tlu-saas-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.tlu-saas-google    { background: #4285F4; color: #fff; }
.tlu-saas-microsoft { background: #0078d4; color: #fff; }
.tlu-saas-atlassian { background: #0052CC; color: #fff; }
.tlu-saas-zoom      { background: #2D8CFF; color: #fff; }
.tlu-saas-generic   { background: #3d9e8c; color: #fff; }
.tlu-saas-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tlu-saas-signal {
  font-size: 0.7rem;
  color: var(--text-3);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}
.tlu-saas-token {
  font-size: 0.7rem;
  color: var(--text-3);
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.5;
  padding-top: 2px;
}
.tlu-empty-saas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-xl) 0;
  color: var(--text-3);
  font-size: 0.82rem;
  text-align: center;
  opacity: .7;
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .tlu-saas-grid,
  .tlu-domains-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   TenantRecon v5 — summary strip, email-security grade,
   recommendations, per-section copy button
   ============================================================ */

/* ── At-a-glance summary strip ───────────────────────────────────────────── */
/* summary strip inherits the seamless grid dividers */
.tlu-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-sm);
  padding-top: var(--space-sm);
}
.tlu-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  min-width: 0;
}
.tlu-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-3);
}
.tlu-stat-value {
  font-size: 0.85rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.tlu-stat-value .tlu-mono { font-size: 0.8rem; }

/* ── Email-security grade chip ───────────────────────────────────────────── */
.tlu-grade {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
}
.tlu-grade-score { font-size: 0.68rem; font-weight: 600; opacity: .8; }
.tlu-grade-ok   { background: rgba(22,163,74,0.10); color: var(--green);  border-color: rgba(22,163,74,0.30); }
.tlu-grade-warn { background: rgba(217,119,6,0.10); color: var(--orange); border-color: rgba(217,119,6,0.30); }
.tlu-grade-no   { background: rgba(220,38,38,0.10); color: var(--red);    border-color: rgba(220,38,38,0.30); }

/* ── Email-security grade banner ─────────────────────────────────────────── */
.tlu-grade-banner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-2);
  margin-bottom: 4px;
}
.tlu-grade-banner .tlu-grade { font-size: 1.5rem; padding: 8px 14px; }
.tlu-grade-banner-ok   { border-left: 3px solid var(--green); }
.tlu-grade-banner-warn { border-left: 3px solid var(--orange); }
.tlu-grade-banner-no   { border-left: 3px solid var(--red); }
.tlu-grade-meta { display: flex; flex-direction: column; gap: 2px; }
.tlu-grade-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.tlu-grade-sub { font-size: 0.74rem; color: var(--text-3); }

/* ── Recommendations / gaps list ─────────────────────────────────────────── */
.tlu-gaps {
  margin-top: 6px;
  padding: var(--space-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.tlu-gaps-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-2);
  margin-bottom: 6px;
}
.tlu-gaps-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.tlu-gaps-list li { font-size: 0.78rem; line-height: 1.55; color: var(--text-3); }

/* ── Per-section copy button ─────────────────────────────────────────────── */
.tlu-sec-copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--text-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  opacity: .6;
  transition: opacity var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tlu-sec-copy:hover { opacity: 1; color: var(--text); border-color: var(--border); }
.tlu-sec-copy.done { color: var(--green); opacity: 1; }


/* ============================================================
   Email Header Analyzer — emailheader.js
   ============================================================ */

/* ── Input ───────────────────────────────────────────────────────────────── */
.eh-input-section { padding: var(--space-xl) 0 var(--space-2xl); }

.eh-paste-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.eh-paste-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}
.eh-paste-actions { display: flex; gap: var(--space-sm); align-items: center; flex-shrink: 0; }

.eh-textarea {
  width: 100%;
  min-height: 340px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.795rem;
  line-height: 1.6;
  padding: var(--space-md) var(--space-lg);
  resize: vertical;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  display: block;
}
.eh-textarea:focus {
  outline: none;
  border-color: var(--border-3);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.eh-textarea::placeholder { color: var(--text-4); }
.eh-analyze-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* ── Results section ──────────────────────────────────────────────────────── */
.eh-results { padding: var(--space-xl) 0 var(--space-3xl); }

.eh-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}
.eh-results-title   { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.eh-results-meta    { font-size: 0.8rem; color: var(--text-3); }
.eh-results-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ── Jump nav ─────────────────────────────────────────────────────────────── */
.eh-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-lg);
}
.eh-jump-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.eh-jump-nav a:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.eh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: 90px;
}
.eh-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}
.eh-card-body { padding: var(--space-xl); }

.eh-card-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
.eh-card-badge-pass { background: rgba(22,163,74,0.10); color: var(--green); }
.eh-card-badge-fail { background: rgba(220,38,38,0.10); color: var(--red); }
.eh-card-badge-warn { background: rgba(217,119,6,0.10); color: var(--orange); }
html.dark .eh-card-badge-pass { background: rgba(22,163,74,0.18); }
html.dark .eh-card-badge-fail { background: rgba(220,38,38,0.18); }
html.dark .eh-card-badge-warn { background: rgba(217,119,6,0.18); }

/* ── Loading / spinner ────────────────────────────────────────────────────── */
.eh-loading { color: var(--text-3); font-size: 0.85rem; padding: var(--space-sm) 0; }

@keyframes eh-spin { to { transform: rotate(360deg); } }
.eh-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 1.5px solid var(--border-2);
  border-top-color: var(--text-3);
  border-radius: 50%;
  animation: eh-spin 0.7s linear infinite;
  vertical-align: middle;
}
.eh-ip-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 400;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.eh-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
}
.eh-badge-pass { background: rgba(22,163,74,0.10); color: #16a34a; }
.eh-badge-fail { background: rgba(220,38,38,0.10); color: #dc2626; }
.eh-badge-warn { background: rgba(217,119,6,0.10); color: #d97706; }
.eh-badge-none { background: var(--bg-3); color: var(--text-3); }
html.dark .eh-badge-pass { background: rgba(22,163,74,0.18); color: #4ade80; }
html.dark .eh-badge-fail { background: rgba(220,38,38,0.18); color: #f87171; }
html.dark .eh-badge-warn { background: rgba(217,119,6,0.18); color: #fbbf24; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.eh-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.eh-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px var(--space-md);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.eh-table td {
  padding: 9px var(--space-md);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.eh-table tr:last-child td { border-bottom: none; }
.eh-table tr:hover td { background: var(--bg-2); }
.eh-row-flagged td { background: rgba(220,38,38,0.04); }
.eh-row-flagged td:first-child { border-left: 3px solid rgba(220,38,38,0.5); }
html.dark .eh-row-flagged td { background: rgba(220,38,38,0.08); }
.eh-table-wrap { overflow-x: auto; }

/* ── Findings ─────────────────────────────────────────────────────────────── */
.eh-findings-section { margin-top: var(--space-lg); }
.eh-findings-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-sm);
}
.eh-finding {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: var(--r-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.84rem;
  border: 1px solid transparent;
}
.eh-finding-critical { background: rgba(220,38,38,0.06);  border-color: rgba(220,38,38,0.20); }
.eh-finding-warn     { background: rgba(217,119,6,0.06);   border-color: rgba(217,119,6,0.20); }
.eh-finding-info     { background: var(--bg-2);            border-color: var(--border); }
.eh-finding-pass     { background: rgba(22,163,74,0.06);   border-color: rgba(22,163,74,0.20); }
html.dark .eh-finding-critical { background: rgba(220,38,38,0.12); }
html.dark .eh-finding-warn     { background: rgba(217,119,6,0.12); }
html.dark .eh-finding-pass     { background: rgba(22,163,74,0.12); }

.eh-finding-icon {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eh-finding-icon svg { display: block; }
.eh-finding-body   { flex: 1; min-width: 0; }
.eh-finding-title  { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.eh-finding-detail { color: var(--text-2); line-height: 1.55; }
.eh-no-findings    { font-size: 0.84rem; color: var(--text-3); margin: 0; }

/* Severity icon colours */
.sev-critical { color: var(--sev-critical); }
.sev-warn     { color: var(--sev-medium); }
.sev-info     { color: var(--text-2); }
.sev-pass     { color: var(--sev-low); }

/* ── Score card ───────────────────────────────────────────────────────────── */
.eh-score-wrap {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (max-width: 520px) {
  .eh-score-wrap { grid-template-columns: 1fr; }
  .eh-score-ring-col { margin: 0 auto; }
}
.eh-score-ring-col {
  position: relative;
  width: 156px;
  height: 156px;
  flex-shrink: 0;
}
.eh-score-ring { display: block; }
.eh-ring-track {
  fill: none;
  stroke: var(--bg-3);
  stroke-width: 8;
}
.eh-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}
.eh-score-num-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.eh-score-num   { font-size: 2.1rem; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.eh-score-denom { font-size: 0.7rem; color: var(--text-3); margin-top: 2px; }

.eh-score-detail { min-width: 0; }
.eh-verdict {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.eh-confidence { font-size: 0.84rem; color: var(--text-2); margin-bottom: var(--space-md); }
.eh-next-action {
  font-size: 0.84rem;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  line-height: 1.55;
}
.eh-next-label { font-weight: 600; color: var(--text); margin-right: 4px; }
.eh-deductions-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-sm);
}
.eh-deduct-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-md);
}
.eh-deduct-row:last-child { border-bottom: none; }
.eh-deduct-label { color: var(--text-2); flex: 1; }
.eh-deduct-val   { font-weight: 700; font-family: var(--font-mono); font-size: 0.8rem; flex-shrink: 0; }
.eh-deduct-bad   { color: var(--red); }
.eh-deduct-warn  { color: var(--orange); }

/* ── Hop timeline ─────────────────────────────────────────────────────────── */
.eh-hop-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.eh-stat       { display: flex; flex-direction: column; gap: 2px; }
.eh-stat-val   { font-size: 1.4rem; font-weight: 700; font-family: var(--font-display); color: var(--text); letter-spacing: -0.02em; }
.eh-stat-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }

.eh-timeline { display: flex; flex-direction: column; }
.eh-hop-row {
  display: grid;
  grid-template-columns: 26px 18px 1fr;
  gap: 0 10px;
  align-items: stretch;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}
.eh-hop-row:last-child { border-bottom: none; }
.eh-hop-row.eh-timeline-delay .eh-hop-detail { border-left: 2px solid var(--orange); padding-left: 8px; }
.eh-hop-row.eh-timeline-ooo   .eh-hop-detail { border-left: 2px solid var(--red);    padding-left: 8px; }

.eh-hop-num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  width: 22px; height: 22px;
  background: var(--bg-3);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}
.eh-hop-connector {
  width: 2px;
  background: var(--border-2);
  margin: 28px auto 0;
}
.eh-hop-connector.eh-hop-last { background: transparent; }
.eh-hop-detail   { padding: 2px 0 var(--space-md); min-width: 0; }
.eh-hop-from     { font-size: 0.84rem; color: var(--text); font-weight: 500; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.eh-hop-host     { color: var(--text); word-break: break-all; }
.eh-hop-ip       { font-size: 0.78rem; color: var(--text-3); font-family: var(--font-mono); white-space: nowrap; }
.eh-hop-by       { font-size: 0.8rem; color: var(--text-2); margin-top: 3px; word-break: break-all; }
.eh-hop-by-host  { font-weight: 500; }
.eh-hop-ts       { font-size: 0.75rem; color: var(--text-3); font-family: var(--font-mono); margin-top: 3px; }
.eh-hop-delay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-3);
  color: var(--text-2);
}
.eh-delay-flag { background: rgba(217,119,6,0.12); color: var(--orange); }

/* ── IP enrichment ────────────────────────────────────────────────────────── */
.eh-ip-block {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}
.eh-ip-block:last-child { margin-bottom: 0; }
.eh-ip-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
}
.eh-ip-content { padding: var(--space-md); }
.eh-ip-sections { display: flex; flex-direction: column; gap: var(--space-lg); }
.eh-ip-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-sm);
}
.eh-ip-geo       { display: flex; flex-direction: column; gap: 6px; }
.eh-ip-geo-row   { display: flex; gap: var(--space-md); font-size: 0.84rem; align-items: baseline; }
.eh-ip-geo-label { color: var(--text-3); min-width: 90px; flex-shrink: 0; }
.eh-rbl-table .eh-badge { min-width: 52px; text-align: center; }

/* ── X-header details ─────────────────────────────────────────────────────── */
.eh-xhdr-details { margin-bottom: var(--space-md); }
.eh-xhdr-summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-2);
  list-style: none;
  padding: var(--space-sm) 0;
}
.eh-xhdr-summary::-webkit-details-marker { display: none; }
.eh-xhdr-summary::before { content: '▶  '; font-size: 0.6rem; margin-right: 2px; }
details[open] .eh-xhdr-summary::before { content: '▼  '; }
.eh-xhdr-table { margin-top: var(--space-sm); }
.eh-xhdr-val   { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Raw header pre ───────────────────────────────────────────────────────── */
.eh-raw-pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg-2);
  border-radius: var(--r-sm);
  padding: var(--space-md);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 480px;
  overflow-y: auto;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .eh-card-body       { padding: var(--space-md); }
  .eh-results-toolbar { flex-direction: column; align-items: flex-start; }
  .eh-hop-stats       { gap: var(--space-lg); }
  .eh-stat-val        { font-size: 1.2rem; }
  .eh-xhdr-val        { max-width: 140px; }
}
ont-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg-2);
  border-radius: var(--r-sm);
  padding: var(--space-md);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 480px;
  overflow-y: auto;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .eh-card-body       { padding: var(--space-md); }
  .eh-results-toolbar { flex-direction: column; align-items: flex-start; }
  .eh-hop-stats       { gap: var(--space-lg); }
  .eh-stat-val        { font-size: 1.2rem; }
  .eh-xhdr-val        { max-width: 140px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UNIFIED CHROME — matches secops.theadminstack.com
   Appended 2026-06-14. Overrides the legacy .nav chrome above.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Top navigation — fixed + frosted glass ─────────────────────────────── */
.topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--nav-h);
    background: var(--nav-bg, rgba(15,17,23,0.92));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
:root { --nav-bg: rgba(249,250,251,0.92); }
html.dark { --nav-bg: rgba(15,17,23,0.92); }

.topnav.scrolled { box-shadow: var(--shadow-sm); }

.topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* ── Brand block — 32×32 filled accent square ───────────────────────────── */
.topnav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.topnav-logo:hover { text-decoration: none; }

.nav-brand-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: var(--accent-inv);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    line-height: 1;
    user-select: none;
    padding: 0;
}
.nav-brand-text { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-name {
    font-size: 0.875rem; font-weight: 600; color: var(--text);
    font-family: var(--font-sans, 'IBM Plex Sans', sans-serif); line-height: 1.2;
}
.nav-brand-sub {
    font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-3); line-height: 1;
}

/* ── Pill navigation ────────────────────────────────────────────────────── */
.topnav .nav-pill {
    display: flex; align-items: center;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 3px;
    margin-left: var(--space-md);
    list-style: none;
}
.topnav .nav-pill ul { display: flex; align-items: center; list-style: none; gap: 0; margin: 0; padding: 0; }
.topnav .nav-pill li { margin: 0; }
.topnav .nav-pill li a {
    display: block;
    padding: 5px 14px;
    border-radius: var(--r-pill);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
}
.topnav .nav-pill li a:hover { color: var(--text); text-decoration: none; background: transparent; }
.topnav .nav-pill li a.active { background: var(--accent); color: var(--accent-inv); }

/* ── Back link ──────────────────────────────────────────────────────────── */
.topnav .nav-back {
    padding: 6px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.topnav .nav-back:hover { color: var(--text); border-color: var(--border-2); background: var(--bg-2); text-decoration: none; }

/* ── Nav right actions ──────────────────────────────────────────────────── */
.topnav-actions { display: flex; align-items: center; gap: var(--space-xs); margin-left: auto; }

/* ── Theme toggle — 34×34px bordered square ─────────────────────────────── */
.topnav .theme-toggle {
    width: 34px; height: 34px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.topnav .theme-toggle:hover { color: var(--text); border-color: var(--border-2); background: var(--bg-2); }

/* ── Hub hero ───────────────────────────────────────────────────────────── */
.hub-hero { background: var(--bg-1); border-bottom: 1px solid var(--border); padding: 48px 0 36px; }
.hub-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hub-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1; color: var(--text); margin-bottom: 12px;
}
.hub-hero p { font-size: 0.9375rem; color: var(--text-2); max-width: 560px; line-height: 1.65; }

/* ── Tool-page hero section ─────────────────────────────────────────────── */
.hero-section { background: var(--bg-1); border-bottom: 1px solid var(--border); padding: 48px 0 32px; }
.hero-section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Eyebrow label ──────────────────────────────────────────────────────── */
.page-hero-eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-xs);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-3); font-family: var(--font-mono);
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-pill);
    padding: 3px 10px; margin-bottom: var(--space-sm);
}
.hero-section .page-hero { margin-bottom: 0; }
.page-hero h1 {
    font-family: var(--font-sans, 'IBM Plex Sans', sans-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.125rem); font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.15; color: var(--text); margin-bottom: var(--space-sm);
}
.page-hero p { font-size: 0.9375rem; color: var(--text-2); max-width: 560px; line-height: 1.65; }

/* ── Page layout ────────────────────────────────────────────────────────── */
.page-main { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: var(--space-2xl) 24px; }
.page-main-wide { flex: 1; max-width: 1440px; width: 100%; margin: 0 auto; padding: var(--space-xl) 24px; }

/* ── Hub cross-links ────────────────────────────────────────────────────── */
.hub-crosslinks {
    margin-top: var(--space-2xl); padding-top: var(--space-lg);
    border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-3);
}
.hub-crosslinks a { color: var(--text-2); }
.hub-crosslinks a:hover { color: var(--text); text-decoration: underline; }

/* ── Tool grid (hub) ────────────────────────────────────────────────────── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-lg); }
.tool-card {
    background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 28px; text-decoration: none; color: var(--text);
    display: flex; flex-direction: column; gap: var(--space-md);
    transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.tool-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.tool-card-icon {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); color: var(--text-2); flex-shrink: 0;
}
.tool-card-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.tool-card-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; flex: 1; }
.tool-card-meta { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.8rem; color: var(--text-3); flex-wrap: wrap; }
.tool-card-cta { margin-left: auto; color: var(--text-2); font-weight: 500; }
.tool-card--soon { opacity: 0.5; cursor: default; pointer-events: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--border); margin-top: 80px; }
.site-footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 24px;
    display: flex; align-items: center; gap: var(--space-sm);
    font-size: 0.8125rem; color: var(--text-3); flex-wrap: wrap;
}
.footer-copy a { color: var(--text-2); }
.footer-copy a:hover { color: var(--text); text-decoration: underline; }
.footer-link { color: var(--text-2); }
.footer-link:hover { color: var(--text); text-decoration: underline; }
.footer-sep { color: var(--text-3); margin: 0 2px; }
.footer-note { color: var(--text-3); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .topnav .nav-pill { display: none; }
}
@media (max-width: 640px) {
    .topnav-inner { padding: 0 16px; }
    .hub-hero .container, .hero-section .container { padding: 0 16px; }
    .hub-hero { padding: 32px 0 24px; }
    .hero-section { padding: 32px 0 24px; }
    .topnav .nav-back { display: none; }
    .page-main, .page-main-wide { padding: var(--space-lg) var(--space-md); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Email Header Analyzer — v2.0 additions (MITRE chips, IOC panel, section copy)
   Appended 2026-07-24.
   ═══════════════════════════════════════════════════════════════════════════ */

/* MITRE ATT&CK chips under a finding */
.eh-mitre { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.eh-mitre-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 2px 9px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.eh-mitre-chip:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }

/* Category chips (subject content) */
.eh-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-sm) 0; }
.eh-chip {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; text-transform: capitalize;
  padding: 2px 10px; border-radius: var(--r-pill);
}
.eh-chip-info { background: var(--bg-3); color: var(--text-2); }
.eh-chip-warn { background: rgba(217,119,6,0.12); color: var(--orange); }
html.dark .eh-chip-warn { background: rgba(217,119,6,0.20); }

/* Per-section copy button (injected into each card head by JS) */
.eh-sec-copy {
  flex-shrink: 0;
  margin-left: 8px;
  width: 26px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; line-height: 1;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.eh-sec-copy:hover { background: var(--accent-dim); color: var(--accent); border-color: var(--accent); }

/* IOC panel */
.eh-ioc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md);
}
.eh-ioc-defang { font-size: 0.8rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.eh-ioc-group { margin-bottom: var(--space-md); }
.eh-ioc-group-title {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.eh-ioc-list { display: flex; flex-wrap: wrap; gap: 6px; }
.eh-ioc {
  font-family: var(--font-mono); font-size: 0.78rem;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--r-xs);
  padding: 3px 8px; color: var(--text); word-break: break-all;
}
