:root {
  --bg-color: #030712;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --border-color: rgba(56, 189, 248, 0.16);
  --border-glow: rgba(56, 189, 248, 0.35);
  --accent-primary: #38bdf8;
  --accent-primary-hover: #0284c7;
  --accent-danger: #ef4444;
  --accent-danger-bg: rgba(239, 68, 68, 0.14);
  --accent-warning: #f59e0b;
  --accent-warning-bg: rgba(245, 158, 11, 0.14);
  --accent-safe: #10b981;
  --accent-safe-bg: rgba(16, 185, 129, 0.14);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.dark-theme {
  background: radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(52, 211, 153, 0.1) 0%, transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
              var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.65;
}

/* 60 FPS Ambient Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

/* Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.32);
}

/* 3D Card Physics Tilt */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Navbar */
.navbar {
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
  padding: 16px 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}
.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-title .accent {
  color: #38bdf8;
}
.brand-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  margin-left: 6px;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.nav-badges {
  display: flex;
  gap: 8px;
}
@media (max-width: 900px) {
  .nav-badges { display: none; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  color: #cbd5e1;
}
.badge.hackathon {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.22));
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.nav-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
}
.nav-btn.primary {
  background: var(--accent-primary);
  border-color: transparent;
  color: #030712;
  font-weight: 700;
}
.nav-btn.primary:hover {
  background: #7dd3fc;
}

/* Hero Section */
.hero-section {
  padding: 42px 0 24px;
  text-align: center;
}
.hero-container {
  max-width: 900px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 12px #10b981;
  animation: pdot 2s infinite ease-in-out;
}
@keyframes pdot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.16;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Swarm Banner Container */
.swarm-banner-container {
  margin-bottom: 28px;
}
.swarm-pipeline-card {
  padding: 16px 20px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}
.swarm-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.agent-nodes-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.agent-node {
  flex: 1;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.6);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.agent-node.active-pulse {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.15);
}
.node-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-info {
  display: flex;
  flex-direction: column;
}
.node-info strong {
  font-size: 0.78rem;
  color: var(--text-main);
}
.node-info span {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.node-arrow {
  color: #475569;
  display: flex;
  align-items: center;
}

/* Grid Layout */
.main-content {
  margin-bottom: 50px;
}
.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 992px) {
  .grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Input Panel */
.input-panel {
  display: flex;
  flex-direction: column;
}
.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tabs {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--accent-primary);
  color: #030712;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.sample-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.sample-picker select {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.82rem;
  cursor: pointer;
}
.sample-picker select option {
  background: #0f172a;
  color: #fff;
}

.card-body {
  padding: 22px;
  flex: 1;
}
.input-view {
  display: none;
  height: 100%;
}
.input-view.active {
  display: block;
}
textarea#job-input, textarea#batch-input {
  width: 100%;
  height: 290px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  resize: vertical;
  outline: none;
  line-height: 1.6;
}
textarea#job-input:focus, textarea#batch-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.batch-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 45px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 290px;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.1);
}
.drop-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.file-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
}
.remove-file {
  cursor: pointer;
  font-size: 1.2rem;
  color: #ef4444;
}

.card-footer {
  padding: 18px 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
}
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-action.primary-glow {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #030712;
  flex: 1;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}
.btn-action.primary-glow:hover {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}
.btn-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}
.btn-action.secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Results Panel */
.results-panel {
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 30px;
  margin: auto;
  color: var(--text-muted);
}
.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-bottom: 18px;
}
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}
.feature-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  color: #cbd5e1;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  margin: auto;
  text-align: center;
}
.radar-spinner {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(56, 189, 248, 0.15);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
  margin-bottom: 18px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-steps {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-item.active {
  color: #7dd3fc;
  font-weight: 600;
}

/* Rendered Results */
.result-state {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.meta-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}
.threat-headline {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 4px 0;
}
.threat-headline.danger { color: var(--accent-danger); }
.threat-headline.warning { color: var(--accent-warning); }
.threat-headline.safe { color: var(--accent-safe); }
.threat-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.telemetry-bar {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  font-size: 0.76rem;
  color: #7dd3fc;
  font-family: var(--font-mono);
}
.telemetry-bar span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-gauge-box {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 4px solid var(--accent-danger);
  box-shadow: 0 0 25px var(--accent-danger-bg);
}
.score-gauge-box.warning {
  border-color: var(--accent-warning);
  box-shadow: 0 0 25px var(--accent-warning-bg);
}
.score-gauge-box.safe {
  border-color: var(--accent-safe);
  box-shadow: 0 0 25px var(--accent-safe-bg);
}
.gauge-ring {
  text-align: center;
}
.score-number {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}
.score-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
}

.section-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 12px;
}
.flags-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flag-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}
.flag-item.CRITICAL, .flag-item.HIGH {
  border-left: 4px solid var(--accent-danger);
  background: var(--accent-danger-bg);
}
.flag-item.MEDIUM {
  border-left: 4px solid var(--accent-warning);
  background: var(--accent-warning-bg);
}
.flag-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  height: fit-content;
}
.flag-item.CRITICAL .flag-badge, .flag-item.HIGH .flag-badge {
  background: var(--accent-danger);
  color: #fff;
}
.flag-item.MEDIUM .flag-badge {
  background: var(--accent-warning);
  color: #000;
}
.flag-info h5 { font-size: 0.88rem; margin-bottom: 2px; }
.flag-info p { font-size: 0.82rem; color: #cbd5e1; }

.summary-content {
  font-size: 0.9rem;
  color: #cbd5e1;
  white-space: pre-line;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .evidence-grid { grid-template-columns: 1fr; }
}
.evidence-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.8rem;
}
.ev-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 6px;
}
.ev-body {
  color: var(--text-muted);
  font-family: var(--font-mono);
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.4;
  white-space: pre-wrap;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #e2e8f0;
}
.checklist li::before {
  content: '🛡️';
  font-size: 0.92rem;
}

/* Advisor Section */
.advisor-section {
  padding: 26px;
  margin-top: 20px;
}
.advisor-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.advisor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.chat-container { display: flex; flex-direction: column; gap: 14px; }
.chat-messages {
  height: 220px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message { display: flex; }
.message.bot { justify-content: flex-start; }
.message.user { justify-content: flex-end; }
.msg-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
}
.message.bot .msg-bubble {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  color: #e2e8f0;
}
.message.user .msg-bubble {
  background: var(--accent-primary);
  color: #030712;
  font-weight: 600;
}
.chat-input-bar { display: flex; gap: 10px; }
.chat-input-bar input {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}
.chat-input-bar input:focus { border-color: var(--accent-primary); }

/* Modals */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  width: 100%;
  max-width: 780px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.modal-card.small-modal { max-width: 500px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}
.modal-body { overflow-y: auto; flex: 1; }
.corpus-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}
.corpus-item h4 { color: #7dd3fc; margin-bottom: 4px; font-size: 0.94rem; }
.input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-mono);
  margin-top: 6px;
  outline: none;
}
.settings-status {
  margin-top: 16px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
}
.modal-footer { margin-top: 18px; display: flex; justify-content: flex-end; }

/* Quick Benchmark Scenarios Bar */
.quick-samples-bar {
  margin-bottom: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.quick-samples-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 10px;
}
.quick-samples-label i {
  width: 15px;
  height: 15px;
}
.quick-samples-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  transition: var(--transition);
}
.sample-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.sample-chip.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.sample-chip.danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}
.sample-chip.danger:hover, .sample-chip.danger.active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}
.sample-chip.warning {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}
.sample-chip.warning:hover, .sample-chip.warning.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}
.sample-chip.safe {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}
.sample-chip.safe:hover, .sample-chip.safe.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

/* Chat Quick Prompt Chips */
.chat-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.quick-chip {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #bae6fd;
  border-radius: 16px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.quick-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Copy Summary Button */
.btn-copy-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  float: right;
}
.btn-copy-summary:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Sound Toggle Button */
.nav-btn.audio-toggle {
  min-width: 40px;
}
.nav-btn.audio-toggle.muted {
  opacity: 0.65;
  border-color: rgba(239, 68, 68, 0.35);
}

/* Student Action Checklist */
.student-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.student-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  line-height: 1.45;
}
.student-checklist li.action-critical {
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.08);
}
.student-checklist li.action-verify {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}
.student-checklist li.action-safe {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
}
.action-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

/* Safe Signals List */
.safe-signals-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-sm);
}
.safe-signals-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #34d399;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 6px;
}
.safe-signals-list {
  list-style: none;
  font-size: 0.8rem;
  color: #a7f3d0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.safe-signals-list li::before {
  content: "✓ ";
  color: #34d399;
  font-weight: bold;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 26px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}
.footer-badges {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 0.75rem;
}
.footer-badges span {
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

/* Print Stylesheet for Executive PDF Export */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  #bg-canvas, .navbar, .hero-section, .swarm-banner-container, .input-panel, .advisor-section, .footer, .modal {
    display: none !important;
  }
  .grid-layout { display: block !important; }
  .results-panel {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    color: #000000 !important;
  }
  .score-header, .section-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #000000 !important;
  }
  .threat-headline.danger { color: #dc2626 !important; }
  .flag-item {
    background: #fef2f2 !important;
    border-left: 4px solid #dc2626 !important;
    color: #000000 !important;
  }
  .flag-info p, .summary-content, .ev-body, .checklist li {
    color: #1e293b !important;
  }
}
