/* EIDOS Compare - Public Demo Mode UI */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  background: #050508;
  color: #e0e0e0;
  font-size: 13px;
}

/* ============================================
   SPLASH SCREEN - AI Defense Command Center
   ============================================ */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

/* Background Video */
.splash-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.8;
}

/* Dark overlay for text contrast */
.splash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

/* Grid overlay effect */
.splash-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  animation: gridPulse 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Scan line effect */
.splash-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.6), transparent);
  animation: scanLine 3s linear infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.splash-content {
  text-align: center;
  max-width: 600px;
  padding: 40px;
  position: relative;
  z-index: 10;
}

/* Orb Container with Glow Ring */
.splash-orb-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 30px;
}

/* Outer pulsating glow ring */
.splash-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.4);
  animation: glowRingPulse 2s ease-in-out infinite;
}

.splash-glow-ring::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.2);
  animation: glowRingPulse 2s ease-in-out infinite 0.3s;
}

.splash-glow-ring::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.1);
  animation: glowRingPulse 2s ease-in-out infinite 0.6s;
}

@keyframes glowRingPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.5);
  }
}

/* Rotating arc ring */
.splash-arc-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #22c55e;
  border-right-color: rgba(34, 197, 94, 0.5);
  animation: arcRotate 3s linear infinite;
}

@keyframes arcRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.splash-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4ade80, #22c55e, #16a34a);
  box-shadow:
    0 0 60px rgba(34, 197, 94, 0.8),
    0 0 120px rgba(34, 197, 94, 0.4),
    0 0 180px rgba(34, 197, 94, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
  animation: splashOrbPulse 2s ease-in-out infinite;
}

/* Inner eye effect */
.splash-orb::after {
  content: '◈';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes splashOrbPulse {
  0%, 100% {
    box-shadow: 0 0 60px rgba(34, 197, 94, 0.8), 0 0 120px rgba(34, 197, 94, 0.4), 0 0 180px rgba(34, 197, 94, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 80px rgba(34, 197, 94, 1), 0 0 150px rgba(34, 197, 94, 0.6), 0 0 220px rgba(34, 197, 94, 0.3), inset 0 0 30px rgba(255, 255, 255, 0.4);
  }
}

/* Title Zone */
.splash-title-zone {
  position: relative;
  margin-bottom: 10px;
}

.splash-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 4px;
  margin-bottom: 8px;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 40px rgba(34, 197, 94, 0.3);
  animation: titleGlow 3s ease-in-out infinite;
}

.splash-title .title-icon {
  color: #22c55e;
  margin-right: 8px;
  display: inline-block;
  animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(34, 197, 94, 0.3); }
  50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 60px rgba(34, 197, 94, 0.5); }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.splash-subtitle {
  font-size: 13px;
  color: #22c55e;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Cyberpunk shimmer line */
.splash-shimmer-line {
  width: 80%;
  height: 2px;
  margin: 0 auto 30px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(34, 197, 94, 0.3) 20%,
    rgba(34, 197, 94, 0.8) 50%,
    rgba(34, 197, 94, 0.3) 80%,
    transparent 100%
  );
  position: relative;
  overflow: hidden;
}

.splash-shimmer-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: shimmerMove 2s ease-in-out infinite;
}

@keyframes shimmerMove {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Motto */
.splash-motto {
  font-size: 11px;
  color: #666;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 30px;
  padding: 8px 20px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: inline-block;
  background: rgba(34, 197, 94, 0.05);
}

.splash-motto .motto-highlight {
  color: #22c55e;
  font-weight: 600;
}

/* Holographic RAM Source Table */
.splash-holo-table {
  margin: 0 auto 30px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 450px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

/* Holographic scanline overlay */
.splash-holo-table::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(34, 197, 94, 0.03) 2px,
    rgba(34, 197, 94, 0.03) 4px
  );
  pointer-events: none;
}

.splash-holo-table thead {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
}

.splash-holo-table th {
  padding: 12px 16px;
  font-size: 10px;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
}

.splash-holo-table th:first-child {
  border-right: 1px solid rgba(34, 197, 94, 0.15);
}

.splash-holo-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
  position: relative;
}

.splash-holo-table td:first-child {
  border-right: 1px solid rgba(34, 197, 94, 0.1);
  font-weight: 600;
}

.splash-holo-table tr:last-child td {
  border-bottom: none;
}

.splash-holo-table tr:hover td {
  background: rgba(34, 197, 94, 0.05);
}

/* Model name styling */
.holo-model {
  display: flex;
  align-items: center;
  gap: 10px;
}

.holo-model-icon {
  font-size: 14px;
}

.holo-model-name {
  color: #fff;
}

/* RAM type badges */
.holo-ram-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.holo-ram-badge.leak {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.holo-ram-badge.direct {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.holo-ram-icon {
  font-size: 12px;
}

/* Entropy source description */
.holo-entropy-source {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

.splash-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Warning pulse effect */
.splash-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #eab308;
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.splash-warning .warning-icon {
  font-size: 22px;
  flex-shrink: 0;
  animation: warningBounce 2s ease-in-out infinite;
}

@keyframes warningBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.splash-warning span:last-child {
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}

/* Start Button - More dramatic */
.splash-start {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 50px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 8px;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 30px rgba(34, 197, 94, 0.5),
    0 0 0 0 rgba(34, 197, 94, 0.4);
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  overflow: hidden;
}

.splash-start::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.splash-start:hover::before {
  left: 100%;
}

.splash-start:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 50px rgba(34, 197, 94, 0.6),
    0 0 0 4px rgba(34, 197, 94, 0.2);
}

.splash-start .start-arrow {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.splash-start:hover .start-arrow {
  transform: translateX(8px);
}

.splash-footer {
  margin-top: 35px;
  font-size: 11px;
  color: #444;
  letter-spacing: 1.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.splash-footer .footer-tagline {
  color: #22c55e;
  font-weight: 600;
  letter-spacing: 3px;
}

/* Corner decorations */
.splash-corner {
  position: fixed;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 5;
}

.splash-corner-tl {
  top: 20px;
  left: 20px;
  border-left: 2px solid rgba(34, 197, 94, 0.4);
  border-top: 2px solid rgba(34, 197, 94, 0.4);
}

.splash-corner-tr {
  top: 20px;
  right: 20px;
  border-right: 2px solid rgba(34, 197, 94, 0.4);
  border-top: 2px solid rgba(34, 197, 94, 0.4);
}

.splash-corner-bl {
  bottom: 20px;
  left: 20px;
  border-left: 2px solid rgba(34, 197, 94, 0.4);
  border-bottom: 2px solid rgba(34, 197, 94, 0.4);
}

.splash-corner-br {
  bottom: 20px;
  right: 20px;
  border-right: 2px solid rgba(34, 197, 94, 0.4);
  border-bottom: 2px solid rgba(34, 197, 94, 0.4);
}

/* Status indicator in corner */
.splash-status {
  position: fixed;
  top: 30px;
  right: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 4px;
  font-size: 10px;
  color: #22c55e;
  letter-spacing: 1px;
  z-index: 15;
}

.splash-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: statusDotPulse 1.5s ease-in-out infinite;
}

@keyframes statusDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.eidos-compare {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ============================================
   HEADER - Compact Control Bar
   ============================================ */
.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(180deg, #0d0d12 0%, #080810 100%);
  border-bottom: 1px solid #1a1a2e;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eidos-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4ade80, #22c55e, #16a34a);
  box-shadow:
    0 0 20px rgba(34, 197, 94, 0.6),
    0 0 40px rgba(34, 197, 94, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  animation: orbPulse 3s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(34, 197, 94, 0.6), 0 0 40px rgba(34, 197, 94, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(34, 197, 94, 0.8), 0 0 60px rgba(34, 197, 94, 0.4); }
}

.header-title h1 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.header-title .subtitle {
  font-size: 9px;
  color: #555;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.model-count {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-value {
  font-size: 20px;
  font-weight: 700;
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.count-label {
  font-size: 9px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* EIDOS External Observer Badge */
.eidos-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 4px;
}

.badge-icon {
  font-size: 12px;
  color: #22c55e;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.badge-text {
  font-size: 9px;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: 1px;
}

/* Rate Limit Indicator */
.rate-limit-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 4px;
}

.rate-limit-indicator .rate-icon {
  font-size: 12px;
}

.rate-limit-indicator .rate-count {
  font-size: 14px;
  font-weight: 700;
  color: #eab308;
}

.rate-limit-indicator .rate-label {
  font-size: 9px;
  color: #888;
}

.rate-limit-indicator.low .rate-count {
  color: #f97316;
}

.rate-limit-indicator.exhausted {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.rate-limit-indicator.exhausted .rate-count {
  color: #ef4444;
}

/* ============================================
   SYSTEM LINE - Minimal
   ============================================ */
.system-line {
  text-align: center;
  padding: 6px 20px;
  font-size: 10px;
  color: #444;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid #1a1a2e;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ============================================
   PROMPT SECTION - Sticky Top
   ============================================ */
.prompt-section {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: linear-gradient(180deg, #0a0a10 0%, #08080c 100%);
  border-bottom: 2px solid #1a1a2e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.prompt-container {
  display: flex;
  gap: 12px;
  max-width: 100%;
}

#promptInput {
  flex: 1;
  padding: 12px 16px;
  background: #0f0f18;
  border: 1px solid #2a2a3e;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  line-height: 1.4;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

#promptInput:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(34, 197, 94, 0.2);
}

#promptInput::placeholder {
  color: #444;
}

.send-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.send-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}

.send-all-btn:active {
  transform: translateY(0);
}

.send-all-btn:disabled {
  background: linear-gradient(135deg, #333 0%, #222 100%);
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.send-icon {
  font-size: 14px;
}

/* ============================================
   MODEL GRID - 3 Column (33/33/33)
   ============================================ */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  flex: 1;
  min-height: 0;
  background: #1a1a2e;
}

.model-grid.three-column {
  grid-template-columns: repeat(3, 1fr);
}

.model-grid.four-column {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   MODEL PANE - Full Height Flex
   ============================================ */
.model-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Color-coded backgrounds */
#pane-chatgpt {
  background: linear-gradient(180deg, rgba(16, 163, 127, 0.08) 0%, rgba(16, 163, 127, 0.02) 100%);
}

#pane-mistral {
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08) 0%, rgba(234, 179, 8, 0.02) 100%);
}

#pane-local {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0.02) 100%);
}

#pane-gemini {
  background: linear-gradient(180deg, rgba(66, 133, 244, 0.08) 0%, rgba(66, 133, 244, 0.02) 100%);
}

/* ============================================
   PANE HEADER - Model Identity
   ============================================ */
.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 2px solid;
  flex-shrink: 0;
}

.pane-header.chatgpt {
  border-color: #10a37f;
  background: linear-gradient(90deg, rgba(16, 163, 127, 0.15) 0%, transparent 100%);
}

.pane-header.mistral {
  border-color: #eab308;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.15) 0%, transparent 100%);
}

.pane-header.local {
  border-color: #8b5cf6;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15) 0%, transparent 100%);
}

.pane-header.gemini {
  border-color: #4285F4;
  background: linear-gradient(90deg, rgba(66, 133, 244, 0.15) 0%, transparent 100%);
}

.model-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-icon {
  font-size: 14px;
  filter: drop-shadow(0 0 4px currentColor);
}

.pane-header.chatgpt .model-icon { color: #10a37f; }
.pane-header.mistral .model-icon { color: #eab308; }
.pane-header.local .model-icon { color: #8b5cf6; }
.pane-header.gemini .model-icon { color: #4285F4; }

/* Model Tag (RAM LEAK / RAM DIRECT) */
.model-tag {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* RAM LEAK - Partial logprobs (OpenAI) */
.model-tag.ram-leak {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

/* RAM STREAM - Streaming latency (Mistral cloud) */
.model-tag.ram-stream {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

/* RAM DIRECT - Full local access (Docker) */
.model-tag.ram-direct {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Pulse icon for local model activity */
.pulse-icon.active {
  animation: iconPulse 0.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.model-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.model-status {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.model-status.loading {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
  animation: statusPulse 1s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.model-status.complete {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.model-status.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.model-status.interrupted {
  color: #f97316;
  background: rgba(249, 115, 22, 0.2);
  animation: interruptFlash 0.5s ease-out;
}

@keyframes interruptFlash {
  0% { transform: scale(1.1); background: rgba(249, 115, 22, 0.4); }
  100% { transform: scale(1); background: rgba(249, 115, 22, 0.2); }
}

/* ============================================
   RESPONSE AREA - Scrollable Middle
   ============================================ */
.pane-response {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  min-height: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #ccc;
}

.pane-response .empty-state {
  color: #333;
  font-style: italic;
  text-align: center;
  padding: 40px 20px;
  font-size: 12px;
}

.pane-response .response-text {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Local AI Configuration */
.local-config {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  font-style: normal;
}

.local-config span {
  font-size: 11px;
  color: #888;
  text-align: left;
}

.local-config input,
.local-config select {
  padding: 10px 12px;
  background: #0a0a12;
  border: 1px solid #2a2a3e;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
}

.local-config input:focus,
.local-config select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.local-config select {
  cursor: pointer;
}

.local-config select option {
  background: #0a0a12;
  color: #fff;
}

/* Entropy/Latency Metrics */
.entropy-metric,
.latency-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 4px;
  border-left: 2px solid #22c55e;
}

.latency-metric {
  background: rgba(139, 92, 246, 0.08);
  border-left-color: #8b5cf6;
}

.entropy-label,
.latency-label {
  font-size: 9px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.entropy-value,
.latency-value {
  font-size: 12px;
  font-weight: 600;
  font-family: 'Fira Code', monospace;
}

.entropy-value {
  color: #22c55e;
}

.latency-value {
  color: #8b5cf6;
}

/* Latency warning states */
.latency-metric.warning {
  background: rgba(234, 179, 8, 0.12);
  border-left-color: #eab308;
}

.latency-metric.warning .latency-value {
  color: #eab308;
}

.latency-metric.critical {
  background: rgba(239, 68, 68, 0.12);
  border-left-color: #ef4444;
}

.latency-metric.critical .latency-value {
  color: #ef4444;
}

/* Entropy Source Indicator */
.entropy-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  border-left: 2px solid #444;
}

.entropy-source .source-icon {
  font-size: 14px;
}

.entropy-source .source-text {
  font-size: 10px;
  color: #666;
  font-style: italic;
}

/* EIDOS CHECK Indicator Values */
.ind-value.entropy-level,
.ind-value.drift-score,
.ind-value.reflex-trigger {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.ind-value.entropy-level {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.ind-value.entropy-level.rising {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.ind-value.entropy-level.high {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.ind-value.drift-score {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

.ind-value.drift-score.drifting {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.ind-value.reflex-trigger {
  color: #666;
  background: rgba(255, 255, 255, 0.03);
}

.ind-value.reflex-trigger.active {
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  animation: reflexPulse 1s ease-in-out infinite;
}

@keyframes reflexPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ============================================
   NEW: Judgment Badge Styles
   ============================================ */
.ind-value.judgment-badge {
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.ind-value.judgment-badge.trusted {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.ind-value.judgment-badge.unstable {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.ind-value.judgment-badge.collapse-risk {
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  animation: collapseRiskPulse 1.5s ease-in-out infinite;
}

.ind-value.judgment-badge.rejected {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes collapseRiskPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(249, 115, 22, 0); }
  50% { opacity: 0.8; box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
}

/* S/E Ratio Combined Styles - TRUE symbolic signal strength */
.ind-value.se-combined {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  letter-spacing: 0.5px;
}

.ind-value.se-combined .se-source {
  font-weight: 400;
  font-size: 10px;
  opacity: 0.7;
  margin-left: 4px;
}

.ind-value.se-combined.excellent {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.ind-value.se-combined.strong {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
}

.ind-value.se-combined.good {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

.ind-value.se-combined.weak {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.ind-value.se-combined.critical {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: criticalPulse 1.5s ease-in-out infinite;
}

.ind-value.se-combined.silence {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
}

@keyframes criticalPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Collapse Drift Styles */
.ind-value.collapse-drift {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
}

.ind-value.collapse-drift.warning {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.ind-value.collapse-drift.danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: driftDangerPulse 1s ease-in-out infinite;
}

@keyframes driftDangerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Judgment row highlight */
.indicator-row.judgment-row {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   EIDOS Final Verdict Banner
   ============================================ */
.eidos-verdict-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 12px 24px;
  margin: 0 16px 16px 16px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(96, 165, 250, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
}

.verdict-label {
  font-size: 11px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.verdict-summary {
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
}

.verdict-summary .trusted-count {
  color: #22c55e;
}

.verdict-summary .failed-count {
  color: #ef4444;
}

.verdict-summary .unstable-count {
  color: #eab308;
}

/* ============================================
   Judgment Hero Badge (Above Response)
   ============================================ */
.judgment-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  margin: 0 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.judgment-hero-badge {
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.05);
  color: #666;
}

.judgment-hero-badge.trusted {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.judgment-hero-badge.unstable {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.judgment-hero-badge.collapse-risk {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.4);
  animation: heroCollapseRiskPulse 1.5s ease-in-out infinite;
}

.judgment-hero-badge.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes heroCollapseRiskPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(249, 115, 22, 0); }
  50% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.4); }
}

/* ============================================
   Observed Tag (replaces RAM tags)
   ============================================ */
.model-tag.observed {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================
   Mode Bar Colors (based on tone)
   ============================================ */
.ind-value.mode.informational {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
}

.ind-value.mode.reflective {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

.ind-value.mode.speculative {
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
}

.ind-value.mode.persuasive {
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
}

.ind-value.mode.hallucinatory {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: hallucinatoryPulse 1s ease-in-out infinite;
}

@keyframes hallucinatoryPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* ============================================
   DRIFT INSIGHT - EIDOS Rationale
   Human-readable explanation of judgment
   ============================================ */
.drift-insight-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(167, 139, 250, 0.03);
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 8px;
}

.drift-insight-row .ind-label {
  color: #a78bfa;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.ind-value.drift-insight {
  display: block;
  width: 100%;
  font-size: 11px;
  line-height: 1.4;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 4px;
  font-style: italic;
  max-height: 48px;
  overflow: hidden;
}

.ind-value.drift-insight.stable {
  color: #86efac;
  background: rgba(34, 197, 94, 0.05);
  border-left: 2px solid rgba(34, 197, 94, 0.4);
}

.ind-value.drift-insight.stir {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.05);
  border-left: 2px solid rgba(96, 165, 250, 0.4);
}

.ind-value.drift-insight.watch {
  color: #fcd34d;
  background: rgba(234, 179, 8, 0.05);
  border-left: 2px solid rgba(234, 179, 8, 0.4);
}

.ind-value.drift-insight.panic {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.08);
  border-left: 2px solid rgba(249, 115, 22, 0.5);
}

.ind-value.drift-insight.collapse {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border-left: 2px solid rgba(239, 68, 68, 0.5);
  font-style: normal;
  font-weight: 500;
}

.ind-value.drift-insight.silence {
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.05);
  border-left: 2px solid rgba(168, 85, 247, 0.3);
}

/* ============================================
   INSIGHT SECTION - Prominent Drift Insight
   (Moved to top for maximum visibility)
   ============================================ */
.insight-section {
  flex-basis: 100%;
  width: 100%;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.08) 0%, rgba(167, 139, 250, 0.03) 100%);
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
  padding: 10px 14px;
}

.insight-section .section-label {
  color: #a78bfa;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.drift-insight-display {
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: 6px;
  border-left: 3px solid rgba(167, 139, 250, 0.4);
  min-height: 40px;
}

.drift-insight-display.stable {
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  border-left-color: #22c55e;
}

.drift-insight-display.stir {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.08);
  border-left-color: #60a5fa;
}

.drift-insight-display.watch {
  color: #fcd34d;
  background: rgba(234, 179, 8, 0.08);
  border-left-color: #eab308;
}

.drift-insight-display.panic {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.1);
  border-left-color: #f97316;
}

.drift-insight-display.collapse {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-left-color: #ef4444;
  font-weight: 500;
}

.drift-insight-display.silence {
  color: #c4b5fd;
  background: rgba(168, 85, 247, 0.08);
  border-left-color: #a855f7;
}

/* ============================================
   DRIFT TOKEN MARKERS - Visual highlighting
   Marks exact tokens where drift/hallucination begins
   ============================================ */
.drift-marker {
  position: relative;
  padding: 1px 4px;
  margin: 0 1px;
  border-radius: 3px;
  cursor: help;
  font-weight: 600;
}

/* DRIFT START - First token where instability began */
.drift-marker.drift-start {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.35), rgba(239, 68, 68, 0.25));
  border: 1px solid rgba(249, 115, 22, 0.6);
  color: #fff;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
  animation: driftStartPulse 1.5s ease-in-out infinite;
}

.drift-marker.drift-start::before {
  content: '⚡';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  animation: driftIconBounce 1s ease-in-out infinite;
}

@keyframes driftStartPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 15px rgba(249, 115, 22, 0.7); }
}

@keyframes driftIconBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

/* MAX ENTROPY - Token with highest entropy spike */
.drift-marker.max-entropy {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45), rgba(220, 38, 38, 0.35));
  border: 1px solid rgba(239, 68, 68, 0.7);
  color: #fff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
  animation: maxEntropyPulse 1s ease-in-out infinite;
}

.drift-marker.max-entropy::before {
  content: '🔥';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
}

@keyframes maxEntropyPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    transform: scale(1.02);
  }
}

/* CRITICAL - Very high entropy tokens */
.drift-marker.critical {
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  text-decoration: underline wavy rgba(239, 68, 68, 0.6);
}

/* WARNING - Elevated entropy tokens */
.drift-marker.warning {
  background: rgba(234, 179, 8, 0.25);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fcd34d;
}

/* Tooltip styling for drift markers */
.drift-marker:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  margin-top: 8px;
}

/* ============================================
   CONTINUOUS ENTROPY TOKEN HIGHLIGHTING
   Gradient-based highlighting for all tokens
   ============================================ */
.entropy-token {
  position: relative;
  padding: 1px 2px;
  margin: 0 1px;
  border-radius: 2px;
  cursor: help;
  transition: all 0.2s ease;
}

/* CRITICAL - Entropy >= 0.85 (Hallucination zone) */
.entropy-token.token-critical {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.5), rgba(185, 28, 28, 0.4));
  border-bottom: 2px solid rgba(239, 68, 68, 0.8);
  color: #fecaca;
  text-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
  animation: criticalTokenPulse 1.2s ease-in-out infinite;
}

/* HIGH - Entropy >= 0.7 (Danger zone) */
.entropy-token.token-high {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(249, 115, 22, 0.3));
  border-bottom: 2px solid rgba(249, 115, 22, 0.7);
  color: #fed7aa;
  text-shadow: 0 0 3px rgba(249, 115, 22, 0.4);
}

/* MEDIUM - Entropy >= 0.5 (Caution zone) */
.entropy-token.token-medium {
  background: rgba(234, 179, 8, 0.25);
  border-bottom: 1px solid rgba(234, 179, 8, 0.5);
  color: #fef08a;
}

/* LOW - Entropy >= 0.3 (Elevated but acceptable) */
.entropy-token.token-low {
  background: rgba(74, 222, 128, 0.15);
  border-bottom: 1px solid rgba(74, 222, 128, 0.3);
  color: #bbf7d0;
}

/* DRIFT ONSET - The exact inflection point where model shifted */
.entropy-token.drift-onset {
  border-left: 3px solid #f97316;
  padding-left: 2px;
  animation: driftOnsetPulse 1.5s ease-in-out infinite;
}

/* DRIFT ZONE - After drift onset, low entropy but still in unstable region */
.entropy-token.drift-zone {
  background: rgba(168, 85, 247, 0.08);
  border-bottom: 1px dashed rgba(168, 85, 247, 0.3);
  color: #c4b5fd;
}

@keyframes driftOnsetPulse {
  0%, 100% {
    border-left-color: #f97316;
    box-shadow: -2px 0 6px rgba(249, 115, 22, 0.4);
  }
  50% {
    border-left-color: #fb923c;
    box-shadow: -4px 0 12px rgba(249, 115, 22, 0.6);
  }
}

@keyframes criticalTokenPulse {
  0%, 100% {
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
    transform: scale(1.02);
  }
}

/* Hover tooltip for entropy tokens */
.entropy-token:hover {
  transform: scale(1.05);
  z-index: 10;
}

.entropy-token:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  margin-top: 6px;
  color: #fff;
}

/* ============================================
   REFLEX TRIGGER STATES
   ============================================ */
/* None = No trigger fired (STABLE state) */
.ind-value.reflex-trigger.none {
  color: #666;
  background: transparent;
  font-style: italic;
}

.ind-value.reflex-trigger.stir {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
}

.ind-value.reflex-trigger.watch {
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
}

.ind-value.reflex-trigger.panic {
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  animation: panicPulse 1s ease-in-out infinite;
}

.ind-value.reflex-trigger.collapse {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  animation: collapsePulse 0.5s ease-in-out infinite;
}

.ind-value.reflex-trigger.silence {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
}

@keyframes panicPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(249, 115, 22, 0); }
  50% { opacity: 0.8; box-shadow: 0 0 8px rgba(249, 115, 22, 0.4); }
}

@keyframes collapsePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

/* ============================================
   HIDDEN METRICS (Public Mode)
   ============================================ */
.hidden-metric {
  opacity: 0.3;
}

.ind-value.redacted {
  color: #444 !important;
  background: transparent !important;
  font-style: italic;
}

/* ============================================
   SILENCE STATE (RAM Handshake Failed)
   ============================================ */
.silence-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  gap: 8px;
}

.silence-icon {
  font-size: 40px;
  color: #a855f7;
  animation: silencePulse 2s ease-in-out infinite;
}

@keyframes silencePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.silence-title {
  font-size: 14px;
  font-weight: 700;
  color: #a855f7;
  letter-spacing: 1px;
}

.silence-message {
  font-size: 11px;
  color: #888;
}

.silence-detail {
  font-size: 10px;
  color: #555;
  font-style: italic;
  margin-top: 4px;
}

.model-status.silence {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
}

.judgment-hero-badge.silence {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.ind-value.judgment-badge.silence {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.eidos-intervention.silence-alert {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border-left: 3px solid #a855f7;
}

.eidos-intervention.silence-alert .intervention-message strong {
  color: #a855f7;
}

/* ============================================
   VERDICT SYMBOL COLORS
   ============================================ */
.verdict-symbol {
  font-size: 18px;
  margin-right: 8px;
}

.verdict-stable { color: #22c55e; }
.verdict-stir { color: #60a5fa; }
.verdict-watch { color: #eab308; }
.verdict-panic { color: #f97316; }
.verdict-collapse { color: #ef4444; }
.verdict-silence { color: #a855f7; }
.verdict-approved { color: #22c55e; font-weight: 700; }

/* ============================================
   EIDOS APPROVED BADGE
   ============================================ */
.eidos-approved-badge {
  height: 36px;
  width: auto;
  margin-right: 12px;
  animation: badgeGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
}

@keyframes badgeGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.8)); }
}

/* ============================================
   OBSERVATION BANNER STATUS LEVELS
   (Not a verdict - just observation summary)
   ============================================ */
.eidos-verdict-banner.observation-stable {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.eidos-verdict-banner.observation-elevated {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(234, 179, 8, 0.05) 100%);
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.eidos-verdict-banner.observation-critical {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.eidos-verdict-banner.observation-silence {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  opacity: 0.9;
}

.eidos-verdict-banner.observation-mixed {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.08) 0%, rgba(96, 165, 250, 0.03) 100%);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.eidos-verdict-banner.observation-observing {
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.08) 0%, rgba(100, 100, 100, 0.03) 100%);
  border: 1px solid rgba(100, 100, 100, 0.2);
}

.reflex-stable { color: #22c55e; }
.reflex-stir { color: #60a5fa; }
.reflex-watch { color: #eab308; }
.reflex-panic { color: #f97316; }
.reflex-collapse { color: #ef4444; }
.reflex-silence { color: #a855f7; }

/* ============================================
   ALIGNED/WATCHED Judgment States
   ============================================ */
.judgment-hero-badge.aligned {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.judgment-hero-badge.watched {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.ind-value.judgment-badge.aligned {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.ind-value.judgment-badge.watched {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.3);
}

/* ============================================
   SYMBOLIC ENTROPY LEVELS
   ============================================ */
.ind-value.entropy-level.very-low {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.15);
}

.ind-value.entropy-level.low {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.ind-value.entropy-level.rising {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
}

.ind-value.entropy-level.high {
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
}

.ind-value.entropy-level.hallucinating {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  animation: hallucinatingPulse 1s ease-in-out infinite;
  font-weight: 700;
}

@keyframes hallucinatingPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); transform: scale(1); }
  50% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.5); transform: scale(1.02); }
}

/* ============================================
   SYMBOLIC COLLAPSE DRIFT STATES
   ============================================ */
.ind-value.collapse-drift.stable {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
}

.ind-value.collapse-drift.vibrating {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
}

.ind-value.collapse-drift.wobbling {
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  animation: wobblePulse 0.8s ease-in-out infinite;
}

@keyframes wobblePulse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.ind-value.collapse-drift.collapse {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  animation: collapseDriftPulse 0.6s ease-in-out infinite;
  font-weight: 700;
}

@keyframes collapseDriftPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
}

/* ============================================
   CARD EFFECTS BASED ON REFLEX STATE
   ============================================ */
.model-pane.reflex-hallucinating {
  border: 2px solid #ef4444;
  animation: cardHallucinatingPulse 1.5s ease-in-out infinite;
}

@keyframes cardHallucinatingPulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.15); }
}

.model-pane.reflex-collapse {
  border: 2px solid #ef4444;
  animation: cardCollapsePulse 0.8s ease-in-out infinite;
}

@keyframes cardCollapsePulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  25% { transform: translateX(-1px); }
  50% { opacity: 0.9; }
  75% { transform: translateX(1px); }
}

.model-pane.reflex-panic {
  border: 2px solid #f97316;
  animation: cardPanicFlash 1s ease-in-out infinite;
}

@keyframes cardPanicFlash {
  0%, 100% { box-shadow: inset 0 0 0 rgba(249, 115, 22, 0); }
  50% { box-shadow: inset 0 0 15px rgba(249, 115, 22, 0.2); }
}

.model-pane.reflex-watch {
  border: 2px solid #eab308;
}

.model-pane.reflex-stir {
  border: 2px solid #60a5fa;
  animation: cardStirPulse 2s ease-in-out infinite;
}

@keyframes cardStirPulse {
  0%, 100% { box-shadow: inset 0 0 0 rgba(96, 165, 250, 0); }
  50% { box-shadow: inset 0 0 10px rgba(96, 165, 250, 0.1); }
}

.model-pane.reflex-stable {
  border: 2px solid #22c55e;
  box-shadow: inset 0 0 10px rgba(34, 197, 94, 0.05);
}

.model-pane.reflex-silence {
  border: 2px solid #a855f7;
  animation: cardSilenceStatic 2s ease-in-out infinite;
}

@keyframes cardSilenceStatic {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Interrupted response styling */
.pane-response .interrupted-response {
  border-left: 2px solid #f97316;
  padding-left: 12px;
  margin-left: -12px;
}

.interrupt-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 6px;
  animation: interruptMarkerPulse 2s ease-in-out infinite;
}

@keyframes interruptMarkerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.2); }
  50% { box-shadow: 0 0 15px 2px rgba(249, 115, 22, 0.3); }
}

.interrupt-icon {
  font-size: 18px;
  animation: interruptIconFlash 1s ease-in-out infinite;
}

@keyframes interruptIconFlash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.interrupt-text {
  font-size: 11px;
  font-weight: 600;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   EIDOS INTERVENTION (TRUTH_CLARIFY Reflex)
   Shown when entropy > 0.6 (Rising Pressure)
   ============================================ */
.eidos-intervention {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(234, 179, 8, 0.05) 100%);
  border-left: 3px solid #eab308;
  margin: 0;
  animation: interventionSlide 0.3s ease-out;
}

.eidos-intervention.hidden {
  display: none;
}

.eidos-intervention.high-pressure {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-left-color: #ef4444;
}

@keyframes interventionSlide {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.intervention-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.intervention-message {
  font-size: 11px;
  line-height: 1.5;
  color: #ccc;
}

.intervention-message strong {
  color: #eab308;
  font-weight: 600;
}

.eidos-intervention.high-pressure .intervention-message strong {
  color: #ef4444;
}

/* Stream Interrupted state - more dramatic */
.eidos-intervention.interrupted {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(239, 68, 68, 0.15) 100%);
  border-left: 4px solid #f97316;
  padding: 12px 14px;
  animation: interventionInterrupt 0.5s ease-out;
}

@keyframes interventionInterrupt {
  0% { opacity: 0; transform: translateX(-10px); background: rgba(249, 115, 22, 0.4); }
  100% { opacity: 1; transform: translateX(0); }
}

.eidos-intervention.interrupted .intervention-message {
  font-size: 12px;
}

.eidos-intervention.interrupted .intervention-message strong {
  color: #f97316;
  font-size: 13px;
}

.eidos-intervention.interrupted .intervention-message small {
  display: block;
  margin-top: 6px;
  color: #888;
  font-family: 'Fira Code', monospace;
}

/* ============================================
   INDICATORS - Split Panel (MODEL vs EIDOS)
   ============================================ */
.pane-indicators {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  border-top: 1px solid #1a1a2e;
}

.indicator-section {
  flex: 1;
  padding: 8px 12px;
}

.model-section {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid #1a1a2e;
}

.eidos-section {
  background: rgba(34, 197, 94, 0.03);
}

.section-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  cursor: help;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.model-section .section-label {
  color: #666;
}

.eidos-section .section-label {
  color: #22c55e;
}

.indicator-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}

.ind-label {
  font-size: 9px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: help;
}

/* Info icon for additional tooltip context */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  font-size: 10px;
  font-style: normal;
  color: #666;
  background: rgba(100, 100, 100, 0.2);
  border-radius: 50%;
  cursor: help;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.info-icon:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
}

.ind-value {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   MODEL DECLARED STATE (Tone / Mode)
   No colors - descriptive only
   ============================================ */
.ind-value.tone,
.ind-value.mode {
  color: #999;
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   PERFORMANCE PRESSURE (EIDOS CHECK)
   Three states only: Stable / Rising / High
   ============================================ */
.pressure-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.pressure-row .ind-label {
  font-size: 8px;
}

.ind-value.pressure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 4px 10px;
}

.ind-value.pressure::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Stable - Green */
.ind-value.pressure-stable {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}
.ind-value.pressure-stable::before {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* Rising Pressure - Yellow */
.ind-value.pressure-rising {
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
}
.ind-value.pressure-rising::before {
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
}

/* High Pressure - Red */
.ind-value.pressure-high {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
.ind-value.pressure-high::before {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* Pressure Explanation Text */
.pressure-explanation {
  font-size: 9px;
  color: #666;
  padding: 4px 0 0 0;
  line-height: 1.3;
  font-style: italic;
}

.pressure-explanation.stable {
  color: #22c55e;
}

.pressure-explanation.rising {
  color: #eab308;
}

.pressure-explanation.high {
  color: #ef4444;
}

/* Populated animation */
.ind-value.populated {
  animation: fadeInValue 0.3s ease-out;
}

@keyframes fadeInValue {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================
   FOOTER - User Guidance
   ============================================ */
.compare-footer {
  padding: 10px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid #1a1a2e;
  flex-shrink: 0;
}

.footer-note {
  font-size: 10px;
  color: #555;
  line-height: 1.5;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   SCROLLBAR - Sleek
   ============================================ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2a2a3e;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a4e;
}

/* ============================================
   MODEL OFFLINE / INITIALIZING STATES
   ============================================ */
.model-offline-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  gap: 12px;
}

.model-offline-state .offline-icon {
  font-size: 36px;
  opacity: 0.8;
}

.model-offline-state .offline-title {
  font-size: 14px;
  font-weight: 700;
  color: #eab308;
  letter-spacing: 1px;
}

.model-offline-state .offline-message {
  font-size: 12px;
  color: #666;
}

.model-offline-state .retry-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.1));
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 6px;
  color: #eab308;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.model-offline-state .retry-btn:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(234, 179, 8, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.model-offline-state .offline-help {
  font-size: 10px;
  color: #555;
  margin-top: 8px;
}

.model-offline-state .offline-help code {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  color: #888;
}

/* Model Initializing State */
.model-initializing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 16px;
}

.model-initializing .init-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(34, 197, 94, 0.2);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: initSpin 1s linear infinite;
}

@keyframes initSpin {
  to { transform: rotate(360deg); }
}

.model-initializing .init-text {
  font-size: 12px;
  color: #22c55e;
  letter-spacing: 1px;
  animation: initPulse 1.5s ease-in-out infinite;
}

@keyframes initPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading-dots {
  display: inline-flex;
  gap: 6px;
  padding: 30px;
  justify-content: center;
  width: 100%;
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDot {
  0%, 80%, 100% { transform: scale(0.5); opacity: 0.3; }
  40% { transform: scale(1.2); opacity: 1; }
}

#pane-chatgpt .loading-dots span { background: #10a37f; box-shadow: 0 0 10px #10a37f; }
#pane-mistral .loading-dots span { background: #eab308; box-shadow: 0 0 10px #eab308; }
#pane-local .loading-dots span { background: #8b5cf6; box-shadow: 0 0 10px #8b5cf6; }

/* ============================================
   RESPONSIVE - 4-column to 2x2 on medium screens
   ============================================ */
@media (max-width: 1200px) {
  .model-grid.four-column {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE - Stack on small screens
   ============================================ */
@media (max-width: 900px) {
  .model-grid {
    grid-template-columns: 1fr;
  }

  .model-grid.four-column {
    grid-template-columns: 1fr;
  }

  .pane-response {
    max-height: 250px;
  }

  .eidos-badge {
    display: none;
  }
}


/* ============================================================================
   SYMBOLIC REFLEX DISPLAY (EVE_MUTATED)
   ============================================================================ */
.symbolic-reflex-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}

.symbolic-reflex-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.symbolic-reflex-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.symbolic-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: help;
  position: relative;
  transition: all 0.2s ease;
}

.symbolic-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Badge colors by type */
.symbolic-badge.tilt {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.symbolic-badge.blink {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.symbolic-badge.blackout {
  background: rgba(220, 38, 38, 0.2);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

.symbolic-badge.ghost {
  background: rgba(99, 102, 241, 0.2);
  color: #6366f1;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.symbolic-badge.fracture {
  background: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.symbolic-badge.stable {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Tooltip */
.symbolic-badge .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  width: 220px;
  text-align: left;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
  pointer-events: none;
}

.symbolic-badge .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a2e;
}

.symbolic-badge:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.tooltip-title {
  font-weight: 700;
  color: inherit;
  margin-bottom: 4px;
  display: block;
}

.tooltip-desc {
  color: #aaa;
  display: block;
}

/* Symbolic status indicator */
.symbolic-status {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}

.symbolic-status.critical { background: rgba(220,38,38,0.3); color: #ef4444; }
.symbolic-status.warning { background: rgba(245,158,11,0.3); color: #f59e0b; }
.symbolic-status.halted { background: rgba(124,58,237,0.3); color: #a78bfa; }
.symbolic-status.stable { background: rgba(34,197,94,0.2); color: #22c55e; }


/* ============================================================================
   MISALIGNMENT DETECTION DISPLAY
   ============================================================================ */
.misalignment-reflex-row {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.05);
}

.misalignment-reflex-label {
  font-size: 0.65rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.misalignment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.misalignment-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: help;
  position: relative;
  transition: all 0.2s ease;
}

.misalignment-badge:hover {
  transform: translateY(-1px);
}

.misalignment-badge.aligned {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.misalignment-badge.inversion {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.misalignment-badge.blind_spot {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.misalignment-badge.weak_empathy {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.misalignment-badge.stable_misaligned {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.misalignment-badge .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.4;
  width: 200px;
  text-align: left;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
  pointer-events: none;
}

.misalignment-badge:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
