/* ===================================================================
   securityincident.net - Design System (Vanilla CSS)
   Aesthetic: High-density, cyber-telemetry with Dual Mode (Dark/Light)
   =================================================================== */

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

:root {
  /* Default: Dark Mode SOC Telemetry */
  --bg-base: #07090e;
  --bg-surface: #0e121b;
  --bg-surface-elevated: #151b27;
  --bg-surface-hover: #1c2434;
  --header-bg: rgba(14, 18, 27, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.18);
  --border-glow: rgba(0, 210, 211, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --card-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
  --card-preview-bg: rgba(0, 0, 0, 0.28);
  --actor-badge-bg: rgba(255, 255, 255, 0.06);

  /* Status Colors (5-Tier Telemetry Progression: Red -> Orange -> Yellow -> Green) */
  --status-confirmed: #10b981;
  --status-confirmed-bg: rgba(16, 185, 129, 0.12);
  --status-confirmed-border: rgba(16, 185, 129, 0.35);

  --status-acknowledged: #facc15;
  --status-acknowledged-bg: rgba(250, 204, 21, 0.12);
  --status-acknowledged-border: rgba(250, 204, 21, 0.35);

  --status-developing: #fb923c;
  --status-developing-bg: rgba(251, 146, 60, 0.12);
  --status-developing-border: rgba(251, 146, 60, 0.35);

  --status-emerging: #f87171;
  --status-emerging-bg: rgba(248, 113, 113, 0.12);
  --status-emerging-border: rgba(248, 113, 113, 0.35);

  --status-refuted: #94a3b8;
  --status-refuted-bg: rgba(148, 163, 184, 0.12);
  --status-refuted-border: rgba(148, 163, 184, 0.35);

  /* Verification Badges */
  --verify-regulator: #10b981;
  --verify-regulator-bg: rgba(16, 185, 129, 0.12);

  --verify-target: #06b6d4;
  --verify-target-bg: rgba(6, 182, 212, 0.12);

  --verify-independent: #fb923c;
  --verify-independent-bg: rgba(251, 146, 60, 0.12);

  --verify-unverified: #f87171;
  --verify-unverified-bg: rgba(248, 113, 113, 0.12);

  --cyan-accent: #00d2d3;
  --cyan-glow: rgba(0, 210, 211, 0.15);

  --grid-line: rgba(255, 255, 255, 0.02);
  --grid-glow: rgba(0, 210, 211, 0.05);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

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

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);

  /* Timeline Architecture Tokens */
  --timeline-rail-width: 44px;
  --timeline-line-color: rgba(255, 255, 255, 0.12);
  --timeline-line-width: 2px;
  --marker-size: 20px;
  --marker-border-color: var(--cyan-accent);
  --marker-bg: var(--bg-surface);
  --marker-glow: 0 0 10px var(--cyan-glow);
  --marker-dot-size: 8px;
  --marker-dot-bg: var(--cyan-accent);
  --connector-color: rgba(255, 255, 255, 0.1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --header-bg: rgba(255, 255, 255, 0.88);

  --border-subtle: #e2e8f0;
  --border-active: #cbd5e1;
  --border-glow: rgba(2, 132, 199, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --card-preview-bg: #f8fafc;
  --actor-badge-bg: #f1f5f9;

  /* Status Colors (Tuned for light-mode contrast: 5-Tier) */
  --status-confirmed: #047857;
  --status-confirmed-bg: rgba(4, 120, 87, 0.09);
  --status-confirmed-border: rgba(4, 120, 87, 0.28);

  --status-acknowledged: #a16207;
  --status-acknowledged-bg: rgba(161, 98, 7, 0.09);
  --status-acknowledged-border: rgba(161, 98, 7, 0.28);

  --status-developing: #c2410c;
  --status-developing-bg: rgba(194, 65, 12, 0.09);
  --status-developing-border: rgba(194, 65, 12, 0.28);

  --status-emerging: #b91c1c;
  --status-emerging-bg: rgba(185, 28, 28, 0.09);
  --status-emerging-border: rgba(185, 28, 28, 0.28);

  --status-refuted: #475569;
  --status-refuted-bg: rgba(71, 85, 105, 0.09);
  --status-refuted-border: rgba(71, 85, 105, 0.24);

  /* Verification Badges */
  --verify-regulator: #047857;
  --verify-regulator-bg: rgba(4, 120, 87, 0.09);

  --verify-target: #0284c7;
  --verify-target-bg: rgba(2, 132, 199, 0.09);

  --verify-independent: #c2410c;
  --verify-independent-bg: rgba(194, 65, 12, 0.09);

  --verify-unverified: #b91c1c;
  --verify-unverified-bg: rgba(185, 28, 28, 0.09);

  --cyan-accent: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.12);

  --grid-line: rgba(0, 0, 0, 0.03);
  --grid-glow: rgba(2, 132, 199, 0.04);

  /* Timeline Architecture Tokens (Light) */
  --timeline-rail-width: 44px;
  --timeline-line-color: #cbd5e1;
  --timeline-line-width: 2px;
  --marker-size: 20px;
  --marker-border-color: #0284c7;
  --marker-bg: #ffffff;
  --marker-glow: 0 0 0 3px rgba(2, 132, 199, 0.14);
  --marker-dot-size: 8px;
  --marker-dot-bg: #0284c7;
  --connector-color: #cbd5e1;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Background Grid Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 0%, var(--grid-glow) 0%, transparent 60%),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--cyan-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

/* ===================================================================
   Container & Header
   =================================================================== */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

/* Brand Logo Image */
.brand-logo-img {
  width: 28px;
  height: 33px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
  transition: transform var(--transition-fast);
}

.brand:hover .brand-logo-img {
  transform: scale(1.06);
}

.logo-dark-img { display: block; }
.logo-light-img { display: none; }

[data-theme="light"] .logo-dark-img { display: none; }
[data-theme="light"] .logo-light-img { display: block; }

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-title span {
  color: var(--cyan-accent);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.nav-rss {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-rss i {
  color: var(--status-developing);
  font-size: 0.85rem;
  transition: transform var(--transition-fast);
}

.nav-rss:hover i {
  transform: scale(1.18);
}

/* Theme Toggle Switch */
.theme-toggle-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle-track {
  width: 48px;
  height: 26px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 2px;
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover .theme-toggle-track {
  border-color: var(--border-active);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 8px var(--cyan-glow);
}

.theme-toggle-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--cyan-accent);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.theme-toggle-thumb .icon-moon {
  display: block;
}

.theme-toggle-thumb .icon-sun {
  display: none;
}

/* Light mode state for theme toggle */
[data-theme="light"] .theme-toggle-track {
  background: #e2e8f0;
  border-color: #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(22px);
  background: #ffffff;
  border-color: #e2e8f0;
  color: #ea580c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-toggle-thumb .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle-thumb .icon-sun {
  display: block;
}

.github-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  transition: all var(--transition-fast);
}

.github-badge:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
  color: var(--text-primary);
  text-decoration: none;
}

/* ===================================================================
   Hero / Intro Banner
   =================================================================== */

.hero {
  padding: 3.5rem 0 2rem;
  text-align: left;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: var(--cyan-glow);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--cyan-accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 8px var(--cyan-accent);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
}

/* ===================================================================
   Search & Controls Bar
   =================================================================== */

.controls-bar {
  margin: 1.75rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--cyan-accent);
  box-shadow: 0 0 0 3px var(--cyan-glow);
  background: var(--bg-surface-elevated);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-kbd {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.controls-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sort-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.sort-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sort-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.38rem 0.75rem;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.sort-select:focus, .sort-select:hover {
  border-color: var(--cyan-accent);
  background: var(--bg-surface-elevated);
}

.results-counter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  white-space: nowrap;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.filter-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--cyan-accent);
  box-shadow: 0 0 0 1px var(--cyan-accent);
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(125, 125, 125, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.filter-btn.active .filter-count {
  color: var(--cyan-accent);
  background: var(--cyan-glow);
}

/* Filter Dot Indicators (Sophisticated LED status lights) */
.status-dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot-indicator.confirmed {
  background: var(--status-confirmed);
  box-shadow: 0 0 6px var(--status-confirmed);
}

.status-dot-indicator.acknowledged {
  background: var(--status-acknowledged);
  box-shadow: 0 0 6px var(--status-acknowledged);
}

.status-dot-indicator.developing {
  background: var(--status-developing);
  box-shadow: 0 0 6px var(--status-developing);
}

.status-dot-indicator.emerging {
  background: var(--status-emerging);
  box-shadow: 0 0 6px var(--status-emerging);
}

.status-dot-indicator.refuted {
  background: var(--status-refuted);
  box-shadow: 0 0 4px var(--status-refuted);
}

/* ===================================================================
   Incident Feed & Cards
   =================================================================== */

.incidents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-bottom: 3.5rem;
}

.incident-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--card-shadow);
}

.incident-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-active);
  transform: translateY(-2px);
  text-decoration: none;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-target-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-domain {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-status-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Card Confidence Meter */
.card-confidence-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 0.1rem 0;
}

.card-confidence-meter {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .card-confidence-meter {
  background: rgba(0, 0, 0, 0.08);
}

.confidence-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.confidence-fill.confirmed {
  background: var(--status-confirmed);
  box-shadow: 0 0 8px var(--status-confirmed);
}

.confidence-fill.acknowledged {
  background: var(--status-acknowledged);
  box-shadow: 0 0 8px var(--status-acknowledged);
}

.confidence-fill.developing {
  background: var(--status-developing);
  box-shadow: 0 0 8px var(--status-developing);
}

.confidence-fill.emerging {
  background: var(--status-emerging);
  box-shadow: 0 0 8px var(--status-emerging);
}

.confidence-fill.refuted {
  background: var(--status-refuted);
}

.card-confidence-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-family: var(--font-mono);
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.confidence-badge.confirmed { color: var(--status-confirmed); }
.confidence-badge.acknowledged { color: var(--status-acknowledged); }
.confidence-badge.developing { color: var(--status-developing); }
.confidence-badge.emerging { color: var(--status-emerging); }
.confidence-badge.refuted { color: var(--status-refuted); }

.sources-count-badge {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-CONFIRMED {
  background: var(--status-confirmed-bg);
  border: 1px solid var(--status-confirmed-border);
  color: var(--status-confirmed);
}
.status-CONFIRMED .status-dot {
  background: var(--status-confirmed);
  box-shadow: 0 0 6px var(--status-confirmed);
}

.status-ACKNOWLEDGED {
  background: var(--status-acknowledged-bg);
  border: 1px solid var(--status-acknowledged-border);
  color: var(--status-acknowledged);
}
.status-ACKNOWLEDGED .status-dot {
  background: var(--status-acknowledged);
  box-shadow: 0 0 6px var(--status-acknowledged);
}

.status-DEVELOPING {
  background: var(--status-developing-bg);
  border: 1px solid var(--status-developing-border);
  color: var(--status-developing);
}
.status-DEVELOPING .status-dot {
  background: var(--status-developing);
  box-shadow: 0 0 6px var(--status-developing);
}

.status-EMERGING {
  background: var(--status-emerging-bg);
  border: 1px solid var(--status-emerging-border);
  color: var(--status-emerging);
}
.status-EMERGING .status-dot {
  background: var(--status-emerging);
  box-shadow: 0 0 6px var(--status-emerging);
}

.status-REFUTED {
  background: var(--status-refuted-bg);
  border: 1px solid var(--status-refuted-border);
  color: var(--status-refuted);
}
.status-REFUTED .status-dot {
  background: var(--status-refuted);
}

.card-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-milestone-preview {
  background: var(--card-preview-bg);
  border-left: 3px solid var(--cyan-accent);
  padding: 0.65rem 0.9rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
}

.card-milestone-preview .label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.card-milestone-preview .text {
  color: var(--text-primary);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-actor {
  background: var(--actor-badge-bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

.view-link {
  color: var(--cyan-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===================================================================
   Incident Detail Page
   =================================================================== */

.detail-page {
  padding: 2.5rem 0 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.back-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.detail-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.detail-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-accent), transparent);
}

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.detail-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  background: var(--bg-surface-elevated);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.meta-val {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
}

/* ===================================================================
   Milestone Timeline
   =================================================================== */

.timeline-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.timeline-container {
  position: relative;
  margin-bottom: 3.5rem;
  padding: 0;
}

/* Continuous Vertical Timeline Track Line - Layered Behind the Item Dots */
.timeline-container::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-rail-width) / 2);
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: var(--timeline-line-width);
  background: var(--timeline-line-color);
  z-index: 1;
  pointer-events: none;
}

/* 2-Column Grid: Column 1 = Timeline Rail, Column 2 = Milestone Card */
.milestone-node {
  position: relative;
  display: grid;
  grid-template-columns: var(--timeline-rail-width) 1fr;
  column-gap: 1.25rem;
  align-items: center; /* Exactly centered vertically to the milestone card */
  margin-bottom: 2rem;
  z-index: 2;
}

.milestone-node:last-child {
  margin-bottom: 0;
}

/* Milestone Marker Circle: 100% Mathematically Centered on Track Line & Card */
.milestone-marker {
  grid-column: 1;
  justify-self: center;
  align-self: center;
  margin: 0; /* Centered vertically to the card */
  width: var(--marker-size);
  height: var(--marker-size);
  border-radius: 50%;
  background: var(--marker-bg);
  border: 2.5px solid var(--marker-border-color);
  box-shadow: var(--marker-glow);
  z-index: 3; /* Firmly in front of the continuous line */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.marker-dot {
  width: var(--marker-dot-size);
  height: var(--marker-dot-size);
  border-radius: 50%;
  background: var(--marker-dot-bg);
  display: block;
}

.milestone-node:hover .milestone-marker {
  transform: scale(1.15);
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* Milestone Card (Column 2) */
.milestone-card {
  grid-column: 2;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--card-shadow);
  position: relative;
  min-width: 0;
}

.milestone-card:hover {
  border-color: var(--border-active);
}

.milestone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
  min-height: 24px;
}

.milestone-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
}

/* Verification Badges */
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.verify-badge.regulator {
  background: var(--verify-regulator-bg);
  color: var(--verify-regulator);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.verify-badge.target {
  background: var(--verify-target-bg);
  color: var(--verify-target);
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.verify-badge.independent {
  background: var(--verify-independent-bg);
  color: var(--verify-independent);
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.verify-badge.unverified {
  background: var(--verify-unverified-bg);
  color: var(--verify-unverified);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.verify-badge.refuted {
  background: var(--status-refuted-bg);
  color: var(--status-refuted);
  border: 1px solid var(--status-refuted-border);
}

/* Media Pickup / News Badge */
.media-pickup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  background: rgba(147, 51, 234, 0.16);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.38);
}

[data-theme="light"] .media-pickup-badge {
  background: rgba(147, 51, 234, 0.1);
  color: #7e22ce;
  border-color: rgba(147, 51, 234, 0.28);
}

.milestone-event {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

/* Enhanced Telemetry Source Section */
.milestone-source {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-subtle);
}

.milestone-source .source-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.milestone-source a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--cyan-accent);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  word-break: break-word;
}

.milestone-source a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ===================================================================
   GitHub CTA / Open Audit Box
   =================================================================== */

.github-cta-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--card-shadow);
}

.cta-left h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.cta-left p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #24292e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-github:hover {
  background: #2f363d;
  color: #fff;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===================================================================
   About Page Panel
   =================================================================== */

.about-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--card-shadow);
}

.about-panel h2 {
  color: var(--text-primary);
  font-size: 1.3rem;
}

.about-panel strong {
  color: var(--text-primary);
}

/* About Status Cards Grid */
.about-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 1.25rem;
}

.about-status-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.about-status-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.about-status-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ===================================================================
   Open Weights Telemetry Breakdown Card (Detail Page)
   =================================================================== */

.open-weights-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
}

.open-weights-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-accent), transparent 60%);
}

.open-weights-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.ow-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-accent);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.ow-headline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.ow-score-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.ow-score-num {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
}

.ow-score-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ow-score-badge.confirmed .ow-score-num { color: var(--status-confirmed); }
.ow-score-badge.acknowledged .ow-score-num { color: var(--status-acknowledged); }
.ow-score-badge.developing .ow-score-num { color: var(--status-developing); }
.ow-score-badge.emerging .ow-score-num { color: var(--status-emerging); }
.ow-score-badge.refuted .ow-score-num { color: var(--status-refuted); }

.ow-meter-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="light"] .ow-meter-track {
  background: rgba(0, 0, 0, 0.08);
}

.ow-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.ow-meter-fill.confirmed {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.ow-meter-fill.acknowledged {
  background: linear-gradient(90deg, #facc15, #eab308);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.ow-meter-fill.developing {
  background: linear-gradient(90deg, #fb923c, #f97316);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.4);
}

.ow-meter-fill.emerging {
  background: linear-gradient(90deg, #f87171, #ef4444);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.4);
}

.ow-meter-fill.refuted {
  background: var(--status-refuted);
}

.ow-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.ow-metric-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ow-metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ow-metric-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ow-metric-val.confirmed { color: var(--status-confirmed); }
.ow-metric-val.acknowledged { color: var(--status-acknowledged); }
.ow-metric-val.developing { color: var(--status-developing); }
.ow-metric-val.emerging { color: var(--status-emerging); }
.ow-metric-val.refuted { color: var(--status-refuted); }

.ow-metric-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.ow-domains-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.ow-domains-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ow-domains-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ow-domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--text-secondary);
}

.ow-domain-tag i {
  color: var(--cyan-accent);
}

/* About Weights Table */
.about-weights-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.about-weights-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.about-weights-table th {
  background: var(--bg-surface-elevated);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.about-weights-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.about-weights-table tr:last-child td {
  border-bottom: none;
}

/* ===================================================================
   Footer
   =================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 2.5rem 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-credits {
  line-height: 1.6;
}

.footer-credits strong {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

/* ===================================================================
   Responsive Adjustments
   =================================================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .header-inner, .card-top, .detail-top, .footer-inner, .github-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-github {
    width: 100%;
    justify-content: center;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  :root {
    --timeline-rail-width: 28px;
    --marker-size: 16px;
    --marker-dot-size: 6px;
  }

  .timeline-container::before {
    top: 0;
    bottom: 0;
  }

  .milestone-node {
    column-gap: 0.85rem;
    margin-bottom: 1.5rem;
    align-items: center;
  }

  .milestone-marker {
    margin: 0;
    align-self: center;
  }

  .milestone-card {
    padding: 1rem 1.1rem;
  }

  .milestone-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ===================================================================
   Status Badges (Standardized 5-Tier Telemetry Model)
   =================================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.status-badge i {
  font-size: 0.78rem;
}

.status-badge.status-CONFIRMED {
  background: var(--status-confirmed-bg);
  color: var(--status-confirmed);
  border-color: var(--status-confirmed-border);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.status-badge.status-ACKNOWLEDGED {
  background: var(--status-acknowledged-bg);
  color: var(--status-acknowledged);
  border-color: var(--status-acknowledged-border);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.15);
}

.status-badge.status-DEVELOPING {
  background: var(--status-developing-bg);
  color: var(--status-developing);
  border-color: var(--status-developing-border);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.15);
}

.status-badge.status-EMERGING {
  background: var(--status-emerging-bg);
  color: var(--status-emerging);
  border-color: var(--status-emerging-border);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.15);
}

.status-badge.status-REFUTED {
  background: var(--status-refuted-bg);
  color: var(--status-refuted);
  border-color: var(--status-refuted-border);
}

/* ===================================================================
   Top Telemetry Metrics Strip (Clean, Data-First)
   =================================================================== */

.telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--card-shadow);
  gap: 1rem;
}

.telemetry-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.telemetry-divider {
  width: 1px;
  height: 42px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.tm-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.tm-val {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
}

.tm-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.text-confirmed { color: var(--status-confirmed); }
.text-acknowledged { color: var(--status-acknowledged); }
.text-developing { color: var(--status-developing); }
.text-emerging { color: var(--status-emerging); }
.text-refuted { color: var(--status-refuted); }
.text-emerald { color: var(--status-confirmed); }
.text-amber { color: var(--status-acknowledged); }
.text-orange { color: var(--status-developing); }
.text-rose { color: var(--status-emerging); }
.text-cyan { color: var(--cyan-accent); }

/* ===================================================================
   Interactive Telemetry Charts Deck
   =================================================================== */

.charts-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.charts-section-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.csh-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.csh-title i {
  color: var(--cyan-accent);
}

.csh-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.chart-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chart-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-title i {
  color: var(--cyan-accent);
  font-size: 0.85rem;
}

.chart-action-hint {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Horizontal Bar Charts */
.chart-hbars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chart-hbar-row {
  display: grid;
  grid-template-columns: 140px 1fr 65px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  cursor: pointer;
}

.chart-hbar-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .chart-hbar-row:hover {
  background: rgba(0, 0, 0, 0.05);
}

.chart-hbar-row.active {
  background: rgba(0, 210, 211, 0.12);
  outline: 1px solid var(--cyan-accent);
}

.hbar-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hbar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .hbar-track {
  background: rgba(0, 0, 0, 0.08);
}

.hbar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.bar-confirmed { background: var(--status-confirmed); }
.bar-acknowledged { background: var(--status-acknowledged); }
.bar-developing { background: var(--status-developing); }
.bar-emerging { background: var(--status-emerging); }
.bar-refuted { background: var(--status-refuted); }
.bar-cyan { background: var(--cyan-accent); }
.bar-orange { background: #f97316; }
.bar-teal { background: #0d9488; }

.hbar-value {
  font-size: 0.78rem;
  text-align: right;
  color: var(--text-primary);
}

.hbar-value small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* Vertical Column Chart (Velocity) */
.chart-vbars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 130px;
  padding: 0.5rem 0.5rem 0;
  gap: 1.5rem;
}

.vbar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.vbar-col:hover {
  background: rgba(255, 255, 255, 0.05);
}

.vbar-col.active {
  background: rgba(0, 210, 211, 0.12);
  outline: 1px solid var(--cyan-accent);
}

.vbar-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.vbar-track {
  width: 100%;
  max-width: 48px;
  height: 80px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

[data-theme="light"] .vbar-track {
  background: rgba(0, 0, 0, 0.08);
}

.vbar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--cyan-accent), #0284c7);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s ease;
}

.vbar-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Active Filter Banner */
.active-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 210, 211, 0.08);
  border: 1px solid var(--cyan-accent);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
}

.af-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.af-icon {
  color: var(--cyan-accent);
}

.af-text {
  color: var(--text-muted);
}

.active-filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--cyan-accent);
  color: var(--text-primary);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-clear-filter {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-clear-filter:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: #ef4444;
}

/* ===================================================================
   Controls Bar & View Toggle
   =================================================================== */

.controls-right-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.view-toggle-wrap {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--cyan-accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-size-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===================================================================
   Dense Telemetry Table View
   =================================================================== */

.telemetry-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

.telemetry-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.telemetry-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.telemetry-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-secondary);
}

.telemetry-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .telemetry-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.col-target {
  min-width: 220px;
}

.table-target-name {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  font-size: 0.92rem;
  text-decoration: none;
}

.table-target-name:hover {
  color: var(--cyan-accent);
  text-decoration: underline;
}

.table-target-domain {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

.table-conf-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.table-source-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.milestone-count-pill {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.btn-table-dossier {
  background: var(--cyan-accent-soft);
  color: var(--cyan-accent);
  border: 1px solid var(--cyan-accent);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-table-dossier:hover {
  background: var(--cyan-accent);
  color: #020617;
  text-decoration: none;
}

/* ===================================================================
   Pagination Bar
   =================================================================== */

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
}

.pagination-info {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.page-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--border-active);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.page-btn.active {
  background: var(--cyan-accent-soft);
  color: var(--cyan-accent);
  border-color: var(--cyan-accent);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===================================================================
   Forensic Metadata, Rich Flat-File Tags & Technical Briefings
   =================================================================== */

/* Homepage Card Forensic Tags */
.card-forensic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
  margin-bottom: 0.75rem;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.card-tag-industry {
  color: var(--cyan-accent);
  border-color: rgba(6, 182, 212, 0.25);
  background: var(--cyan-accent-soft);
}

.card-tag-type {
  color: var(--text-secondary);
}

.card-tag-affected {
  color: var(--status-acknowledged);
  border-color: rgba(245, 158, 11, 0.25);
  background: var(--status-acknowledged-bg);
}

.card-tag-compromised {
  color: var(--status-emerging);
  border-color: rgba(239, 68, 68, 0.25);
  background: var(--status-emerging-bg);
}

.card-tag-filing {
  color: var(--status-confirmed);
  border-color: rgba(16, 185, 129, 0.25);
  background: var(--status-confirmed-bg);
}

/* Dense Telemetry Table New Column Tags */
.table-industry-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--cyan-accent-soft);
  color: var(--cyan-accent);
  border: 1px solid rgba(6, 182, 212, 0.2);
  white-space: nowrap;
}

.table-type-tag {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.table-affected-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--status-acknowledged);
  background: var(--status-acknowledged-bg);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  white-space: nowrap;
}

.col-industry, .col-type, .col-affected {
  white-space: nowrap;
}

/* Forensic Filter Row */
.forensic-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.forensic-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.forensic-filter-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.forensic-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.forensic-select:hover, .forensic-select:focus {
  border-color: var(--cyan-accent);
  background: var(--bg-surface-elevated);
}

.filter-chip-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.7rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.filter-chip-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.filter-chip-btn.active {
  background: var(--status-acknowledged-bg);
  color: var(--status-acknowledged);
  border-color: var(--status-acknowledged);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.25);
}

.forensic-filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
}

.forensic-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.forensic-filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Telemetry Export Bar */
.telemetry-export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(14, 18, 27, 0.75);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .telemetry-export-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.export-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.export-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.export-count-badge {
  font-size: 0.76rem;
  color: var(--cyan-accent);
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.export-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-export {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.btn-export:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  transform: translateY(-1px);
}

/* Detail Page: Forensic Meta Sections */
.forensic-meta-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.forensic-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.compromised-pills-row, .filings-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compromised-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--status-emerging-bg);
  color: var(--status-emerging);
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.filing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
}

.filing-pill:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  text-decoration: none;
  background: var(--cyan-accent-soft);
}

.filing-acc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Technical Forensic Narrative Dossier */
.narrative-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.narrative-card-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
}

.narrative-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.narrative-card-header h3 i {
  color: var(--cyan-accent);
}

.markdown-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.markdown-content h2:first-child {
  margin-top: 0;
}

.markdown-content p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.markdown-content ul {
  margin-left: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.markdown-content li {
  margin-bottom: 0.4rem;
}

.markdown-content strong {
  color: var(--text-primary);
}

@media (max-width: 960px) {
  .telemetry-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .telemetry-bar {
    grid-template-columns: 1fr;
  }
  .card-forensic-tags {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================================
   Real-Time Breaking Threat Newsfeed & Social Stream Styling
   =================================================================== */

/* Feed Hero Section */
.feed-hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.feed-hero-content {
  flex: 1;
}

.feed-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 210, 211, 0.1);
  border: 1px solid rgba(0, 210, 211, 0.25);
  color: var(--cyan-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background: var(--cyan-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan-accent);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.feed-hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.feed-hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.55;
}

.feed-hero-quickstats {
  display: flex;
  gap: 1rem;
}

.quickstat-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  min-width: 140px;
  box-shadow: var(--card-shadow);
}

.quickstat-card .qs-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.quickstat-card .qs-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin: 0.2rem 0;
}

.quickstat-card .qs-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.quickstat-card .qs-link {
  font-size: 0.75rem;
  color: var(--cyan-accent);
  text-decoration: none;
  font-weight: 600;
}

.quickstat-card .qs-link:hover {
  text-decoration: underline;
}

/* Controls Panel */
.feed-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.quick-topics-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.qt-label {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.25rem;
}

.qt-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.qt-chip:hover,
.qt-chip.active {
  background: rgba(0, 210, 211, 0.12);
  border-color: rgba(0, 210, 211, 0.4);
  color: var(--cyan-accent);
}

.feed-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.stream-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
}

.stream-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.stream-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.stream-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.stream-tab-count {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

[data-theme="light"] .stream-tab-count {
  background: rgba(0, 0, 0, 0.06);
}

.feed-actions-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-toggle-drawer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-toggle-drawer:hover,
.btn-toggle-drawer.active {
  border-color: var(--cyan-accent);
  background: var(--bg-surface-elevated);
}

.drawer-chevron {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.btn-toggle-drawer.active .drawer-chevron {
  transform: rotate(180deg);
}

.badge-active-count {
  background: var(--cyan-accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.btn-telemetry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.15), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(0, 210, 211, 0.35);
  color: var(--cyan-accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-telemetry-link:hover {
  background: linear-gradient(135deg, rgba(0, 210, 211, 0.25), rgba(6, 182, 212, 0.35));
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* Telemetry Drawer */
.telemetry-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 0.75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  animation: drawer-fade-in 0.2s ease;
}

@keyframes drawer-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.dh-title-group .drawer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.dh-title-group .drawer-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 4px;
}

.btn-close-drawer:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.drawer-section {
  margin-bottom: 1.25rem;
}

.drawer-section-title {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.drawer-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.drawer-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.drawer-footer-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-top: 1.25rem;
}

.dfc-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.drawer-telemetry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--cyan-accent);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.drawer-telemetry-btn:hover {
  opacity: 0.9;
}

/* ===================================================================
   Social Stream / Threat Feed Card Styling
   =================================================================== */

.feed-stream {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feed-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  position: relative;
}

.feed-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.feed-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feed-entity-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.feed-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-mono);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.avatar-cyan {
  background: linear-gradient(135deg, #00d2d3, #0984e3);
}

.avatar-purple {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.avatar-emerald {
  background: linear-gradient(135deg, #00b894, #00cec9);
}

.avatar-amber {
  background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.avatar-rose {
  background: linear-gradient(135deg, #ff7675, #d63031);
}

.avatar-blue {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.feed-title-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feed-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feed-target-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.feed-target-name:hover {
  color: var(--cyan-accent);
}

.feed-target-domain {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.feed-time-sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.feed-time {
  color: var(--text-secondary);
  font-weight: 500;
}

.feed-date-bullet {
  color: var(--border-active);
}

.feed-date-exact {
  color: var(--text-muted);
}

.feed-body {
  margin-bottom: 1rem;
}

.feed-summary {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
}

.feed-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.feed-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.feed-tag-industry {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
}

.feed-tag-type {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.25);
  background: rgba(192, 132, 252, 0.08);
}

.feed-tag-affected {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.25);
  background: rgba(251, 146, 60, 0.08);
  font-weight: 600;
}

.feed-tag-compromised {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.08);
}

.feed-tag-filing {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.08);
  font-weight: 600;
}

/* Confidence Row */
.feed-confidence-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.feed-confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 210, 211, 0.1);
  border: 1px solid rgba(0, 210, 211, 0.3);
  color: var(--cyan-accent);
}

.feed-confidence-pill.confirmed {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.feed-confidence-pill.target {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #06b6d4;
}

.feed-confidence-pill.independent {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.35);
  color: #fb923c;
}

.feed-confidence-pill.emerging {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.feed-source-pill {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Embedded Latest Milestone Box */
.feed-milestone-embed {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--cyan-accent);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.15rem;
}

.milestone-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.me-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.me-event {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.me-source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--cyan-accent);
  text-decoration: none;
  font-weight: 500;
}

.me-source-link:hover {
  text-decoration: underline;
}

/* Card Action Footer */
.feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-meta-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.milestone-count-pill {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-actor-pill {
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action-share {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-action-share:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.btn-action-dossier {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--cyan-accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-action-dossier:hover {
  background: rgba(0, 210, 211, 0.15);
  border-color: var(--cyan-accent);
}

/* Toast Notification */
.toast-notify {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--cyan-accent);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  animation: toast-in 0.25s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   Status Page (Pipeline Health) Styling
   =================================================================== */

.status-page {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.status-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.status-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.sh-indicator-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sh-pulse-dot {
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 12px #10b981;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.sh-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.sh-last-check {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.sh-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.sh-cadence-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.status-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.sm-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.sm-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.sm-val {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin: 0.25rem 0;
}

.sm-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.status-section {
  margin-bottom: 2.5rem;
}

.status-section-header {
  margin-bottom: 1.25rem;
}

.status-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-section-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-table-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.status-table th {
  text-align: left;
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
}

.status-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.status-table tr:last-child td {
  border-bottom: none;
}

.status-table tr:hover td {
  background: var(--bg-surface-hover);
}

.col-feed-name strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.feed-endpoint-link {
  font-size: 0.75rem;
  color: var(--cyan-accent);
  text-decoration: none;
}

.feed-endpoint-link:hover {
  text-decoration: underline;
}

.badge-source-type {
  font-size: 0.75rem;
  background: var(--bg-surface-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-secondary);
}

.status-indicator-operational {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #10b981;
  font-weight: 600;
  font-size: 0.8rem;
}

.dot-pulse-green {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* 6-Stage Architecture Cards */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform var(--transition-fast);
}

.stage-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
}

.stage-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.35;
}

.stage-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stage-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Status CTA Card */
.status-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(14, 18, 27, 0.95), rgba(21, 27, 39, 0.95));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

[data-theme="light"] .status-cta-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

.sc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.sc-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}

.sc-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-github-action {
  background: #24292f;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-github-action:hover {
  background: #2f363d;
}

.btn-rss-action {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #fb923c;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-rss-action:hover {
  background: rgba(251, 146, 60, 0.2);
}

/* ===================================================================
   Telemetry Subpage Specific Styling
   =================================================================== */

.page-title-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0 1rem;
}

.page-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-main-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

.btn-back-stream {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-back-stream:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
}

/* Status indicator pulse in nav */
.status-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.35rem;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

.nav-link.nav-status {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .feed-hero-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .feed-hero-quickstats {
    width: 100%;
    overflow-x: auto;
  }
  .feed-tabs-row {
    flex-direction: column;
    align-items: stretch;
  }
  .stream-tabs {
    overflow-x: auto;
  }
  .status-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================================
   Statutory Regulatory Disclosures & Compliance Dossier Styling
   =================================================================== */

.regulatory-dossier-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.regulatory-dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.rd-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.rd-headline {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.rd-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.rd-invariance-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.5rem;
}

.rd-notice-icon {
  color: #10b981;
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.rd-notice-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.rd-notice-text strong {
  color: var(--text-primary);
}

.rd-notice-text em {
  color: #10b981;
  font-style: normal;
  font-weight: 600;
}

.regulatory-filings-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.regulatory-filing-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.regulatory-filing-item:hover {
  border-color: rgba(0, 210, 211, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.rf-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rf-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.rf-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.reg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reg-pill-sec {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.reg-pill-state {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.reg-pill-hhs {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.reg-pill-gov {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.rf-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 0.85rem 0;
}

.rf-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rf-cell-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rf-cell-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rf-description {
  margin: 0.85rem 0;
}

.rf-desc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rf-desc-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.45rem 0 0 0;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border-left: 3px solid var(--cyan-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.rf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-direct-filing {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 210, 211, 0.12);
  border: 1px solid rgba(0, 210, 211, 0.35);
  color: var(--cyan-accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-direct-filing:hover {
  background: var(--cyan-accent);
  color: #000;
  box-shadow: 0 0 12px var(--cyan-glow);
  text-decoration: none;
  transform: translateY(-1px);
}

.rf-url-preview {
  font-size: 0.74rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-all;
}

/* ===================================================================
   Comprehensive Unified Mobile & Responsive Architecture
   Breakpoints: 960px (Tablet), 768px (Small Tablet), 640px (Mobile), 480px (Compact Mobile)
   =================================================================== */

@media (max-width: 960px) {
  .telemetry-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .site-header {
    padding: 0.65rem 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .brand {
    align-self: flex-start;
  }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    font-size: 0.82rem;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-link {
    padding: 0.2rem 0;
  }

  .github-badge {
    margin-left: auto;
  }

  .feed-hero-section {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem 0 1rem;
    margin-bottom: 1rem;
  }

  .feed-hero-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .feed-hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .feed-hero-quickstats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    width: 100%;
  }

  .quickstat-card {
    min-width: 0;
    padding: 0.75rem 0.85rem;
  }

  .search-kbd {
    display: none;
  }

  .feed-tabs-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .stream-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.25rem;
    padding: 0.25rem;
    width: 100%;
  }

  .stream-tabs::-webkit-scrollbar {
    display: none;
  }

  .stream-tab {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .feed-actions-group {
    width: 100%;
  }

  .btn-toggle-drawer {
    width: 100%;
    justify-content: center;
  }

  .telemetry-drawer {
    padding: 1.15rem;
  }

  .drawer-controls-grid {
    grid-template-columns: 1fr;
  }

  .drawer-export-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .export-bar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-export {
    width: 100%;
    justify-content: center;
  }

  .detail-page {
    padding: 1.5rem 0 3rem;
  }

  .detail-header {
    padding: 1.35rem 1.15rem;
    margin-bottom: 1.75rem;
  }

  .detail-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .detail-title {
    font-size: 1.75rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .detail-summary {
    font-size: 0.95rem;
    line-height: 1.55;
    word-break: break-word;
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .meta-val {
    word-break: break-word;
  }

  .filings-pills-row,
  .compromised-pills-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filing-pill {
    display: flex;
    flex-wrap: wrap;
    word-break: break-word;
    width: 100%;
    max-width: 100%;
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
  }

  .compromised-pill {
    display: inline-flex;
    max-width: 100%;
    word-break: break-word;
  }

  .open-weights-card {
    padding: 1.35rem 1.15rem;
  }

  .open-weights-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .ow-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .regulatory-dossier-card {
    padding: 1.35rem 1.15rem;
  }

  .regulatory-dossier-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .status-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .status-title {
    font-size: 1.65rem;
  }

  .status-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --timeline-rail-width: 24px;
    --marker-size: 14px;
    --marker-dot-size: 6px;
  }

  .feed-card {
    padding: 1.15rem 1rem;
    overflow: hidden;
  }

  .feed-card-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .feed-status-badge-wrap {
    align-self: flex-start;
  }

  .feed-entity-info {
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
  }

  .feed-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .feed-title-meta {
    min-width: 0;
    flex: 1;
  }

  .feed-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
  }

  .feed-target-name {
    font-size: 1.05rem;
    line-height: 1.3;
    word-break: break-word;
  }

  .feed-target-domain {
    word-break: break-all;
    font-size: 0.78rem;
  }

  .feed-summary {
    font-size: 0.88rem;
    line-height: 1.5;
    word-break: break-word;
  }

  .feed-tags-row {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .feed-tag {
    font-size: 0.7rem;
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .feed-confidence-row {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .feed-confidence-pill,
  .feed-source-pill {
    font-size: 0.72rem;
  }

  .feed-milestone-embed {
    padding: 0.65rem 0.8rem;
  }

  .milestone-embed-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .me-event {
    word-break: break-word;
    font-size: 0.82rem;
  }

  .me-source-link {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.75rem;
  }

  .feed-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .footer-meta-left {
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: space-between;
    width: 100%;
  }

  .footer-actions-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-action-share,
  .btn-action-dossier {
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 0.45rem 0.65rem;
  }

  .milestone-node {
    grid-template-columns: 24px 1fr;
    column-gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  .milestone-card {
    padding: 0.9rem 1rem;
    min-width: 0;
  }

  .milestone-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .milestone-time {
    font-size: 0.75rem;
  }

  .milestone-event {
    font-size: 0.86rem;
    word-break: break-word;
    line-height: 1.5;
  }

  .milestone-source {
    font-size: 0.75rem;
    word-break: break-word;
  }

  .milestone-source a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .rf-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .rf-action-group {
    width: 100%;
  }

  .btn-direct-filing {
    width: 100%;
    justify-content: center;
  }

  .rf-url-preview {
    max-width: 100%;
    word-break: break-all;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .feed-hero-quickstats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ow-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .status-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .quickstat-card,
  .sm-card {
    padding: 0.75rem;
  }

  .quick-topics-row {
    font-size: 0.75rem;
  }

  .qt-chip {
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
  }
}




