:root {
  --bg-dark: #07090E;
  --bg-panel: rgba(13, 17, 26, 0.75);
  --bg-card: rgba(22, 28, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 240, 255, 0.4);
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --accent-cyan: #00F0FF;
  --accent-purple: #8B5CF6;
  --accent-green: #10B981;
  --accent-amber: #F59E0B;
  --accent-pink: #EC4899;
}

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

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  max-width: 100vw;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.06) 0%, transparent 40%);
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Header */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  z-index: 20;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.brand-icon {
  font-size: 1.2rem;
}

.room-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.room-pill strong {
  color: var(--text-main);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
}

.pulse-green {
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

.track-badge {
  font-size: 0.78rem;
  padding: 3px 10px;
  background: rgba(139, 92, 246, 0.15);
  color: #C4B5FD;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-family: 'JetBrains Mono', monospace;
}

.demo-specimen-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 4px;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}

.pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-active);
}

.pill-btn.active-view {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Main Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  overflow: hidden;
}

/* Chamber Panel */
.chamber-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  background: rgba(5, 7, 12, 0.4);
  position: relative;
}

.chamber-header, .feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.chamber-header h2, .feed-header h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.feed-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.participant-count {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-family: 'JetBrains Mono', monospace;
}

.viewport-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#holoCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 2D Ring Seating */
.seats-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  max-width: 440px;
  max-height: 440px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  z-index: 2;
  pointer-events: none;
}

.seat-node {
  position: absolute;
  width: 68px;
  height: 68px;
  margin-left: -34px;
  margin-top: -34px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seat-node:hover {
  transform: scale(1.12);
}

.seat-node.active-turn {
  animation: glowPulse 1.5s infinite;
}

.seat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  background: #0D111A;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease;
}

.seat-node.active-turn .seat-avatar {
  border-color: var(--accent-cyan);
}

.seat-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 17, 26, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Central Nexus Table */
.central-nexus {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.nexus-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.3);
  animation: rotateClockwise 20s linear infinite;
}

.nexus-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nexus-icon {
  font-size: 1.5rem;
}

.nexus-label {
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Diagnostics Footer */
.bridge-diagnostics {
  display: flex;
  justify-content: space-around;
  padding: 10px 16px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
}

.diag-item {
  display: flex;
  gap: 6px;
  align-items: center;
}

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

.diag-val.badge-green {
  color: var(--accent-green);
}

.diag-val.badge-standby {
  color: var(--accent-amber);
}

/* Live Feed Panel */
.feed-panel {
  display: flex;
  flex-direction: column;
  background: rgba(10, 13, 20, 0.6);
}

.workflow-controls {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: var(--accent-cyan);
  color: #05080E;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.action-btn:hover {
  opacity: 0.9;
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  animation: fadeIn 0.3s ease;
}

.msg-avatar-col img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.msg-body-col {
  flex: 1;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.msg-author {
  font-weight: 600;
  font-size: 0.85rem;
}

.msg-role-tag {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.msg-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
}

.msg-content {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #E5E7EB;
}

.chat-input-bar {
  display: flex;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  gap: 10px;
}

.chat-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
}

.chat-input-bar button {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: none;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Sidecar Decision Document Drawer */
.doc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  transform: translateX(100%);
  width: 500px;
  max-width: 100vw;
  height: 100%;
  background: #0B0E17;
  border-left: 1px solid var(--border-active);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  visibility: hidden;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.doc-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

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

.drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-title h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.drawer-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.6;
}

.doc-rendered {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 16px;
  border-radius: 8px;
}

.doc-warning-banner {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  color: #FBBF24;
  font-size: 0.8rem;
  line-height: 1.4;
}

.doc-rendered h1 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.doc-rendered h2 {
  font-size: 0.92rem;
  margin-top: 14px;
  margin-bottom: 6px;
  color: var(--accent-cyan);
}

.doc-rendered p, .doc-rendered ul {
  margin-bottom: 10px;
}

.citation-pill {
  font-size: 0.72rem;
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

@keyframes rotateClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes glowPulse {
  0% { box-shadow: 0 0 5px var(--accent-cyan); }
  50% { box-shadow: 0 0 20px var(--accent-cyan); }
  100% { box-shadow: 0 0 5px var(--accent-cyan); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  body {
    overflow-y: auto;
    height: auto;
  }

  .app-container {
    height: auto;
    min-height: 100vh;
  }

  .main-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .chamber-panel {
    min-height: 480px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .feed-panel {
    min-height: 500px;
  }

  .doc-drawer {
    width: 100%;
    max-width: 100vw;
  }
}

@media (max-width: 600px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .top-nav {
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    align-items: stretch;
  }

  .nav-left, .nav-center, .nav-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pill-channel-hash {
    display: none;
  }

  .chamber-panel {
    min-height: 360px;
  }

  .viewport-stage {
    min-height: 300px;
    overflow: hidden;
  }

  .seats-ring {
    width: 280px;
    height: 280px;
    max-width: 280px;
    max-height: 280px;
  }

  .seat-node, .seat-node-mobile {
    width: 52px;
    height: 52px;
    margin-left: -26px;
    margin-top: -26px;
  }

  .seat-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
    bottom: -4px;
  }

  .bridge-diagnostics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px 12px;
  }

  .feed-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .workflow-controls {
    display: flex;
    gap: 6px;
    width: 100%;
  }

  .action-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .chat-input-bar {
    padding: 10px 14px;
  }

  .profile-card {
    padding: 18px 14px;
    width: 95%;
  }

  .profile-header {
    gap: 12px;
  }

  .profile-avatar-wrap {
    width: 72px;
    height: 72px;
  }
}

/* Profile Inspector Modal */
.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 12, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.profile-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.profile-card {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: rgba(13, 17, 26, 0.95);
  border: 1px solid var(--border-active);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-modal-overlay.open .profile-card {
  transform: translateY(0) scale(1);
}

.close-modal-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.close-modal-btn:hover {
  color: var(--accent-cyan);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-cyan);
  background: #0A0D14;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.25);
  flex-shrink: 0;
}

.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-status-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0A0D14;
  background: var(--accent-green);
}

.profile-status-indicator.no-session {
  background: var(--accent-amber);
}

.profile-status-indicator.offline {
  background: #6B7280;
}

.profile-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-names {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-emoji {
  font-size: 1.3rem;
}

.profile-names h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  font-weight: 700;
}

.profile-runtime-tag {
  font-size: 0.7rem;
  background: rgba(139, 92, 246, 0.2);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

.profile-role {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.profile-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #D1D5DB;
  margin-bottom: 16px;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.meta-value {
  font-size: 0.72rem;
  color: var(--text-main);
  word-break: break-all;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Accessibility & Keyboard Nav */
.seat-node:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 50%;
}

.pill-btn:focus-visible, .action-btn:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .nexus-ring, .pulse-green, .seat-node.active-turn {
    animation: none !important;
  }
}


/* === Slice 4 & Slice 5: Mode Switcher, Truthfulness Strip, Evidence Panel & Operator Mode === */
.mode-switcher {
  display: inline-flex;
  background: rgba(5, 8, 15, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: 'Inter', sans-serif;
}

.mode-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
  background: rgba(0, 240, 255, 0.16);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.demo-specimen-pill.pill-verified {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.45);
}

.demo-specimen-pill.pill-live {
  background: rgba(0, 240, 255, 0.16);
  color: var(--accent-cyan);
  border-color: rgba(0, 240, 255, 0.45);
}

.link-pill {
  text-decoration: none;
}

/* Truthfulness & Provenance Banner */
.truthfulness-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 20px;
  font-size: 0.74rem;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 18;
}

.truthfulness-strip.mode-verified {
  background: rgba(16, 185, 129, 0.1);
  border-bottom-color: rgba(16, 185, 129, 0.3);
}

.truthfulness-strip.mode-demo {
  background: rgba(245, 158, 11, 0.12);
  border-bottom-color: rgba(245, 158, 11, 0.35);
}

.truthfulness-strip.mode-live {
  background: rgba(0, 240, 255, 0.1);
  border-bottom-color: rgba(0, 240, 255, 0.35);
}

.truth-strip-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.truth-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent-cyan);
}

.truth-text {
  color: #E5E7EB;
}

.transport-sim-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.sim-state-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
}

.sim-state-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.14);
}

/* Boons Operator Presentation Director Bar */
.operator-director-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 20px;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(0, 240, 255, 0.16));
  border-bottom: 1px solid var(--accent-cyan);
  z-index: 19;
}

.director-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.director-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #05080E;
  background: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
}

.director-turn-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #F9FAFB;
}

.director-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.director-btn {
  background: rgba(11, 14, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F3F4F6;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.director-btn.primary {
  background: var(--accent-cyan);
  color: #05080E;
  border-color: var(--accent-cyan);
}

/* Chamber Subtitle & Status Dots */
.chamber-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chamber-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.seat-status-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0B0E17;
  z-index: 3;
}

.dot-responding, .dot-status.responding { background: #10B981; box-shadow: 0 0 6px #10B981; }
.dot-listening, .dot-status.listening { background: #00F0FF; }
.dot-receiving, .dot-status.receiving { background: #8B5CF6; }
.dot-busy, .dot-status.busy { background: #F59E0B; }
.dot-stale, .dot-status.stale { background: #F97316; }
.dot-offline, .dot-status.offline { background: #6B7280; }
.dot-unknown, .dot-status.unknown { background: #9CA3AF; }

.status-legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(8, 11, 18, 0.75);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.legend-title {
  font-weight: 600;
  color: var(--text-main);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* Active Speaker Spotlight Overlay */
.speaker-spotlight-card {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 520px;
  background: rgba(11, 15, 25, 0.94);
  border: 1px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 6;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.18);
}

.speaker-spotlight-card[hidden],
.operator-director-bar[hidden],
.transport-sim-bar[hidden],
.transport-alert-box[hidden] {
  display: none !important;
}

.speaker-spotlight-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  flex-shrink: 0;
}

.spotlight-info {
  flex: 1;
  min-width: 0;
}

.spotlight-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.spotlight-role {
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

.spotlight-receipt {
  font-size: 0.66rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-left: auto;
}

.spotlight-Snippet {
  font-size: 0.78rem;
  color: #F3F4F6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stream Filter Bar & Receipt Footer */
.stream-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(13, 17, 26, 0.55);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 12px;
  cursor: pointer;
}

.filter-pill.active {
  background: rgba(0, 240, 255, 0.14);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.filter-search-wrap input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  width: 190px;
  max-width: 100%;
}

.msg-exec-tag {
  font-size: 0.64rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.16);
  color: #C4B5FD;
  font-family: 'JetBrains Mono', monospace;
}

.msg-receipt-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.msg-receipt-pill {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.msg-receipt-pill:hover {
  background: rgba(0, 240, 255, 0.2);
}

.msg-latency-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: #34D399;
}

.inline-code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.transport-alert-box {
  margin: 10px 16px 0;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
}

/* Profile Inspector Additions */
.profile-exec-badge {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: #34D399;
  margin-top: 2px;
}

.profile-honest-note {
  font-size: 0.74rem;
  background: rgba(0, 240, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 8px 10px;
  border-radius: 4px;
  color: #E5E7EB;
  margin-bottom: 12px;
}

.profile-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Evidence & Decision Panel Styles */
.evidence-panel-root {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evidence-mode-banner {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.evidence-mode-banner.mode-demo {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FBBF24;
}

.evidence-mode-banner.mode-verified,
.evidence-mode-banner.mode-live {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #A7F3D0;
}

.evidence-section {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px;
}

.evidence-section-title {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.evidence-proposal-title {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.evidence-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.evidence-options-grid,
.evidence-assessments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evidence-option-card,
.evidence-assessment-card {
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.2s ease;
}

.evidence-option-card.recommended-option {
  border-color: rgba(16, 185, 129, 0.5);
}

.evidence-assessment-card.highlighted-assessment {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
}

.option-header,
.assessment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.option-id-badge,
.stance-badge,
.citation-receipt-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
}

.option-id-badge {
  background: rgba(139, 92, 246, 0.2);
  color: #C4B5FD;
}

.stance-approve {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
}

.stance-approve_with_conditions {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

.citation-receipt-btn {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--accent-cyan);
  cursor: pointer;
}

.assessment-risk {
  font-size: 0.74rem;
  color: #FCD34D;
  margin-top: 6px;
}

.decision-gate-card {
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
}

.decision-gate-card.gate-awaiting_human_decision {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.45);
}

.decision-gate-card.gate-simulated_demo_outcome {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.45);
}

.decision-gate-card.gate-approved {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.gate-status-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 6px;
  color: #FBBF24;
}

/* Operator Presentation Camera Mode Enhancements */
.operator-presentation-mode .msg-content {
  font-size: 0.94rem;
  line-height: 1.58;
}

.operator-presentation-mode .seat-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
}

/* Tablet & Mobile 360px/390px/768px Refinements */
@media (max-width: 1100px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px;
  }
}

@media (max-width: 600px) {
  .truthfulness-strip,
  .operator-director-bar,
  .stream-filter-bar {
    padding: 6px 10px;
  }
  .mode-switcher {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .seats-ring {
    width: 248px;
    height: 248px;
    max-width: 248px;
    max-height: 248px;
  }
  .seat-node, .seat-node-mobile {
    width: 46px;
    height: 46px;
    margin-left: -23px;
    margin-top: -23px;
  }
  .filter-search-wrap,
  .filter-search-wrap input {
    width: 100%;
  }
}


/* === Slice 5 Visual & Grid Containment Polish === */
@media (min-width: 961px) {
  .main-layout {
    min-height: 0;
    max-height: calc(100vh - 82px);
    overflow: hidden;
  }
  .chamber-panel,
  .feed-panel {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  .viewport-stage {
    min-height: 0;
    flex: 1;
  }
  .messages-container {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
  }
}

.top-nav {
  padding: 8px 18px;
  gap: 10px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Evidence Drawer Structured Spacing & Badges */
.doc-warning-banner.banner-verified {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #D1FAE5;
}

.evidence-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.evidence-step-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.decision-state-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.decision-state-pill.pill-approved {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.45);
}

.decision-selected-option {
  font-weight: 600;
  color: #F9FAFB;
  margin-bottom: 6px;
  font-size: 0.84rem;
}

.decision-summary-text,
.proposal-question,
.reconcile-agreement {
  color: #E5E7EB;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.decision-meta-grid,
.proposal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.meta-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #D1D5DB;
  padding: 2px 8px;
  border-radius: 4px;
}

.meta-chip.chip-locked {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.decision-next-action,
.assessment-next-owner {
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  color: #34D399;
  background: rgba(16, 185, 129, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
}

.option-card,
.assessment-card {
  background: rgba(9, 13, 22, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.option-title {
  font-weight: 600;
  color: #F3F4F6;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.option-summary {
  font-size: 0.78rem;
  color: #D1D5DB;
  margin-bottom: 6px;
}

.option-tradeoffs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.72rem;
}

.tradeoff-pro { color: #34D399; }
.tradeoff-con { color: #FBBF24; }

.assessment-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  cursor: pointer;
}

.assessment-author-group,
.assessment-badges-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.assessment-persona {
  color: #F9FAFB;
  font-size: 0.84rem;
}

.assessment-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.assessment-runtime-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  background: rgba(139, 92, 246, 0.16);
  color: #C4B5FD;
  padding: 1px 6px;
  border-radius: 4px;
}

.rec-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
}

.rec-badge.rec-approve_with_conditions {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

.citation-link-btn {
  cursor: pointer;
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.assessment-card-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.assessment-question {
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.assessment-dissent-callout {
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid #F59E0B;
  padding: 6px 8px;
  border-radius: 4px;
  color: #FDE68A;
  margin: 6px 0;
  font-size: 0.74rem;
}

.assessment-subhead {
  font-weight: 600;
  color: #D1D5DB;
  margin-top: 6px;
  margin-bottom: 3px;
  font-size: 0.74rem;
}

.assessment-list {
  padding-left: 16px;
  margin-bottom: 6px;
  color: #D1D5DB;
}

.receipts-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

.receipt-item {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 6px;
  border-radius: 4px;
}

.receipt-item.status-pass .receipt-status-tag { color: #34D399; }
.receipt-item.status-partial .receipt-status-tag { color: #FBBF24; }
.receipt-item.status-unrun .receipt-status-tag { color: #9CA3AF; }


/* === Ring Explicit Dimensions & Mobile Wrapping Polish === */
.seats-ring {
  width: 410px;
  height: 410px;
  max-width: 410px;
  max-height: 410px;
}

.chamber-header {
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 960px) {
  .viewport-stage {
    min-height: 440px;
  }
  .seats-ring {
    width: 380px;
    height: 380px;
    max-width: 380px;
    max-height: 380px;
  }
}

@media (max-width: 600px) {
  .viewport-stage {
    min-height: 330px;
  }
  .seats-ring {
    width: 284px;
    height: 284px;
    max-width: 284px;
    max-height: 284px;
  }
  .seat-node, .seat-node-mobile {
    width: 46px;
    height: 46px;
    margin-left: -23px;
    margin-top: -23px;
  }
  .chamber-header {
    padding: 10px 12px;
  }
  .participant-count {
    font-size: 0.68rem;
  }
  .bridge-diagnostics {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
